Search found 3048 matches

by kwagyeman
Sun Apr 07, 2019 8:02 pm
Forum: General Topics
Topic: Send image via serialport
Replies: 15
Views: 23424

Re: Send image via serialport

Hmm, I've seen similar things before due to weird file permissions. Um, format the onboard drive. Then save a new main.py to the camera using OpenMV IDE.

You can format the uPy drive in Linux or just reflash the whole camera firmware to fix this.
by kwagyeman
Sun Apr 07, 2019 7:49 pm
Forum: General Topics
Topic: Bricked OpenMV
Replies: 7
Views: 13308

Re: Bricked OpenMV

Hi, our shipping is really backed up right now. It will take weeks for us to send you something. buy another from digikey right now and let me know when you want a freebie. There's no guide for how cameras get messed up right now. I suppose it usually has something to do with static shocks or the sy...
by kwagyeman
Sun Apr 07, 2019 6:52 pm
Forum: General Topics
Topic: Bricked OpenMV
Replies: 7
Views: 13308

Re: Bricked OpenMV

Hmm, that sounds like a hardware failure. Email us with a receipt which should proof of purchase at one of our distributors for a replacement. The white light which has multicolored pulses blinking fast is a hardware failure. The system jumps to a routine which blinks the lights when this happens. I...
by kwagyeman
Sun Apr 07, 2019 8:15 am
Forum: General Topics
Topic: Bricked OpenMV
Replies: 7
Views: 13308

Re: Bricked OpenMV

Given you were able to get through the DFU process I would guess that the board is fine. However, it could have been possible to break the board such that the bootloader works but the regular firmware doesn't. That said, after DFU finishes the regular USB bootloader which is that green flashing ligh...
by kwagyeman
Sun Apr 07, 2019 8:13 am
Forum: General Topics
Topic: Bricked OpenMV
Replies: 7
Views: 13308

Re: Bricked OpenMV

Hi, can you try the DFU procedure again? Note that when you short the RST and boot0 wires the device when plugged into USB appears as an STM32 bootloader device. If it appears as that in your device manager on Windows for example, then the board is fine and you just have to get through the DFU proce...
by kwagyeman
Fri Apr 05, 2019 12:47 pm
Forum: General Topics
Topic: Send image via serialport
Replies: 15
Views: 23424

Re: Send image via serialport

You might be running the wrong python version if these were problems. 3 versus 2.7
by kwagyeman
Fri Apr 05, 2019 12:13 pm
Forum: General Topics
Topic: Send image via serialport
Replies: 15
Views: 23424

Re: Send image via serialport

Change the "w" in open to "wb".
by kwagyeman
Fri Apr 05, 2019 11:42 am
Forum: General Topics
Topic: Send image via serialport
Replies: 15
Views: 23424

Re: Send image via serialport

Hi, the string "snap" is suppose to be sent to the camera. Not to the screen asking the user. If the message must be in bytes change "snap" to b"snap" or 'snap'.encode('utf-8')
by kwagyeman
Thu Apr 04, 2019 9:04 am
Forum: Technical Discussion
Topic: Python script to output MAVLink
Replies: 46
Views: 82132

Re: Python script to output MAVLink

The AprilTag one is in the same directory as the optical flow one.
by kwagyeman
Thu Apr 04, 2019 6:21 am
Forum: Technical Discussion
Topic: Python script to output MAVLink
Replies: 46
Views: 82132

Re: Python script to output MAVLink

Hi, so, I had to do a lot of library fixes for random things in the last release. However, I will be fixing some things the algorithm requires to enable rotation/up/down correction and then once that is done it should be quite robust. Please send the PR to replace the script in the main repo. Can yo...
by kwagyeman
Wed Apr 03, 2019 10:38 pm
Forum: General Topics
Topic: OpenMV (Master) - Arduino Mega 2560 (slave) - SPI
Replies: 2
Views: 4622

Re: OpenMV (Master) - Arduino Mega 2560 (slave) - SPI

Hi, your Arduino is not in slave mode there.

I highly recommend serial comms to connect the camera to an Arduino. It is much easier.
by kwagyeman
Wed Apr 03, 2019 2:03 pm
Forum: Technical Discussion
Topic: encoder question
Replies: 14
Views: 15746

Re: encoder question

It looks like you got the left right. As for the R one. If you look at this datasheet you can see what the extra functions are on the pins: https://www.st.com/resource/en/datasheet/stm32f765vi.pdf Anyway, Timer 2, channels 3 and 4 are available on "P4" and "P5". So, just use that, as for the motor d...
by kwagyeman
Tue Apr 02, 2019 10:18 pm
Forum: Technical Discussion
Topic: Python script to output MAVLink
Replies: 46
Views: 82132

Re: Python script to output MAVLink

Maybe update the message format to accept a quality value for the kalman filter in the Ardu pilot? Since the output of the camera is a noisy sensor it technically has to be filtered too.
by kwagyeman
Tue Apr 02, 2019 10:15 pm
Forum: General Topics
Topic: [Basic] Outputting Edge Detection Image to be Put in to Line Detection
Replies: 7
Views: 5628

Re: [Basic] Outputting Edge Detection Image to be Put in to Line Detection

Do something like: img = sensor.snapshot() img.find_edges(...) blobs = img.find_blobs([(200, 255)], area_threshold=0, pixels_threshold=0) print(blobs) if blobs > 1: print("Error") elif blobs == 1: print("All connected") else: print("No blobs") Again, find blobs creates blobs by connecting all pixels...
by kwagyeman
Tue Apr 02, 2019 10:10 pm
Forum: General Topics
Topic: [Basic] Outputting Edge Detection Image to be Put in to Line Detection
Replies: 7
Views: 5628

Re: [Basic] Outputting Edge Detection Image to be Put in to Line Detection

Hi, use find_blobs() on the edge image. Find_blobs() connects all pixels of a particular color with each other. This if there isn't a breakage you will get one big blob. If there is a break you will get multiple blobs. Set the color threshold to white to find all the white pixels connected with find...
by kwagyeman
Tue Apr 02, 2019 10:06 pm
Forum: Project Discussion
Topic: Mutiple cams talk to one Arduino MKR ( three masters)
Replies: 2
Views: 4960

Re: Mutiple cams talk to one Arduino MKR ( three masters)

Using the serial port is the best way to transfer data. Anyway, thanks for the post!
by kwagyeman
Tue Apr 02, 2019 11:09 am
Forum: General Topics
Topic: Reading stream of data sent from OpenMV to Raspberry Pi through USB
Replies: 5
Views: 4696

Re: Reading stream of data sent from OpenMV to Raspberry Pi through USB

Hi, you're the second person who's mentioned the VCP port might be unstable. What errors are you getting exactly?

You didn't quite mention what the problem is in detail.
by kwagyeman
Tue Apr 02, 2019 11:07 am
Forum: Technical Discussion
Topic: encoder question
Replies: 14
Views: 15746

Re: encoder question

Hi, see this example:

https://github.com/dhylands/upy-example ... ncoder3.py

You need to change the pin names and verify the right timer/channel for the correct pins but otherwise it should work.
by kwagyeman
Tue Apr 02, 2019 11:05 am
Forum: General Topics
Topic: OPENMV1 and STM32F407 Discovery board
Replies: 2
Views: 4003

Re: OPENMV1 and STM32F407 Discovery board

Our firmware doesn't run on that board. You'll have to manually edit the I/O pin connections for many things.
by kwagyeman
Mon Apr 01, 2019 11:04 am
Forum: General Topics
Topic: UART communication with Teensy (Arduino)
Replies: 2
Views: 4100

Re: UART communication with Teensy (Arduino)

Hi, I can debug this tonight. It looks pretty right however.

It's probably something really simple.
by kwagyeman
Sun Mar 31, 2019 7:07 pm
Forum: General Topics
Topic: Send image via serialport
Replies: 15
Views: 23424

Re: Send image via serialport

Um, you can run code from the PC on the camera. That is fine. However, it's hard to debug because if there are any issues in the code it will just print a stack trace and exit. It's better to use the IDE to get everything but the serial output working and then once that is done switch the serial out...
by kwagyeman
Sun Mar 31, 2019 6:30 pm
Forum: General Topics
Topic: Send image via serialport
Replies: 15
Views: 23424

Re: Send image via serialport

Hi, can you provide an example for how you are running the script. The OpenMV Cam literally executes MicroPython code. We supply the IDE so that you can easily run scripts on it. Were you trying the LED via that? As for the send images to the PC part. Getting the camera to do that is pretty easy. Ho...
by kwagyeman
Sun Mar 31, 2019 11:41 am
Forum: Project Discussion
Topic: pop() for arrays
Replies: 4
Views: 5727

Re: pop() for arrays

Hi, what code are you executing? Did my above code work?
by kwagyeman
Fri Mar 29, 2019 1:49 am
Forum: Project Discussion
Topic: pop() for arrays
Replies: 4
Views: 5727

Re: pop() for arrays

What exactly doesn't work?

I've done this before:

Code: Select all

list = []
...
list.append(1234)
if len(list) > 4:
    list.remove(0)
This creates a 4 sample buffer.
by kwagyeman
Thu Mar 28, 2019 11:25 pm
Forum: Project Discussion
Topic: SPI Stayig High
Replies: 1
Views: 4395

Re: SPI Stayig High

Hi, what line (CK, MOSI, MOSI, CS) are you referring to and what values are you sending?
by kwagyeman
Thu Mar 28, 2019 11:24 pm
Forum: General Topics
Topic: Reducing the number of GRAYSCALE levels (8 bits to 3 bits)
Replies: 6
Views: 4196

Re: Reducing the number of GRAYSCALE levels (8 bits to 3 bits)

Hi, download the latest firmware and use the gamma_corr() method and set the contrast adjustment to be 0.03125.

https://github.com/openmv/openmv/blob/m ... rection.py
by kwagyeman
Thu Mar 28, 2019 8:19 pm
Forum: Technical Discussion
Topic: Python script to output MAVLink
Replies: 46
Views: 82132

Re: Python script to output MAVLink

When the calculation confidence is low or there's a lack of features on the ground the code fails. I'm not sure how to make the output super stable. Right now, the algorithm can't handle rotation/scale, so when those happen the output is likely bad. The confidence value is supposed to help with this...
by kwagyeman
Thu Mar 28, 2019 3:46 pm
Forum: Technical Discussion
Topic: Image Washout On M7
Replies: 5
Views: 5468

Re: Image Washout On M7

AWB - automatic white balance
AGC - Automatic gain control

See the color tracking scripts and you'll see these terms used.
by kwagyeman
Thu Mar 28, 2019 3:06 pm
Forum: Technical Discussion
Topic: Servo controllers: shield vs. PCA9685
Replies: 2
Views: 3784

Re: Servo controllers: shield vs. PCA9685

No, not really. We just used the circuit on a shield for the camera. That's all.
by kwagyeman
Thu Mar 28, 2019 2:57 pm
Forum: Technical Discussion
Topic: Python script to output MAVLink
Replies: 46
Views: 82132

Re: Python script to output MAVLink

Note that the camera needs features below it to output a reading. Adding some filtering to it's output might help. Like, a smoothing filter and removes values that are obviously bad.
by kwagyeman
Thu Mar 28, 2019 2:55 pm
Forum: Technical Discussion
Topic: Python script to output MAVLink
Replies: 46
Views: 82132

Re: Python script to output MAVLink

Thanks for getting back to us on this. Can you send a PR to replace the script on our github?

https://github.com/openmv/openmv/tree/m ... 18-MAVLink?
by kwagyeman
Thu Mar 28, 2019 2:52 pm
Forum: Technical Discussion
Topic: Image Washout On M7
Replies: 5
Views: 5468

Re: Image Washout On M7

Hi, just turn AGC and AWB off immediately. If you see my color tracking scripts I wait 2000 ms. Lower the wait to like 100 ms.
by kwagyeman
Wed Mar 27, 2019 12:28 pm
Forum: Technical Discussion
Topic: Artifacts from camera after running CNN and frame differencing
Replies: 24
Views: 11162

Re: Artifacts from camera after running CNN and frame differencing

Great, we were able to fix something. Ibrahim is working on the accuracy issues now.
by kwagyeman
Wed Mar 27, 2019 12:27 pm
Forum: Technical Discussion
Topic: cnn accuracy on m7
Replies: 29
Views: 12011

Re: cnn accuracy on m7

Ibrahim is on it. This is the only thing on his plate right now.
by kwagyeman
Wed Mar 27, 2019 12:27 pm
Forum: Technical Discussion
Topic: Is it possible to do lip detection using OpenMV?
Replies: 2
Views: 5060

Re: Is it possible to do lip detection using OpenMV?

Hi, we don't have a built-in haar cascade for this. I don't know how to quite use our Haar Cascade conversion script to convert the OpenCV lip cascade. https://github.com/opencv/opencv/tree/master/data/haarcascades Sorry, I don't know how you can easily do this with the system right now. It's not ou...
by kwagyeman
Wed Mar 27, 2019 1:21 am
Forum: Project Discussion
Topic: Project - Robot stay within two lines
Replies: 3
Views: 4148

Re: Project - Robot stay within two lines

Hmm, in this situation I'd recommend you use the robust linear regression method. Please see the example script for it under feature detection. You should execute it twice on the left and right side of the image. Then you'll get two lines to use to drive with. Make sure to use the robust linear regr...
by kwagyeman
Tue Mar 26, 2019 12:59 pm
Forum: Project Discussion
Topic: Find red color and setar pin 1
Replies: 5
Views: 9816

Re: Find red color and setar pin 1

Okay, the first thing you need to do is to build a rig where the camera is firmly mounted above the objects and then you also need to make sure that you have proper lighting that's diffuse on the items in question. Once you've done this you should be able to capture pictures from the camera's point ...
by kwagyeman
Tue Mar 26, 2019 12:54 pm
Forum: Technical Discussion
Topic: Sending Image from OpenMv Camera to Remote Server
Replies: 1
Views: 3514

Re: Sending Image from OpenMv Camera to Remote Server

Hi, can you confirm you can get the mjpeg streaming example working? That pretty much shows how to stream pictures. Extending that to do a single image shouldn't be that hard.

The PHP side of things and how to format the data is up to you how to decide how to write that however.
by kwagyeman
Tue Mar 26, 2019 12:52 pm
Forum: Project Discussion
Topic: Project - Robot stay within two lines
Replies: 3
Views: 4148

Re: Project - Robot stay within two lines

Sure, the find_line_segments() method returns a list of line segments. Use the Filter() method in python then to execute a callback function on the list of returned line segments and remove the ones that aren't vertical by looking at their rotation angle and also remove the segments that are very sh...
by kwagyeman
Mon Mar 25, 2019 4:47 pm
Forum: Project Discussion
Topic: Car tracking project
Replies: 3
Views: 2983

Re: Car tracking project

Ah, okay, um, so the system can do what you want but you need an algorithm I have implemented yet. Basically, you want to use the cam shift algorithm. https://docs.opencv.org/3.1.0/db/df8/tutorial_py_meanshift.html I haven't code this algorithm for the system yet however. It comes with OpenCV if you...
by kwagyeman
Mon Mar 25, 2019 11:17 am
Forum: Project Discussion
Topic: Car tracking project
Replies: 3
Views: 2983

Re: Car tracking project

Hi, as you can see in the template matching code you posted it wants to open a pgm file which is not a jpg file. PGM is an uncompressed grayscale file format for images. You can generate one by using GIMP or Photoshop. GIMP is free for this. As for template matching to find the car... Well it can wo...
by kwagyeman
Mon Mar 25, 2019 11:10 am
Forum: Technical Discussion
Topic: True dimension / ISO-Constraints
Replies: 1
Views: 2399

Re: True dimension / ISO-Constraints

? Can you clarify what you are talking about?
by kwagyeman
Mon Mar 25, 2019 1:54 am
Forum: Technical Discussion
Topic: Detecting 1D barcodes at an angle
Replies: 3
Views: 2609

Re: Detecting 1D barcodes at an angle

That's an artificially hard problem. Yeah, image rotation is the only thing you can do. However, this requires two copies of the image in RAM. Um, if you know the barcode location or just only need the VGA pixel size but don't need very pixel in the image use the sensor.set_windowing(x,y,w,h) method...
by kwagyeman
Sun Mar 24, 2019 8:51 pm
Forum: Technical Discussion
Topic: Detecting 1D barcodes at an angle
Replies: 3
Views: 2609

Re: Detecting 1D barcodes at an angle

Hmm, well, zbar does the scan multiple times across the whole image. How small is the bar code? It does a scan for every row and then every column of the image. This should catch the barcode. It would only not be seen if the code had low vertical height on the lines which would force the scan to be ...
by kwagyeman
Sun Mar 24, 2019 12:41 pm
Forum: General Topics
Topic: OpenMV M7 Tripod Mount
Replies: 4
Views: 3577

Re: OpenMV M7 Tripod Mount

Hi, just send the stl files to shapeways to have it made.
by kwagyeman
Sat Mar 23, 2019 10:56 am
Forum: Technical Discussion
Topic: cnn accuracy on m7
Replies: 29
Views: 12011

Re: cnn accuracy on m7

Ibrahim will release v3.3.1 today which fixes the file loading issue.
by kwagyeman
Sat Mar 23, 2019 10:55 am
Forum: Technical Discussion
Topic: M7 LED status question
Replies: 1
Views: 2452

Re: M7 LED status question

Hi, the RGB led being white means the system crashed due to an infinite loop somewhere. If it's flashing white that means a hardware failure. Um, where did you buy the camera from? The led should flash green with our bootloader. If using DFU which is the fail safe recovery bootloader you won't see a...
by kwagyeman
Fri Mar 22, 2019 6:26 pm
Forum: Technical Discussion
Topic: cnn accuracy on m7
Replies: 29
Views: 12011

Re: cnn accuracy on m7

Um, well, I've only tested the H7 with my cifar10 net and it works great as long as the image is binarized. I'm sorry about this not being the best right now. However, with tensor lite now available we should be able to get this to some level of spec where these issues go away. The plan was to start...

Go to advanced search