Search found 2976 matches

by kwagyeman
Sun Mar 31, 2019 7:07 pm
Forum: General Topics
Topic: Send image via serialport
Replies: 15
Views: 22197

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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...
by kwagyeman
Thu Mar 21, 2019 8:24 pm
Forum: Technical Discussion
Topic: cnn accuracy on m7
Replies: 29
Views: 11403

Re: cnn accuracy on m7

Um, well Ibrahim fixed the issue with the file not being able to be opened. As for the accuracy I can't say how long its going to fix that. Getting you the binary for the latest firmware is pretty simple.
by kwagyeman
Thu Mar 21, 2019 1:30 am
Forum: Technical Discussion
Topic: cnn accuracy on m7
Replies: 29
Views: 11403

Re: cnn accuracy on m7

Hi, we verified there's a problem with the latest firmware with CNN stuff. We will do another release with a fix for this and a fix for another issue with set windowing a customer found. Regarding CNN issues. We talked to Pete Warden recently and tensor flow light may be coming soon. If this happens...
by kwagyeman
Wed Mar 20, 2019 12:56 pm
Forum: Technical Discussion
Topic: Does the function image.Laplacian overwrite the image
Replies: 1
Views: 2236

Re: Does the function image.Laplacian overwrite the image

Yeah, we don't have tons of RAM so most methods that modify the image don't make a copy.
by kwagyeman
Wed Mar 20, 2019 1:25 am
Forum: Technical Discussion
Topic: cnn accuracy on m7
Replies: 29
Views: 11403

Re: cnn accuracy on m7

Hi, I will get to looking at this. I've put the email on my desktop. Please note that I'm under a lot of work right now. I have to start Kickstarter shipping, release v3.3.0, and do taxes. While I'd like to give this a higher priority I have to focus on the other things first.
by kwagyeman
Wed Mar 20, 2019 1:06 am
Forum: General Topics
Topic: Would it be possible to perform the canny edge detection just inside a roi?
Replies: 7
Views: 2825

Re: Would it be possible to perform the canny edge detection just inside a roi?

Only the new global shutter camera on the H7 can trigger. It's designed for what you are doing however versus the OV7725 camera which is the default (and only camera on the M7). Anyway, think of the camera as a sensor... so, if you control where the pixels you care about are it's quite easy to make ...
by kwagyeman
Wed Mar 20, 2019 12:51 am
Forum: General Topics
Topic: Board Registration
Replies: 1
Views: 1799

Re: Board Registration

Hi, we sell the OpenMV Cam for $65 and release the software and hardware for the design. Units we sell are licensed. Given we've crossed the 15k> units sold (that I know of) mark and that we've continued to work on the product and improve features over time it has started to get cloned. We put the l...
by kwagyeman
Tue Mar 19, 2019 12:39 pm
Forum: General Topics
Topic: Would it be possible to perform the canny edge detection just inside a roi?
Replies: 7
Views: 2825

Re: Would it be possible to perform the canny edge detection just inside a roi?

Also, turn your exposure up to get rid of the highlights.
by kwagyeman
Tue Mar 19, 2019 12:39 pm
Forum: General Topics
Topic: Would it be possible to perform the canny edge detection just inside a roi?
Replies: 7
Views: 2825

Re: Would it be possible to perform the canny edge detection just inside a roi?

This is a great example where the problem can be easily solved. Is there a particular area under which you want to do the detection? If so, capture the picture when everything is perfectly aligned and then use template matching to compare against an empty hole. If the hole is not empty... I.e. a tem...
by kwagyeman
Tue Mar 19, 2019 12:21 am
Forum: Project Discussion
Topic: Identifying the position of a moving animal
Replies: 8
Views: 4225

Re: Identifying the position of a moving animal

Hi, with a grayscale image you can do frame differencing to see what's changing against the background. This works well assuming there are no shadows and changing lighting.
by kwagyeman
Tue Mar 19, 2019 12:19 am
Forum: Technical Discussion
Topic: Artifacts from camera after running CNN and frame differencing
Replies: 24
Views: 10586

Re: Artifacts from camera after running CNN and frame differencing

Can you put a slash in front of the file name?
by kwagyeman
Mon Mar 18, 2019 11:55 am
Forum: Project Discussion
Topic: Identifying the position of a moving animal
Replies: 8
Views: 4225

Re: Identifying the position of a moving animal

The get similarly method is for perfect image to image comparisons.

Um, can you state your problem domain here? We specifically built the new H7 camera with thermal imaging support for this type of application so it's easy to do well and it will work in both night and day.
by kwagyeman
Mon Mar 18, 2019 11:53 am
Forum: General Topics
Topic: M7 camera memory solutions
Replies: 1
Views: 1738

Re: M7 camera memory solutions

Hi, we will ship the H7 this week. Just wait for it. It's going to come fast.
by kwagyeman
Sun Mar 17, 2019 9:31 pm
Forum: Technical Discussion
Topic: Artifacts from camera after running CNN and frame differencing
Replies: 24
Views: 10586

Re: Artifacts from camera after running CNN and frame differencing

A PR was submitted to fix this issue. https://github.com/openmv/openmv/pull/489. Attached is the fixed firmware.
by kwagyeman
Sun Mar 17, 2019 5:43 pm
Forum: Technical Discussion
Topic: cnn accuracy on m7
Replies: 29
Views: 11403

Re: cnn accuracy on m7

Not really, just expect that the CNN needs to see images that look like what you trained on. Deviation from this will make the net not work at all.
by kwagyeman
Sat Mar 16, 2019 10:01 pm
Forum: Technical Discussion
Topic: Artifacts from camera after running CNN and frame differencing
Replies: 24
Views: 10586

Re: Artifacts from camera after running CNN and frame differencing

Do you have a simple test script I can try out? One that doesn't need any files?
by kwagyeman
Sat Mar 16, 2019 10:00 pm
Forum: Technical Discussion
Topic: cnn accuracy on m7
Replies: 29
Views: 11403

Re: cnn accuracy on m7

Not sure what you mean by your question.

Um, I will try to process this tomorrow since it should be a working feature. I'll try to get to the step of verifing you were doing everything right and performance just fell on the M7. That will then give something for Ibrahim to fix.
by kwagyeman
Sat Mar 16, 2019 8:57 pm
Forum: Technical Discussion
Topic: Artifacts from camera after running CNN and frame differencing
Replies: 24
Views: 10586

Re: Artifacts from camera after running CNN and frame differencing

The artifacts are produced by the nn.forward() method correct?
by kwagyeman
Sat Mar 16, 2019 8:55 pm
Forum: Technical Discussion
Topic: cnn accuracy on m7
Replies: 29
Views: 11403

Re: cnn accuracy on m7

Hi, can you re-send that? I accidentally deleted it because I wasn't expecting it. Google just sent an email saying it shared a drive with me but there was no identifying info so it looked like a phishing attack.
by kwagyeman
Sat Mar 16, 2019 6:48 pm
Forum: Technical Discussion
Topic: cnn accuracy on m7
Replies: 29
Views: 11403

Re: cnn accuracy on m7

Can you provide someway for us to reproduce the issue?

Can you provide the training and test dataset along with the labels and everything we need to quickly run it through caffe?
by kwagyeman
Sat Mar 16, 2019 6:43 pm
Forum: General Topics
Topic: finding relative angles
Replies: 10
Views: 2628

Re: finding relative angles

Hi, I originally had the FoV values for the lenses from our manufacturer on the website. Then some said those don't make sense given actually FoV calculations. So, I updated all the FoV values using FoV calculations based on the chip array size and the focal length of the lenses. So it was already u...
by kwagyeman
Fri Mar 15, 2019 3:43 pm
Forum: General Topics
Topic: distance Meter
Replies: 19
Views: 9207

Re: distance Meter

Um, if you can get an M7 then using an AprilTag makes this a lot easier.
by kwagyeman
Fri Mar 15, 2019 11:20 am
Forum: General Topics
Topic: distance Meter
Replies: 19
Views: 9207

Re: distance Meter

Please don't ask for code to copy and paste. Ask for an idea. Anyway, just add the find_blobs() method to you code. If you want to see how to use check the color tracking examples. You can determine the color thresholds using the Threshold editor under Tools->Machine Vision. When you get the list of...

Go to advanced search