Search found 820 matches

by kwagyeman
Fri Jul 21, 2017 10:40 am
Forum: Technical Discussion
Topic: Communication issue between openmv cam m7 and arduino board
Replies: 2
Views: 9

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: 2
Views: 9

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: 29
Views: 433

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

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

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

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: 29
Views: 433

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: 29
Views: 433

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: 1
Views: 16

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: 3
Views: 29

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: 29
Views: 433

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: 29
Views: 433

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

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: 7
Views: 74

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: 17
Views: 153

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

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

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: 3
Views: 29

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: 17
Views: 153

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: 8
Views: 118

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

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

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

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.
by kwagyeman
Sun Jul 16, 2017 2:29 pm
Forum: Technical Discussion
Topic: img.difference() question
Replies: 2
Views: 46

Re: img.difference() question

Hi, you need the SD card to work. Um, there's an issue with v1.6.0 of the IDE where I made the serial timeout too small for the IDE to accept the OpenMV Cam saving images to disk. Please use this link to download a pre-release version of the 1.7.0 IDE where I've fixed this issue: http://upload.openm...
by kwagyeman
Sun Jul 16, 2017 2:08 am
Forum: Project Discussion
Topic: Linear Regression Line Following
Replies: 8
Views: 118

Re: Linear Regression Line Following

3rd place. Had some throttle switch transmitter problems. Check the YouTube channel for the video. I'm working on a blog post write-up ask we speak.

I'll be at the AVC BTW.
by kwagyeman
Sat Jul 15, 2017 12:44 am
Forum: Technical Discussion
Topic: Openmvide does not recognize internal disk
Replies: 10
Views: 203

Re: Openmvide does not recognize internal disk

Yes, we've noticed this issue but are unable to root cause since it happens irregularly. Ibrahim tried to find it but he cannot reproduce. Hopefully updating MP in the future will fix this...
by kwagyeman
Fri Jul 14, 2017 11:11 am
Forum: Technical Discussion
Topic: Hough Transform Lines shaking
Replies: 11
Views: 148

Re: Hough Transform Lines shaking

I've already finished the find rects method. Can post tonight.
by kwagyeman
Thu Jul 13, 2017 6:55 pm
Forum: Technical Discussion
Topic: Hough Transform Lines shaking
Replies: 11
Views: 148

Re: Hough Transform Lines shaking

Hi, we have a new find rectangles method coming out. It repurposes the Apriltag code's rectangle finder so it would amazingly good. Will this do what you need? It basically can find 4 connected lines in a rect that area shaered, rotated, scaled, etc. As for find_lines being shaky, for the next firmw...
by kwagyeman
Wed Jul 12, 2017 11:20 pm
Forum: General Topics
Topic: send frames to PC
Replies: 5
Views: 87

Re: send frames to PC

So, the camera chip generates a stream of video data. One frame every 1/120th of a second. The MCU captures images in this stream when told to via snapshot(). Thus you are always 1/120th of a frame away in uncertainty at least when you tell it to take a picture. Since that's a small time I'm assumin...
by kwagyeman
Wed Jul 12, 2017 3:16 pm
Forum: General Topics
Topic: send frames to PC
Replies: 5
Views: 87

Re: send frames to PC

Note, you'll be able to capture an image to within 1/120th of a frame. The camera itself is a data source that is just constantly spitting out video.
by kwagyeman
Wed Jul 12, 2017 3:14 pm
Forum: General Topics
Topic: send frames to PC
Replies: 5
Views: 87

Re: send frames to PC

Hi, we have an openmv.py script in our openmv/usr directory that allows you to get frames as numpy arrays. The script is a little old but it should still work. If you want the most up to date implementation of the protocol in C++ see OpenMV IDE. The code for the IDE is a lot more complex though sinc...
by kwagyeman
Tue Jul 11, 2017 9:47 pm
Forum: Project Discussion
Topic: Linear Regression Line Following
Replies: 8
Views: 118

Re: Linear Regression Line Following

The linear regression code has the same threshold interface like find blobs. You pass it some thresholds to use. So, it can easily deal with colored lines.
by kwagyeman
Tue Jul 11, 2017 6:21 pm
Forum: Technical Discussion
Topic: Non Rectangular ROI - Motion Detection
Replies: 2
Views: 53

Re: Non Rectangular ROI - Motion Detection

1. You can use an image mask to zero pixels. As in, create a bmp file and do b_and() of the difference frame with the mask file. This lets you pixel select the ROIs. 2. You need an SD card. 3. See the new API. I redid the method such that it returns an object with named parameters. I.e. you can do ....
by kwagyeman
Tue Jul 11, 2017 6:17 pm
Forum: Technical Discussion
Topic: IDE Not Responding
Replies: 4
Views: 71

Re: IDE Not Responding

Wait for the next IDE and give me feedback.
by kwagyeman
Tue Jul 11, 2017 12:11 pm
Forum: Technical Discussion
Topic: IDE Not Responding
Replies: 4
Views: 71

Re: IDE Not Responding

Hi, the file given to you was a new firmware image. Not a bootloader. I have to make that distinction because there's also a bootloader on the camera that installs the firmware.

Anyway, was the firmware successful updated? If not, just downgrade the firmware back to what's currently released.
by kwagyeman
Tue Jul 11, 2017 12:08 pm
Forum: Technical Discussion
Topic: heliostat project
Replies: 48
Views: 2194

Re: heliostat project

Probably, the sun is usually 255 valued pixels.
by kwagyeman
Tue Jul 11, 2017 9:56 am
Forum: Technical Discussion
Topic: Connecting M7 to Raspberry Pi 3
Replies: 1
Views: 40

Re: Connecting M7 to Raspberry Pi 3

Hi, look at the OpenMV IDE GitHub and checkout recent PRs. Someone ported OpenMV IDE to the PI.
by kwagyeman
Tue Jul 11, 2017 9:55 am
Forum: Technical Discussion
Topic: Hough Transform Lines shaking
Replies: 11
Views: 148

Re: Hough Transform Lines shaking

Hi, I don't quite understand your code. You're calling for find_blobs but tossing it's output so it does nothing. As for find lines.... You're calling it on a high passed image. Find lines high passed the image internally again so you shouldn't do this, high pass (morph) the image. Um, what are you ...
by kwagyeman
Tue Jul 11, 2017 9:51 am
Forum: Project Discussion
Topic: Fall detector
Replies: 7
Views: 86

Re: Fall detector

Seems like a solid algorithm for this task... So, what in particular is bad? Like the exact issue.
by kwagyeman
Mon Jul 10, 2017 6:57 pm
Forum: Technical Discussion
Topic: Do I need to have computer connected while using openmv
Replies: 1
Views: 48

Re: Do I need to have computer connected while using openmv

Yes, the camera can run without a computer or an Arduino. The goal is for it to kinda do everything you need in one box. You may need an Arduino if you need a lot of I/O. But otherwise no. If you do use an Arduino make it the slave device using serial. The OpenMV Cam can be a slave device but it's a...
by kwagyeman
Mon Jul 10, 2017 6:54 pm
Forum: Technical Discussion
Topic: heliostat project
Replies: 48
Views: 2194

Re: heliostat project

So, blob_list is empty. Thus, find blobs must not be finding anything. Please print blob_list and see if it's not empty.
by kwagyeman
Mon Jul 10, 2017 3:22 pm
Forum: Technical Discussion
Topic: heliostat project
Replies: 48
Views: 2194

Re: heliostat project

Do:

Print(largest_blob.pixels()).

Not sure what the trouble you are having is.
by kwagyeman
Mon Jul 10, 2017 3:20 pm
Forum: Technical Discussion
Topic: opening a saved mjpeg for analysis
Replies: 17
Views: 153

Re: opening a saved mjpeg for analysis

See our YouTube channel for a video on this feature.

As for the function, next frame returns a None object if loop is not equal to true when called at the end of the video. So just remove loop=True and then check to see if the img result is None/False.
by kwagyeman
Mon Jul 10, 2017 1:12 pm
Forum: Technical Discussion
Topic: opening a saved mjpeg for analysis
Replies: 17
Views: 153

Re: opening a saved mjpeg for analysis

As explained in the video this feature is recording data in my own specific file format. Its literally a raw stream of image structs from the camera memory. If you want it recorded as MJPEG you can do that to at the same time, but that will affect performance. The point of this feature was to not af...
by kwagyeman
Mon Jul 10, 2017 1:07 pm
Forum: Project Discussion
Topic: Fall detector
Replies: 7
Views: 86

Re: Fall detector

Okay, but, I can't just tell you exactly what's wrong and improve your code without you telling me what needs fixing. You need to give me a specific problem that you are having and I can then propose a solution. Explain to me the environment, where the camera is placed, if the lighting is changing. ...
by kwagyeman
Mon Jul 10, 2017 11:29 am
Forum: Project Discussion
Topic: Fall detector
Replies: 7
Views: 86

Re: Fall detector

Okay, so, if it's working what's the issue?

You asked for help improving the algorithm but you have to ask me about a specific objective. I assume you're using frame differencing because it easily detects change.
by kwagyeman
Mon Jul 10, 2017 10:15 am
Forum: Project Discussion
Topic: Fall detector
Replies: 7
Views: 86

Re: Fall detector

What are you looking for exactly? Some new object appearing on the floor? What's the application exactly?
by kwagyeman
Sun Jul 09, 2017 12:22 am
Forum: Project Discussion
Topic: Linear Regression Line Following
Replies: 8
Views: 118

Re: Linear Regression Line Following

The linear regression algorithm works on the OpenMV Cam M4. The algorithm outputs the line fine, and I tested it in real life and it worked great on the dyi robocars track. However, I'm still working on figuring out how to derive the control loop using it. For example, the line following script I wr...

Go to advanced search