Search found 1033 matches

by kwagyeman
Mon Sep 25, 2017 12:17 pm
Forum: General Topics
Topic: find_displacement()
Replies: 3
Views: 8

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

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

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: 10
Views: 41

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: 10
Views: 41

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

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

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

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

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: 10
Views: 41

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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: 10
Views: 41

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

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

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

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

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

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: 10
Views: 41

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

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.
by kwagyeman
Wed Sep 13, 2017 12:01 pm
Forum: Technical Discussion
Topic: QR Code Read
Replies: 2
Views: 22

Re: QR Code Read

Hi, you can use the telephoto lens to see farther which will give you a 4x zoom buy narrow the field of view by 4x. You can also run the QR code example demo program which does a 2x digital zoom. That said, QR codes aren't designed for this type of thing. If you want to add visual fiducials to objec...
by kwagyeman
Tue Sep 12, 2017 12:43 pm
Forum: Technical Discussion
Topic: M7 Bricked
Replies: 10
Views: 62

Re: M7 Bricked

Mmm, okay, can you try to find a Windows PC and run the DFU bootloader on that? The USB flash drive failing to appear means that the firmware image is basically dead. However, the camera should be unbrickable with DFU. I'm thinking there may be a problem with pydfu on Mac.
by kwagyeman
Tue Sep 12, 2017 1:37 am
Forum: Technical Discussion
Topic: M7 Bricked
Replies: 10
Views: 62

Re: M7 Bricked

DFU takes 5 minutes.

Is this a new OpenMV Cam M7? Also, can you check what the error log.txt file on the camera says? Does the uPy flash drive show up when you connect it to the PC?
by kwagyeman
Tue Sep 12, 2017 1:05 am
Forum: Technical Discussion
Topic: M7 Bricked
Replies: 10
Views: 62

Re: M7 Bricked

Oh, the white LED flashing is a hardware error. Um, can you try loading the DFU image instead of the bin image?

The openmv.dfu file? Note that you need to have all the dependencies installed for the pydfu.py script to run on your Mac.
by kwagyeman
Mon Sep 11, 2017 11:13 pm
Forum: Technical Discussion
Topic: M7 Bricked
Replies: 10
Views: 62

Re: M7 Bricked

What color does the LED flash? Also, please remove any USD that's inserted when updating it. Let me know, thanks.
by kwagyeman
Fri Sep 08, 2017 11:15 pm
Forum: Technical Discussion
Topic: Lines Detected Change on successive images
Replies: 39
Views: 690

Re: Lines Detected Change on successive images

Yeah, just write the frames to the SD card, then read them back and use the blend method to blend them together. It would be optimal if snapshot could blend a frame while capturing it... this is possible but not implemented currently. You can then call find_line_segments on the blended data. Please ...
by kwagyeman
Tue Sep 05, 2017 9:37 pm
Forum: Technical Discussion
Topic: Can't Connect M& Open MV Cam(STM32F765)
Replies: 18
Views: 241

Re: Can't Connect M& Open MV Cam(STM32F765)

Glad you got it working. Let me know if you need anything else. :)
by kwagyeman
Mon Sep 04, 2017 10:37 pm
Forum: Technical Discussion
Topic: Lines Detected Change on successive images
Replies: 39
Views: 690

Re: Lines Detected Change on successive images

Yeah, it works exactly like that: http://docs.openmv.io/library/omv.image.html#class-line-line-object And yes, there are more lines than you think now because it does a bunch of small segments when not joining anything. ... Note that magnitude is the strength of the line quality. The lower the more ...
by kwagyeman
Mon Sep 04, 2017 2:19 pm
Forum: Technical Discussion
Topic: Can't Connect M& Open MV Cam(STM32F765)
Replies: 18
Views: 241

Re: Can't Connect M& Open MV Cam(STM32F765)

Hi, I think we need to solve why OpenMV IDE isn't connecting to your OpenMV Cam first. From the blue LED blinking on the Cam this means that it's fine. So, the question is... why doesn't the "connect" button on OpenMV IDE find the OpenMV Cam. Can you try OpenMV IDE on another computer? Also, do you ...
by kwagyeman
Mon Sep 04, 2017 1:40 am
Forum: Project Discussion
Topic: Load image from flash memory
Replies: 3
Views: 106

Re: Load image from flash memory

Okay, just use a BMP file or PPM/PGM file. Sometimes BMP might not work. However, PGM and PPM should always work. If you have a non-working BMP file please send it to me and I can figure out why.
by kwagyeman
Sun Sep 03, 2017 11:02 pm
Forum: Technical Discussion
Topic: Lines Detected Change on successive images
Replies: 39
Views: 690

Re: Lines Detected Change on successive images

Okay, here's my final result along with a test script. It runs at 3 FPS at 160x120. 8 FPS at 80x60. It's still usable at 80x60. Let me know if this is useful to you. Some other folks wanted this algorithm to be more stable... so, I'm thinking of just changing to this code. I have normal find lines f...
by kwagyeman
Sun Sep 03, 2017 9:39 pm
Forum: Technical Discussion
Topic: Lines Detected Change on successive images
Replies: 39
Views: 690

Re: Lines Detected Change on successive images

Mmm, changing that only improved FPS by 1. I see that this isn't the problem... but, how it sets up it's data structures (lots of poorly structured inner loops). I won't be able to get it to go faster without redoing a lot at the algorithmic level. Question, for find line segments is precision more ...
by kwagyeman
Sun Sep 03, 2017 9:10 pm
Forum: Technical Discussion
Topic: Lines Detected Change on successive images
Replies: 39
Views: 690

Re: Lines Detected Change on successive images

Okay, the code is so slow because it uses sin/cos/atan2 in a loop that's called a lot. So, I'll just use lookup tables for these values and it should be really fast...
by kwagyeman
Sun Sep 03, 2017 8:40 pm
Forum: Technical Discussion
Topic: Lines Detected Change on successive images
Replies: 39
Views: 690

Re: Lines Detected Change on successive images

Here's a demo with the better line segment detector. The same line segment detector script released with OpenMV IDE will work to run the code. It has much better segment detection performance... but, no parameters. So, all the stuff in the find_line_segments call isn't needed. I'll see what I can do...
by kwagyeman
Sun Sep 03, 2017 8:34 pm
Forum: Technical Discussion
Topic: Exposure and gain settings on M7 camera
Replies: 1
Views: 65

Re: Exposure and gain settings on M7 camera

Hi, being able to play with exposure settings isn't really implemented. We just give you low level register control. That said, I can provide a document which will describe how to program the low level camera registers using sensor.__write_reg(). Email me for the document. [email protected]... As for senso...
by kwagyeman
Sun Sep 03, 2017 3:56 pm
Forum: Technical Discussion
Topic: Lines Detected Change on successive images
Replies: 39
Views: 690

Re: Lines Detected Change on successive images

Okay, I got it kinda working. It generates a very stable output but runs at 2 FPS @ 160x120. 8 FPS at 80x60. Code is crashing right now though if the input shifts around too much. Have to trace where there's a memory violation bug (this is always the case with porting desktop libs which use the stac...

Go to advanced search