Search found 2722 matches

by kwagyeman
Sat Apr 15, 2017 4:58 pm
Forum: Technical Discussion
Topic: How can uart1 of M7 OPENMV work?
Replies: 8
Views: 2649

Re: How can uart1 of M7 OPENMV work?

The microptyhon firmware code probably just needs to be updated so UART one connects to the right pins on the M7.

Ibrahim, can you fix this?
by kwagyeman
Thu Apr 13, 2017 7:03 pm
Forum: Project Discussion
Topic: Optical Laserscanner
Replies: 10
Views: 6346

Re: Optical Laserscanner

Wait for the OpenMV Cam M7. It has enough RAM to do this. We're shipping a lot this week. Otherwise you'll have to lower the resolution on the M4. Email me your order number and I'll bump your priority for shipping. Squeaky wheel gets the oil, etc.
by kwagyeman
Wed Apr 12, 2017 10:36 am
Forum: Technical Discussion
Topic: AP Mode With WiFi Shield?
Replies: 34
Views: 12485

Re: AP Mode With WiFi Shield?

So, whatever is in the editor will be sent to the device when you click the run button in the terminal. The terminal doesn't locally echo. So, the microcontroller needs to be running a repl terminal over the serial connection. To demonstrate this just try to connect the OpenMV Cam's virtual serial p...
by kwagyeman
Wed Apr 12, 2017 10:19 am
Forum: Technical Discussion
Topic: AP Mode With WiFi Shield?
Replies: 34
Views: 12485

Re: AP Mode With WiFi Shield?

The run button executes whatever python script is being displayed in the editor. It does this by sending repl commands over the connection. For a good test try opening a serial port connection to the camera while the IDE is not connected. Note however... I've noticed a bug where the repl code drops ...
by kwagyeman
Wed Apr 12, 2017 10:17 am
Forum: Project Discussion
Topic: Optical Laserscanner
Replies: 10
Views: 6346

Re: Optical Laserscanner

Hi, yes... So, you can turn auto gain and auto white balance on and off. This will allow you to prevent the gain from running or turn it back on again. See the color tracking scripts for what to do on this. The number of frames you wait determines the outcome. If you want to control the gain values ...
by kwagyeman
Tue Apr 11, 2017 11:44 pm
Forum: Technical Discussion
Topic: AP Mode With WiFi Shield?
Replies: 34
Views: 12485

Re: AP Mode With WiFi Shield?

That's basically what I've done...

Um, so, try the non AP script. That should work for Open Terminal definitely (the first script I posted). Just connect to the IP_address:8080 that the cam prints out.
by kwagyeman
Tue Apr 11, 2017 10:55 pm
Forum: Technical Discussion
Topic: AP Mode With WiFi Shield?
Replies: 34
Views: 12485

Re: AP Mode With WiFi Shield?

Note that you should connect with the IDE after the camera is up and running. The IDE connects like a TCP client.
by kwagyeman
Tue Apr 11, 2017 10:49 pm
Forum: Technical Discussion
Topic: AP Mode With WiFi Shield?
Replies: 34
Views: 12485

Re: AP Mode With WiFi Shield?

This script works for AP mode. Connect to 192.168.1.1:8080 with Open Terminal. Frame rate seems to be low.
by kwagyeman
Tue Apr 11, 2017 10:35 pm
Forum: Technical Discussion
Topic: AP Mode With WiFi Shield?
Replies: 34
Views: 12485

Re: AP Mode With WiFi Shield?

UDP stuff is broken.

Here's some code that works to stream images for TCP. Just connect to the IP address printed out and UDP port 8080 with Open Terminal in the IDE. Frame rate seems to be low, will have to look into that.

Will try AP mode next.
mjpeg_streamer_1.py
(1.55 KiB) Downloaded 67 times
by kwagyeman
Tue Apr 11, 2017 9:53 pm
Forum: Technical Discussion
Topic: AP Mode With WiFi Shield?
Replies: 34
Views: 12485

Re: AP Mode With WiFi Shield?

Let me test with a UDP connection really quick.
by kwagyeman
Tue Apr 11, 2017 10:07 am
Forum: General Topics
Topic: Hough circle
Replies: 6
Views: 2790

Re: Hough circle

by kwagyeman
Sun Apr 09, 2017 7:23 pm
Forum: Technical Discussion
Topic: AP Mode With WiFi Shield?
Replies: 34
Views: 12485

Re: AP Mode With WiFi Shield?

I'll have to debug OpenMV IDE with open terminal for this. Might be some stuff broken that I have to get working. Apologies.
by kwagyeman
Sun Apr 09, 2017 7:22 pm
Forum: Technical Discussion
Topic: Python script to output MAVLink
Replies: 28
Views: 13119

Re: Python script to output MAVLink

Cool, let me know if you need anything.
by kwagyeman
Sun Apr 09, 2017 7:19 pm
Forum: Technical Discussion
Topic: Too many blobs in one
Replies: 6
Views: 1730

Re: Too many blobs in one

Mmm, not sure, but, from my own testing I know trying to handle SPI data via a CS interrupt callback doesn't really work. The CS line and clocked data starts too quickly. See the Arduino SPI example. I put a lot of notes together on this.
by kwagyeman
Sun Apr 09, 2017 5:15 pm
Forum: Technical Discussion
Topic: Too many blobs in one
Replies: 6
Views: 1730

Re: Too many blobs in one

The firmware that ships with the M4 is from last year. It got programmed once during production.
by kwagyeman
Sun Apr 09, 2017 4:13 pm
Forum: Project Discussion
Topic: Servo Shield
Replies: 3
Views: 1989

Re: Servo Shield

Mind explaining more about this thing? Maybe we can build it. We've got a little more cash in our coffers now and we can afford to build a servo control shield if the price is not that high. Looks like you don't have enough power conditioning on the 5V line though. How do you power it? How do you ma...
by kwagyeman
Sun Apr 09, 2017 4:10 pm
Forum: Technical Discussion
Topic: Too many blobs in one
Replies: 6
Views: 1730

Re: Too many blobs in one

Please update your firmware because that behavior shouldn't happen with the newest code. Then set the "merge=True" flag for find_blobs. This will merge overlapping blobs. If you're still having issues increase the merge "margin=".
by kwagyeman
Sun Apr 09, 2017 4:09 pm
Forum: Technical Discussion
Topic: Python script to output MAVLink
Replies: 28
Views: 13119

Re: Python script to output MAVLink

Yes, but, optical flow would run at 10 FPS then which isn't what you want. Without AprilTags it can do about 30 FPS. As for enhancing the optical flow code, that's next on my list of things to do after porting data matrix bar code support. That said, I'm quite busy with other things right now and it...
by kwagyeman
Sun Apr 09, 2017 11:01 am
Forum: Technical Discussion
Topic: Python script to output MAVLink
Replies: 28
Views: 13119

Re: Python script to output MAVLink

Super! Can you submit a PR for your script changes to our code base?

https://github.com/openmv/openmv/blob/m ... _target.py
by kwagyeman
Sat Apr 08, 2017 4:45 pm
Forum: Project Discussion
Topic: OpenMV porting
Replies: 3
Views: 2256

Re: OpenMV porting

Cool, it's... interesting that you thought so much of our code to use it over OpenCV. Anyway, if you look at some of the files in our library you'll notice features like AprilTags, etc. are GNU licensed. Since we release the source for everything it's not an issue for us. But, keep in mind different...
by kwagyeman
Sat Apr 08, 2017 12:45 pm
Forum: Technical Discussion
Topic: Using machine.I2C
Replies: 6
Views: 2361

Re: Using machine.I2C

Do you have pull ups on the I/O pins?

Anyway, Ibrahim, can you take a look at this?
by kwagyeman
Sat Apr 08, 2017 12:43 pm
Forum: Technical Discussion
Topic: How to capture multiple rectangles and get their color?
Replies: 3
Views: 1747

Re: How to capture multiple rectangles and get their color?

Hi, use the median which is not affected by outliers (white paper) from the edges of the color. The mean will be influenced by how much white paper is seen in a bounding box. As for trying to detect between two similar colors... you're kind SOL there. You need another method. Is there anything else ...
by kwagyeman
Sat Apr 08, 2017 12:39 pm
Forum: Technical Discussion
Topic: Python script to output MAVLink
Replies: 28
Views: 13119

Re: Python script to output MAVLink

So I got the protocol message format right?
by kwagyeman
Sat Apr 08, 2017 12:35 pm
Forum: General Topics
Topic: Hough circle
Replies: 6
Views: 2790

Re: Hough circle

Hi, I haven't gotten around to porting that for the OpenMV Cam M7. So... you can write the code in C if you 'd like or use another method. Hough circle finding is the best method for finding this however. Template matching with a circle outline could work but it will not handle changes of scale.
by kwagyeman
Fri Apr 07, 2017 10:58 pm
Forum: Technical Discussion
Topic: How to capture multiple rectangles and get their color?
Replies: 3
Views: 1747

Re: How to capture multiple rectangles and get their color?

Hi, use find_blobs searching for the color white with invert on. This will find the location of all colors not white. Use the threshold color editor to help you do this. You can call find_blobs on an RGB image. After you have the rects you can use all the stats functions to determine the color mean/...
by kwagyeman
Thu Apr 06, 2017 10:14 am
Forum: Technical Discussion
Topic: run cascade file openmv3 crash
Replies: 8
Views: 3920

Re: run cascade file openmv3 crash

Ibrahim can debug this.
by kwagyeman
Thu Apr 06, 2017 10:13 am
Forum: Project Discussion
Topic: Optical Laserscanner
Replies: 10
Views: 6346

Re: Optical Laserscanner

I'm still not quite sure what you are doing so I can't say if C code can help. I don't think there's a bottle neck with the python code.
by kwagyeman
Thu Apr 06, 2017 10:12 am
Forum: Project Discussion
Topic: Optical Laserscanner
Replies: 10
Views: 6346

Re: Optical Laserscanner

This code scans one row in the image per frame. So, it will take a while to scan the image. If you want it to go faster then you need to check more than 1 row per frame: import pyb, sensor, image, math sensor.reset() sensor.set_framesize(sensor.QVGA) sensor.set_pixformat(sensor.GRAYSCALE) sensor.ski...
by kwagyeman
Wed Apr 05, 2017 10:53 am
Forum: Project Discussion
Topic: Optical Laserscanner
Replies: 10
Views: 6346

Re: Optical Laserscanner

Hi, I though you only need to call find_blobs on every column in the image between some min row and max row. Isn't that the case? Not on every pixel. It shouldn't take 5 seconds. Can you post the code for find_blobs. Let me take a look at it and see what can be done. Anyway, if you want to go faster...
by kwagyeman
Mon Apr 03, 2017 10:37 pm
Forum: General Topics
Topic: Can openMV has the capacity to achieve this project?
Replies: 6
Views: 2648

Re: Can openMV has the capacity to achieve this project?

Rex, Please stop reporting posts and putting your reply in the report. This is not how you use the forum. You've reported posts 3 times now. Please stop it. Click the post reply button on the bottom of the forum page to post a reply. ... You're previous reply had this message: thanks, i am not going...
by kwagyeman
Mon Apr 03, 2017 10:23 am
Forum: Project Discussion
Topic: Line Following - Blob Spotting/Decoding robot
Replies: 42
Views: 13019

Re: Line Following - Blob Spotting/Decoding robot

OMG that is fast.

Like a druken sailor. You're definitely pushing the PID loop out of it's control zone. But, hey, it still works. If you went slower I bet you could lock perfectly on the line.
by kwagyeman
Mon Apr 03, 2017 10:18 am
Forum: Project Discussion
Topic: Optical Laserscanner
Replies: 10
Views: 6346

Re: Optical Laserscanner

Hi, just use the "roi" feature of find_blobs. Basically, compute a giant list of ROIs for every area you think you want to find pixels in the image and then only call find_blobs for those rois. Each roi (region-of-interest) should be (x, y, w, h) -> (x, y, 1, h). Where x is incremented per ROI and y...
by kwagyeman
Sun Apr 02, 2017 2:22 pm
Forum: General Topics
Topic: Can openMV has the capacity to achieve this project?
Replies: 6
Views: 2648

Re: Can openMV has the capacity to achieve this project?

Sorry for not getting back to this post. If this barcode is of your own design I would scrap it. The reason I say this is because you're not bringing in any of the techniques used by 2D barcodes to be "scannable" by a camera. In particular, all 2D barcodes have a ton of error correcting codes to be ...
by kwagyeman
Sun Apr 02, 2017 2:10 pm
Forum: Technical Discussion
Topic: esp32 as wifi&ble shield
Replies: 3
Views: 1679

Re: esp32 as wifi&ble shield

Also, this:

https://blog.classycode.com/esp32-float ... 9f6f567a69

EPS32 FPU performance is kinda low... which would make doing AprilTags a no-go.
by kwagyeman
Sun Apr 02, 2017 1:59 pm
Forum: Technical Discussion
Topic: esp32 as wifi&ble shield
Replies: 3
Views: 1679

Re: esp32 as wifi&ble shield

Hi, It looks like the new ESP32-WROOM-32 modules have FCC certs. We could design around those. However, there's not really a point. The max SPI link speed on the STM32 is limited to 48 MHz. So, you won't see any speed boost for sending data. As for the price. Yeah, its definitely lower and will prob...
by kwagyeman
Fri Mar 31, 2017 10:32 am
Forum: Technical Discussion
Topic: openmv-cascade to be use
Replies: 9
Views: 4240

Re: openmv-cascade to be use

Ibrahim will have to look at this. Um, did you see this thread?

viewtopic.php?f=6&t=223
by kwagyeman
Fri Mar 31, 2017 10:30 am
Forum: General Topics
Topic: Can openMV has the capacity to achieve this project?
Replies: 6
Views: 2648

Re: Can openMV has the capacity to achieve this project?

Yes, so if the holes are in a fixed location relative to the camera you can take a picture and just use the get_stats() method on an image to grab image stats for regions of interest where the holes should be. You just have to record the position of each region you want to look at. The get_stats() m...
by kwagyeman
Thu Mar 30, 2017 12:00 pm
Forum: Technical Discussion
Topic: Composite image?
Replies: 7
Views: 2939

Re: Composite image?

Then use the mjpeg saving code once you have the marked up image to save to disk.
by kwagyeman
Thu Mar 30, 2017 10:02 am
Forum: Technical Discussion
Topic: Composite image?
Replies: 7
Views: 2939

Re: Composite image?

I can't understand what you are asking. I understand there may be a language barrier issue but I need you to put a lot more effort into your questions so that I can answer them. Please try to write a clear explanation of what you want to do.
by kwagyeman
Wed Mar 29, 2017 11:30 am
Forum: Technical Discussion
Topic: Composite image?
Replies: 7
Views: 2939

Re: Composite image?

See the mjpeg example script in the IDE. You then just need to take the MJPEG recording code and add that to the output of the find_line function drawn on the image.
by kwagyeman
Mon Mar 27, 2017 6:43 pm
Forum: Technical Discussion
Topic: Which pins can't be used when using the Wifi board?
Replies: 30
Views: 9559

Re: Which pins can't be used when using the Wifi board?

Wait, I think you need to swap the TX and RX pins. The TXO pin of the Arduino is connected to the TX pin of the OpenMV Cam. I think you want the TX pin ont he OpenMV Cam connected to the RXI pin on the Arduino.
by kwagyeman
Mon Mar 27, 2017 6:42 pm
Forum: Technical Discussion
Topic: Which pins can't be used when using the Wifi board?
Replies: 30
Views: 9559

Re: Which pins can't be used when using the Wifi board?

Um, so is the image flipped? This mounts upside down?
by kwagyeman
Mon Mar 27, 2017 3:45 pm
Forum: Technical Discussion
Topic: Which pins can't be used when using the Wifi board?
Replies: 30
Views: 9559

Re: Which pins can't be used when using the Wifi board?

I'm confused at the pinout of the shield. It looks like you're connecting to pins used by the SPI bus for data transfer. Please double check the pin layout. http://docs.openmv.io/_images/pinout.png. It looks like you're connecting to UART 1 which is in use by the SPI bus. You want UART 3.
by kwagyeman
Mon Mar 27, 2017 11:01 am
Forum: Technical Discussion
Topic: Which pins can't be used when using the Wifi board?
Replies: 30
Views: 9559

Re: Which pins can't be used when using the Wifi board?

P4/P5 are the UART/I2C pins.
by kwagyeman
Mon Mar 27, 2017 1:18 am
Forum: Technical Discussion
Topic: Which pins can't be used when using the Wifi board?
Replies: 30
Views: 9559

Re: Which pins can't be used when using the Wifi board?

The OpenMV Cam outputs 3.3v and can handle 5v. So, use the 5v Arduino.
by kwagyeman
Sun Mar 26, 2017 1:26 pm
Forum: Technical Discussion
Topic: Which pins can't be used when using the Wifi board?
Replies: 30
Views: 9559

Re: Which pins can't be used when using the Wifi board?

I'd use some serial to wireless solution that has a high baud rate. Like, you'll want to drive the uart on the OpenMV Cam at 2-3 megabuad. So, maybe the EPS32 or a bluetooth wireless chip. Edit: Upon examination on the market for high speed wireless stuff everything is slow except our wireless shiel...
by kwagyeman
Sat Mar 25, 2017 1:04 pm
Forum: Technical Discussion
Topic: Which pins can't be used when using the Wifi board?
Replies: 30
Views: 9559

Re: Which pins can't be used when using the Wifi board?

Hi here's a version of the firmware for the M7 camera which has the image streaming feature. Just do: print(img.compressed_for_ide(), end='') # works if you are connecting to the camera via usb or VCP to an "Open Terminal" window. or uart.write(img.compressed_for_ide()) spi.write(img.compressed_for_...
by kwagyeman
Fri Mar 24, 2017 5:33 pm
Forum: Technical Discussion
Topic: Which pins can't be used when using the Wifi board?
Replies: 30
Views: 9559

Re: Which pins can't be used when using the Wifi board?

I'll add video support to the firmware in a bit. It's a very easy add. I just haven't done it.

Um, I'll do that tomorrow morning.

Video support over blue/zigbee, etc.
by kwagyeman
Fri Mar 24, 2017 3:58 pm
Forum: Technical Discussion
Topic: Which pins can't be used when using the Wifi board?
Replies: 30
Views: 9559

Re: Which pins can't be used when using the Wifi board?

So, here's the image: http://cdn.shopify.com/s/files/1/0803/9211/files/wifi-pinout.png?14453598831057263430 It looks like more or less all pins are in use. You can't just multiplex these pins without some issues for the wifi. I'd just send serial data to an arduino to control the motors. Not ideal b...

Go to advanced search