Search found 3045 matches

by kwagyeman
Mon Jul 31, 2017 2:51 am
Forum: General Topics
Topic: Using the function 'find_circles'...
Replies: 3
Views: 1594

Re: Using the function 'find_circles'...

Hi, find_circles isn't released just yet. However, here's the pre-release firmware along with the example. It should run fine on the current IDE version. Just use the "Tools->Run Bootloader" option to update the firmware.
by kwagyeman
Sat Jul 29, 2017 2:02 pm
Forum: Technical Discussion
Topic: QR Code Decoding
Replies: 17
Views: 6706

Re: QR Code Decoding

Yes: http://docs.openmv.io/library/omv.image ... nd_qrcodes

See the example under codes in OpenMV IDE.
by kwagyeman
Fri Jul 28, 2017 11:04 am
Forum: Technical Discussion
Topic: Use OpenMV with UARM Swift to recognize numbers/characters and tap on them
Replies: 17
Views: 5072

Re: Use OpenMV with UARM Swift to recognize numbers/characters and tap on them

Um, no. You need to download and install OpenMV IDE. Under tools you'll find a run bootloader option. You can then run the script for OpenMV IDE.
by kwagyeman
Fri Jul 28, 2017 1:21 am
Forum: Technical Discussion
Topic: Use OpenMV with UARM Swift to recognize numbers/characters and tap on them
Replies: 17
Views: 5072

Re: Use OpenMV with UARM Swift to recognize numbers/characters and tap on them

Hi, I've attached the new firmware with "find_numbers". Please note that I'm probably going to edit the method to make it better for searching the image. If you want to manually work on portions of the image use the .copy() method which you can pass an roi to create a 28x28 image for find_numbers to...
by kwagyeman
Thu Jul 27, 2017 1:10 pm
Forum: Technical Discussion
Topic: Use OpenMV with UARM Swift to recognize numbers/characters and tap on them
Replies: 17
Views: 5072

Re: Use OpenMV with UARM Swift to recognize numbers/characters and tap on them

I can post the lastest binary with number finding if.you want to try it. We haven't yet built all this stuff out though so it's going to be somewhat disappointing now. That said, we do listen to customer request and build out features folks need. Let me know if you want the binary and example script...
by kwagyeman
Wed Jul 26, 2017 10:33 am
Forum: General Topics
Topic: Poor April tag performance
Replies: 3
Views: 1706

Re: Poor April tag performance

Sorry, the video where we show off this feature is about how well the system works. The distance limit is about 8 to 10ft.

Can you make the tag bigger in the distance?
by kwagyeman
Wed Jul 26, 2017 2:25 am
Forum: General Topics
Topic: problem saving video to SD
Replies: 10
Views: 4183

Re: problem saving video to SD

We can probably add a frame rate limiter to the after next firmware release. Make an enhancement bug on this on the github repo. This is easy to do. As for text input, we don't have that. If you want that you have to go into full repl mode using the open terminal feature but in that mode you don't g...
by kwagyeman
Wed Jul 26, 2017 2:20 am
Forum: Technical Discussion
Topic: Use OpenMV with UARM Swift to recognize numbers/characters and tap on them
Replies: 17
Views: 5072

Re: Use OpenMV with UARM Swift to recognize numbers/characters and tap on them

We actually implement the lenet6 network on the MCU. So, it can detect characters 0 to 9 with better than human like accuracy in a 28x28 pixel window. The feature is still in "demo" mode right now as not a lot of work has been put in to make it easy but it works. It gets above 10 FPS. Anyway, this n...
by kwagyeman
Tue Jul 25, 2017 5:20 pm
Forum: General Topics
Topic: How to get camera view in OpenMv IDE
Replies: 3
Views: 1776

Re: How to get camera view in OpenMv IDE

Sorry about that. This was a subtle bug in my logic that caused this error. Qt doesn't compute widget sizes and positions until they are shown and my startup logic ran before stuff was shown so it computes the wrong values until you get it out of the unstuck state. It should work fine from now on. T...
by kwagyeman
Tue Jul 25, 2017 3:05 pm
Forum: General Topics
Topic: How to get camera view in OpenMv IDE
Replies: 3
Views: 1776

Re: How to get camera view in OpenMv IDE

Not sure why that didn't show up by default. It should. Anyway, the view is just hidden. Please hover your mouse near the right hand corner of the IDE and it should appear like a drawer mouse symbol. Then left click and dragging to unhide the drawer. Alternatively, if you are on Windows you can dele...
by kwagyeman
Tue Jul 25, 2017 2:44 am
Forum: Project Discussion
Topic: Getting 32×32 grayscale image using Openmv cam m7
Replies: 11
Views: 4573

Re: Getting 32×32 grayscale image using Openmv cam m7

I highly recommend you read up on 1d and 2d arrays in C and python. Google is your friend.
by kwagyeman
Tue Jul 25, 2017 2:42 am
Forum: Project Discussion
Topic: Getting 32×32 grayscale image using Openmv cam m7
Replies: 11
Views: 4573

Re: Getting 32×32 grayscale image using Openmv cam m7

X, Y = pixel location.

img[(Y * img.width()) + X]

This is how you access arrays in standard programming and what a 2d array access boils down into...
by kwagyeman
Mon Jul 24, 2017 3:53 pm
Forum: Project Discussion
Topic: Getting 32×32 grayscale image using Openmv cam m7
Replies: 11
Views: 4573

Re: Getting 32×32 grayscale image using Openmv cam m7

The image array is zero indexed. Just do img[] to access the array. In grayscale each value is 8 bits, 0 to 255. The array is 2d but accessed as a 1d array so you need to manually do row and column indexing. E.g. "(y * w) + x".
by kwagyeman
Mon Jul 24, 2017 2:05 pm
Forum: Technical Discussion
Topic: Limit Frames Per Second
Replies: 2
Views: 1272

Re: Limit Frames Per Second

Hi, please look at the forum history for recent posts... I just answered this. Look at what I've recently posted back till Friday. Someone was asking me about this for taking videos. I posted a code snippet.
by kwagyeman
Mon Jul 24, 2017 2:03 pm
Forum: General Topics
Topic: How to run Matlab code on Openmv M7
Replies: 4
Views: 2339

Re: How to run Matlab code on Openmv M7

We have a line finding method built-in to the camera. Just call find_lines() on the image to get the lines in the image. See the example script in the feature detection examples folder.
by kwagyeman
Mon Jul 24, 2017 2:02 pm
Forum: Project Discussion
Topic: Getting 32×32 grayscale image using Openmv cam m7
Replies: 11
Views: 4573

Re: Getting 32×32 grayscale image using Openmv cam m7

The OpenMV Cam doesn't run MatLab code. It has nothing to do with MatLab. Our image data is stored in a 2d array as grayscale 8bit pixel values or rgb565 16bit pixel values.

If you'd like to save an image for use with matab do img.save. See snapshot examples scripts for how to save images.
by kwagyeman
Sun Jul 23, 2017 9:34 pm
Forum: General Topics
Topic: problem saving video to SD
Replies: 10
Views: 4183

Re: problem saving video to SD

Opps, sorry, the snippet I posted allows you to control the record time precisely. Not the FPS. Note that the clock value in there was just for printing the FPS. I think this simple example will do the trick: record_time = 10000 # in ms record_ms_per_frame = 50 # in ms start = pyb.millis() old_time ...
by kwagyeman
Sun Jul 23, 2017 7:27 pm
Forum: Technical Discussion
Topic: UART read makes OpenMV IDE hang
Replies: 7
Views: 2639

Re: UART read makes OpenMV IDE hang

If you didn't change the serial stuff that's okay. I just need a minimal example. Serial seems to work the the best on the system so I'm not sure what's wrong.
by kwagyeman
Sun Jul 23, 2017 5:02 pm
Forum: Technical Discussion
Topic: UART read makes OpenMV IDE hang
Replies: 7
Views: 2639

Re: UART read makes OpenMV IDE hang

Hi, what firmware version are you using? Is it the latest? Also, can you post your code? Preferably something that just shows the problem and nothing else.
by kwagyeman
Sun Jul 23, 2017 4:57 pm
Forum: General Topics
Topic: problem saving video to SD
Replies: 10
Views: 4183

Re: problem saving video to SD

Hi, there's an issue with the IDE v1.6.0. I set the timeout for waiting for the cmaera way too low trying to fix another issue. Please download a pre-release of the latest IDE here (note that the camera is not crashing bu the IDE disconnects): http://upload.openmv.io/openmv-ide-windows-1.7.0/openmv-...
by kwagyeman
Sun Jul 23, 2017 11:52 am
Forum: Technical Discussion
Topic: Communication issue between openmv cam m7 and arduino board
Replies: 6
Views: 3267

Re: Communication issue between openmv cam m7 and arduino board

Please Google how to print new lines in C. The same information applies for python.
by kwagyeman
Sat Jul 22, 2017 8:22 pm
Forum: Technical Discussion
Topic: opening a saved mjpeg for analysis
Replies: 20
Views: 5668

Re: opening a saved mjpeg for analysis

Hi, please try out the new IDE here and let me know if it fixes the issue: http://upload.openmv.io/openmv-ide-mac- ... -1.7.0.dmg

Flash your OpenMV Cam M7 with this firmware (attached).
by kwagyeman
Sat Jul 22, 2017 7:30 pm
Forum: General Topics
Topic: IDE on mac
Replies: 7
Views: 3330

Re: IDE on mac

Hi, can you try this version of the IDE for mac out? http://upload.openmv.io/openmv-ide-mac- ... -1.7.0.dmg

Flash your OpenMV Cam M7 with this firmware (attached).
by kwagyeman
Fri Jul 21, 2017 10:14 pm
Forum: General Topics
Topic: Poor April tag performance
Replies: 3
Views: 1706

Re: Poor April tag performance

Hi, the white border around the tag is actually important. If you removed it then the tag won't work. The white border has to be about the size of the black border.

You should be able to reproduce what I've done in the video online. I can get about 10-12 fps an see about 8ft.
by kwagyeman
Fri Jul 21, 2017 8:09 pm
Forum: General Topics
Topic: IDE install error and M7 cam wont run any examples
Replies: 3
Views: 1531

Re: IDE install error and M7 cam wont run any examples

DFUse is the DFU command loader driver install which helps you recover the OpenMV cam if it gets bricked. You can try to manually install if you'd like. Anyway, did you happen to write down the error code? I can use that to figure out if there's an error in the installer or if your system just rejec...
by kwagyeman
Fri Jul 21, 2017 10:40 am
Forum: Technical Discussion
Topic: Communication issue between openmv cam m7 and arduino board
Replies: 6
Views: 3267

Re: Communication issue between openmv cam m7 and arduino board

The timeout char default has been fixed for the next firmware release.
by kwagyeman
Fri Jul 21, 2017 10:40 am
Forum: Technical Discussion
Topic: Communication issue between openmv cam m7 and arduino board
Replies: 6
Views: 3267

Re: Communication issue between openmv cam m7 and arduino board

Hi, you need to set the 'timeout_char = 1000' in the constructor for the serial port. By default once the serial buffer fills up characters are dropped.

Use the line feed char to print a new newline. Or carriage return char.
by kwagyeman
Thu Jul 20, 2017 11:30 am
Forum: Technical Discussion
Topic: find_lines vs cv2.HoughLines ... which is better?
Replies: 31
Views: 17213

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

Ah, okay, I see. Max might not like the fact that find lines may not return a line sometimes. Then max complains.
by kwagyeman
Wed Jul 19, 2017 10:52 pm
Forum: General Topics
Topic: OpenMV Cam M7 dedicated DMA for USB Camera 2.0 operation
Replies: 1
Views: 1137

Re: OpenMV Cam M7 dedicated DMA for USB Camera 2.0 operation

Youd need USB 2.0 high-speed which requires an external PHY chip. We don't have this on the camera board so we're locked at 12 Mbps.
by kwagyeman
Wed Jul 19, 2017 6:02 pm
Forum: Project Discussion
Topic: Date Code Recogonition
Replies: 3
Views: 1911

Re: Date Code Recogonition

Please explain the form of the date code. I don't know what the camera will be looking at.
by kwagyeman
Wed Jul 19, 2017 6:00 pm
Forum: Technical Discussion
Topic: Hough Transform Angles ... trouble visualizing them
Replies: 1
Views: 894

Re: Hough Transform Angles ... trouble visualizing them

See the latest blog post of the main website. I posted a nice wrote up on this. Theta is measurered in comolexish way. The write up covers this.
by kwagyeman
Wed Jul 19, 2017 5:58 pm
Forum: Technical Discussion
Topic: find_lines vs cv2.HoughLines ... which is better?
Replies: 31
Views: 17213

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

Do not indent unless you need to please. There's an unnecessary indent.

Anyway, what's the exact error you are getting and on which line? Post all the code?
by kwagyeman
Wed Jul 19, 2017 11:45 am
Forum: Technical Discussion
Topic: find_lines vs cv2.HoughLines ... which is better?
Replies: 31
Views: 17213

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

Filter just removed elements from a list by testing if your filter function returns false on the element. It still returns a list. As for your loop. Please review python syntax. In general, in a for loop you have to iterate over a list and then you can put an if statement in the loop to check the el...
by kwagyeman
Wed Jul 19, 2017 11:08 am
Forum: General Topics
Topic: How to run Matlab code on Openmv M7
Replies: 4
Views: 2339

Re: How to run Matlab code on Openmv M7

Hi, the OpenMV cam runs python code and not MATLAB code. That said, the next release of the system will have a linear regression method implemented. Can you post your MATLAB code? From what you say we have all the same features but in different methods.
by kwagyeman
Wed Jul 19, 2017 11:06 am
Forum: Project Discussion
Topic: Getting 32×32 grayscale image using Openmv cam m7
Replies: 11
Views: 4573

Re: Getting 32×32 grayscale image using Openmv cam m7

Set the resolution to qqqvga. The do sensor.set_windowing((32, 32)). This command is documented in the docs under sensor.
by kwagyeman
Wed Jul 19, 2017 11:03 am
Forum: Technical Discussion
Topic: find_lines vs cv2.HoughLines ... which is better?
Replies: 31
Views: 17213

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

The key statement for the max method is too complex. You'll want to use the filter statement in python. See the pixy emulation scripts for examples on how to filter objects using the filter command. It's quite easy.

In general, use magnitude to threshold lines and pick out garbage ones.
by kwagyeman
Tue Jul 18, 2017 8:11 pm
Forum: Technical Discussion
Topic: find_lines vs cv2.HoughLines ... which is better?
Replies: 31
Views: 17213

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

Length is the euclidean distance. If you are getting a theta of zero that would be a horizontal line in the image somewhere.
by kwagyeman
Tue Jul 18, 2017 8:08 pm
Forum: Technical Discussion
Topic: Display Unmodified Image after Edge Detection ...
Replies: 2
Views: 1292

Re: Display Unmodified Image after Edge Detection ...

Save the image to the disk and then load it back into the FB. This is quite fast.
by kwagyeman
Tue Jul 18, 2017 12:27 pm
Forum: Technical Discussion
Topic: Controlling brushed motors with PWM
Replies: 9
Views: 4297

Re: Controlling brushed motors with PWM

Ibrahim, can you help out on this?
by kwagyeman
Tue Jul 18, 2017 12:26 pm
Forum: Technical Discussion
Topic: opening a saved mjpeg for analysis
Replies: 20
Views: 5668

Re: opening a saved mjpeg for analysis

The new IDE is coming soon. I've already put this fixes in for learning the MTU size on the camera. I just have to write it in for the IDE.

Um, what OS do you want to work on? Mac. I should be able to cut a pre release Mac IDE with the fixes by the end of the week.
by kwagyeman
Tue Jul 18, 2017 12:23 pm
Forum: Project Discussion
Topic: Date Code Recogonition
Replies: 3
Views: 1911

Re: Date Code Recogonition

Please describe what codes you are talking about? The camera can read bar codes, QR codes, and data matrix codes.
by kwagyeman
Tue Jul 18, 2017 12:22 pm
Forum: Technical Discussion
Topic: Hough Transform Lines shaking
Replies: 11
Views: 3656

Re: Hough Transform Lines shaking

Hi, the for loop isn't under the while loop. Also, it looks like you've pasted unrelated code together. Can you clean it up a bit and then post again?
by kwagyeman
Tue Jul 18, 2017 12:20 pm
Forum: Project Discussion
Topic: Getting 32×32 grayscale image using Openmv cam m7
Replies: 11
Views: 4573

Re: Getting 32×32 grayscale image using Openmv cam m7

Hi, we don't have a general purpose image resize but you can set the resolution to qqqvga for a 80x60 image and then you can set the image windowing for 32x32 pixels. See the docs sensor docs on this. It should be possible to do what you need.
by kwagyeman
Tue Jul 18, 2017 1:49 am
Forum: Technical Discussion
Topic: opening a saved mjpeg for analysis
Replies: 20
Views: 5668

Re: opening a saved mjpeg for analysis

Hi, I posted another version of the IDE for windows recently that fixes a timeout issue with the IDE not allowing the camera to go off and save files before disconnecting. Are you using that fixed IDE? Also, are you using an SD card with enough memory? GBs? As for a bin file with an error... so, the...
by kwagyeman
Mon Jul 17, 2017 1:16 am
Forum: Project Discussion
Topic: Linear Regression Line Following
Replies: 20
Views: 7195

Re: Linear Regression Line Following

Hi, I'm just following the line on the outside of the road. As for following the inside line... the dotted one is a bit harder to lock onto and I was mainly trying to prove the algorithm. Given my lessons learned I think I can get it to follow the yellow dotted line by just applying a color filter i...
by kwagyeman
Sun Jul 16, 2017 7:16 pm
Forum: Technical Discussion
Topic: Hough Transform Lines shaking
Replies: 11
Views: 3656

Re: Hough Transform Lines shaking

I've attached the firmware you asked for along with the new find_rectangles method.
by kwagyeman
Sun Jul 16, 2017 2:34 pm
Forum: General Topics
Topic: Hough circle
Replies: 6
Views: 3305

Re: Hough circle

This feature request has now been implemented:

https://www.youtube.com/watch?v=1M6uOoHYN9o
by kwagyeman
Sun Jul 16, 2017 2:31 pm
Forum: Technical Discussion
Topic: Openmvide does not recognize internal disk
Replies: 10
Views: 3086

Re: Openmvide does not recognize internal disk

I will be working on fixing this for the next release. This feature did work previously so looking through what code was changed should allow me to find what was broken. For now, please us and SD card to run your program on. The error doesn't happen with an SD card.

Go to advanced search