Search found 2796 matches

by kwagyeman
Wed Mar 20, 2019 12:56 pm
Forum: Technical Discussion
Topic: Does the function image.Laplacian overwrite the image
Replies: 1
Views: 13

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: 19
Views: 519

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

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

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

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

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

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

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

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

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

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: 19
Views: 519

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

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: 19
Views: 519

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

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: 19
Views: 519

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: 19
Views: 519

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

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

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

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

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: 1
Views: 60

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

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

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

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

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: 19
Views: 519

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

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

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

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

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

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

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

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

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

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

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

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: 19
Views: 519

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

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: 19
Views: 519

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

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.
by kwagyeman
Tue Mar 05, 2019 12:19 am
Forum: Technical Discussion
Topic: OSEror: Could not find the file and than Memory eror
Replies: 1
Views: 92

Re: OSEror: Could not find the file and than Memory eror

You can only run the fast CIFAR 10 net on the M7 camera. Other nets are too big. Um, generally none of the nets we made fit on the M7. That's what the H7 is for. The M7 can only deal with nets that are like less than 24KB or so. Sorry this feature isn't useful yet.
by kwagyeman
Sat Mar 02, 2019 5:29 pm
Forum: Project Discussion
Topic: Motion tracking
Replies: 4
Views: 185

Re: Motion tracking

Reducing the ROI increases the speed of the algorithm but not the rate at which the camera generates images. So, the processor will be waiting around for the next frame from the camera without anything to do if you've made the amount of work it has to do very little. For the M7 camera with the OV772...
by kwagyeman
Sat Mar 02, 2019 1:56 pm
Forum: Project Discussion
Topic: Motion tracking
Replies: 4
Views: 185

Re: Motion tracking

Um, with the H7 and a low res you can hit 200 fps. By low res I mean like 80x60 or 40x30. If you need more vertical height you can select an ROI of a particular res to skip processing parts of the image you don't care about. That said, lowering the resolution on the global shutter camera causes it t...
by kwagyeman
Sat Mar 02, 2019 1:53 pm
Forum: Project Discussion
Topic: Motion tracking
Replies: 4
Views: 185

Re: Motion tracking

Hi, with the OpenMV Cam H7 and the global shutter sensor you'll be able to get a very high FPS in grayscale. Depending on how low res you can go you can make the FPS higher and higher. Anyway, um, if you are looking at the object from the top that will work poorly since you can't determine depth fro...
by kwagyeman
Thu Feb 28, 2019 1:37 am
Forum: General Topics
Topic: white and cold image colors for M7 (OV7725) => blur image
Replies: 6
Views: 523

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

Hi, we're about to cut a new firmware release with gamma correction onboard as an algorithm. Also, I bought a camera that uses the O7725 and I plan to dump the register settings from it for use. Anyway, um you can get a lot of benefit but turning auto gain and auto white balance off quickly. Like in...
by kwagyeman
Thu Feb 28, 2019 1:34 am
Forum: General Topics
Topic: OpenMV self-driving RC Code Help
Replies: 5
Views: 318

Re: OpenMV self-driving RC Code Help

When it's connected to the laptop it's running slower so this means your PID loop weights don't work right when it starts to run faster. Just tune the PID loop weights. In particular the P and D weights.
by kwagyeman
Thu Feb 28, 2019 1:32 am
Forum: General Topics
Topic: finding relative angles
Replies: 9
Views: 315

Re: finding relative angles

Yeah, I recommend using Microsoft Excel to keep track of the data as it has tools to automatically fit lines and curves to data. Google might have that too. Using this approach makes your job really easy and you can do it in one sitting.
by kwagyeman
Wed Feb 27, 2019 2:45 am
Forum: General Topics
Topic: finding relative angles
Replies: 9
Views: 315

Re: finding relative angles

Okay, um, I see what you are trying to do in regards to the pixel position. Um, your approach is fine. However, I'd measure the actual angle. Given that the focal length needs to change depending on what you want to see the calculations I state on the web page aren't actually exactly what you need. ...

Go to advanced search