Search found 2710 matches

by kwagyeman
Sat Feb 16, 2019 7:28 pm
Forum: Technical Discussion
Topic: findContours
Replies: 25
Views: 7306

Re: findContours

Example: # Single Color RGB565 Blob Tracking Example # # This example shows off single color RGB565 tracking using the OpenMV Cam. import sensor, image, time, math threshold_index = 0 # 0 for red, 1 for green, 2 for blue # Color Tracking Thresholds (L Min, L Max, A Min, A Max, B Min, B Max) # The be...
by kwagyeman
Sat Feb 16, 2019 7:18 pm
Forum: General Topics
Topic: Having trouble with USB_VCP
Replies: 9
Views: 70

Re: Having trouble with USB_VCP

import sensor, image, time, ustruct from pyb import USB_VCP usb = USB_VCP() sensor.reset() # Reset and initialize the sensor. sensor.set_pixformat(sensor.RGB565) # Set pixel format to RGB565 (or GRAYSCALE) sensor.set_framesize(sensor.QVGA) # Set frame size to QVGA (320x240) sensor.skip_frames(time ...
by kwagyeman
Sat Feb 16, 2019 6:46 pm
Forum: General Topics
Topic: Having trouble with USB_VCP
Replies: 9
Views: 70

Re: Having trouble with USB_VCP

Hi, your OpenMV Cam code is sending a stale image object. import sensor, image, time, ustruct from pyb import USB_VCP usb = USB_VCP() sensor.reset() # Reset and initialize the sensor. sensor.set_pixformat(sensor.RGB565) # Set pixel format to RGB565 (or GRAYSCALE) sensor.set_framesize(sensor.QVGA) # ...
by kwagyeman
Sat Feb 16, 2019 4:15 pm
Forum: Technical Discussion
Topic: I2C gives OSError: [Errno 110] ETIMEDOUT
Replies: 8
Views: 222

Re: I2C gives OSError: [Errno 110] ETIMEDOUT

Hi, which device is having the error? The H7 or the M7? Note that you have to generally catch exceptions when you can get timeouts and etc. The MicroPython HAL throws exceptions on any error.
by kwagyeman
Sat Feb 16, 2019 4:13 pm
Forum: Technical Discussion
Topic: findContours
Replies: 25
Views: 7306

Re: findContours

Hi, I added all the features find_countours provides in OpenCV to our API. We have a minimum circle method now. If you'd like to the un-released firmware let me know. As for doing what you want. First use frame differencing to create a difference image and then just threshold that image for non-bloc...
by kwagyeman
Thu Feb 14, 2019 1:41 pm
Forum: General Topics
Topic: exposure and gain control
Replies: 11
Views: 196

Re: exposure and gain control

It's a general gamma correction method. So, you can apply whatever gain you want. If you need feedback based on the image use the get histogram method and change the gamma correction based on the histogram.
by kwagyeman
Thu Feb 14, 2019 12:14 pm
Forum: General Topics
Topic: exposure and gain control
Replies: 11
Views: 196

Re: exposure and gain control

Hi, no, I added a gamma correction method to the latest un-released firmware. I.e. what we are working on currently. It can do gamma, contrast, and brightness adjustment very fast. If this works for you I'll post the binary along with an example script.
by kwagyeman
Wed Feb 13, 2019 10:57 am
Forum: General Topics
Topic: exposure and gain control
Replies: 11
Views: 196

Re: exposure and gain control

The latest firmware is for all camera versions.

The minimum gain is like 1/16th. It has fine steps of 1/16th and then large steps of 1 to 32.
by kwagyeman
Wed Feb 13, 2019 12:59 am
Forum: General Topics
Topic: exposure and gain control
Replies: 11
Views: 196

Re: exposure and gain control

See: https://github.com/openmv/openmv/blob/master/src/omv/mt9v034.c#L324 It looks like I range limit the exposure to half a second. However, you can do the register writes yourself in python to bypass this. See page 18 for the register documentation: https://www.onsemi.com/pub/Collateral/MT9V034-D.P...
by kwagyeman
Tue Feb 12, 2019 2:11 pm
Forum: General Topics
Topic: exposure and gain control
Replies: 11
Views: 196

Re: exposure and gain control

The OV7725 has some digital hardware that blocks exposing forever, but, with the new global shutter sensor you can set the exposure to multiple seconds. Getting above minutes requires you to change the sensor clock freq which you can do if you edit the C firmware.
by kwagyeman
Tue Feb 12, 2019 12:29 pm
Forum: General Topics
Topic: exposure and gain control
Replies: 11
Views: 196

Re: exposure and gain control

Hi, the camera doesn't support gain/exposure for a small part of the image. As for the min and maxes, the gain has a max of 32 or so. The exposure isn't really limited by anything. But, if you set it very high the FPS will go to near 0. The exposure is based on the pixel readout line times which we ...
by kwagyeman
Tue Feb 12, 2019 12:53 am
Forum: Technical Discussion
Topic: Ultra Wide Angle Lens + april tag detector
Replies: 1
Views: 84

Re: Ultra Wide Angle Lens + april tag detector

Hi,

Yes, the ultra wide angle lens works with April Tags.

As for ROS, here's an example: https://github.com/fabianschilling/openmv_cam
by kwagyeman
Mon Feb 11, 2019 12:14 pm
Forum: Technical Discussion
Topic: Device is not getting detected and getting heated up when plugged
Replies: 8
Views: 266

Re: Device is not getting detected and getting heated up when plugged

Um, what type of results are you expecting? The system works fine at detecting a face that's about 6ft away from it. That's all it was designed to do. If you want to detect faces farther away you have to use different lenses but they constrain your field of view. If you want a wide FoV and faces far...
by kwagyeman
Sun Feb 10, 2019 8:23 pm
Forum: Technical Discussion
Topic: Openmv video feed in MATLAB
Replies: 3
Views: 199

Re: Openmv video feed in MATLAB

Yeah, we have OpenMV IDE for the raspberry Pi. Additionally, we have a set of python scripts that you can run to remote control the board.
by kwagyeman
Sun Feb 10, 2019 8:23 pm
Forum: Technical Discussion
Topic: OSError: [Errno 110] ETIMEDOUT?
Replies: 3
Views: 131

Re: OSError: [Errno 110] ETIMEDOUT?

Probably an electrical issue.
by kwagyeman
Sun Feb 10, 2019 5:26 am
Forum: Technical Discussion
Topic: OSError: [Errno 110] ETIMEDOUT?
Replies: 3
Views: 131

Re: OSError: [Errno 110] ETIMEDOUT?

What line of code throws this? I2C? If so, wrap the method in a try except. Unlike C python throws exceptions on errors.
by kwagyeman
Sat Feb 09, 2019 11:32 pm
Forum: Technical Discussion
Topic: openMV Firmware Build Instructions
Replies: 16
Views: 2535

Re: openMV Firmware Build Instructions

Yeah, that's basically right.
by kwagyeman
Sat Feb 09, 2019 11:31 pm
Forum: Technical Discussion
Topic: Openmv video feed in MATLAB
Replies: 3
Views: 199

Re: Openmv video feed in MATLAB

No, not really. The video feed is just a stream of JPEG images. If you can read the JPEG images via a serial port sure. But, it's a lot of code work.
by kwagyeman
Sat Feb 09, 2019 3:07 pm
Forum: Project Discussion
Topic: Change of MCU
Replies: 15
Views: 6523

Re: Change of MCU

The OpenMV Cam SDR was abandoned due to system cost.
by kwagyeman
Sat Feb 09, 2019 3:06 pm
Forum: Technical Discussion
Topic: openMV Firmware Build Instructions
Replies: 16
Views: 2535

Re: openMV Firmware Build Instructions

Hi, if you are trying to build the firmware it is expected you know what you are doing.
by kwagyeman
Sat Feb 09, 2019 3:05 pm
Forum: General Topics
Topic: USB and SPI at same time?
Replies: 17
Views: 422

Re: USB and SPI at same time?

Hi, I honestly don't really know how to get the SPI code working. SPI is really only to be used not in an interrupt. The OpenMV Cam isn't designed to be a slave processor. It's built to be a master. So, using it as a slave SPI or I2C device doesn't really work. Anyway, I got my CAN shields back and ...
by kwagyeman
Sat Feb 09, 2019 11:56 am
Forum: Technical Discussion
Topic: Device is not getting detected and getting heated up when plugged
Replies: 8
Views: 266

Re: Device is not getting detected and getting heated up when plugged

The system doesn't really support higher resolution face detection. Because we do everything in onboard RAM we try to stay below 320x240.
by kwagyeman
Fri Feb 08, 2019 12:30 am
Forum: Technical Discussion
Topic: Artifacts from camera after running CNN and frame differencing
Replies: 13
Views: 302

Re: Artifacts from camera after running CNN and frame differencing

Both at the same time. Generally, folks don't actually want to train a CNN and collect the data for it.
by kwagyeman
Fri Feb 08, 2019 12:28 am
Forum: Technical Discussion
Topic: External SD card access
Replies: 5
Views: 104

Re: External SD card access

Um, I'm not sure what you are talking about. He link you gave is too your computer being broken.
by kwagyeman
Thu Feb 07, 2019 12:11 pm
Forum: Technical Discussion
Topic: Problem writing txt file
Replies: 7
Views: 1564

Re: Problem writing txt file

Hi, there's no way to fix this. It's because the OS assumes disk drives can't create files by themselves so the OS will never rescan the flash drive to see if a new file is there. We've really tried to fix this using sys calls with OpenMV IDE but there's nothing we can do. If you want to stream data...
by kwagyeman
Thu Feb 07, 2019 1:54 am
Forum: General Topics
Topic: USB and SPI at same time?
Replies: 17
Views: 422

Re: USB and SPI at same time?

So, how many bytes are you sending via SPI at 1 MHz? How long is this in time? For an example, if you use our LCD shield this sends data via SPI. But, you can use it at the same time as the USB from OpenMV IDE. The general issue is that you're in an interrupt handler sending SPI data. In our SPI cod...
by kwagyeman
Wed Feb 06, 2019 12:24 pm
Forum: Technical Discussion
Topic: FOV and lens question
Replies: 8
Views: 4341

Re: FOV and lens question

Hmmm, the numbers online are from working the math for the FoV equation given the sensor size and focal length. These numbers are less than the numbers quoted by the lens manufacturer which I originally had online. The customer above complained to me about this and I reduced the numbers. Now you are...
by kwagyeman
Tue Feb 05, 2019 6:47 pm
Forum: General Topics
Topic: Use FLIR Lepton and Camera toghether on one module
Replies: 17
Views: 946

Re: Use FLIR Lepton and Camera toghether on one module

I have an extra one at my place. I just got the units from them. I asked for a small hardware change and then I think they will build more.

I need to test it out however. Will get to it this weekend.
by kwagyeman
Tue Feb 05, 2019 1:27 pm
Forum: General Topics
Topic: Use FLIR Lepton and Camera toghether on one module
Replies: 17
Views: 946

Re: Use FLIR Lepton and Camera toghether on one module

Okay, I'll make that call optional. It's weird your Lepton fails on it.
by kwagyeman
Tue Feb 05, 2019 1:03 pm
Forum: General Topics
Topic: USB and SPI at same time?
Replies: 17
Views: 422

Re: USB and SPI at same time?

Hi, what you are seeing is that when you disable interrupts you starve the USB from working correctly causing issues with the IDE. USB is firing every millisecond (or 8x that) so you have to complete your SPI transactions quickly. Basically, there's a lot going on behind the scenes that gets interru...
by kwagyeman
Tue Feb 05, 2019 12:48 pm
Forum: Technical Discussion
Topic: I2C gives OSError: [Errno 110] ETIMEDOUT
Replies: 8
Views: 222

Re: I2C gives OSError: [Errno 110] ETIMEDOUT

Ah, the Arduino can be an I2C slave. I didn't know this was possible: https://www.arduino.cc/en/Tutorial/MasterWriter - so, just make the OpenMV Cam act like the master Arduino in this example.
by kwagyeman
Tue Feb 05, 2019 12:46 pm
Forum: Technical Discussion
Topic: Device is not getting detected and getting heated up when plugged
Replies: 8
Views: 266

Re: Device is not getting detected and getting heated up when plugged

That's a clone unit. We didn't make that unit.

Anyway, put the device in DFU mode and you may be able to recover it. Just connect BOOT0 to RST and it should show up as a STM32 bootloader device in windows. OpenMV IDE can then reload the firmware. If this is not the case then there's an issue.
by kwagyeman
Mon Feb 04, 2019 11:38 am
Forum: General Topics
Topic: USB and SPI at same time?
Replies: 17
Views: 422

Re: USB and SPI at same time?

Um, the CAN boards are not out yet but I should get them at home to test soon. I can provide I think 2 once I get them. Sorry about this all being hard. If you could just use the UART this is very easy. Anyway, what you have is exactly what you want to do actually. If you could make the OpenMV Cam t...
by kwagyeman
Mon Feb 04, 2019 11:29 am
Forum: Project Discussion
Topic: Controlling Herkulex DRS-0101
Replies: 1
Views: 78

Re: Controlling Herkulex DRS-0101

Hi, the OpenMV Cam UART needs to be UART(3).
by kwagyeman
Sun Feb 03, 2019 8:36 pm
Forum: Technical Discussion
Topic: I2C gives OSError: [Errno 110] ETIMEDOUT
Replies: 8
Views: 222

Re: I2C gives OSError: [Errno 110] ETIMEDOUT

Have you heard of software serial on the Arduino? It's let's you make a low speed uart on the I/O pins that support interrupts. Pins 2 and 3. Using that library you can have another serial port.
by kwagyeman
Sun Feb 03, 2019 6:46 pm
Forum: Technical Discussion
Topic: Creating USB connection with header pins
Replies: 1
Views: 59

Re: Creating USB connection with header pins

Through the REPL on the hardware UART you can indeed use OpenMV IDE to debug the camera and get images. You have to use the Open Terminal feature in OpenMV IDE and you have to also setup the camera to expose REPL on it's hardware UART on startup. You can do both of these under the tools menu with th...
by kwagyeman
Sun Feb 03, 2019 6:42 pm
Forum: General Topics
Topic: USB and SPI at same time?
Replies: 17
Views: 422

Re: USB and SPI at same time?

Ah, okay, um, getting SPI working is not impossible. I'm not sure what the issues you are having is however.

Okay, um, let me give you a simple script idea that should put you on the right track.

Oh, we will have a CAN shield in stock too for that system. You're doing FIRST right?
by kwagyeman
Sun Feb 03, 2019 6:40 pm
Forum: Technical Discussion
Topic: I2C gives OSError: [Errno 110] ETIMEDOUT
Replies: 8
Views: 222

Re: I2C gives OSError: [Errno 110] ETIMEDOUT

Yeah, that's what it means. The Arduino can't do I2C slave mode as far as I know. Please use the UART on the mega and on the OpenMV Cam to communicate. It's way easier.
by kwagyeman
Sun Feb 03, 2019 1:02 am
Forum: Project Discussion
Topic: Rover One UGV - Assistance Needed with Face Detection
Replies: 7
Views: 135

Re: Rover One UGV - Assistance Needed with Face Detection

I'll add bicubic interpolation. I need to think about how to add it in a nice way however.
by kwagyeman
Sat Feb 02, 2019 9:40 pm
Forum: Project Discussion
Topic: Rover One UGV - Assistance Needed with Face Detection
Replies: 7
Views: 135

Re: Rover One UGV - Assistance Needed with Face Detection

That example won't produce the result above. It will just make the image look muddy. E.g. https://en.wikipedia.org/wiki/Bicubic_interpolation Interpolation typically destroys edges. So, I'm not sure how that image for the thermal camera was made. ... To be clear, I can add an interpolation method fo...
by kwagyeman
Sat Feb 02, 2019 8:52 pm
Forum: Project Discussion
Topic: Rover One UGV - Assistance Needed with Face Detection
Replies: 7
Views: 135

Re: Rover One UGV - Assistance Needed with Face Detection

Okay, so, I've recently added in nearest neighbor A.K.A blocky scaling. So, I can upscale the 8x8 image to whatever res though it still looks like an 8x8 image. I'd be okay adding an interpolate method that works on that up scaled image to clean it up using interpolation loops. Can you provide C cod...
by kwagyeman
Sat Feb 02, 2019 8:15 pm
Forum: General Topics
Topic: Multi threading
Replies: 3
Views: 122

Re: Multi threading

Hi, MicroPython compiles the code into byte code. If you want multi-threading you'll have to wait until it's supported by MicroPython.
by kwagyeman
Sat Feb 02, 2019 3:52 pm
Forum: General Topics
Topic: USB and SPI at same time?
Replies: 17
Views: 422

Re: USB and SPI at same time?

Hi, I don't really have time anymore to debug code like this. If you ask me a clarification question about a line I can help but just giving me a giant code dump is not something I'm able to work on anymore. Um, it's FAR easier just to get async serial working to the Arduino. Use the SoftwareSerial ...
by kwagyeman
Sat Feb 02, 2019 2:39 pm
Forum: General Topics
Topic: openmv serial communication with arduino not working properly
Replies: 6
Views: 111

Re: openmv serial communication with arduino not working properly

Not, these aren't strictly required. They help prevent random data when once device is off however.
by kwagyeman
Sat Feb 02, 2019 2:38 pm
Forum: General Topics
Topic: USB and SPI at same time?
Replies: 17
Views: 422

Re: USB and SPI at same time?

Okay, does the camera work fine when there's no physical connection between the two devices but the SPI code is running on the camera? Also, async serial is much easier to get working on the OpenMV Cam and another device versus SPI.
by kwagyeman
Sat Feb 02, 2019 2:36 pm
Forum: Project Discussion
Topic: Rover One UGV - Assistance Needed with Face Detection
Replies: 7
Views: 135

Re: Rover One UGV - Assistance Needed with Face Detection

Hi, thanks for buying the system. 1. You have to rotate the image if you want to detect faces at different angles. The Haar Face detector is pretty rigid about the face being upright. You can do this in software by doing img.rotation_correction(z_rotation=45) and img.rotation_correction(z_rotation=-...

Go to advanced search