Search found 1767 matches

by kwagyeman
Sun May 27, 2018 1:35 am
Forum: Project Discussion
Topic: Detect 1 of 3 colors from 3 input pins, raise 1 of 3 output pins if observed
Replies: 10
Views: 37

Re: Detect 1 of 3 colors from 3 input pins, raise 1 of 3 output pins if observed

Here's how all this stuff works: There's a frame buffer of about 350+ KB. That frame buffer stores the image that gets captured from a stream of images from the camera when you call snapshot(). Additionally, whatever space is left over is used for a fast frame_buffer stack we use to hold data struct...
by kwagyeman
Sun May 27, 2018 1:27 am
Forum: Project Discussion
Topic: Detect 1 of 3 colors from 3 input pins, raise 1 of 3 output pins if observed
Replies: 10
Views: 37

Re: Detect 1 of 3 colors from 3 input pins, raise 1 of 3 output pins if observed

Hi, do the look code like this: if lookRed: # if look for RED PIN HIGH clock.tick() img = sensor.snapshot() blob_list = img.find_blobs(thresholdRed, x_stride=10, y_stride=10, pixels_threshold=20, area_threshold=10) red_bool = 0 green_bool = 0 blue_bool = 0 for b in blob_list: if b.code() & 1: # red ...
by kwagyeman
Sun May 27, 2018 1:01 am
Forum: Project Discussion
Topic: Detect 1 of 3 colors from 3 input pins, raise 1 of 3 output pins if observed
Replies: 10
Views: 37

Re: Detect 1 of 3 colors from 3 input pins, raise 1 of 3 output pins if observed

Hi, the color is based on what auto white balance does to the image. When you point the camera at a colored object it changes the color of the image to make things look gray. If you don't want this to happen then you need to turn auto white balance off at the very start of the script. In most script...
by kwagyeman
Sat May 26, 2018 6:02 pm
Forum: Project Discussion
Topic: Detect 1 of 3 colors from 3 input pins, raise 1 of 3 output pins if observed
Replies: 10
Views: 37

Re: Detect 1 of 3 colors from 3 input pins, raise 1 of 3 output pins if observed

Hi, they should, that said, it's hard to follow your code since you have timeouts and whatnot added in. Could you pair it down to just the error case?

I'm out right now and don't have the ability to test it.
by kwagyeman
Sat May 26, 2018 12:01 pm
Forum: General Topics
Topic: complie source code
Replies: 2
Views: 18

Re: complie source code

Sure... But, you need to adjust a lot of linker script options and whatnot. The missing 128kb of RAM is going to cause you a lot of pain on the vision algorithm side.
by kwagyeman
Sat May 26, 2018 11:58 am
Forum: Project Discussion
Topic: Detect 1 of 3 colors from 3 input pins, raise 1 of 3 output pins if observed
Replies: 10
Views: 37

Re: Detect 1 of 3 colors from 3 input pins, raise 1 of 3 output pins if observed

Hi, sensor.snapshot() is what updates the display. It flushes the previous image and grabs a new one. If not called the display doesn't update. You can use sensor.flush() to flush the frame buffer at any time. Note that the IDE still has to grab said flushed frame buffer over USB via polling. So, th...
by kwagyeman
Sat May 26, 2018 12:48 am
Forum: Project Discussion
Topic: Detect 1 of 3 colors from 3 input pins, raise 1 of 3 output pins if observed
Replies: 10
Views: 37

Re: Detect 1 of 3 colors from 3 input pins, raise 1 of 3 output pins if observed

Please us the threshold editor under Tools->Machine Vision to get the right color bounds for tracking. Alternatively, if you highlight the 6 value tuple in the script the IDE will show you an option to edit it via the right click menu. # Multi Color Blob Tracking Example # # This example shows off m...
by kwagyeman
Fri May 25, 2018 11:46 pm
Forum: Project Discussion
Topic: Creating threshold for color blob tracking.
Replies: 9
Views: 2171

Re: Creating threshold for color blob tracking.

Verbatim example code: # Single Color Grayscale Blob Tracking Example # # This example shows off single color grayscale tracking using the OpenMV Cam. import sensor, image, time # Color Tracking Thresholds (Grayscale Min, Grayscale Max) # The below grayscale threshold is set to only find extremely b...
by kwagyeman
Fri May 25, 2018 11:40 pm
Forum: Technical Discussion
Topic: Using OpenMV camera with normal python 3 ?
Replies: 1
Views: 50

Re: Using OpenMV camera with normal python 3 ?

We're a micropython board. So, all the tools here work:

https://github.com/micropython/micropyt ... pyboard.py
by kwagyeman
Fri May 25, 2018 11:39 pm
Forum: General Topics
Topic: capture speed
Replies: 1
Views: 16

Re: capture speed

Hi, see the examples -> Sensor Control -> Manual Exposure Control
by kwagyeman
Fri May 25, 2018 11:36 pm
Forum: Technical Discussion
Topic: Issue with MK7 Camera
Replies: 6
Views: 57

Re: Issue with MK7 Camera

A current meter would verify this. That said, I'm unsure what can be done. It looks to be like the camera has been damaged.
by kwagyeman
Thu May 24, 2018 5:06 pm
Forum: Technical Discussion
Topic: ROI & AprilTags: Trying to improve distance
Replies: 1
Views: 15

Re: ROI & AprilTags: Trying to improve distance

Hi, our AprilTag performance is limited by the amount of memory we have. Even when you set the ROI to 160x120 the frame buffer still has to store the image which is large and takes space. If you'd like to do repeated calls then shrink the ROI more. A VGA res sized image uses up almost all memory any...
by kwagyeman
Thu May 24, 2018 3:55 pm
Forum: Technical Discussion
Topic: Issue with MK7 Camera
Replies: 6
Views: 57

Re: Issue with MK7 Camera

Hi, it might be broken. The core definitely should not be 100C. Can you give a summary of what you plugged into the system?
by kwagyeman
Thu May 24, 2018 2:12 pm
Forum: General Topics
Topic: Robotic Arm 6DOF arduino uno with OpenMV
Replies: 3
Views: 38

Re: Robotic Arm 6DOF arduino uno with OpenMV

Oh, the default Arduino library doesn't support I2C or SPI as a slave. As for the OpenMV Cam. It's just a giant pain to synchronize the devices if it's a slave since you generally want it processing images or something versus waiting for I2C. That said, I2C is possible as long as you have a protocol...
by kwagyeman
Thu May 24, 2018 1:42 pm
Forum: General Topics
Topic: White Pixel Count
Replies: 3
Views: 71

Re: White Pixel Count

Note find_blobs() expects a min blob size and area and will filter out white pixel outlier blobs. If you want all pixels then you need to tweak the parameters.
by kwagyeman
Thu May 24, 2018 1:30 am
Forum: General Topics
Topic: datamatrix reads
Replies: 1
Views: 12

Re: datamatrix reads

Hi, we use libdtmx for reading data matrixes as it was the only open source c library online for this. Anyway, while it works it's quite slow. The FPS will not be very high. That said, you can set the resolution very low for reading data matrixes and still see them to go much faster. As for off nadi...
by kwagyeman
Wed May 23, 2018 8:38 pm
Forum: General Topics
Topic: Robotic Arm 6DOF arduino uno with OpenMV
Replies: 3
Views: 38

Re: Robotic Arm 6DOF arduino uno with OpenMV

Hi, please just use async serial messages to communicate between the OpenMV Cam and an Arduino Mega. The Arduino cannot act as a SPI or I2C slave and the OpenMV Cam is not great at being an I2C or SPI slave. The easiest and most reliable way to hook things up is to have the OpenMV Cam and the Arduin...
by kwagyeman
Wed May 23, 2018 8:35 pm
Forum: General Topics
Topic: Post a picture over SSL
Replies: 5
Views: 46

Re: Post a picture over SSL

Okay, it's on the todo list. That said, we just did a firmware update 2 weeks ago and I'm still recovering from Maker Faire. I should be able to get up and fixing bus again this weekend ish...
by kwagyeman
Wed May 23, 2018 8:32 pm
Forum: Technical Discussion
Topic: OSError could not find the file
Replies: 5
Views: 49

Re: OSError could not find the file

Please zip your files up.
by kwagyeman
Wed May 23, 2018 12:36 pm
Forum: General Topics
Topic: Difference between OpenMV CAM M7 vs M4
Replies: 1
Views: 22

Re: Difference between OpenMV CAM M7 vs M4

Please see the image module in our documentation. Methods not available on the M4 are listed there. However, it basically comes down to a lot of the features. You can also compare the M4 and M7 product pages.
by kwagyeman
Wed May 23, 2018 2:00 am
Forum: General Topics
Topic: Post a picture over SSL
Replies: 5
Views: 46

Re: Post a picture over SSL

Ibrahim is looking into this. Given we use the WINC1500 I believe the USSL library cannot be used directly however. The module requires another way of operating. But, it does have SSL support.
by kwagyeman
Tue May 22, 2018 6:33 pm
Forum: Technical Discussion
Topic: OSError could not find the file
Replies: 5
Views: 49

Re: OSError could not find the file

Hi, can you upload the pgm stuff?
by kwagyeman
Mon May 21, 2018 11:58 pm
Forum: General Topics
Topic: Snapshot in OpenMV CAM M7
Replies: 1
Views: 36

Re: Snapshot in OpenMV CAM M7

You may only save images to the internal flash drive that are smaller than 96 KB... i.e. it's quite difficult. Please use an SD card.
by kwagyeman
Mon May 21, 2018 11:56 pm
Forum: General Topics
Topic: OpenCV Library
Replies: 6
Views: 300

Re: OpenCV Library

Brightness correction is available already by using morph() http://docs.openmv.io/library/omv.image ... mage.morph

Um, but, yes, I can add a method for brightness, contrast, and gamma correction. What would you like? Like, what kind of API for it?
by kwagyeman
Mon May 21, 2018 11:51 pm
Forum: General Topics
Topic: Post a picture over SSL
Replies: 5
Views: 46

Re: Post a picture over SSL

Mmm, we pull a lot of documentation from MicroPython in. Um, this module may not be enabled in the firmware. But, we have space for the feature on the M7. Can you post a bug report on the github? Here: https://github.com/openmv/openmv/issues If it's just an enable issue we should be able to fix this...
by kwagyeman
Mon May 21, 2018 11:48 pm
Forum: General Topics
Topic: I2C error with MPU6050
Replies: 3
Views: 56

Re: I2C error with MPU6050

The OpenMV Cam only outputs 3.3V. It has a 5V input however. It's I/O pins are 5V tolerant so you can't easily break things.
by kwagyeman
Mon May 21, 2018 11:37 pm
Forum: General Topics
Topic: Openmv does not work
Replies: 2
Views: 32

Re: Openmv does not work

Hi, that's a fatal error and it should not have made it out of the factory with that error. Can you verify it's getting enough power? I.e. no damage to the USB cable? If so, can you email us a receipt with info about where you bought the camera from?
by kwagyeman
Mon May 21, 2018 11:34 pm
Forum: Technical Discussion
Topic: Search part if a image
Replies: 2
Views: 36

Re: Search part if a image

Hi, find_line_segments is really slow yes, but, it uses the super accurate desktop code. Note that you wouldn't get better performance on a PI using OpenCV for find_line_segments, we use the same algorithm based on the LSD line segment detector. That said, I previously had a faster line segment dete...
by kwagyeman
Mon May 21, 2018 11:30 pm
Forum: Technical Discussion
Topic: Distance calculation
Replies: 2
Views: 35

Re: Distance calculation

If you use the AprilTags then you get the full 6 DOF pose of a tag - i.e. x/y/z translation and x/y/z orientation. Otherwise, you need to measure things by hand and work out the geometry. The camera is not a distance sensor, but, you can calculate the distance an object must be from the camera given...
by kwagyeman
Mon May 21, 2018 11:27 pm
Forum: Project Discussion
Topic: LCD shield out of stock
Replies: 3
Views: 25

Re: LCD shield out of stock

BTW - here's the shield: https://www.amazon.co.uk/Adafruit-Displ ... B00NAY3LFY

Just hook the right pins up to the right lines on the OpenMV Cam.
by kwagyeman
Mon May 21, 2018 11:26 pm
Forum: Project Discussion
Topic: LCD shield out of stock
Replies: 3
Views: 25

Re: LCD shield out of stock

Hi, they just started SMT work on the LCD shields and they are being completed right now. The factory sent over some video files of a few working. So, once they finish testing and building all 500 they will ship. The factory has already finished building 500 proto shields. Finally, they are working ...
by kwagyeman
Sat May 19, 2018 10:28 am
Forum: General Topics
Topic: OpenMV IDE 1.9.0 "stopping" issue
Replies: 15
Views: 153

Re: OpenMV IDE 1.9.0 "stopping" issue

Hi, Ibrahim is working on this issue and will release a patch firmware. We previously fixed this issue before a long time ago but it appears to have come back again when we updated MicroPython.
by kwagyeman
Fri May 18, 2018 12:53 pm
Forum: General Topics
Topic: Smaller Camera (mount and lens)
Replies: 2
Views: 38

Re: Smaller Camera (mount and lens)

If you want to go smaller go to AliExpress and look for m8 lenses or smaller. Note that you'll likely have to glue to the lens mount on the board for the smaller lens mount and lenses.
by kwagyeman
Fri May 18, 2018 10:52 am
Forum: General Topics
Topic: OpenMV IDE 1.9.0 "stopping" issue
Replies: 15
Views: 153

Re: OpenMV IDE 1.9.0 "stopping" issue

Hi, we just got a bug report of a pointer possibly not being checked in our list code from another user and this causing an issue. The problem is like in find blobs. The weird thing is... This issue would have been in the firmware for years now and yet the method appears to work still. Anyway, I'm a...
by kwagyeman
Fri May 18, 2018 12:56 am
Forum: General Topics
Topic: Saving a txt file
Replies: 1
Views: 30

Re: Saving a txt file

Hi, windows only rescans the file on USB plugin. If you make a new file windows will no find it because it doesn't expect the USB drive to create its own files.

There's no way to fix this except unplugging the camera. We cannot change windows/Mac/Linux driver behavior.
by kwagyeman
Fri May 18, 2018 12:53 am
Forum: General Topics
Topic: Problem related to image.match_descriptor
Replies: 4
Views: 62

Re: Problem related to image.match_descriptor

Yes, Ibrahim can get you an updated M4 firmware. We have to disable the FLIR driver though to do this which requires me to get invloved in the firmware. We are a little busy right now with Maker Faire so it will be a while.
by kwagyeman
Thu May 17, 2018 4:38 pm
Forum: General Topics
Topic: OpenMV IDE 1.9.0 says Firmware 2.8.0 out of date
Replies: 5
Views: 63

Re: OpenMV IDE 1.9.0 says Firmware 2.8.0 out of date

No, I put a lot of effort into making fixes for the M4 into the latest firmware. We just have a lot of work to do on the driver side to shrink things back down again. We were rushing to release the M7 firmware before Maker Fair Bay area and Ibrahim skipped this part. I can do a patch release for the...
by kwagyeman
Thu May 17, 2018 12:39 pm
Forum: General Topics
Topic: OpenMV IDE 1.9.0 "stopping" issue
Replies: 15
Views: 153

Re: OpenMV IDE 1.9.0 "stopping" issue

Great, can you share the script that's having issues?
by kwagyeman
Thu May 17, 2018 10:44 am
Forum: General Topics
Topic: OpenMV IDE 1.9.0 "stopping" issue
Replies: 15
Views: 153

Re: OpenMV IDE 1.9.0 "stopping" issue

Things should be rather solid on linux... I haven't tried on openSUSE however.

Can you create a bug for this on the openmv cam firmware page?

Also, can you share the firmware that causes the issue here? I'd like to test and see why.
by kwagyeman
Thu May 17, 2018 10:41 am
Forum: General Topics
Topic: Problem related to image.match_descriptor
Replies: 4
Views: 62

Re: Problem related to image.match_descriptor

I've asked Ibrahim to look at this.
by kwagyeman
Thu May 17, 2018 10:40 am
Forum: General Topics
Topic: How can we draw an Ellispe ?
Replies: 1
Views: 34

Re: How can we draw an Ellispe ?

I explicitly did not add this feature as I don't know the use case. It's not in the firmware... But, can easily be added if you modify the C code.

Question, what's the use case for needing to draw an ellipse?
by kwagyeman
Tue May 15, 2018 3:35 pm
Forum: General Topics
Topic: OpenMV IDE 1.9.0 says Firmware 2.8.0 out of date
Replies: 5
Views: 63

Re: OpenMV IDE 1.9.0 says Firmware 2.8.0 out of date

Ah, yeah, Ibrahim didn't update the M4 firmware in the latest drop. The IDE assumes there's a new firmware for all 3 boards. So, the M4 firmware is out of date... Um, please ignore the IDE for now. The only way to fix this is to release a new M4 firmware. (We didn't release one because new stuff doe...
by kwagyeman
Tue May 15, 2018 11:15 am
Forum: Technical Discussion
Topic: only one device connected to the AP(wifi shield)
Replies: 3
Views: 65

Re: only one device connected to the AP(wifi shield)

You'd need to re-write the program to support multiple threads feeding the video stream along with multiple TCP ports. I don't actually know how to do this.

Note that this is hard to do on a desktop PC too.
by kwagyeman
Tue May 15, 2018 2:05 am
Forum: General Topics
Topic: OpenMV IDE always crashing
Replies: 7
Views: 69

Re: OpenMV IDE always crashing

The install log is usually deleted on finish. I suspect the IDE installer binary was corrupted.
by kwagyeman
Tue May 15, 2018 1:25 am
Forum: Project Discussion
Topic: SPI implementation code with Ethernet board
Replies: 1
Views: 41

Re: SPI implementation code with Ethernet board

Hi,

I don't have example code for this. I heavily recommend to just attach another system that has better networking support to the OpenMV Cam and let that do the Ethernet part. Then, have the OpenMV Cam stream results to it via SPI or Async Serial.
by kwagyeman
Mon May 14, 2018 10:31 pm
Forum: Technical Discussion
Topic: Cannot Connect USB Device
Replies: 5
Views: 69

Re: Cannot Connect USB Device

Hi, please try it on a different PC. However, I fear the USB traces are damaged. This is usually the cause of failure.
by kwagyeman
Mon May 14, 2018 8:06 pm
Forum: Technical Discussion
Topic: Cannot Connect USB Device
Replies: 5
Views: 69

Re: Cannot Connect USB Device

Hi, please send OpenMV your receipt for a replacement.
by kwagyeman
Mon May 14, 2018 6:48 pm
Forum: Technical Discussion
Topic: Cannot Connect USB Device
Replies: 5
Views: 69

Re: Cannot Connect USB Device

The blue light blinking means the camera is running fine. The behavior you're seeing is consistent with a working camera. Um, mmm. So, power is obviously making it's way over the USB cable. Um, when you put it into DFU mode... Does any STM32 microelectronics device appear under the device manager? Y...
by kwagyeman
Mon May 14, 2018 3:38 pm
Forum: Technical Discussion
Topic: Stepper Motor Driver
Replies: 3
Views: 40

Re: Stepper Motor Driver

Hi, the product link doesn't go to anything.
by kwagyeman
Mon May 14, 2018 1:36 am
Forum: General Topics
Topic: OpenMV IDE always crashing
Replies: 7
Views: 69

Re: OpenMV IDE always crashing

Can you try an earlier version of the IDE? They are all available for download on GitHub.

Go to advanced search