Search found 3046 matches

by kwagyeman
Sun Jul 16, 2017 2:29 pm
Forum: Technical Discussion
Topic: img.difference() question
Replies: 2
Views: 1570

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: 20
Views: 7202

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

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

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

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

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

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

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: 20
Views: 7202

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

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

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

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

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

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

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

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

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

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

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: 20
Views: 5698

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: 20
Views: 5698

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

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

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

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: 20
Views: 7202

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...
by kwagyeman
Sat Jul 08, 2017 5:59 pm
Forum: General Topics
Topic: IDE on mac
Replies: 7
Views: 3331

Re: IDE on mac

Hi, I think this is an issue with how the USB serial stack works. From another user I know the OS drops received bytes. To fix this I'm going to have the IDE learn the path MTU by sending larger and larger fake packets until the OS drops bytes. This will be in the next IDE release. Until then, pleas...
by kwagyeman
Sat Jul 08, 2017 2:27 am
Forum: General Topics
Topic: IDE -- missing frame buffer view and histos
Replies: 21
Views: 6653

Re: IDE -- missing frame buffer view and histos

Hi, this is so weird. Um, just delete the OpenMV IDE settings to reset the IDE to see these windows. The ini files are under <username>/AppData/Roaming/OpenMV. Just delete the whole folder and OpenMV IDE will be completely reset. None of your data will be lost.
by kwagyeman
Sat Jul 08, 2017 1:29 am
Forum: Technical Discussion
Topic: Tracking April Tags on Cam M4
Replies: 7
Views: 2306

Re: Tracking April Tags on Cam M4

Here's the firmware compiled with those changes... don't use anything but GRAYSCALE. Using RGB565 anywhere will cause a system crash.
by kwagyeman
Thu Jul 06, 2017 2:06 pm
Forum: Technical Discussion
Topic: Tracking April Tags on Cam M4
Replies: 7
Views: 2306

Re: Tracking April Tags on Cam M4

It's easier if I just make a binary for you. I might be able to do that tonight. That said, are you okay with the 80x60 limit? FPS will probably be similar to the M7.
by kwagyeman
Thu Jul 06, 2017 2:04 pm
Forum: General Topics
Topic: using openmv for robot localization
Replies: 3
Views: 2222

Re: using openmv for robot localization

Hi, we can't do general purpose SLAM on any image but you can cheat using AprilTags. Please see our YouTube channel (link is on the bottom of our website) and look for the April Tag video. Apriltags are visual fiducials which are like numbers the camera can see very reliablely (magically good). By p...
by kwagyeman
Thu Jul 06, 2017 1:51 pm
Forum: Project Discussion
Topic: Line-Following DFRobot (Romeo v2) with OpenMV Cam M4
Replies: 3
Views: 2084

Re: Line-Following DFRobot (Romeo v2) with OpenMV Cam M4

Thanks, let me know your progress on getting the robot moving and we can go to the next step.
by kwagyeman
Thu Jul 06, 2017 1:31 am
Forum: Technical Discussion
Topic: opening a saved mjpeg for analysis
Replies: 20
Views: 5698

Re: opening a saved mjpeg for analysis

Load the binary using the run bootloader option. This binary is only for the M7. Attached scripts show off how to use the feature. Don't forget to update the firmware once the new IDE/firmware comes out (end of the month likely).
by kwagyeman
Wed Jul 05, 2017 7:22 pm
Forum: Technical Discussion
Topic: img.difference an ROI?
Replies: 2
Views: 1379

Re: img.difference an ROI?

Difference of ROIs is not implemented currently. That said, after the difference you can then just only process an ROI and not the whole image. So, just save and difference full images and then run the detection operation on an ROI.
by kwagyeman
Wed Jul 05, 2017 11:55 am
Forum: Project Discussion
Topic: Line-Following DFRobot (Romeo v2) with OpenMV Cam M4
Replies: 3
Views: 2084

Re: Line-Following DFRobot (Romeo v2) with OpenMV Cam M4

Hi, please copy and paste the reply I sent you via the PM here for history purposes.
by kwagyeman
Wed Jul 05, 2017 11:33 am
Forum: General Topics
Topic: How to restore the histogram window
Replies: 13
Views: 5377

Re: How to restore the histogram window

What device are you talking about? The fix was in the MP firmware to the USB flash drive to implement cache flushing. Damien of MP did that for us.
by kwagyeman
Wed Jul 05, 2017 11:32 am
Forum: Technical Discussion
Topic: heliostat project
Replies: 48
Views: 13185

Re: heliostat project

You want me to review your code and improve it?
by kwagyeman
Wed Jul 05, 2017 11:31 am
Forum: Technical Discussion
Topic: C stdout to OpenMV ide serial port?
Replies: 13
Views: 4897

Re: C stdout to OpenMV ide serial port?

That's some lovely code right? Only took a week to port to the OpenMV Cam.
by kwagyeman
Wed Jul 05, 2017 11:30 am
Forum: Technical Discussion
Topic: opening a saved mjpeg for analysis
Replies: 20
Views: 5698

Re: opening a saved mjpeg for analysis

K, will do tonight. Do a reminder post in about 13 hours to poke me to do it.
by kwagyeman
Wed Jul 05, 2017 11:14 am
Forum: Technical Discussion
Topic: Tracking April Tags on Cam M4
Replies: 7
Views: 2306

Re: Tracking April Tags on Cam M4

Yes, but you'll have to modify the firmware. We're out of space on the M4 so you need to remove some other features to make room for April Tags. Finally, you won't be able to handle a resolution much above 80x60 because the M4 has half the RAM. At 80x60 you should be able to see a tag about 5 ft away.
by kwagyeman
Mon Jul 03, 2017 3:18 pm
Forum: Technical Discussion
Topic: opening a saved mjpeg for analysis
Replies: 20
Views: 5698

Re: opening a saved mjpeg for analysis

Yeah, so, we basically have this feature coming up in the next release:

https://www.youtube.com/watch?v=8FVoSF34zNM

...

Let me know if you want it now and I can post the scripts to use it along with a binary file for it.
by kwagyeman
Mon Jul 03, 2017 11:25 am
Forum: Technical Discussion
Topic: opening a saved mjpeg for analysis
Replies: 20
Views: 5698

Re: opening a saved mjpeg for analysis

We don't have any code to decode JPEG images, we just support compressing images and then saving them to disk or transmitting them. Um, that said, for the next release I added a new Image Reader and Writer class that saves rae uncompressed video you can read and write. But, it's only viewable with y...
by kwagyeman
Mon Jul 03, 2017 11:21 am
Forum: Technical Discussion
Topic: mjpeg_on_movement.py example: How long would a recording last?
Replies: 6
Views: 3213

Re: mjpeg_on_movement.py example: How long would a recording last?

? My previous answer listed how to do that. You just need a time source. The OpenMV Cam doesn't have an RTC but you can use the millisecond time counter as a substitute for short times. Otherwise buy an I2C RTC.
by kwagyeman
Sun Jul 02, 2017 12:41 pm
Forum: Technical Discussion
Topic: C stdout to OpenMV ide serial port?
Replies: 13
Views: 4897

Re: C stdout to OpenMV ide serial port?

Yeah, don't put print statements in loops :).
by kwagyeman
Sat Jul 01, 2017 8:54 pm
Forum: Technical Discussion
Topic: C stdout to OpenMV ide serial port?
Replies: 13
Views: 4897

Re: C stdout to OpenMV ide serial port?

That one should work. The print statements go to the serial terminal in the IDE.
by kwagyeman
Sat Jul 01, 2017 3:46 pm
Forum: Technical Discussion
Topic: Method for tracking Color Blob and April Tag
Replies: 4
Views: 2511

Re: Method for tracking Color Blob and April Tag

All the methods (the one's I've re-written atleast), have an ROI keyword argument to set the region of interest (x,y,w,h) to work on. Memory is only allocated for that ROI size. So as long as the ROI is less than 160x120 pixels you're fine. That said, scaling can be an issue... but, other than that ...
by kwagyeman
Sat Jul 01, 2017 3:18 pm
Forum: Technical Discussion
Topic: Method for tracking Color Blob and April Tag
Replies: 4
Views: 2511

Re: Multiple Tracking of Color Blob and April Tag

There's enough memory to do both at once. AprilTag only uses RAM when it's being called. After the function executes it frees up the RAM. I think you're concerned about having to use two different resolutions. Anyway, if you'd like to just switch with AprilTags you can put progressively smaller Apri...
by kwagyeman
Sat Jul 01, 2017 2:52 pm
Forum: Technical Discussion
Topic: C stdout to OpenMV ide serial port?
Replies: 13
Views: 4897

Re: C stdout to OpenMV ide serial port?

#include "stdio.h"

Then put printf anywhere in your code. This get printed out the same serial port regular messages go - as in they will show up in the IDE.

Also, make sure to add \n to the end of the string.
by kwagyeman
Sat Jul 01, 2017 11:29 am
Forum: Technical Discussion
Topic: AprilTags x DataMatrix - Performance (FPS)
Replies: 1
Views: 1358

Re: AprilTags x DataMatrix - Performance (FPS)

We can't use lib zxing because it's not in C. That said, just use an qrcode instead of a data matrix code. Both are similar but you have a lot more FPS with qr codes. QR code version 1 can be decoded at about 10 FPS when seen. As for April Tags, you can make a composite image with them if you wanted...
by kwagyeman
Fri Jun 30, 2017 6:22 pm
Forum: Technical Discussion
Topic: mjpeg_on_movement.py example: How long would a recording last?
Replies: 6
Views: 3213

Re: mjpeg_on_movement.py example: How long would a recording last?

That's not a regex. It's a standard formatted string. Nor is that a timestamp but just a random number. If you want to order videos you should just print out a counter value. Note that you'll want to find the file with the highest value first to initialize the counter. So... List all the files in th...

Go to advanced search