Search found 3999 matches

by kwagyeman
Sat Sep 30, 2017 10:57 pm
Forum: Technical Discussion
Topic: How to send some events from OpenMV kit to PC/laptop using USB ?
Replies: 1
Views: 1299

Re: How to send some events from OpenMV kit to PC/laptop using USB ?

You can open a USB serial port on the OpenMV Cam using the VCP USB class. That said, using it conflicts with OpenMV IDE connecting to the camera. So, you can't use it while OpenMV IDE is connected to the OpenMV Cam. http://docs.openmv.io/library/pyb.USB_VCP.html I'd recommend using a side band seria...
by kwagyeman
Fri Sep 29, 2017 12:26 pm
Forum: General Topics
Topic: IDE not getting target file from Windows Explorer
Replies: 7
Views: 3536

Re: IDE not getting target file from Windows Explorer

I can send you the patched exe file tonight. Not sure if it will have linker issues though. You can try it and see if it works.
by kwagyeman
Fri Sep 29, 2017 11:43 am
Forum: General Topics
Topic: Fixed target point
Replies: 8
Views: 4894

Re: Fixed target point

Please put more effort into you forum requests. I don't know what you want. Please try to write about what you want, why you want it, etc. Try to write a paragraph or so.
by kwagyeman
Fri Sep 29, 2017 3:13 am
Forum: General Topics
Topic: IDE not getting target file from Windows Explorer
Replies: 7
Views: 3536

Re: IDE not getting target file from Windows Explorer

This has been fixed for the next version of OpenMV IDE.
by kwagyeman
Fri Sep 29, 2017 1:42 am
Forum: General Topics
Topic: IDE not getting target file from Windows Explorer
Replies: 7
Views: 3536

Re: IDE not getting target file from Windows Explorer

Oh, okay, I'll fix this easily. I never designed it to handle this error. This has to do with how windows passes command line arguments to the IDE to open files. I know what's wrong.
by kwagyeman
Thu Sep 28, 2017 7:43 pm
Forum: General Topics
Topic: Problems transferring images with USB-VCP commands
Replies: 4
Views: 2958

Re: Problems transferring images with USB-VCP commands

Is this from the USB DGB protocol that OpenMV IDE uses to communicate to the camera? Or, is this your code printing images via uart.write(img.compressed())?
by kwagyeman
Thu Sep 28, 2017 7:41 pm
Forum: Technical Discussion
Topic: Using a different cascade classifer
Replies: 11
Views: 4670

Re: Using a different cascade classifer

It sounds like Linux just doesn't want to write to the device. Try chmod +w on the files.
by kwagyeman
Thu Sep 28, 2017 11:51 am
Forum: General Topics
Topic: IDE not getting target file from Windows Explorer
Replies: 7
Views: 3536

Re: IDE not getting target file from Windows Explorer

I've never seen this issue. Drag and drop works on my PC along with being able to open any file you like via the open menu.

Do you have steps to reproduce?

Note... I have not tried double click. OpenMV IDE doesn't own .py files.
by kwagyeman
Thu Sep 28, 2017 11:36 am
Forum: Technical Discussion
Topic: Using a different cascade classifer
Replies: 11
Views: 4670

Re: Using a different cascade classifer

Other questions?
by kwagyeman
Thu Sep 28, 2017 11:34 am
Forum: Technical Discussion
Topic: custom ROI in sensor
Replies: 5
Views: 2738

Re: custom ROI in sensor

You just need to set the resolution to less than or equal to 320x240 for more than 30 FPS. As for a custom ROI, please use the set_windowing() method.
by kwagyeman
Wed Sep 27, 2017 10:51 pm
Forum: Project Discussion
Topic: Find the number of lines inside a specific area
Replies: 1
Views: 2203

Re: Find the number of lines inside a specific area

Here you go, you have to tune if for your application: # Counting vertical lines example script. # # Adjust the threshold value to max it so only really strong lines appear... A higher threshold for stronger lines. # Adjust the theta_margin value to control the merging of lines with similar angles. ...
by kwagyeman
Wed Sep 27, 2017 11:18 am
Forum: Technical Discussion
Topic: LCD screen
Replies: 1
Views: 1185

Re: LCD screen

The OpenMV Cam has a spin bus which can transfer about 45 Mbs to another device. Is your LCD screen SPI based? I believe there are these LCD screens you can buy from 4D systems that hold all the graphics on board and you just send them what to draw and where.
by kwagyeman
Wed Sep 27, 2017 11:16 am
Forum: General Topics
Topic: How run People Detection
Replies: 1
Views: 1795

Re: How run People Detection

Hi, we do don't support people detection right now. It could be added to the firmware.
by kwagyeman
Tue Sep 26, 2017 9:32 pm
Forum: General Topics
Topic: Face detection- color RGB(Not GRAYSCALE)
Replies: 2
Views: 2344

Re: Face detection- color RGB(Not GRAYSCALE)

It's not supported in color right now. There was a technical limit on this long ago but it's not anymore. The code just have to be written to do the color conversion. It's on a massive to do list.
by kwagyeman
Tue Sep 26, 2017 9:30 pm
Forum: General Topics
Topic: Emulating OpenMV?
Replies: 1
Views: 1629

Re: Emulating OpenMV?

Not really, however, please email OpenMV privately at our business email address.
by kwagyeman
Tue Sep 26, 2017 9:29 pm
Forum: General Topics
Topic: ROBOCARS
Replies: 1
Views: 1651

Re: ROBOCARS

I'll have my build instructions done soon for my robot. I've done all the write up but now I finally have all the parts so I can show me doing each step.
by kwagyeman
Mon Sep 25, 2017 12:17 pm
Forum: General Topics
Topic: find_displacement()
Replies: 4
Views: 4331

Re: find_displacement()

The reason it's so noisy is because someone wanted sub pixel accuracy. So it's trying to interpolate a position between pixels. This is highly affected by noise.
by kwagyeman
Mon Sep 25, 2017 12:15 pm
Forum: General Topics
Topic: find_displacement()
Replies: 4
Views: 4331

Re: find_displacement()

The output is really noisy by default. If you want to Clean the noise up use int() on the floating point outputs to convert them to decimal and it will work like you think.

I was trying to output the data like an accelerometer but that's probably too advanced for folks.
by kwagyeman
Mon Sep 25, 2017 11:45 am
Forum: Technical Discussion
Topic: OpenMV3 firmware development
Replies: 4
Views: 2234

Re: OpenMV3 firmware development

Is there a reason you need doubles? I've ported a lot of PC code to the OpenMV Cam now and found doubles to be completely unnecessary each time. See the top of the aprtiltags.c file for how I basically turned all doubles and all methods that worked on doubles to work on floats without editing the co...
by kwagyeman
Sun Sep 24, 2017 5:53 pm
Forum: Technical Discussion
Topic: Newly bought Wifi Shield hanged
Replies: 12
Views: 4684

Re: Newly bought Wifi Shield hanged

Yes, email us with you info. Please also attach your telephone number if you are not in the US.
by kwagyeman
Sat Sep 23, 2017 10:57 pm
Forum: Technical Discussion
Topic: Newly bought Wifi Shield hanged
Replies: 12
Views: 4684

Re: Newly bought Wifi Shield hanged

Hi, do you see any shorts on the module pins to other pads? I can't tell from the image. We've seen issues with the module not soldering correctly.
by kwagyeman
Sat Sep 23, 2017 10:56 pm
Forum: Technical Discussion
Topic: Fixed sensor settings
Replies: 3
Views: 2177

Re: Fixed sensor settings

As for checking the image... do, img.get_statistics(). This methods will average the colors in the image given a region of interest for you. You can find the method to use here: http://docs.openmv.io/library/omv.image ... statistics.
by kwagyeman
Sat Sep 23, 2017 10:54 pm
Forum: Technical Discussion
Topic: Fixed sensor settings
Replies: 3
Views: 2177

Re: Fixed sensor settings

Turn autogain and autowhite balance off after startup. As for the variance... welcome to color tracking. Settings will always move around. The camera never produces a consistent output. It's best to use gradients to track if something is in the image. Can you look at the edges of the image first to ...
by kwagyeman
Sat Sep 23, 2017 10:52 pm
Forum: Project Discussion
Topic: Linear Regression Line Following
Replies: 20
Views: 10920

Re: Linear Regression Line Following

Yeah, that will work too. You could also support higher res then for each side of the image (this is because the linear regression is N^2... so, as long as the number of set pixels are low in a frame it can do more). Not quite sure how to merge the turning results from both sides however. I guess an...
by kwagyeman
Sat Sep 23, 2017 6:07 pm
Forum: Project Discussion
Topic: Linear Regression Line Following
Replies: 20
Views: 10920

Re: Linear Regression Line Following

We're just going to hug the wall. We'll use the find lines technique to get the edges of the wall and then use linear regression to follow that. As for obstacles... One of the walls you can follow doesn't have many obstacles.
by kwagyeman
Sat Sep 23, 2017 5:56 pm
Forum: Technical Discussion
Topic: Newly bought Wifi Shield hanged
Replies: 12
Views: 4684

Re: Newly bought Wifi Shield hanged

Can you post a high res picture? I'll take a look and send you a replacement if I see the shorting issue.
by kwagyeman
Sat Sep 23, 2017 5:55 pm
Forum: Technical Discussion
Topic: Bricked M7 - Nop OpenMV cams found!
Replies: 2
Views: 1929

Re: Bricked M7 - Nop OpenMV cams found!

Hi, the camera is unbrickable. So, we just need to work out what went wrong. To reset everything using DFU will work. First what operating system do you have? Second... Close OpenMV IDE. Put your OpenMV Cam into DFU mode. Then reopen OpenMV IDE. Click connect and OpenMV IDE will ask you if your Cam ...
by kwagyeman
Sat Sep 23, 2017 9:40 am
Forum: Technical Discussion
Topic: dc motor, wifi
Replies: 4
Views: 2012

Re: dc motor, wifi

Okay, so you just need the OpenMV Cam to capture a picture? And, how will it send the image to the Photon Chip?
by kwagyeman
Sat Sep 23, 2017 12:35 am
Forum: Project Discussion
Topic: Linear Regression Line Following
Replies: 20
Views: 10920

Re: Linear Regression Line Following

I've been thinking about this issue since I need to solve it for the sparkfun race coming up in october. My basic idea is to do the following: img = sensor.snapshot() lines = img.find_lines <remove low magnitude lines and horizontal lines> img.xor(img) # zero image <draw lines on image - the image w...
by kwagyeman
Fri Sep 22, 2017 5:01 pm
Forum: Project Discussion
Topic: change in value of pixel after binarization
Replies: 1
Views: 1971

Re: change in value of pixel after binarization

There's no method to do run length compression in the python interface level. You can either code the algorithm in C and it will run extremely fast or you can code it in Python and it will run very slow.

If you want help coding it in C I can provide the steps.
by kwagyeman
Thu Sep 21, 2017 7:33 pm
Forum: Technical Discussion
Topic: dc motor, wifi
Replies: 4
Views: 2012

Re: dc motor, wifi

You need an external electronic board to drive the motors. What board do you plan to buy? As for taking pics via WiFi. I recommend using an ESP8266 to make an I/o pin go high to trigger frame capture.
by kwagyeman
Thu Sep 21, 2017 1:10 am
Forum: Technical Discussion
Topic: Where to put main code?
Replies: 2
Views: 1648

Re: Where to put main code?

Hi, please use the IDE, under tools, and click "save script to OpenMV Cam", afterwards, click the "reset openmv cam" button also under tools. Your openmv cam should then start running the script.
by kwagyeman
Thu Sep 21, 2017 1:08 am
Forum: Technical Discussion
Topic: Uart Help
Replies: 4
Views: 3300

Re: Uart Help

Add timeout_char=1000 to the init call please.

For really good uart examples, see the Pixy Emulation script that uses the UART.

UART docs: http://docs.openmv.io/library/pyb.UART.html
by kwagyeman
Wed Sep 20, 2017 4:19 pm
Forum: Technical Discussion
Topic: Reading SD card from computer
Replies: 2
Views: 1695

Re: Reading SD card from computer

In OpenMV IDE under tools there's a reset OpenMV Cam button. Click that and it will have the same affect of disconnecting and reconnecting the camera. All OSes don't expect flash drives to create files... So, there's really nothing we can do to get the OS to rescan the flash drive. I've looked into ...
by kwagyeman
Wed Sep 20, 2017 3:54 pm
Forum: Technical Discussion
Topic: AprilTag Pose estimation
Replies: 1
Views: 1327

Re: AprilTag Pose estimation

Please see the MavLink Apriltag example script. This demonstrates how to convert the output value to a distance that's basically correct.

Also, please understand that the range value is much more precise the closer the tag is and falls in precision as the tag moves away.
by kwagyeman
Wed Sep 20, 2017 11:35 am
Forum: Project Discussion
Topic: My camera image has a weird curvature
Replies: 6
Views: 4581

Re: My camera image has a weird curvature

Okay, you can use VGA then. But, turn on the set_windowing command. This will allow you to select a sub resolution of VGA. In particular, you can do 640x240 or something like that. This will give you the horizontal res you need.

For an example see the bar code detection script.
by kwagyeman
Wed Sep 20, 2017 12:43 am
Forum: General Topics
Topic: Servo Shield
Replies: 16
Views: 13083

Re: Servo Shield

Yes!
by kwagyeman
Mon Sep 18, 2017 11:29 am
Forum: Technical Discussion
Topic: MemoryError: Memory allocation failed, allocating 1024 bytes
Replies: 4
Views: 3270

Re: MemoryError: Memory allocation failed, allocating 1024 bytes

Please see the M7 product page for the RAM under the specs tab.

Also, you can pass a parameter to get histogram to reduce the number of bins if you are still having issues. This will reduce the RAM requirement.
by kwagyeman
Mon Sep 18, 2017 11:27 am
Forum: Technical Discussion
Topic: MemoryError: Memory allocation failed, allocating 1024 bytes
Replies: 4
Views: 3270

Re: MemoryError: Memory allocation failed, allocating 1024 bytes

Hi, this is an error with the MicroPython Heap. Get histogram returns a rather large array of numbers which you throw away. But, those numbers have to be put on the heap in a linear array of floats. There are 3 arrays of 1024B each. So, it can be hard to fit them all sometimes once the heap gets fra...
by kwagyeman
Fri Sep 15, 2017 9:43 pm
Forum: Project Discussion
Topic: My camera image has a weird curvature
Replies: 6
Views: 4581

Re: My camera image has a weird curvature

We don't have enough RAM for doing lens correction on VGA images. Please reduce the resolution.

Lens correction requires us to allocate a temporary image. At VGA we can't do it any more.

What's your application?
by kwagyeman
Fri Sep 15, 2017 11:24 am
Forum: Project Discussion
Topic: Feasibility of using OpenMV in a bean sorter
Replies: 11
Views: 5451

Re: Feasibility of using OpenMV in a bean sorter

The OpenMV Cam is excellent at color tracking. Expect frame rates above 60 FPS. As for doing this, we have a built in get histogram and get statistics methods which will output all the color info you like and more. We also have a find blobs method to find the bean given a set of color thresholds. So...
by kwagyeman
Thu Sep 14, 2017 4:21 pm
Forum: Technical Discussion
Topic: HVGA Distortion
Replies: 2
Views: 1488

Re: HVGA Distortion

That's a broken res. When I added all the possible settings I didn't know our code can't handle flexible resolutions for above QVGA.

It will be removed the next firmware release. If you check the GitHub history you can see all removed resolutions.
by kwagyeman
Thu Sep 14, 2017 11:29 am
Forum: Technical Discussion
Topic: Newly bought Wifi Shield hanged
Replies: 12
Views: 4684

Re: Newly bought Wifi Shield hanged

The poster emailed us about this. They found that the spi pins were shorted. MacroFab manually solders these shields... So, sometimes they short the ground plane to the pins. The next batch will not have headers soldered on.
by kwagyeman
Thu Sep 14, 2017 2:15 am
Forum: General Topics
Topic: Can we add data in April tag instead of ID?
Replies: 3
Views: 2016

Re: Can we add data in April tag instead of ID?

Your at the cameras limit. Either close by QR codes or far away AprilTags. If you want the flexibility of QR codes then you need to limit the distance. Even stronger processors won't get you past this issue much. A desktop CPU is still limited in QR code resolving distance since the spec was not des...
by kwagyeman
Thu Sep 14, 2017 1:36 am
Forum: General Topics
Topic: Can we add data in April tag instead of ID?
Replies: 3
Views: 2016

Re: Can we add data in April tag instead of ID?

No, tag's are limited to a numeric range. The largest family has about 2K+ values. The low number of numeric values is what makes apriltags visible form a distance.

Does your application require that you process any string of any length?
by kwagyeman
Thu Sep 14, 2017 1:09 am
Forum: General Topics
Topic: uart.write doesn't write the entire buffer
Replies: 2
Views: 2007

Re: uart.write doesn't write the entire buffer

Hi, please add:

Code: Select all

timeout_char=1000
To the uart init call. The default call stops writing bytes after a timeout. Not sure why MP designed it this way...
by kwagyeman
Thu Sep 14, 2017 1:08 am
Forum: General Topics
Topic: Can you guys please upload complete Tutorial
Replies: 1
Views: 1636

Re: Can you guys please upload complete Tutorial

Hi, I will work on that over the holidays during my free time while traveling. Previously, the website was fixed up last year.
by kwagyeman
Wed Sep 13, 2017 9:12 pm
Forum: Technical Discussion
Topic: M7 Bricked
Replies: 10
Views: 4986

Re: M7 Bricked

Okay, send me an email for a replacement.
by kwagyeman
Wed Sep 13, 2017 12:02 pm
Forum: Technical Discussion
Topic: Newly bought Wifi Shield hanged
Replies: 12
Views: 4684

Re: Newly bought Wifi Shield hanged

Ibrahim any debug suggestions on this?
by kwagyeman
Wed Sep 13, 2017 12:01 pm
Forum: General Topics
Topic: Presence detection
Replies: 13
Views: 10831

Re: Presence detection

Hi Marcus, please start a new thread with your particular question with a lot of details about what you want to do.

Go to advanced search