Search found 1310 matches

by kwagyeman
Mon Jan 15, 2018 11:36 pm
Forum: Technical Discussion
Topic: Difference build size
Replies: 6
Views: 32

Re: Difference build size

Ah, I see what's wrong. Yeah, so the files in OpenMV IDE's dir aren't used unless you tell the IDE to update resources. Um, when updating your camera please use the "Tools->Run Bootloader" option to select the binary file. If you want to update the IDE's resources you have to tell it to do this by c...
by kwagyeman
Mon Jan 15, 2018 11:21 pm
Forum: Technical Discussion
Topic: Enhanced Optical Flow
Replies: 8
Views: 124

Re: Enhanced Optical Flow

Hi, here's what I've got so far. The code right now just does either translation or rotation optical flow. Not the combined just yet. Combining will be made available however through the use of the "fix_rotation_scale=True" argument to find_displacement(). (Note that the not really working code is i...
by kwagyeman
Mon Jan 15, 2018 11:15 pm
Forum: Technical Discussion
Topic: Difference build size
Replies: 6
Views: 32

Re: Difference build size

That's the correct file. However, I don't have the problem you are having.

Um, so the build system is kinda bad. Generally you want to do a complete rebuild whenever you change anything outside of a C file. Please try that.
by kwagyeman
Mon Jan 15, 2018 2:48 am
Forum: Technical Discussion
Topic: Difference build size
Replies: 6
Views: 32

Re: Difference build size

When making do:

make TARGET=OPENMV3 (or TARGET=OPENMV2 for the M4)

Then, only load the firmware.bin file or the openmv.dfu. The other binaries are not loadable.

The firmwares will be in their respective folders. The OpenMV Cam M7 is the OPENMV3 board.
by kwagyeman
Fri Jan 12, 2018 11:04 am
Forum: General Topics
Topic: Unable to screw in Wide Angle Lens
Replies: 1
Views: 27

Re: Unable to screw in Wide Angle Lens

Hi, please contact us for a replacement lens mount.
by kwagyeman
Thu Jan 11, 2018 5:40 pm
Forum: General Topics
Topic: Unable to use Camera in Visual Studio C++
Replies: 3
Views: 47

Re: Unable to use Camera in Visual Studio C++

It does all it's calculations in C. Python is just a wrapper interface around C code to make programming easy. If you hand coded your algorithm with direct pixel access and it's mostly c (not c++) you can port your code to the camera using by recompiling our firmware. This is somewhat advanced though.
by kwagyeman
Thu Jan 11, 2018 5:07 pm
Forum: General Topics
Topic: Unable to use Camera in Visual Studio C++
Replies: 3
Views: 47

Re: Unable to use Camera in Visual Studio C++

The OpenMV Cam is not web cam. You write python code which it can execute onboard and do computer vision for you without a PC.
by kwagyeman
Thu Jan 11, 2018 5:06 pm
Forum: General Topics
Topic: MTF calculation?
Replies: 27
Views: 311

Re: MTF calculation?

Note, you will be able to high pass the image with morph() using a high pass filter kernel if you want to do the FFT on the delta image versus the normal image.
by kwagyeman
Thu Jan 11, 2018 11:20 am
Forum: Technical Discussion
Topic: find template
Replies: 9
Views: 119

Re: find template

Hi, please upload all assets for me to reproduce the behavior. I.e. the template image and target image. Please save them both as PPM files using the OpenMV Cam's save method.

Your running into a bug right now. The question is if I can work around it in the mean time.
by kwagyeman
Thu Jan 11, 2018 3:14 am
Forum: General Topics
Topic: MTF calculation?
Replies: 27
Views: 311

Re: MTF calculation?

Hi, please see this: https://dsp.stackexchange.com/questions/1656/frequency-spectrum-of-a-set-of-images-in-matlab One of the answers talks about taking circular rings from the FFT space and putting that in a histogram. This is likely what I will do for the FFT. The question is will this work for you...
by kwagyeman
Wed Jan 10, 2018 10:31 pm
Forum: Technical Discussion
Topic: find template
Replies: 9
Views: 119

Re: find template

Hi, the SD card should appear when you plug the camera into the PC and you should see it as a USB drive on the computer. You should be able to open files and save files using Windows explorer.
by kwagyeman
Wed Jan 10, 2018 9:19 pm
Forum: Technical Discussion
Topic: find template
Replies: 9
Views: 119

Re: find template

Hi, do you have an SD Card with the camera? You can save images to the internal flash. Otherwise, it seems like the camera should be fine with your PC.
by kwagyeman
Wed Jan 10, 2018 10:43 am
Forum: Technical Discussion
Topic: Image and sensor Lib
Replies: 1
Views: 825

Re: Image and sensor Lib

The libraries are built-into our firmware and the documentation for them is on our website under docs.
by kwagyeman
Wed Jan 10, 2018 10:42 am
Forum: Technical Discussion
Topic: find template
Replies: 9
Views: 119

Re: find template

Hi, what's the hardware you are using M4/M7, ide version, operating system, and firmware version?
by kwagyeman
Wed Jan 10, 2018 10:41 am
Forum: Project Discussion
Topic: Face recognition Project
Replies: 5
Views: 371

Re: Face recognition Project

I don't think the level of key points we build up is good enough for this really. That said, it's easier to just connect to the internet and send the image to Microsoft or Google to do race recognition and then get a result back over WiFi.
by kwagyeman
Wed Jan 10, 2018 10:39 am
Forum: General Topics
Topic: Help Writing OpenMV Tutorials.
Replies: 2
Views: 529

Re: Help Writing OpenMV Tutorials.

Hi, please email us at openmv@openmv.io.
by kwagyeman
Tue Jan 09, 2018 1:39 am
Forum: Technical Discussion
Topic: Enhanced Optical Flow
Replies: 8
Views: 124

Re: Enhanced Optical Flow

Hi, I've been working on the optical flow stuff all weekend and majorly overhauled everything. I've got translation optical flow working at 43 FPS on a 64x64 image. Let me know if you want the code and scripts right now for that. As for rotation/scale... I put the code in for that but after reading ...
by kwagyeman
Tue Jan 09, 2018 1:27 am
Forum: General Topics
Topic: MTF calculation?
Replies: 27
Views: 311

Re: MTF calculation?

Hey, getting your feature in is on the queue of things to do. I should be able to completely tackle it by the weekend. Maybe sooner. It's not hard but I'm working on phase correlation stuff right now.
by kwagyeman
Mon Jan 08, 2018 10:39 pm
Forum: Technical Discussion
Topic: CAN CUMMUNICATION OSERROR:16
Replies: 2
Views: 60

Re: CAN CUMMUNICATION OSERROR:16

Hi, I've never done anything with the CAN peripheral. Ibrahim might know how to work it. Pinging him.

Note, if you ask for help on the main MP forums they might know more.
by kwagyeman
Sun Jan 07, 2018 12:43 am
Forum: General Topics
Topic: MTF calculation?
Replies: 27
Views: 311

Re: MTF calculation?

The DCT code can't be pulled out of the JPEG code easily. However, the FFT code can easily spit out a 2D FFT of the image in 1 line of C code. Um, basically, I can make a method that would take an ROI. It would then compute the FFT of that ROI. Note that the function won't be able to operate on a la...
by kwagyeman
Sat Jan 06, 2018 2:13 pm
Forum: General Topics
Topic: MTF calculation?
Replies: 27
Views: 311

Re: MTF calculation?

I can do the math easily. I just don't know what particular steps you'd like me to do. We can't output graphs on the OpenMV Cam. So, everything needs to boil down to one value. I might have time to write the code for this tommorrow. If you can work out a high level step by step guide for what you wa...
by kwagyeman
Sat Jan 06, 2018 11:01 am
Forum: Technical Discussion
Topic: Object Detection
Replies: 3
Views: 149

Re: Object Detection

You can use the find_blobs() method to detect colors. Please look at all the find_* methods int he documentation.
by kwagyeman
Sat Jan 06, 2018 11:00 am
Forum: Project Discussion
Topic: Newbie on OpenMV
Replies: 5
Views: 98

Re: Newbie on OpenMV

Yeah, I think the streamer still works on the M4.
by kwagyeman
Sat Jan 06, 2018 11:00 am
Forum: General Topics
Topic: MTF calculation?
Replies: 27
Views: 311

Re: MTF calculation?

Sorry, I'm just looking for if you can just outline the steps you want. From the code... I kinda see this behavior:

1. Grab a row of pixels.
2. Compute the delta between all pixels in the row.
3. Take the FFT of those deltas.
4. Get the magnitude of the FFT.
5. Return the median of the FFT?
by kwagyeman
Sat Jan 06, 2018 12:45 am
Forum: General Topics
Topic: MTF calculation?
Replies: 27
Views: 311

Re: MTF calculation?

Still not quite clear on what to do.

Um, anyway, the FFT code I wrote can do 1d FFTs up to 1024 points. It can do both real->complex and complex->complex ffts. It can also do reverse ffts too.

I will be focusing on adding logpolar mapping to the phase correlation code for the a customer.
by kwagyeman
Fri Jan 05, 2018 10:10 pm
Forum: General Topics
Topic: MTF calculation?
Replies: 27
Views: 311

Re: MTF calculation?

Hi, it's right here.
https://github.com/openmv/openmv/wiki

I'm going to be doing some work on this FFT stuff this weekend. Can you post a link to an easy to understand paper or website for MTF? I can add it then.
by kwagyeman
Fri Jan 05, 2018 8:43 pm
Forum: Technical Discussion
Topic: Opencv7 with a Raspberry Pi
Replies: 3
Views: 65

Re: Opencv7 with a Raspberry Pi

Yeah, we have OpenMV IDE for the Raspberry Pi.

Since we're a MicroPython board you can also use the MicroPython control python script to tell the board what to do by uploading a new MicroPython script to it.
by kwagyeman
Fri Jan 05, 2018 8:42 pm
Forum: Project Discussion
Topic: Newbie on OpenMV
Replies: 5
Views: 98

Re: Newbie on OpenMV

We have an mjpeg steamer example. We only have stuff for giving you a jpeg byte stream, you have to provide the rest of the code to take that jpeg byte stream and do something with it.
by kwagyeman
Fri Jan 05, 2018 10:57 am
Forum: Technical Discussion
Topic: Opencv7 with a Raspberry Pi
Replies: 3
Views: 65

Re: Opencv7 with a Raspberry Pi

Project 1 is very easy, the find_blobs method does all this for you and tells you the centroid of objects. You can then send these centroids to the Pi via a UART. See the pixy emulation example for how to send packet data over the UART using the struct module. Project 2 involves path planning. We do...
by kwagyeman
Fri Jan 05, 2018 10:51 am
Forum: Project Discussion
Topic: Newbie on OpenMV
Replies: 5
Views: 98

Re: Newbie on OpenMV

QR Code decoding might have been removed in more recent firmware updates for the M4. We've run out of flash.

And yes, you can upload snapshots taken to a local server.

Um, can you get your hands on an M7 board? Continuing with the M4 is somewhat of a waste of your time.
by kwagyeman
Thu Jan 04, 2018 11:07 pm
Forum: General Topics
Topic: QR Code Data Matrix Library
Replies: 3
Views: 56

Re: QR Code Data Matrix Library

Bar code detection is provided by zbar. It's in there too. Lib zxing is written is Java and not in C so we can't use it. Um, anyway, check the blog out for a post about what have have onboard. We basically have everything other than Aztec codes and PDF417. If you want faster processing we'll have th...
by kwagyeman
Thu Jan 04, 2018 11:09 am
Forum: General Topics
Topic: QR Code Data Matrix Library
Replies: 3
Views: 56

Re: QR Code Data Matrix Library

Quirc for QRCodes and LibDmtx for data matrix codes.
by kwagyeman
Wed Jan 03, 2018 5:20 pm
Forum: Technical Discussion
Topic: Enhanced Optical Flow
Replies: 8
Views: 124

Re: Enhanced Optical Flow

I don't know the cycle time right now. I have to implement the logpolar stuff still. Um, I can fast track this though for you since it's something I've been wanting to take a crack at for a while. Maybe I'll do that this weekend. The effort isn't that high really. Um, anyway, it's effectively the co...
by kwagyeman
Wed Jan 03, 2018 10:46 am
Forum: Project Discussion
Topic: Newbie questions
Replies: 2
Views: 57

Re: Newbie questions

Hi, yes this can be done with template matching. Basically, you take a picture of the letter on the wall and then compare that picture to the view of what the camera sees in real time. You'll be able to do this in real time. That said, template matching works to find just the template... So, it's no...
by kwagyeman
Tue Jan 02, 2018 7:32 pm
Forum: Technical Discussion
Topic: Enhanced Optical Flow
Replies: 8
Views: 124

Re: Enhanced Optical Flow

Hi, this is on the list for one of the things I want to do. Basically you have to convert the image to the log polar domain and then you can see rotation and scale changes but loose the ability to see x and y changes. So, this feature will require you to either take a frame rate drop if you want to ...
by kwagyeman
Fri Dec 29, 2017 9:10 pm
Forum: Technical Discussion
Topic: custom ROI in sensor
Replies: 5
Views: 265

Re: custom ROI in sensor

The maximum frame rate out of the camera is about 90 FPS. If you limit the amount of pixels you look at to something like 40x30 then you can likely hit 80+ FPS from the camera data stream. But, that's about as high as you'll get. For 200 and 500 FPS operation you need more specialized hardware.
by kwagyeman
Fri Dec 29, 2017 7:32 pm
Forum: General Topics
Topic: a beautiful openmv fritzing part
Replies: 3
Views: 168

Re: a beautiful openmv fritzing part

Hi, I added this to the product page.
by kwagyeman
Fri Dec 29, 2017 1:33 pm
Forum: Technical Discussion
Topic: to detect small foreign objects
Replies: 26
Views: 507

Re: to detect small foreign objects

You can do VGA in grayscale. But, not in RGB565. This is because for RGB565 (for VGA) mode we actually switch to operating in bayer pattern mode and jpeg compress the images to get video output. We have to do this because we don't have the RAM for a full VGA RGB565 image. Anyway, VGA for RGB565 is j...
by kwagyeman
Fri Dec 29, 2017 1:31 pm
Forum: Technical Discussion
Topic: custom ROI in sensor
Replies: 5
Views: 265

Re: custom ROI in sensor

The camera data stream is about 90 FPS at max. At best you'll hit in the 40+ FPS area in a real situation. If you want 200 FPS to 500 FPS you're looking at buying an exotic system that's going to costs tens of thousands of dollars. Anyway, attached is the latest OpenMV Cam firmware with a new method...
by kwagyeman
Thu Dec 28, 2017 11:01 pm
Forum: Technical Discussion
Topic: to detect small foreign objects
Replies: 26
Views: 507

Re: to detect small foreign objects

Hi, 1) Was answered above. 2) No more work on that is needed. 3) Do: img.find_blobs([(90, 100, -128, 127, -128, 127)]) For a RGB565 image and: img.find_blobs([(250, 255)]) For a grayscale image. After the automatic thresholding is run pixels will only be 0 to max values. So, the thresholds to be use...
by kwagyeman
Thu Dec 28, 2017 10:26 pm
Forum: Technical Discussion
Topic: to detect small foreign objects
Replies: 26
Views: 507

Re: to detect small foreign objects

Can you post what else you were asking?
by kwagyeman
Thu Dec 28, 2017 10:15 pm
Forum: Technical Discussion
Topic: to detect small foreign objects
Replies: 26
Views: 507

Re: to detect small foreign objects

Hi, 1) The algorithm decides to make the output pixel white or not based on this logic: pixel_area_average(x,y) - offset < pixel_value(x,y) Where the area average is the average of all pixels around that pixel. Basically, if the average minus the offset is less than the value of the pixel then the o...
by kwagyeman
Thu Dec 28, 2017 10:09 pm
Forum: Technical Discussion
Topic: Covert Image to matrix
Replies: 2
Views: 59

Re: Covert Image to matrix

Hi, the python interface isn't really meant for pixel level manipulation. You should write your code in C instead. There's no way you can fit an image in the small heap space available in C. Most of the memory on the MCU is not accessible in Python world. What algorithm are you trying to do by the w...
by kwagyeman
Thu Dec 28, 2017 4:01 pm
Forum: Technical Discussion
Topic: Script Size Limit
Replies: 10
Views: 297

Re: Script Size Limit

by kwagyeman
Thu Dec 28, 2017 4:01 pm
Forum: Technical Discussion
Topic: Camera disconnects from IDE when running script (sometimes)
Replies: 12
Views: 261

Re: Camera disconnects from IDE when running script (sometimes)

Hi, here's a version of the firmware that has the Mac MTU size fix implemented. The OpenMV Cam will send packets of data to the IDE that are of a max MTU size. Since I don't have a computer with the failing issue I can't tell if this fixes the error on my end but I can verify the code is working and...
by kwagyeman
Thu Dec 28, 2017 1:41 pm
Forum: Technical Discussion
Topic: to detect small foreign objects
Replies: 26
Views: 507

Re: to detect small foreign objects

Hi, I've attached the firmware and an example script. The new method solves your problems for the first set of images you presented to me. As for the second set... no method will clean that much noise up in the image. Adaptive threshold just solves the problem of making light shadows not an issue.
by kwagyeman
Wed Dec 27, 2017 4:41 pm
Forum: Technical Discussion
Topic: to detect small foreign objects
Replies: 26
Views: 507

Re: to detect small foreign objects

Hi, the next version of the firmware will feature adaptive thresholding to deal with the issue you're having. This will pick out the hair and just that very easily without any effort or additional lighting control. Let me know if you need the feature now and I can make a firmware image available to ...
by kwagyeman
Tue Dec 26, 2017 11:49 pm
Forum: Technical Discussion
Topic: How to access SD card using SPI connection from Arduino
Replies: 7
Views: 143

Re: How to access SD card using SPI connection from Arduino

I don't know how you'd do this without writing a script yourself on the OpenMV Cam to parse commands from the Arduino and to deliver data. The OpenMV Cam doesn't really work that well as a SPI slave or I2C slave. So, async serial is the best to use for sending the camera commands and getting respons...
by kwagyeman
Mon Dec 25, 2017 8:12 pm
Forum: Technical Discussion
Topic: How to access SD card using SPI connection from Arduino
Replies: 7
Views: 143

Re: How to access SD card using SPI connection from Arduino

You have to write a command parser on the OpenMV Cam if you want the Arduino to be able to request images. It's not that difficult.

Anyway, sending a snapshot stream to the Arduino is fine.
by kwagyeman
Mon Dec 25, 2017 1:38 am
Forum: Technical Discussion
Topic: Openmv m4 won't run the py program at startup
Replies: 1
Views: 61

Re: Openmv m4 won't run the py program at startup

Do you have an SD card attached?

Go to advanced search