Search found 4130 matches

by kwagyeman
Sat Dec 09, 2017 8:44 pm
Forum: Technical Discussion
Topic: to detect small foreign objects
Replies: 32
Views: 11323

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

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

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

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: 12
Views: 14473

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Re: Open MV Pan and Tilt

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

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: 37
Views: 15037

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

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

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

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

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...
by kwagyeman
Thu Nov 30, 2017 11:54 am
Forum: General Topics
Topic: Record video and at the same time check whether the eyes are closed,how to achieve?
Replies: 3
Views: 1906

Re: Record video and at the same time check whether the eyes are closed,how to achieve?

Hi, the eye detection haar Cascade we have doesn't seem to work to well. I don't know how exactly that can be improved. The pupil detection algorithm we have does work okay once an eye is found... But the issue is finding the eyes. If the subject isn't still then I don't really know how to make this...
by kwagyeman
Thu Nov 30, 2017 11:48 am
Forum: General Topics
Topic: Data from OpenMV cam7 to MATLAB
Replies: 7
Views: 3965

Re: Data from OpenMV cam7 to MATLAB

Yes, you can use the USB VCP class to talk to Matlab. But, using that disables your ability to talk to the camera for debugging.

Is there a goal your are trying to do in Matlab?
by kwagyeman
Thu Nov 30, 2017 11:05 am
Forum: General Topics
Topic: face_recognition.py example not working
Replies: 10
Views: 5764

Re: face_recognition.py example not working

We'll, as far as I know face_recognition wasn't a feature that really worked. Ibrahim wrote that script so I can't comment much on it.
by kwagyeman
Thu Nov 30, 2017 1:00 am
Forum: General Topics
Topic: Record video and at the same time check whether the eyes are closed,how to achieve?
Replies: 3
Views: 1906

Re: Record video and at the same time check whether the eyes are closed,how to achieve?

Hi, sorry about not getting back to you for a while. You're basically asking for a lot of code. Okay, let's start with this script in the examples folder: # MJPEG Video Recording on Face Detection Example # # Note: You will need an SD card to run this example. # # You can use your OpenMV Cam to reco...
by kwagyeman
Thu Nov 30, 2017 12:56 am
Forum: General Topics
Topic: face_recognition.py example not working
Replies: 10
Views: 5764

Re: face_recognition.py example not working

Ibrahim, can you help out here?
by kwagyeman
Thu Nov 30, 2017 12:55 am
Forum: Project Discussion
Topic: Open MV Pan and Tilt
Replies: 30
Views: 10204

Re: Open MV Pan and Tilt

See here: https://www.google.com/search?q=transistor+relay+driver&tbm=isch&source=iu&ictx=1&fir=nN65BqfDA_OA6M%253A%252C1k-IRJYpGVrQeM%252C_&usg=__9vbFt41ShcCCjwi5s-toQjAWMKA%3D&sa=X&ved=0ahUKEwiHgrSJzuXXAhWK-lQKHYkbDc4Q9QEIYDAB#imgrc=nN65BqfDA_OA6M: Very standard circuit. The diode is there to deal...
by kwagyeman
Wed Nov 29, 2017 6:19 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)

The port you are selecting should not be a Bluetooth port. It should say cu.usb something. Note that the secondary serial terminal overrides the ability for the main IDE to connect. It it connected correctly you should be able to press the enter button in the serial terminal window and get a repl pr...
by kwagyeman
Wed Nov 29, 2017 3:44 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)

I'll build the test image thingy this weekend for you. The work around should keep you okay until then.
by kwagyeman
Wed Nov 29, 2017 2:31 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, there's a work around for this in the mean time that might work for you. 1. Disconnect from the camera. 2. Go to tools - open terminal and open a serial terminal to your OpenMV Cam at 115200 baud. 3. Then press enter and you should get REPL prompt. 4. Edit code in the main window and then hit th...
by kwagyeman
Wed Nov 29, 2017 11:14 am
Forum: General Topics
Topic: why fireware 2.6 change to 2.5 after I update fireware online
Replies: 8
Views: 5222

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

Hi, we will release firmware 2.6 officially this weekend.
by kwagyeman
Wed Nov 29, 2017 11:14 am
Forum: Project Discussion
Topic: Object orientation estimation
Replies: 11
Views: 5257

Re: Object orientation estimation

Okay, so that means the camera may move around with respect to the device. I thought the camera was mounted on a fixed plane looking down at an angle and the device was on a fixed plane too. I only know how to solve for the rotation given the situation above. If the camera is allowed to move around ...
by kwagyeman
Tue Nov 28, 2017 11:14 pm
Forum: Technical Discussion
Topic: Waking from pyb.stop() ?
Replies: 7
Views: 2961

Re: Waking from pyb.stop() ?

Can you try v2.6 out? https://github.com/openmv/openmv/releases

It's right about to come out this weekend (finally I have time to get the release done).

Ibrahim may know more details about this issue.
by kwagyeman
Tue Nov 28, 2017 9:24 pm
Forum: General Topics
Topic: Light reflects
Replies: 6
Views: 3611

Re: Light reflects

I just found a company that will cut us 14mm x 14mm polarized squares that I can sell for $5 each that you can put under the lens. Going to buy some samples and then stock a bunch.
by kwagyeman
Tue Nov 28, 2017 10:33 am
Forum: Technical Discussion
Topic: Launching a program + power supply / OpenMV m7
Replies: 1
Views: 1024

Re: Launching a program + power supply / OpenMV m7

Yes, use the save script to OpenMV Cam button in the IDE under tools to save the script to the OpenMV Cam. Then, you can power the camera via 5v on the VIN and GND lines.
by kwagyeman
Mon Nov 27, 2017 10:18 am
Forum: General Topics
Topic: openmv will use NXP RT1050 in next version?
Replies: 1
Views: 1909

Re: openmv will use NXP RT1050 in next version?

It requires use to change the HAL which we're leveraging from MicroPython. So, it's not that easy to move to. Time limits on myself are very real. Additional, since it doesn't have the flash onboard the actual performance is going to be kinda bad. We do random access color table lookups which will t...
by kwagyeman
Sun Nov 26, 2017 11:51 pm
Forum: Project Discussion
Topic: Open MV Pan and Tilt
Replies: 30
Views: 10204

Re: Open MV Pan and Tilt

Put an else statement after under the

Code: Select all

if tags:

Code: Select all

else:
    h_drive_forward.value(0)
    h_drive_backward.value(0)
    v_drive_forward.value(0)
    v_drive_backward.value(0)

Go to advanced search