Search found 1246 matches

by kwagyeman
Fri Dec 15, 2017 12:23 am
Forum: Technical Discussion
Topic: Sending Image Data over HTTP
Replies: 2
Views: 18

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Re: keypoint list?

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

What would you like to see implemented?
by kwagyeman
Sat Dec 09, 2017 8:44 pm
Forum: Technical Discussion
Topic: to detect small foreign objects
Replies: 15
Views: 172

Re: to detect small foreign objects

There's a typo in my code:

Code: Select all

blobs = img.find_blobs(...)
out_blobs = []
    for b in blobs:
        if((100 <= b.pixels()) and (b.pixels() < 500)):
            out_blobs.append(b) 
by kwagyeman
Sat Dec 09, 2017 8:37 pm
Forum: Technical Discussion
Topic: to detect small foreign objects
Replies: 15
Views: 172

Re: to detect small foreign objects

You have to do it on the returned objects:

Code: Select all

blobs = img.find_blobs(...)
out_blobs = []
    for b in out_blobs:
        if((100 <= b.pixels()) and (b.pixels() < 500)):
            out_blobs.append(b) 
See the documentation on the blob object for more information.
by kwagyeman
Sat Dec 09, 2017 2:40 pm
Forum: Technical Discussion
Topic: to detect small foreign objects
Replies: 15
Views: 172

Re: to detect small foreign objects

Hi, sorry for not getting back to you quickly. For your application you really need adaptive thresholding. We don't have that right now but it's on my giant to do list. Anyway, in the mean time you can get around the issue with the giant blob on the bottom by filtering out blobs which have a high pi...
by kwagyeman
Sat Dec 09, 2017 2:36 pm
Forum: Technical Discussion
Topic: Bird's eye view transformation to estimate the distance
Replies: 1
Views: 55

Re: Bird's eye view transformation to estimate the distance

Hi, we added this to firmware 2.6. It's called rotation_correction().

I'll be releasing this firmware along with the latest IDE this weekend.
by kwagyeman
Sat Dec 09, 2017 2:34 pm
Forum: Project Discussion
Topic: Creating threshold for color blob tracking.
Replies: 7
Views: 1377

Re: Creating threshold for color blob tracking.

Hi Rommel, The next release, v2.6. does not include shadow removal. However, I've been looking into the feature... and there's one easy way to do it involving looking for similar chroma regions and making the l-channel similar for that. I could implement that one quickly... but, it will fail for ima...
by kwagyeman
Sat Dec 09, 2017 2:32 pm
Forum: Project Discussion
Topic: new pixel value calculation
Replies: 3
Views: 60

Re: new pixel value calculation

Right now we don't have copy protection enabled. But, we'll be able to do this in the future. Since we've been getting a lot of request about things like this we're focusing on making the ecosystem better than computer vision algorithms right now. For copy protection we have two modes possible: 1. W...
by kwagyeman
Thu Dec 07, 2017 5:50 pm
Forum: Technical Discussion
Topic: ssl ipproto_sec
Replies: 1
Views: 39

Re: ssl ipproto_sec

We could, but, we don't have any ssl stuff enabled. Adding certs and whatnot in the code is easy though. I think we just have to enable a switch in MP.
by kwagyeman
Thu Dec 07, 2017 11:13 am
Forum: Technical Discussion
Topic: Coordinate frame of detected april tags
Replies: 9
Views: 108

Re: Coordinate frame of detected april tags

Thanks for finding these bugs! I will look into this when I have time. Please send another PR to adjust cx and cy by the ROI center. I believe this is the correct thing to do since I don't share any ROI info with the AprilTag code so it would need to know cx and cy have moved. It assumes it's lookin...
by kwagyeman
Thu Dec 07, 2017 12:43 am
Forum: Technical Discussion
Topic: Eye detection + drawing
Replies: 6
Views: 82

Re: Eye detection + drawing

The haar cascade eye detector is just generally not that good. The face detector is pretty good but the eye detector one doesn't work that well. In the future we may improve that feature but we've been swamped with other things folks want us to build out.
by kwagyeman
Thu Dec 07, 2017 12:41 am
Forum: Technical Discussion
Topic: Camera FOV
Replies: 3
Views: 65

Re: Camera FOV

Hi, we sell a wider angle lens for this reason. The 2.8mm lens is just the widest angle and least expensive wide angle lens we could find to include with the camera.
by kwagyeman
Wed Dec 06, 2017 1:44 pm
Forum: General Topics
Topic: why fireware 2.6 change to 2.5 after I update fireware online
Replies: 8
Views: 163

Re: why fireware 2.6 change to 2.5 after I update fireware online

Yes, I was almost there over the weekend d but discovered an issue with the text highlighter parsing help files. I've fixed most of the problems but need to verify I got everything. I'm finished the process of fixing compile errors on all platforms though so I should be able to quickly get it done a...
by kwagyeman
Wed Dec 06, 2017 12:27 pm
Forum: Technical Discussion
Topic: Coordinate frame of detected april tags
Replies: 9
Views: 108

Re: Coordinate frame of detected april tags

I'll send a pointer to where to fix the rotation when I get home.
by kwagyeman
Wed Dec 06, 2017 12:26 pm
Forum: General Topics
Topic: why fireware 2.6 change to 2.5 after I update fireware online
Replies: 8
Views: 163

Re: why fireware 2.6 change to 2.5 after I update fireware online

Yeah, the firmware was released earlier but the next IDE will package the v2.6 firmware.
by kwagyeman
Tue Dec 05, 2017 11:58 pm
Forum: Technical Discussion
Topic: Coordinate frame of detected april tags
Replies: 9
Views: 108

Re: Coordinate frame of detected april tags

I'm fine with it being redefined in this way. Please send a PR for the firmware fixes and it will get incorporated for the next release: https://github.com/openmv/openmv/blob/master/src/omv/img/apriltag.c#L11941 The code for that is above. I used this method: http://nghiaho.com/?page_id=846 ... Sorr...
by kwagyeman
Tue Dec 05, 2017 11:51 pm
Forum: Technical Discussion
Topic: How can I hide my codes?
Replies: 5
Views: 95

Re: How can I hide my codes?

Okay, let's do this one step at a time: 1st - Get the firmware build system running: https://github.com/openmv/openmv/wiki. Let me know once you've got the M7 firmware compiling. 2nd - Replace main.py with your script here: https://github.com/openmv/openmv/blob/master/src/omv/main.c#L77. The script ...
by kwagyeman
Tue Dec 05, 2017 11:47 pm
Forum: Technical Discussion
Topic: Camera disconnects from IDE when running script (sometimes)
Replies: 11
Views: 161

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

I honestly don't know what causes this error. I believe it's a hardware issue. As far as I understand the problem comes from the MAC hardware dropping USB bytes since we're not using the USB CDC class in exactly the way it was designed for. I got a hint of the possible problem when a person showed m...
by kwagyeman
Tue Dec 05, 2017 11:10 am
Forum: Technical Discussion
Topic: to detect small foreign objects
Replies: 15
Views: 172

Re: to detect small foreign objects

Hi, can you run the hello world demo with VGA resolution and tell me what the camera sees? That object is easy to detect... So, you just need a good about of zoom. I just bought one of those lenses and if it works out and I can find a source I may stock it. 8x zoom is cool. I'll call it the microsco...
by kwagyeman
Tue Dec 05, 2017 11:08 am
Forum: Technical Discussion
Topic: How can I hide my codes?
Replies: 5
Views: 95

Re: How can I hide my codes?

If you feel like editing the STMCUs C code you can disable the flash file system and hard code your script to be main.py by editing our main.c method. After which you can set disable debug access and your code can't be copied then.

Do you need instructions on how to do this?
by kwagyeman
Tue Dec 05, 2017 3:27 am
Forum: Technical Discussion
Topic: to detect small foreign objects
Replies: 15
Views: 172

Re: to detect small foreign objects

Hi, there's no photo attached. Anyway, you'll want to use the img.find_blobs() method to detect things like this. You'd use the inverse=True argument and search for everything that isn't the color of the paper you're looking at. As for a microscope lens... the telephoto lens offer 4x zoom. Do you ne...
by kwagyeman
Mon Dec 04, 2017 10:34 pm
Forum: Technical Discussion
Topic: How can I hide my codes?
Replies: 5
Views: 95

Re: How can I hide my codes?

Hi, we plan to roll out the ability for you to use frozen MicroPython code soon. This will let you compile the code into a byte image that we'll be able to read. Note that anyone can easily reverse engineer the byte image to get some ugly source code... But, in general folks won't. What's the ETA on...
by kwagyeman
Mon Dec 04, 2017 1:14 pm
Forum: Technical Discussion
Topic: Coordinate frame of detected april tags
Replies: 9
Views: 108

Re: Coordinate frame of detected april tags

Um, about the PR stuff. Seriously, we could use the help, if you want something fixed be it code or documentation send a PR. If you need help setting up how to compile the code let me know.
by kwagyeman
Mon Dec 04, 2017 1:12 pm
Forum: Technical Discussion
Topic: Coordinate frame of detected april tags
Replies: 9
Views: 108

Re: Coordinate frame of detected april tags

Hi, thanks for this post. It's going to take me some time to digest. That said, I'm not perfect on all this stuff. I only know the AprilTag part. Not the possible part. If you'd like more possible information and such please let me know what you need/want and send me a PR and we can fix it for you. ...
by kwagyeman
Mon Dec 04, 2017 10:53 am
Forum: General Topics
Topic: why fireware 2.6 change to 2.5 after I update fireware online
Replies: 8
Views: 163

Re: why fireware 2.6 change to 2.5 after I update fireware online

I've just finished compiling the latest ide binaries with this new firmware. Everything will be released this week.
by kwagyeman
Mon Dec 04, 2017 10:48 am
Forum: Technical Discussion
Topic: Camera disconnects from IDE when running script (sometimes)
Replies: 11
Views: 161

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

Okay, I'm almost done releasing the next version of the IDE. It has the possible bug fix built-in but it will only activate it on firmware with a version of 9.9.9 so I'll build a version of the firmware once I'm done releasing with the possible fix.
by kwagyeman
Sun Dec 03, 2017 6:35 pm
Forum: Project Discussion
Topic: Open MV Pan and Tilt
Replies: 30
Views: 382

Re: Open MV Pan and Tilt

You have to test until you find a dead zone value that works without needed a lot of power. The only way to find this is to try different values.
by kwagyeman
Sun Dec 03, 2017 2:02 pm
Forum: Project Discussion
Topic: Open MV Pan and Tilt
Replies: 30
Views: 382

Re: Open MV Pan and Tilt

I don't know why your professor is letting you play with 24VAC and 4A power rails. Seems kinda in the dangerous zone.

Um, if the system maintains position one moved then just increase the dead zone value I put in the code so it's not drawing power trying to keep the camera centered on something.
by kwagyeman
Sat Dec 02, 2017 4:38 pm
Forum: Technical Discussion
Topic: Camera disconnects from IDE when running script (sometimes)
Replies: 11
Views: 161

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

Weird... OpenMV IDE shouldn't have been able to find the camera in the first place.
by kwagyeman
Sat Dec 02, 2017 1:39 pm
Forum: Project Discussion
Topic: Open MV Pan and Tilt
Replies: 30
Views: 382

Re: Open MV Pan and Tilt

Okay, great.
by kwagyeman
Sat Dec 02, 2017 1:38 pm
Forum: General Topics
Topic: MTF calculation?
Replies: 4
Views: 86

Re: MTF calculation?

Ah, so, we actually have code for the 2D FFT onboard for phase correlation. If you modify the C firmware the camera can do what you want. The phase correlation file shows an example of this: https://github.com/openmv/openmv/blob/master/src/omv/img/phasecorrelation.c Let me know if you'd like to writ...
by kwagyeman
Sat Dec 02, 2017 12:29 am
Forum: General Topics
Topic: MTF calculation?
Replies: 4
Views: 86

Re: MTF calculation?

Hi, I don't quite know what you're asking about. Can you go into some more detail about the application?
by kwagyeman
Fri Dec 01, 2017 9:05 pm
Forum: Project Discussion
Topic: Open MV Pan and Tilt
Replies: 30
Views: 382

Re: Open MV Pan and Tilt

Um, can you measure the voltage on the transistor base? The pin that connects to the OpenMV Cam? Make sure that the OpenMV Cam's IOs are working properly.

Also, can you draw me a circuit? By hand and scanned or via paint is fine.
by kwagyeman
Thu Nov 30, 2017 6:13 pm
Forum: Project Discussion
Topic: Open MV Pan and Tilt
Replies: 30
Views: 382

Re: Open MV Pan and Tilt

The OpenMV Cam io pins can only provide 25 ma each, with a total of 150ma across all pins. Each of those transistors can do 500 ma and above.

Google the word amplifier.
by kwagyeman
Thu Nov 30, 2017 2:02 pm
Forum: General Topics
Topic: Data from OpenMV cam7 to MATLAB
Replies: 7
Views: 200

Re: Data from OpenMV cam7 to MATLAB

So, the camera does all this onboard.

I don't know what MATLAB is for. The whole point of the OpenMV Cam is so you don't need Matlab.
by kwagyeman
Thu Nov 30, 2017 11:56 am
Forum: Project Discussion
Topic: Growth rings from timber
Replies: 5
Views: 139

Re: Growth rings from timber

Not sure. I'm sorry, I don't know how to solve your problem with our current feature set. The difference between the two orientations is really small. Only a strong feature detector will have good results. That said, we'll work on solving this problem for the future. But, I'll likely deliver a solut...

Go to advanced search