Search found 4130 matches

by kwagyeman
Thu Jan 04, 2018 11:07 pm
Forum: General Topics
Topic: QR Code Data Matrix Library
Replies: 3
Views: 2706

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

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

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

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

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

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

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: 32
Views: 11323

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

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: 32
Views: 11323

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: 32
Views: 11323

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: 32
Views: 11323

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

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

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: 27
Views: 12268

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: 32
Views: 11323

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: 32
Views: 11323

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

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

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

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

Do you have an SD card attached?
by kwagyeman
Mon Dec 25, 2017 1:37 am
Forum: Technical Discussion
Topic: How to access SD card using SPI connection from Arduino
Replies: 7
Views: 2384

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

A computer can. The Arduino is honestly rather unequipped. What do you want to do?
by kwagyeman
Sat Dec 23, 2017 9:29 pm
Forum: Technical Discussion
Topic: How to access SD card using SPI connection from Arduino
Replies: 7
Views: 2384

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

You have to write your own command parser to do this. I recommend sending the data over the uart and not SPI. For examples of a command parser see the uart pixy emulation example. It shows how to write a statemachine to parser bytes one at a time and do things based on that. Anyway, given the serial...
by kwagyeman
Fri Dec 22, 2017 12:10 pm
Forum: Technical Discussion
Topic: To find defects in the rubber ring / gasket
Replies: 2
Views: 1329

Re: To find defects in the rubber ring / gasket

Hi, assuming you line up the part and the camera perfectly and provide really great even lighting then this isn't so hard. To determine if you see the hole or not you can just call get_stats() on a region of interest where the hole should be and you'll either get stats about the table the part is on...
by kwagyeman
Thu Dec 21, 2017 2:54 pm
Forum: General Topics
Topic: Writing data to computer
Replies: 6
Views: 2826

Re: Writing data to computer

I will add something to the IDE for the next release of it. That said, doing releases takes a long time. So, in the mean time just send data to the PC via the hardware UART on the OpenMV Cam. This way you can use the camera with OpenMV IDE still. You'll have to do your own program to log data from t...
by kwagyeman
Thu Dec 21, 2017 2:16 pm
Forum: General Topics
Topic: Writing data to computer
Replies: 6
Views: 2826

Re: Writing data to computer

Adding this feature to the IDE is basically the easiest way. For now, the best thing to do is to add an FTDI chip to the UART3 port to send serial data back to the PC. Then you need to write a program on the PC to log that serial data. ... For letting the IDE do this for you, what would you like exa...
by kwagyeman
Thu Dec 21, 2017 1:00 pm
Forum: General Topics
Topic: Writing data to computer
Replies: 6
Views: 2826

Re: Writing data to computer

Hi, you'd need to use the USB VCP port to do this. But, that's in use by the IDE for debugging. So, the best thing to do is attach an FTDI port to the camera's UART3 and this will give you a serial port that's not in use by the IDE. Mmm, so, we can't add another USB uart to the camera... But, I migh...
by kwagyeman
Wed Dec 20, 2017 3:45 am
Forum: Technical Discussion
Topic: Talking to a PC-side application
Replies: 2
Views: 1711

Re: Talking to a PC-side application

Hi, so, the STM32F7 chip only has 2 USB endpoints which means it only can do 2 USB things at a time (flash drive and serial port). Adding another function isn't possible so you only have one serial port. So, if you want to use the VCP you can't use the IDE on that port.
by kwagyeman
Wed Dec 20, 2017 3:41 am
Forum: General Topics
Topic: realtime camera frame without IDE
Replies: 8
Views: 3427

Re: realtime camera frame without IDE

Ibrahim just fixed this script. Um, let me ping him. It should be able to give you a frame however.
by kwagyeman
Wed Dec 20, 2017 2:40 am
Forum: General Topics
Topic: realtime camera frame without IDE
Replies: 8
Views: 3427

Re: realtime camera frame without IDE

Hi, you just need to add: print(img.compressed_for_ide()) To the end of the while loop after you script and you'll be able to see what the camera sees. To hide the text just resize the frame buffer until it's the whole window. ... Please put some effort into using this feature in the IDE. I just add...
by kwagyeman
Wed Dec 20, 2017 12:29 am
Forum: General Topics
Topic: realtime camera frame without IDE
Replies: 8
Views: 3427

Re: realtime camera frame without IDE

Hi, the newest version of OpenMV IDE has this feature built-in to create terminals at will.

Just do:

./openmv-ide -open_serial_port_termnial /dev/ttyACM0:115200

This will get you an Open Terminal window.
by kwagyeman
Tue Dec 19, 2017 9:26 pm
Forum: Technical Discussion
Topic: Talking to a PC-side application
Replies: 2
Views: 1711

Re: Talking to a PC-side application

Hi, if you use it you can leverage alot of the work we've put into making OpenMV IDE very robust. The thing is Open source. If not, then we have a python script which will let you control the OpenMV Cam and pull frames off of it. But, it seams like you want the camera to be controllable from a PC ap...
by kwagyeman
Sun Dec 17, 2017 4:53 pm
Forum: Technical Discussion
Topic: Script Size Limit
Replies: 10
Views: 5230

Re: Script Size Limit

Hi, the Open Terminal feature needs the camera connected to the PC. What I was saying is not to press the "connect" button in the IDE. Open terminal just connects to any serial port and talks standard serial IO. Um, I'm going to have a test image for Mac that may fix issues out this week. I'm just f...
by kwagyeman
Sun Dec 17, 2017 12:19 am
Forum: General Topics
Topic: a beautiful openmv fritzing part
Replies: 3
Views: 3141

Re: a beautiful openmv fritzing part

Looks great! Does fritzing have a place to put this or should I like to this?
by kwagyeman
Sat Dec 16, 2017 1:28 pm
Forum: Technical Discussion
Topic: keypoint list?
Replies: 8
Views: 3771

Re: keypoint list?

The H7 model that will come out next year will have 1 MB of RAM. I think about 256KB will be used for the MP heap.
by kwagyeman
Fri Dec 15, 2017 12:23 am
Forum: Technical Discussion
Topic: Sending Image Data over HTTP
Replies: 3
Views: 1456

Re: Sending Image Data over HTTP

Yep, that's what the demos are for.
by kwagyeman
Thu Dec 14, 2017 1:50 am
Forum: Technical Discussion
Topic: Object Detection
Replies: 3
Views: 1932

Re: Object Detection

Yeah, but, setting this up requires training the haar cascade using a particular format and with a lot of images of the thing you want to track. We really don't have the best support for this right now.
by kwagyeman
Tue Dec 12, 2017 8:29 pm
Forum: Technical Discussion
Topic: Import micropython-lib
Replies: 5
Views: 2044

Re: Import micropython-lib

Oh, yeah, alot of the MPlib stuff is for the unix port of MicroPython.
by kwagyeman
Tue Dec 12, 2017 8:27 pm
Forum: Project Discussion
Topic: Recognize circles of a given color
Replies: 2
Views: 2480

Re: Recognize circles of a given color

Mmm, I thought I answered this... Um, use find_circles combined with get_stats on the returned circle rect. This will find the circle and then return the color.
by kwagyeman
Tue Dec 12, 2017 8:24 pm
Forum: General Topics
Topic: lovely openmv-fb.py and openmv.py won't run
Replies: 3
Views: 2153

Re: lovely openmv-fb.py and openmv.py won't run

Hi, so with the new version of OpenMV IDE you can create a frame buffer viewer at will. Also, MicroPython offers a script that let's you control any pyboard using it. These two things cover any computer use case I think. I'll add the MP script to the IDE install package so everyone has it. Using tha...
by kwagyeman
Tue Dec 12, 2017 11:59 am
Forum: Technical Discussion
Topic: to detect small foreign objects
Replies: 32
Views: 11323

Re: to detect small foreign objects

Hi, you really need to improve the lighting in the scene. I can see the cameras shadow in the image... If you're serious about this application you need to mount the camera to a jig where it's stable, then add flood lights around it that evenly illuminate the scene. An evenly illuminated scene shoul...
by kwagyeman
Tue Dec 12, 2017 12:49 am
Forum: General Topics
Topic: Why file.readall() removed from frimware 2.6!!
Replies: 1
Views: 1700

Re: Why file.readall() removed from frimware 2.6!!

Mmm, that would be an MicroPython Hal change. Let's see the API: It looks like you have everything here: https://github.com/micropython/micropython/blob/a3dc1b1957d2c96d7c60c2c629c95077b03488a1/extmod/vfs_fat_file.c#L234 STATIC const mp_rom_map_elem_t rawfile_locals_dict_table[] = { { MP_ROM_QSTR(MP...
by kwagyeman
Tue Dec 12, 2017 12:40 am
Forum: Technical Discussion
Topic: Import micropython-lib
Replies: 5
Views: 2044

Re: Import micropython-lib

Hi, where did you place the module?

It needs to be like:

"/pipe/__init__.py"
or
"/pipe.py"

On the SD Card or flash FS.

Then in python you can do:

import pipe
by kwagyeman
Mon Dec 11, 2017 1:49 pm
Forum: Technical Discussion
Topic: TypeError : object 'line' is not a tuple or list
Replies: 9
Views: 2811

Re: TypeError : object 'line' is not a tuple or list

Hi, this looks likes Chris's code. Have you tried asking him what's going on? I'm not sure where to start to help you. Since that's a PID loop you kinda need to remove everything but the P part and see if that provides enough drive strength. If so not, increase the P gains until the robot starts to ...
by kwagyeman
Mon Dec 11, 2017 12:13 pm
Forum: Technical Discussion
Topic: TypeError : object 'line' is not a tuple or list
Replies: 9
Views: 2811

Re: TypeError : object 'line' is not a tuple or list

Hi, find where the code drive power to the motor and print out what you are telling the motor to do. See what's going on. I can help more with a specific question.
by kwagyeman
Sun Dec 10, 2017 11:15 pm
Forum: Technical Discussion
Topic: TypeError : object 'line' is not a tuple or list
Replies: 9
Views: 2811

Re: TypeError : object 'line' is not a tuple or list

What's the error you are getting now?
by kwagyeman
Sun Dec 10, 2017 10:53 pm
Forum: Technical Discussion
Topic: TypeError : object 'line' is not a tuple or list
Replies: 9
Views: 2811

Re: TypeError : object 'line' is not a tuple or list

Once I get around to updating the draw methods I can make this less error prone.
by kwagyeman
Sun Dec 10, 2017 10:52 pm
Forum: Technical Discussion
Topic: Eye detection + drawing
Replies: 6
Views: 2554

Re: Eye detection + drawing

Oh, it's because you do the sleep(5000). The image is only flushed to the IDE on img.sensor_snapshot(). If you want to force an image flush without snapshot() do:

http://docs.openmv.io/library/omv.senso ... nsor.flush

Before the sleep call.
by kwagyeman
Sun Dec 10, 2017 9:46 pm
Forum: Technical Discussion
Topic: Eye detection + drawing
Replies: 6
Views: 2554

Re: Eye detection + drawing

Which script are you running? This one? # Face Eye Detection Example # # This script uses the built-in frontalface detector to find a face and then # the eyes within the face. If you want to determine the eye gaze please see the # iris_detection script for an example on how to do that. import sensor...
by kwagyeman
Sun Dec 10, 2017 12:32 pm
Forum: Technical Discussion
Topic: find_lines vs cv2.HoughLines ... which is better?
Replies: 31
Views: 22963

Re: find_lines vs cv2.HoughLines ... which is better?

Hi, have you upgraded to OpenMV IDE v1.8.0?
by kwagyeman
Sun Dec 10, 2017 12:31 pm
Forum: Technical Discussion
Topic: keypoint list?
Replies: 8
Views: 3771

Re: keypoint list?

Right now there isn't, but, we can add it.

What would you like to see implemented?

Go to advanced search