Search found 2461 matches

by kwagyeman
Fri Dec 14, 2018 10:03 am
Forum: General Topics
Topic: is it a bug in image.div
Replies: 1
Views: 18

Re: is it a bug in image.div

Hmm, maybe. I remember writing it like that for a reason. It had to do with the fact that if you divide two images with similar values you will end up with a valid image. If I divide by pScale again then you can't divide two images by each other and get a valid result. Um, given the above. I think I...
by kwagyeman
Fri Dec 14, 2018 9:43 am
Forum: General Topics
Topic: send values to serial port
Replies: 16
Views: 2563

Re: send values to serial port

So, we will have a solution for this soon that let's the camera transmit the image over the 5ghz spectrum using an NTSC transmitter. But, we don't have what you need now.
by kwagyeman
Thu Dec 13, 2018 12:30 pm
Forum: General Topics
Topic: openmv to arduino with template matching examples
Replies: 18
Views: 5452

Re: openmv to arduino with template matching examples

Please start a new thread and repost using the

Code: Select all

 tags.
by kwagyeman
Thu Dec 13, 2018 12:28 pm
Forum: Technical Discussion
Topic: problem when i receive data on Uart rx when i read
Replies: 5
Views: 87

Re: problem when i receive data on Uart rx when i read

Ibrahim, can you help out?
by kwagyeman
Thu Dec 13, 2018 12:26 pm
Forum: Technical Discussion
Topic: Implementing low-cost pre-trained NN like MobileNet/SqueezeNet
Replies: 3
Views: 118

Re: Implementing low-cost pre-trained NN like MobileNet/SqueezeNet

The INRIA network doesn't work. Only the CHARS74K one. The car detection ones do work technically but were overfit. The INRIA one doesn't work yet because I ran into an issue with our code being able to handle non-square images. I have to find more time to put into fixing this network.
by kwagyeman
Thu Dec 13, 2018 12:25 pm
Forum: General Topics
Topic: Increase color tracking fps
Replies: 1
Views: 22

Re: Increase color tracking fps

Lowering the resolution make the color tracking go faster. Additionally, we'll be releasing the H7 soon which has double the performance. What resolution are you trying to track colors at? Note that comparing the Pixy to the OpenMV Cam is not an apples to apples kind of thing because we use differen...
by kwagyeman
Thu Dec 13, 2018 1:31 am
Forum: General Topics
Topic: Create Empty Image Object without using Sensor or Reader
Replies: 2
Views: 40

Re: Create Empty Image Object without using Sensor or Reader

Hi, What platform are you running on where this is an issue? Yes, there's definitely no way to create an empty image object. But, if you want a pure black image of a particular size it's not hard to get with the current methods. Just set the res to whatever you need, set the windowing to the fine gr...
by kwagyeman
Wed Dec 12, 2018 12:42 pm
Forum: Technical Discussion
Topic: problem when i receive data on Uart rx when i read
Replies: 5
Views: 87

Re: problem when i receive data on Uart rx when i read

I don't quite understand what you care trying to do. How many characters are you sending between the 0.5s waits?
by kwagyeman
Wed Dec 12, 2018 12:39 pm
Forum: General Topics
Topic: send values to serial port
Replies: 16
Views: 2563

Re: send values to serial port

Yes, as mentioned we just have a USB port. We don't have HDMI so we can't stream to a TV. You can fullscreen OpenMV IDE and resize the viewing window to make that fullscreen.
by kwagyeman
Wed Dec 12, 2018 1:17 am
Forum: Technical Discussion
Topic: compress ==> OSError: Out of memory !
Replies: 4
Views: 100

Re: compress ==> OSError: Out of memory !

Okay, there's definitely some type of memory corruption going on here. It's kinda hard to track given the way things are written. However, I'm guessing the jpeg buffer is overflowing and corrupting the frame buffer stack pointers causing the frame buffer fast ram stack to break. Um, please create a ...
by kwagyeman
Wed Dec 12, 2018 12:46 am
Forum: General Topics
Topic: send values to serial port
Replies: 16
Views: 2563

Re: send values to serial port

Hi, the Microcontroller can't do that. It doesn't have the hardware to do so.
by kwagyeman
Tue Dec 11, 2018 1:00 pm
Forum: General Topics
Topic: communication between two OpenMVs via SPI
Replies: 2
Views: 51

Re: communication between two OpenMVs via SPI

Please use the UART to send data. The SPI bus can't really be used for slave device communication. The UART is much better for sending data between two devices. If you need to see a UART example checkout the Pixy Emulation script.
by kwagyeman
Tue Dec 11, 2018 1:15 am
Forum: Technical Discussion
Topic: jpeg compression algorithm
Replies: 3
Views: 77

Re: jpeg compression algorithm

What quality level are you running at and did you keep the code buffers in the same places? The YUV LUT needs to be accessible pretty quickly along with the RAM buffers being cached.
by kwagyeman
Mon Dec 10, 2018 11:53 am
Forum: Technical Discussion
Topic: Implementing low-cost pre-trained NN like MobileNet/SqueezeNet
Replies: 3
Views: 118

Re: Implementing low-cost pre-trained NN like MobileNet/SqueezeNet

Hi, right now CMSIS-NN doesn't support any of these network types. So, we can't support them. If ARM puts more effort behind this them maybe. I've been besieged by admin issues and have been unable to release some work I did a few month earlier but we have network classifiers working nicely. E.g. so...
by kwagyeman
Mon Dec 10, 2018 11:51 am
Forum: Technical Discussion
Topic: compress ==> OSError: Out of memory !
Replies: 4
Views: 100

Re: compress ==> OSError: Out of memory !

Hi, this happens because the in place compress uses the frame buffer stack which is smaller than the image size at VGA resolution. So, sometimes you get a huge JPG which doesn't fit in the frame buffer stack. On the H7 this won't be a problem but it is on the M7. Um, the fixes are to either lower th...
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: 78

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: 78

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: 120

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: 299

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: 89

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: 120

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: 120

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: 89

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: 131

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: 299

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: 180

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: 180

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: 148

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: 97

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: 148

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: 195

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: 180

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: 88

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: 258

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: 258

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: 159

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: 159

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: 195

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: 262

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: 2622

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: 3626

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: 262

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: 187

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: 262

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: 2622

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: 199

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: 2622

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.

Go to advanced search