Search found 2804 matches

by kwagyeman
Mon Mar 25, 2019 1:54 am
Forum: Technical Discussion
Topic: Detecting 1D barcodes at an angle
Replies: 3
Views: 11

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

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

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: 26
Views: 737

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

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: 26
Views: 737

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: 26
Views: 737

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: 26
Views: 737

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

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: 26
Views: 737

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

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

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

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

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

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: 22
Views: 729

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

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

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: 22
Views: 729

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: 26
Views: 737

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: 22
Views: 729

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: 26
Views: 737

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: 22
Views: 729

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: 26
Views: 737

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: 26
Views: 737

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: 9
Views: 327

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

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

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...
by kwagyeman
Fri Mar 15, 2019 12:43 am
Forum: General Topics
Topic: distance Meter
Replies: 19
Views: 4089

Re: distance Meter

img.find_features(face_cascade, threshold=0.75, scale_factor=1.25)
Becomes:

Code: Select all

img.find_features(face_cascade, roi=(x,y,w,h) threshold=0.75, scale_factor=1.25)
Where you need to figure out x, y, w, and h are by selecting the area in OpenMV IDE in the frame buffer and writing down the ROI values.
by kwagyeman
Thu Mar 14, 2019 7:19 pm
Forum: General Topics
Topic: Silver Ball Tracking
Replies: 2
Views: 91

Re: Silver Ball Tracking

I'd use the find_blobs() method. This tracks using color and makes your job alot easier. You can just set a color threshold for tracking the balls. You can either track silver or not the white background. That said, silver and white are very similar. Pretty much every computer vision method needs co...
by kwagyeman
Thu Mar 14, 2019 11:57 am
Forum: General Topics
Topic: distance Meter
Replies: 19
Views: 4089

Re: distance Meter

Hi, just pass an roi=(x,y,w,h) to the method as an argument. This makes it only operate in that region. You can get the roi by clicking and dragging on the frame buffer image.
by kwagyeman
Thu Mar 14, 2019 11:55 am
Forum: Technical Discussion
Topic: What does it mean ?
Replies: 1
Views: 82

Re: What does it mean ?

Hi, the method finds QR Codes. The C code that implements it is here:

https://github.com/openmv/openmv/blob/m ... g/qrcode.c
by kwagyeman
Thu Mar 14, 2019 11:54 am
Forum: Technical Discussion
Topic: External Camera with SPI bus
Replies: 11
Views: 491

Re: External Camera with SPI bus

Hi, thanks for posting!
by kwagyeman
Thu Mar 14, 2019 11:54 am
Forum: General Topics
Topic: Strategy Recommendation
Replies: 5
Views: 223

Re: Strategy Recommendation

Um, yeah, I mean, pick what's best.
by kwagyeman
Mon Mar 11, 2019 10:55 am
Forum: Technical Discussion
Topic: cnn accuracy on m7
Replies: 26
Views: 737

Re: cnn accuracy on m7

Okay, can you provide everything we need to reproduce it? Ibrahim can test it out.
by kwagyeman
Mon Mar 11, 2019 10:52 am
Forum: Technical Discussion
Topic: mapping models to firmware
Replies: 3
Views: 184

Re: mapping models to firmware

What?
by kwagyeman
Sun Mar 10, 2019 5:10 pm
Forum: General Topics
Topic: Line / Image centering
Replies: 4
Views: 237

Re: Line / Image centering

Hi, the line objects returned have a .x1() value or a .y1() value which is the top of the line. They also have a .x2() and .y2() value which is the bottom of the line. If you want the center of the line from the center of the window I recommend using instead the .rho() and .theta() values the lines ...
by kwagyeman
Sun Mar 10, 2019 2:53 pm
Forum: General Topics
Topic: distance Meter
Replies: 19
Views: 4089

Re: distance Meter

Um, well, if you can see the face then just calculate the distance the bottom of the rect is from the bottom of the screen. This should do the trick. It's not very accurate but it will give you a different number per person.
by kwagyeman
Sat Mar 09, 2019 7:55 pm
Forum: Technical Discussion
Topic: connection between raspberrypi and openmvcam
Replies: 19
Views: 1815

Re: connection between raspberrypi and openmvcam

Dunno, I kinda need help documenting all the ways to use the camera. I only have bandwidth to add features. Generally, understanding how to write serial communications should be a skill you should have it for you want to do serial communications. We designed the cam to have processing power and the ...
by kwagyeman
Sat Mar 09, 2019 12:01 pm
Forum: General Topics
Topic: Line / Image centering
Replies: 4
Views: 237

Re: Line / Image centering

Hi, thanks for the explanation. Um, so, is the camera in a fixed position or is it moving along with the head? Linear regression is what you want to use. However, you should split the image up into different ROIs (regions of interest) that go up vertically on the image. This assumes however that the...
by kwagyeman
Sat Mar 09, 2019 1:13 am
Forum: Technical Discussion
Topic: mapping models to firmware
Replies: 3
Views: 184

Re: mapping models to firmware

Hi, the OPENMV3 is the firmware for the M7. The OPENMV4 is the firmware for the H7 which is about to be released. The IDE comes with the latest firmware image. If you want the latest firmware image that's unreleased you have to build the code. Please see the OpenMV GitHub wiki for details.
by kwagyeman
Fri Mar 08, 2019 2:10 pm
Forum: General Topics
Topic: white and cold image colors for M7 (OV7725) => blur image
Replies: 6
Views: 533

Re: white and cold image colors for M7 (OV7725) => blur image

Our register settings aren't the best since Omnivision won't share the golden register settings with us. So, it's possible what you did is better.
by kwagyeman
Wed Mar 06, 2019 7:52 pm
Forum: Technical Discussion
Topic: Adapt to Linear Camera
Replies: 3
Views: 164

Re: Adapt to Linear Camera

I mean, if you want to do this you need to be a pro. It's not easy. I'm trained an a FPGA programmer. But, you'll need pretty goo mastery of electronic board design, verilog programming, and c programming. Anyway, maybe use older line scan cameras that have 8-bit parallel outputs? Then you don't nee...
by kwagyeman
Wed Mar 06, 2019 12:27 pm
Forum: Project Discussion
Topic: Creating a Template and which image parameter to find a char-sequence
Replies: 3
Views: 161

Re: Creating a Template and which image parameter to find a char-sequence

If you need to use template matching however I recommend not matching the image but a processed version. Like, binarize the template and the image coming in. This boosts the results by a huge amount. To choose the binarization threshold just pick like a grey value higher than the background.
by kwagyeman
Wed Mar 06, 2019 12:24 pm
Forum: Project Discussion
Topic: Creating a Template and which image parameter to find a char-sequence
Replies: 3
Views: 161

Re: Creating a Template and which image parameter to find a char-sequence

Is it possible to use something other than template matching? Template matching literally has to find the exact template otherwise it returns low results. Um, are there any features like color/lines/etc you can look for instead?
by kwagyeman
Wed Mar 06, 2019 11:40 am
Forum: Technical Discussion
Topic: Adapt to Linear Camera
Replies: 3
Views: 164

Re: Adapt to Linear Camera

The H7 can provide a XVLCK at any freq you need, an I2C bus, a SPI bus, and it has an 8-bit DCMI interface that takes 8-bits in parallel with a PCLK to latch the bits and HREF and VSYNC inputs. Only the HREF is really important to tell the logic when to accept pixels and when to ignore. However, you...
by kwagyeman
Wed Mar 06, 2019 11:34 am
Forum: Technical Discussion
Topic: cnn accuracy on m7
Replies: 26
Views: 737

Re: cnn accuracy on m7

Here's how the image gets brought in. https://github.com/openmv/openmv/blob/master/src/omv/nn/nn.c#L263 If you have ideas to improve this code we'd love to get more feedback on it. ARM honestly hasn't been tool helpful after releasing CMSIS-NN. I don't know exactly if they are going to provide more ...
by kwagyeman
Wed Mar 06, 2019 11:31 am
Forum: Technical Discussion
Topic: OpenMV I2C
Replies: 7
Views: 2896

Re: OpenMV I2C

Thanks for the video tip!
by kwagyeman
Wed Mar 06, 2019 11:30 am
Forum: Technical Discussion
Topic: cnn accuracy on m7
Replies: 26
Views: 737

Re: cnn accuracy on m7

Hi, the code that runs the CNNs is fine. However, when transforming the image to a low res one that's done using nearest neighbor if the resolution is set higher than the CNN model. Are you running the camera in 128x128 pixel mode? Also, I'd be concerned about the lighting of the camera image. We lo...
by kwagyeman
Tue Mar 05, 2019 11:42 am
Forum: Technical Discussion
Topic: USB_HID.recv Function
Replies: 2
Views: 107

Re: USB_HID.recv Function

The camera is really not designed to do this at all. But, I'll ask Ibrahim if it is possibly able to work.

Go to advanced search