Search found 2730 matches

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

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

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

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

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

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

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

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

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...
by kwagyeman
Fri Mar 24, 2017 1:54 pm
Forum: Technical Discussion
Topic: openmv can be achieve the car lane line detection?
Replies: 4
Views: 2006

Re: openmv can be achieve the car lane line detection?

Please see the link above. zlite did this code already.
by kwagyeman
Thu Mar 23, 2017 2:31 pm
Forum: Technical Discussion
Topic: openmv can be achieve the car lane line detection?
Replies: 4
Views: 2006

Re: openmv can be achieve the car lane line detection?

Maybe this thread? http://forums.openmv.io/viewtopic.php?t=120#p1308 There are two ways to do this. 1: By using color tracking and following a line. I designed a lot of the stuff the OpenMV Cam in mind and optimized it for this. 2: By using the line detection feature to find lines. The code for this...
by kwagyeman
Thu Mar 23, 2017 11:12 am
Forum: General Topics
Topic: How to install openmv-ide to raspberry pi for raspbian OS
Replies: 6
Views: 3030

Re: How to install openmv-ide to raspberry pi for raspbian OS

Qt doesn't provide native binaries for the PI. You'd have to compile their whole library of code and then the IDE on the PI. This would like take on the order of 3-4 days of PI compile time. If there's enough demand for this I'll put the work in. But, so far you've been the only person asking. Anywa...
by kwagyeman
Wed Mar 22, 2017 1:04 pm
Forum: Technical Discussion
Topic: Python script to output MAVLink
Replies: 28
Views: 13161

Re: Python script to output MAVLink

I don't have a PixHawk to test with so, I don't know if the scripts work. The optical flow one I think needs some work. I don't really trust the find_displacement function. Need to work on that code. The apriltag one should work great however assuming I got the MAVLink protocol right.
by kwagyeman
Tue Mar 21, 2017 8:26 pm
Forum: Technical Discussion
Topic: Python script to output MAVLink
Replies: 28
Views: 13161

Re: Python script to output MAVLink

Just the M7 for the AprilTags one.

Did you order the OpenMV Cam M7? If so, what name is your order under? I have a few left from the initial 40 I can ship early. We're still about 2 weeks out before the first batch of the new production run will be ready.
by kwagyeman
Tue Mar 21, 2017 7:18 pm
Forum: Technical Discussion
Topic: Python script to output MAVLink
Replies: 28
Views: 13161

Re: Python script to output MAVLink

Boom: https://github.com/kwagyeman/openmv/blob/mavlink/usr/examples/18-MAVLink/mavlink_apriltags_landing_target.py https://github.com/kwagyeman/openmv/blob/mavlink/usr/examples/18-MAVLink/mavlink_opticalflow.py No clue if they work. Just did them both today. I think I got the protocol right however.
by kwagyeman
Fri Mar 17, 2017 4:49 pm
Forum: General Topics
Topic: How to perform color recognition and white line recognition at the same time
Replies: 4
Views: 2181

Re: How to perform color recognition and white line recognition at the same time

Sorry for taking so long to reply to this. Alright, so, um, I wouldn't use the OpenMV Cam in a real car. Are you trying to do that or is this a toy problem? While I believe in the quality of our system I wouldn't use it in anything serious like controlling an actual car. Anyway, I would recommend us...
by kwagyeman
Wed Mar 15, 2017 8:54 am
Forum: General Topics
Topic: How to perform color recognition and white line recognition at the same time
Replies: 4
Views: 2181

Re: How to perform color recognition and white line recognition at the same time

Hi, you can do everything in RGB565 mode and just set your color bounds for different things.

Um... so, your question is really vague. Can you try to write my a paragraph or to on what you need help with?

Thanks,
by kwagyeman
Tue Mar 14, 2017 12:02 am
Forum: General Topics
Topic: How to detect deviation from the track
Replies: 2
Views: 1532

Re: How to detect deviation from the track

Hi, we have a line following script example for color tracking that comes with the IDE. It solves this problem more or less to follow a single line (white or black) on an opposite color surface. Note that the line may have gaps. This is okay. Or are you trying to stay between two lines on either side?
by kwagyeman
Sat Mar 11, 2017 6:57 pm
Forum: Project Discussion
Topic: Morse Code Project
Replies: 3
Views: 2031

Re: Morse Code Project

I pulled most of this from here: https://en.wikipedia.org/wiki/Descriptive_statistics See the external links on the bottom: https://en.wikipedia.org/wiki/Quartile https://en.wikipedia.org/wiki/Interquartile_range Basically, instead of looking at the mean which is heavily influenced by outliers you l...
by kwagyeman
Tue Mar 07, 2017 12:55 pm
Forum: Technical Discussion
Topic: Equivalent to OpenCV's cv2.warpPerspective?
Replies: 8
Views: 3207

Re: Equivalent to OpenCV's cv2.warpPerspective?

Much, much, faster.
by kwagyeman
Tue Mar 07, 2017 11:10 am
Forum: Technical Discussion
Topic: Equivalent to OpenCV's cv2.warpPerspective?
Replies: 8
Views: 3207

Re: Equivalent to OpenCV's cv2.warpPerspective?

I can probably add a general purpose perspective transform function then. Seen this code twice now for QR Code and AprilTags. Can just copy if from there. You can then just supply a sequence of X/Y/Z rotations.
by kwagyeman
Tue Mar 07, 2017 9:33 am
Forum: Technical Discussion
Topic: Equivalent to OpenCV's cv2.warpPerspective?
Replies: 8
Views: 3207

Re: Equivalent to OpenCV's cv2.warpPerspective?

Okay, so, I could implement a function to do this but it's going to kill the frame rate. Not sure if that makes any sense. Seems like it would be smarter to just deal with the mathematics of the lines found that trying to make them parallel. I can guess roughly that the M7 will only be able to achie...
by kwagyeman
Mon Mar 06, 2017 11:42 pm
Forum: Technical Discussion
Topic: Equivalent to OpenCV's cv2.warpPerspective?
Replies: 8
Views: 3207

Re: Equivalent to OpenCV's cv2.warpPerspective?

I don't think we have anything like that. Um, what's the use case?
by kwagyeman
Mon Mar 06, 2017 6:14 pm
Forum: Project Discussion
Topic: Morse Code Project
Replies: 3
Views: 2031

Morse Code Project

Just posting something that's been on my desktop for far too long. This application uses the OpenMV Cam to decode a bit pattern from a blinking array of LEDs. https://www.youtube.com/watch?v=Ia6q6ehiQ70&ab_channel=KatherineScott # Untitled - By: kagyeman - Sun Nov 6 2016 import sensor, lcd MEAN_TRIG...
by kwagyeman
Sun Mar 05, 2017 10:42 am
Forum: Technical Discussion
Topic: 3D sensing functionality
Replies: 1
Views: 1012

Re: 3D sensing functionality

You'll be able to use April Tags on the OpenMV Cam M7 which will tell you their translation and orientation relative to the camera. Distance is limited to about 10 FT for tags printed on 8.5"x11" paper. By looking at more than 2-3 tags with known positions you can determine the camera orientation an...
by kwagyeman
Tue Feb 28, 2017 11:54 pm
Forum: Technical Discussion
Topic: Calibrating camera for color tracking
Replies: 8
Views: 2867

Re: Calibrating camera for color tracking

Also, make please try to relax and color tracking bounds. Use the color threshold editor to pick really relaxed bounds. In general, avoid touching the L bound if possible. Just pull in the A and B bounds (from the lo or high side). There's somewhat a bit of trial and error to this.
by kwagyeman
Tue Feb 28, 2017 11:24 am
Forum: Technical Discussion
Topic: Wifi board issue
Replies: 3
Views: 1424

Re: Wifi board issue

Somewhat. But, you should be able to get a lot higher than 2.5 FPS with the M4. So... this means the WiFi is just a bottleneck. Not sure how to test what the problem is.
by kwagyeman
Tue Feb 28, 2017 10:22 am
Forum: Technical Discussion
Topic: Wifi board issue
Replies: 3
Views: 1424

Re: Wifi board issue

Hi, that was an error with an old firmware version and such. Please update the IDE and your firmware version. In particular, you need to change a line in the streamer script.

https://github.com/openmv/openmv/commit ... b32b353c4c
by kwagyeman
Mon Feb 27, 2017 4:39 pm
Forum: Project Discussion
Topic: Connecting an ESP8266
Replies: 1
Views: 1468

Re: Connecting an ESP8266

Hi, There's no USB conflicts with the serial port on your OpenMV Cam and the PC. They are separate interfaces. You can use both at the same time. As for image compression... so, the JPEG code we're using has low image quality because we removed a lot of features to minimize file size. If I had time ...
by kwagyeman
Sun Feb 26, 2017 8:29 pm
Forum: Project Discussion
Topic: Line Following - Blob Spotting/Decoding robot
Replies: 42
Views: 13055

Re: Line Following - Blob Spotting/Decoding robot

Seems to need a lot of PID update. Well, the M7 will give you double the FPS so this should help a lot.
by kwagyeman
Sun Feb 26, 2017 10:31 am
Forum: Technical Discussion
Topic: Connecting IDE via Wifi?
Replies: 10
Views: 3611

Re: Connecting IDE via Wifi?

Yes, but, I really don't know how solid the connection will using WiFi. On the IDE side it just listens to the local port you specify and sends data to a remote port and IP address. A bluetooth serial port will work really good though.
by kwagyeman
Sat Feb 25, 2017 11:44 pm
Forum: Technical Discussion
Topic: Connecting IDE via Wifi?
Replies: 10
Views: 3611

Re: Connecting IDE via Wifi?

Hi, you saw that I added this feature to OpenMV IDE now? :o It's coming soon.
by kwagyeman
Fri Feb 24, 2017 8:43 am
Forum: Technical Discussion
Topic: use of "copy_to_fb" in image.Image
Replies: 8
Views: 4590

Re: use of "copy_to_fb" in image.Image

Mmm, find_keypoints was completely redone by Ibrahim in the latest firmware. He'll have to look at that.
by kwagyeman
Fri Feb 24, 2017 8:41 am
Forum: General Topics
Topic: is it possible to import a library?
Replies: 1
Views: 1318

Re: is it possible to import a library?

As a pure python import, no, however, if you want to try to edit the C source code then yes. Is this something you'd like to try to tackle? Asking us to do anything means it will get scheduled for fixing a long time from now. We're an open source project so that you can dive into the code to help ad...
by kwagyeman
Thu Feb 23, 2017 11:32 am
Forum: Technical Discussion
Topic: How to caculate ORB match rate of two image
Replies: 4
Views: 1722

Re: How to caculate ORB match rate of two image

First 4 bytes are the type. Second 4 bytes are the number of keypoints (size).
by kwagyeman
Thu Feb 23, 2017 11:31 am
Forum: Technical Discussion
Topic: How to caculate ORB match rate of two image
Replies: 4
Views: 1722

Re: How to caculate ORB match rate of two image

Looks like the object type wasn't built out. Um, if you save the descriptor to disk then you can read it back in as a binary file in the mean time to get this info Here's some code showing the format: https://github.com/openmv/qt-creator/blob/bd48a9b98dd24ad70ec62acacca847ba6cd994c9/src/plugins/open...
by kwagyeman
Thu Feb 23, 2017 11:27 am
Forum: Project Discussion
Topic: Line Following - Blob Spotting/Decoding robot
Replies: 42
Views: 13055

Re: Line Following - Blob Spotting/Decoding robot

I think it's the arctan(delta_y/delta_x) = pheta. Where delta_y is the average of y deltas and delta x is the average of x deltas.
by kwagyeman
Thu Feb 23, 2017 1:07 am
Forum: Project Discussion
Topic: Line Following - Blob Spotting/Decoding robot
Replies: 42
Views: 13055

Re: Line Following - Blob Spotting/Decoding robot

Okay... other thoughts... I'd work on your activation function: steer_angle = 1/(totalslope/counter) Maybe try to determine the angle from thinking about the slope as if it were the slop of the hypotenuse on a right triangle and you're trying to find an angle? Not exactly sure what the math should be.
by kwagyeman
Wed Feb 22, 2017 11:06 pm
Forum: Project Discussion
Topic: Line Following - Blob Spotting/Decoding robot
Replies: 42
Views: 13055

Re: Line Following - Blob Spotting/Decoding robot

Going to make the optical flow a lot better soon. But, other things to work on first.
by kwagyeman
Wed Feb 22, 2017 11:05 pm
Forum: Project Discussion
Topic: Line Following - Blob Spotting/Decoding robot
Replies: 42
Views: 13055

Re: Line Following - Blob Spotting/Decoding robot

Oh, I was talking about cutting the image horizontally into three pieces. Like a top piece, a middle piece, and a bottom piece. I think you need to do that because the camera perspective is going to skew lines that are far off. Like, think about how far away the part of the line that is near the top...
by kwagyeman
Wed Feb 22, 2017 7:28 pm
Forum: Project Discussion
Topic: Line Following - Blob Spotting/Decoding robot
Replies: 42
Views: 13055

Re: Line Following - Blob Spotting/Decoding robot

K, looked through your script. I think the math calculation part is done wrong. It looks like your accessing variables that are only variable in the loop above outside of that said loop: for l in lines: img.draw_line(l, color=(127)) # Draw lines if lines: if (l[2]-l[0]) != 0: # don't allow vertical ...
by kwagyeman
Wed Feb 22, 2017 6:55 pm
Forum: Project Discussion
Topic: Line Following - Blob Spotting/Decoding robot
Replies: 42
Views: 13055

Re: Line Following - Blob Spotting/Decoding robot

Okay, um, quick question. How good is the line lock? Is it jittery or pretty stable?
by kwagyeman
Tue Feb 21, 2017 3:20 pm
Forum: Project Discussion
Topic: Line Following - Blob Spotting/Decoding robot
Replies: 42
Views: 13055

Re: Line Following - Blob Spotting/Decoding robot

Trevor is just following a line on the ground. It looks like your trying to see parallel lines in the field of view.

Do you have some debug info I can look at? Like, a picture of what the OpenMV Cam sees (unmodified) and the output after you do the edge detection followed by the line detection?
by kwagyeman
Mon Feb 20, 2017 9:21 pm
Forum: General Topics
Topic: Question for threshold in document
Replies: 4
Views: 2546

Re: Question for threshold in document

That would be an error. There's only a find_blobs function. Where's that error?
by kwagyeman
Mon Feb 20, 2017 11:59 am
Forum: General Topics
Topic: Question for threshold in document
Replies: 4
Views: 2546

Re: Question for threshold in document

Each threshold tuple is 6 values for RGB565 and 2 values for GRAYSCALE. You can then have a list of up to 16 thresholds to segment the image by. Find blobs will then return a list of blobs which includes blobs from all passed thresholds. E.g. threshold0 = [125, 125, 125, 125, 125, 125] threshold1 = ...
by kwagyeman
Sun Feb 19, 2017 10:22 pm
Forum: Project Discussion
Topic: Line Following - Blob Spotting/Decoding robot
Replies: 42
Views: 13055

Re: Line Following - Blob Spotting/Decoding robot

Yes, you can do that. I'd recommend not modifying the OpenMV Cam itself but instead just attaching a transistor driving circuit with some white LEDs.
by kwagyeman
Sat Feb 18, 2017 9:59 am
Forum: Technical Discussion
Topic: use of "copy_to_fb" in image.Image
Replies: 8
Views: 4590

Re: use of "copy_to_fb" in image.Image

Hi, please download and install the latest version of OpenMV IDE and then update your board firmware. copy_to_fb wasn't working previous on all but the latest version of the software.

https://openmv.io/pages/download
by kwagyeman
Fri Feb 17, 2017 9:54 am
Forum: Technical Discussion
Topic: AP Mode With WiFi Shield?
Replies: 34
Views: 12527

Re: AP Mode With WiFi Shield?

Um, I remember Ibrahim talking about doing this but I don't think it's been implemented. I'll let Ibrahim respond.
by kwagyeman
Thu Feb 16, 2017 3:33 pm
Forum: Technical Discussion
Topic: implement own Haar-Cascade
Replies: 60
Views: 25926

Re: implement own Haar-Cascade

Have you tired playing with the threshold and scale ratio?
by kwagyeman
Tue Feb 14, 2017 12:19 am
Forum: Technical Discussion
Topic: QR Code Decoding
Replies: 17
Views: 5727

Re: QR Code Decoding

by kwagyeman
Mon Feb 13, 2017 11:43 am
Forum: Technical Discussion
Topic: implement own Haar-Cascade
Replies: 60
Views: 25926

Re: implement own Haar-Cascade

Hi, I've asked Ibrahim for help.

Go to advanced search