Search found 2445 matches

by kwagyeman
Sun Dec 09, 2018 7:37 pm
Forum: Technical Discussion
Topic: Any way to implement protection on python code from reading?
Replies: 2
Views: 34

Re: Any way to implement protection on python code from reading?

Our bootloader or DFU will let you flash the new firmware image you make over USB so you don't need any special hardware once you have a script. Also you can just put the register prevent read back register writes in C and they can execute every time the device boots. One the first run the flash wil...
by kwagyeman
Sun Dec 09, 2018 7:34 pm
Forum: Technical Discussion
Topic: Any way to implement protection on python code from reading?
Replies: 2
Views: 34

Re: Any way to implement protection on python code from reading?

Hi, yes, it is possible to do this. I can't tell you the steps because I haven't done it before but the STM32 microcontroller has code protection features in it that you can turn on to disable reading of the flash on the microcontroller via the debug interface to prevent jtag firmware dumps. See the...
by kwagyeman
Sun Dec 09, 2018 12:33 pm
Forum: Technical Discussion
Topic: apriltag.corners() to subpixel precision ?
Replies: 3
Views: 79

Re: apriltag.corners() to subpixel precision ?

Okay. This will amke it in eventually. I'll have a lot of time to work soon.
by kwagyeman
Sat Dec 08, 2018 11:23 pm
Forum: Technical Discussion
Topic: Bayer output for OV7725
Replies: 9
Views: 280

Re: Bayer output for OV7725

Yup, that's exactly what we are doing.
by kwagyeman
Sat Dec 08, 2018 11:23 pm
Forum: Technical Discussion
Topic: How can I find minimum area rectangle in binary image?
Replies: 3
Views: 68

Re: How can I find minimum area rectangle in binary image?

I understand what you need to do. Um, so the rect we return has a left/right/up/down parts. However, this ins't the min area rect... but, the min area rect intersects these points. Anyway, the easiest way to get this is to take the rotation angle from the find_blobs() function and rotate the rectang...
by kwagyeman
Sat Dec 08, 2018 11:09 pm
Forum: Technical Discussion
Topic: apriltag.corners() to subpixel precision ?
Replies: 3
Views: 79

Re: apriltag.corners() to subpixel precision ?

Yes, we can enable this. However, if you can do a PR it will get in faster: The corners are stored here: https://github.com/openmv/openmv/blob/master/src/omv/img/apriltag.c#L11724 The values are stored in this struct: https://github.com/openmv/openmv/blob/master/src/omv/img/imlib.h#L1095 And the acc...
by kwagyeman
Sat Dec 08, 2018 11:05 pm
Forum: Project Discussion
Topic: Trigger on background color change
Replies: 2
Views: 69

Re: Trigger on background color change

Hi, you have to expect there will be some noise in the system and that you can't eliminate it. However, you can always compare the difference in brightness between the current image and the previous image and then threshold based on that. If something changes the difference between the lightness in ...
by kwagyeman
Sat Dec 08, 2018 12:18 am
Forum: Technical Discussion
Topic: How can I find minimum area rectangle in binary image?
Replies: 3
Views: 68

Re: How can I find minimum area rectangle in binary image?

Hi, please clarify how this relates to the OpenMV Cam?

We don't have a min area rect method. However, if you care about rotation the find_blobs() method returns the rotation angle of the object. Otherwise what is your goal with the min area rect?
by kwagyeman
Fri Dec 07, 2018 10:34 pm
Forum: Technical Discussion
Topic: using microprocessors instead of microcontrollers
Replies: 3
Views: 110

Re: using microprocessors instead of microcontrollers

Ibrahim chose to use the STM32M4 when we started the project and due to legacy it's pretty much impossible to switch the architecture since we're bound to the STM32 line of CPUs for I/o. That said, we won't continue on the STM32 forever...
by kwagyeman
Thu Dec 06, 2018 8:50 pm
Forum: Technical Discussion
Topic: Bayer output for OV7725
Replies: 9
Views: 280

Re: Bayer output for OV7725

We turn it into a jpg image while doing the operation. So, the full image never is stored in RAM.
by kwagyeman
Wed Dec 05, 2018 10:43 pm
Forum: General Topics
Topic: ask information about remove_shadows()
Replies: 4
Views: 176

Re: ask information about remove_shadows()

I'm using the chromacity based method. The zip file from the website should contain OpenCV based code.
by kwagyeman
Wed Dec 05, 2018 12:12 pm
Forum: General Topics
Topic: ask information about remove_shadows()
Replies: 4
Views: 176

Re: ask information about remove_shadows()

Hi, the one argument version doesn't work very well. However, the two argument one works quite good: http://arma.sourceforge.net/shadows/ - I'm using the simple color based method.
by kwagyeman
Wed Dec 05, 2018 12:10 pm
Forum: Technical Discussion
Topic: Memory Error, out of fast Frame Buffer Stack
Replies: 3
Views: 144

Re: Memory Error, out of fast Frame Buffer Stack

Its at the max size it can possibly be. 160x120 is really the useful limit. That said, with the latest firmware you can do about 200x200 pixels at the absolute max.
by kwagyeman
Wed Dec 05, 2018 12:10 pm
Forum: Project Discussion
Topic: flashing led detection with changing ambiant light
Replies: 1
Views: 89

Re: flashing led detection with changing ambiant light

I'd use get_stats() to get the color distribution of the area the light is in and then monitor the area color distribution over time. When the LED is flashing it should change the green color average of the area.
by kwagyeman
Wed Dec 05, 2018 2:26 am
Forum: Technical Discussion
Topic: Memory Error, out of fast Frame Buffer Stack
Replies: 3
Views: 144

Re: Memory Error, out of fast Frame Buffer Stack

Hi, the algorithm runs on a max resolution of 160x120 pixels. Please keep inind our system is a microcontroller with limited RAM. Find_rects() is based on the quad finder that powers April Tags. It needs about 16x the resolution of RAM to process the image. So, at 160x120 it needs over 300k of RAM. ...
by kwagyeman
Tue Dec 04, 2018 12:45 pm
Forum: Technical Discussion
Topic: F7 consumption optimization
Replies: 6
Views: 191

Re: F7 consumption optimization

Ibrahim can answer this.
by kwagyeman
Tue Dec 04, 2018 12:43 pm
Forum: Technical Discussion
Topic: low power waiting for uart rx
Replies: 4
Views: 177

Re: low power waiting for uart rx

Ibrahim can you help out here?
by kwagyeman
Tue Dec 04, 2018 12:41 pm
Forum: Project Discussion
Topic: OpenMV cam to another microcontroller
Replies: 1
Views: 79

Re: OpenMV cam to another microcontroller

Hi, 1. We could do the identification part but we can't stream data to the cloud. You'd need a Pi for that. 2. See here: https://github.com/openmv/openmv/blob/master/scripts/examples/02-Board-Control/usb_vcp.py 3. Technically yes, however, the WiFi shield just give you low level sockets. To be hones...
by kwagyeman
Sat Dec 01, 2018 1:39 am
Forum: Technical Discussion
Topic: Disk access issue? or maybe frame rate issue?
Replies: 3
Views: 249

Re: Disk access issue? or maybe frame rate issue?

Press the record button on the frame buffer.
by kwagyeman
Fri Nov 30, 2018 11:52 am
Forum: Technical Discussion
Topic: Disk access issue? or maybe frame rate issue?
Replies: 3
Views: 249

Re: Disk access issue? or maybe frame rate issue?

Hi, please record via the IDE and not the camera. Since we don't have much RAM we don't have any FIFO buffers to record with meaning that when recording you adversely affect the frame rate of the system. I heavily recommend not to record anything while doing image processing.
by kwagyeman
Wed Nov 28, 2018 4:21 pm
Forum: Technical Discussion
Topic: OpenMV with Raspberry pi zero
Replies: 3
Views: 151

Re: OpenMV with Raspberry pi zero

Just a USB cable to the camera.
by kwagyeman
Wed Nov 28, 2018 12:21 pm
Forum: Technical Discussion
Topic: OpenMV with Raspberry pi zero
Replies: 3
Views: 151

Re: OpenMV with Raspberry pi zero

Hi, it would be a lot easier to use Pi Camera. But, anyway, see this script here:

https://github.com/openmv/openmv/blob/m ... usb_vcp.py
by kwagyeman
Wed Nov 28, 2018 11:33 am
Forum: Technical Discussion
Topic: F7 consumption optimization
Replies: 6
Views: 191

Re: F7 consumption optimization

Hi, the cpufreq module should not be used. That only worked on the M4. I think I removed in from the docs but it's still in the code base.
by kwagyeman
Tue Nov 27, 2018 12:00 pm
Forum: General Topics
Topic: about machine module
Replies: 6
Views: 258

Re: about machine module

Hi, we didn't break these pins out which is the reason why you have to use the reset line. Wakeup via those interrupts is not possible.
by kwagyeman
Tue Nov 27, 2018 11:59 am
Forum: General Topics
Topic: OpenMV H7 on NUCLEO-H743ZI board
Replies: 20
Views: 2606

Re: OpenMV H7 on NUCLEO-H743ZI board

Hi, those are just standard molex 0.1 connectors. I don't have an exact part for them. Our CM just picks anything for use there.
by kwagyeman
Tue Nov 27, 2018 11:57 am
Forum: Technical Discussion
Topic: FOV and lens question
Replies: 6
Views: 3616

Re: FOV and lens question

Hi, yes, it does with the OV7725.
by kwagyeman
Tue Nov 27, 2018 12:18 am
Forum: General Topics
Topic: about machine module
Replies: 6
Views: 258

Re: about machine module

Hi, yes, you can put the OpenMV Cam into standby by using the https://docs.micropython.org/en/latest/library/pyb.html#pyb.standby method. Then just toggle reset again to wake the camera back up and it will start executing whatever it was previously doing. We have some firmware revs with fixes to som...
by kwagyeman
Mon Nov 26, 2018 12:07 pm
Forum: Technical Discussion
Topic: Stuck on Quantizing the Model
Replies: 1
Views: 184

Re: Stuck on Quantizing the Model

Hi, please see this: https://github.com/kwagyeman/openmv/tre ... ml/cmsisnn

I need to merge it into master still.
by kwagyeman
Mon Nov 26, 2018 12:04 pm
Forum: General Topics
Topic: about machine module
Replies: 6
Views: 258

Re: about machine module

Hi, please use the pyb class with an external interrupt.

Um, we have an example waking up using the internal RTC. As for external I/O pins... I'm not sure you can use them at a low power mode (< 1ma). All you can do is reset the system.
by kwagyeman
Mon Nov 26, 2018 12:03 pm
Forum: General Topics
Topic: OpenMV H7 on NUCLEO-H743ZI board
Replies: 20
Views: 2606

Re: OpenMV H7 on NUCLEO-H743ZI board

It's the DF12(3.0)-36DP-0.5V(86) and DF12(3.0)-36DS-0.5V(86). Digikey has the info if you google it.
by kwagyeman
Mon Nov 26, 2018 11:38 am
Forum: General Topics
Topic: Openmv in UVC mode
Replies: 3
Views: 193

Re: Openmv in UVC mode

Hi, please choose to talk to us over email or the forums but not both.
by kwagyeman
Sun Nov 25, 2018 9:01 am
Forum: General Topics
Topic: OpenMV H7 on NUCLEO-H743ZI board
Replies: 20
Views: 2606

Re: OpenMV H7 on NUCLEO-H743ZI board

What board are you talking about?
by kwagyeman
Thu Nov 22, 2018 1:25 pm
Forum: Technical Discussion
Topic: Use of callback function in sleep mode
Replies: 6
Views: 353

Re: Use of callback function in sleep mode

Ibrahim needs to check this.
by kwagyeman
Wed Nov 21, 2018 10:46 pm
Forum: Technical Discussion
Topic: Can I use opencv to read real-time images of openmv?
Replies: 5
Views: 298

Re: Can I use opencv to read real-time images of openmv?

Um, we'll release a firmware soon that turns the camera into a UVC device. This is just mainly for the H7 to stream thermal video from the FLIR.
by kwagyeman
Wed Nov 21, 2018 9:47 am
Forum: Technical Discussion
Topic: Script autostart
Replies: 56
Views: 4110

Re: Script autostart

I think these? Not sure if they are in the right format for us:

https://github.com/opencv/opencv/tree/m ... arcascades
by kwagyeman
Wed Nov 21, 2018 9:46 am
Forum: Technical Discussion
Topic: Problem using utime.tick_ms()
Replies: 3
Views: 1827

Re: Problem using utime.tick_ms()

Hi, traveling for thanksgiving. Hard for me to answer quickly. Glad to hear you worked it out.
by kwagyeman
Wed Nov 21, 2018 9:44 am
Forum: General Topics
Topic: blob rotation?
Replies: 1
Views: 198

Re: blob rotation?

Um, there's no way mathematically to get a better angle than 0-180 with our code by default. The cross-correlation doesn't have the ability to be 0-360. However, if you add some extra info you can get the full 360. For example, can you detect if the arrow is to the left or to the right (or pointing ...
by kwagyeman
Tue Nov 20, 2018 10:46 am
Forum: Technical Discussion
Topic: Noob to micropython interrupt handlers
Replies: 2
Views: 1161

Re: Noob to micropython interrupt handlers

Yeah, that's this weird parameter that isn't particularly useful but has to be passed in.
by kwagyeman
Mon Nov 19, 2018 3:33 pm
Forum: General Topics
Topic: send values to serial port
Replies: 8
Views: 2419

Re: send values to serial port

Hi, please verify your drive is writable.
by kwagyeman
Mon Nov 19, 2018 3:33 pm
Forum: Technical Discussion
Topic: Error: Cannot write file D:\\main.py. Disk full?!
Replies: 1
Views: 1248

Re: Error: Cannot write file D:\\main.py. Disk full?!

Hi, can you verify the D drive is writable and is the OpenMV Cam's uPy flash drive?
by kwagyeman
Sun Nov 18, 2018 6:25 pm
Forum: Technical Discussion
Topic: sensor.snapshot() array manipulation
Replies: 3
Views: 1286

Re: sensor.snapshot() array manipulation

Yeah, just do then:

Code: Select all

for i in range(img.width()):
    rect = (i, 0, 1, img.height()) # x y w h
    stats = img.get_stats(roi = rect)
    print(stats)
by kwagyeman
Sun Nov 18, 2018 3:51 pm
Forum: Technical Discussion
Topic: sensor.snapshot() array manipulation
Replies: 3
Views: 1286

Re: sensor.snapshot() array manipulation

Hi, the image array is not a numpy array. The purpose of the python API is to stich together image processing operations. You should avoid pixel wise access. That said you can use a get_pixel() and set_pixel() method to do things but you should look through our API for a method that does something s...
by kwagyeman
Fri Nov 16, 2018 12:16 pm
Forum: Technical Discussion
Topic: Copying the data matrix payload content to Clip board
Replies: 1
Views: 1305

Re: Copying the data matrix payload content to Clip board

Hi, the data matrix decoding is running on the OpenMV Cam. You have to transfer it via serial to the PC. Please use the print() method and write an application on the PC to read the print() statements.
by kwagyeman
Fri Nov 16, 2018 12:15 pm
Forum: Project Discussion
Topic: SPI implementation code with Ethernet board
Replies: 3
Views: 2100

Re: SPI implementation code with Ethernet board

Not really, you'll need to design an interposer board yourself. This isn't something we built the system for. Sorry I can't be of more help.
by kwagyeman
Fri Nov 16, 2018 12:44 am
Forum: Technical Discussion
Topic: Difficulty in decoding few data matrix
Replies: 1
Views: 1100

Re: Difficulty in decoding few data matrix

Hi, we can't decode data matrixes like that. They aren't even close to the binary black and white ones that the library is meant for. If you want to decode a data matrixes like that you're going to have to preprocess the image to get a black and white image. What I mean by this is to look at the dat...
by kwagyeman
Thu Nov 15, 2018 11:04 pm
Forum: Technical Discussion
Topic: W5500 Ethernet controller on OpenMV
Replies: 1
Views: 1087

Re: W5500 Ethernet controller on OpenMV

It looks like you need to edit the MakeFile to include the wiznet c code. Usually, this means you need to find what .c file makes that thing up and add it to the MakeFile which compiles the C file and you also need to edit the main MakeFile that links the .o files.
by kwagyeman
Thu Nov 15, 2018 6:59 pm
Forum: General Topics
Topic: blob detection
Replies: 11
Views: 2478

Re: blob detection

Yes

Go to advanced search