Search found 2120 matches

by kwagyeman
Tue Aug 21, 2018 3:36 pm
Forum: Technical Discussion
Topic: Image differencing three separate parts of camera view
Replies: 4
Views: 25

Re: Image differencing three separate parts of camera view

Yes, we don't support loading 1bit per pixel images. Adding support isnt that much work in the C code but I don't have time for this right now. That's why I mentioned that you have to have the camera conversation the image to 1bit per pixel itself. So save the image as the pgm or ppm file and then y...
by kwagyeman
Mon Aug 20, 2018 11:29 am
Forum: Technical Discussion
Topic: How to implement new sensor to openMV?
Replies: 3
Views: 53

Re: How to implement new sensor to openMV?

Yeah, that method passes null to snapshot. Just return if called with null.
by kwagyeman
Fri Aug 17, 2018 7:27 pm
Forum: Technical Discussion
Topic: Image differencing three separate parts of camera view
Replies: 4
Views: 25

Re: Image differencing three separate parts of camera view

You need to provide a mask image. This can be 1 bit per pixel. However, loading mask images from disk is not implemented yet. Just creating them in ram. So, do this. Load an an image from disk, binary it using the binary method with the bitmap creation options, and do that for each bitmap you need t...
by kwagyeman
Fri Aug 17, 2018 11:19 am
Forum: Technical Discussion
Topic: How to implement new sensor to openMV?
Replies: 3
Views: 53

Re: How to implement new sensor to openMV?

Hi, there are multiple image types. Images can be 1 byte per pixel or two. Please see all the image processing methods. Like, for example, look at the code in filter.c or etc. They show how to access the pixels in an image.
by kwagyeman
Thu Aug 16, 2018 3:07 am
Forum: General Topics
Topic: sending data to serial terminal of host PC
Replies: 3
Views: 51

Re: sending data to serial terminal of host PC

Um, when you say curve fitting is this a linear regression... the camera has this feature. Or multiple points? Anyway, you can just send the blob detects to the Pi using the script you linked to.
by kwagyeman
Wed Aug 15, 2018 3:35 pm
Forum: Technical Discussion
Topic: openMV Firmware Build Instructions
Replies: 8
Views: 83

Re: openMV Firmware Build Instructions

Awesome!
by kwagyeman
Wed Aug 15, 2018 1:30 pm
Forum: Technical Discussion
Topic: openMV Firmware Build Instructions
Replies: 8
Views: 83

Re: openMV Firmware Build Instructions

Mmm, I see. I think the recursive flag is in the build docs.

Um, sure. Just edit the MD file and send a copy. Not sure if you can PR wiki pages.
by kwagyeman
Wed Aug 15, 2018 1:01 am
Forum: Technical Discussion
Topic: openMV Firmware Build Instructions
Replies: 8
Views: 83

Re: openMV Firmware Build Instructions

Ibrahim?
by kwagyeman
Wed Aug 15, 2018 12:34 am
Forum: Project Discussion
Topic: Colorimetry/reflected light assessment?
Replies: 3
Views: 41

Re: Colorimetry/reflected light assessment?

get_stats() work on an ROI too.
by kwagyeman
Tue Aug 14, 2018 11:22 am
Forum: General Topics
Topic: sending data to serial terminal of host PC
Replies: 3
Views: 51

Re: sending data to serial terminal of host PC

Um, see the Tools -> Open Terminal feature. This provides the standard MicroPython Repl experience.
by kwagyeman
Mon Aug 13, 2018 6:13 pm
Forum: Technical Discussion
Topic: openMV Firmware Build Instructions
Replies: 8
Views: 83

Re: openMV Firmware Build Instructions

If you googled it this is the first result: https://github.com/openmv/openmv/wiki
by kwagyeman
Mon Aug 13, 2018 6:10 pm
Forum: General Topics
Topic: Openmv 2.0.0 Firmware 3.0.0 no framebuffer display
Replies: 11
Views: 142

Re: Openmv 2.0.0 Firmware 3.0.0 no framebuffer display

Mmm, I don't know what the problem is. Um... Is there any physical damage to the camera lens system? Can you check that the lens cap is not on, the lens is mounted well, there's no tape on the camera see sensor, etc? The IDE will generate errors if it's unable to pull images from the camera... So, t...
by kwagyeman
Fri Aug 10, 2018 11:38 pm
Forum: General Topics
Topic: How fast openmv in finding apriltags?
Replies: 1
Views: 46

Re: How fast openmv in finding apriltags?

We run at 160x120 at 10 FPS with the M7. 160x120 provides about 8 ft of distance for a tag that's 8"x8". Lower your res on your Pi if you want faster speed. The algorithm only needs that for distance. If your field of view is constrained then use lenses (can't do this with a Pi) to focus on a narrow...
by kwagyeman
Fri Aug 10, 2018 8:46 pm
Forum: Technical Discussion
Topic: position encoder
Replies: 7
Views: 135

Re: position encoder

Yeah, it's easier to do. Serial input on the cam is tribal.
by kwagyeman
Fri Aug 10, 2018 1:32 pm
Forum: General Topics
Topic: Openmv 2.0.0 Firmware 3.0.0 no framebuffer display
Replies: 11
Views: 142

Re: Openmv 2.0.0 Firmware 3.0.0 no framebuffer display

Question, do you get text output on the serial terminal when you run the program and does the Green arrow switch to a red stop button?
by kwagyeman
Thu Aug 09, 2018 2:09 am
Forum: General Topics
Topic: Openmv 2.0.0 Firmware 3.0.0 no framebuffer display
Replies: 11
Views: 142

Re: Openmv 2.0.0 Firmware 3.0.0 no framebuffer display

Okay, can you give some more information for me to reproduce?

We haven't seen this error before. As far as I know the current IDE works fine.

Screen shots?
by kwagyeman
Wed Aug 08, 2018 2:55 pm
Forum: General Topics
Topic: Openmv 2.0.0 Firmware 3.0.0 no framebuffer display
Replies: 11
Views: 142

Re: Openmv 2.0.0 Firmware 3.0.0 no framebuffer display

Hi, is the frame buffer disabled?
by kwagyeman
Tue Aug 07, 2018 4:29 pm
Forum: Technical Discussion
Topic: position encoder
Replies: 7
Views: 135

Re: position encoder

Hi, the camera interrupts the processor per line of data coming in. In general, there are too many interrupts on the system to do a good job like an Arduino monitoring interrupts. If the encoder is a low resolution one and updates slowly then this is okay. However, realistically the processor can't ...
by kwagyeman
Tue Aug 07, 2018 12:40 pm
Forum: Technical Discussion
Topic: Script autostart
Replies: 46
Views: 1192

Re: Script autostart

Hi, you have to install udev drivers for the /dev/openmvcam device to appear. That said, this isn't actually needed except if you want to use DFU. All you need to do is change the serial port to the /dev/ACM whatever port that appears when you connect the camera.
by kwagyeman
Tue Aug 07, 2018 12:38 pm
Forum: Technical Discussion
Topic: Fastest serial communication
Replies: 7
Views: 120

Re: Fastest serial communication

Okay.
by kwagyeman
Tue Aug 07, 2018 12:37 pm
Forum: Technical Discussion
Topic: Collect ML sample images through serial
Replies: 5
Views: 89

Re: Collect ML sample images through serial

Mmm, um, it's likely the BMP byte order being wrong. My BMP code is old and needs to be updated. Just haven't got to it yet. Um, save as a PPM file and you won't have any issues. PPM/PGM are much simpler file formats and we can parse all variants.
by kwagyeman
Tue Aug 07, 2018 1:10 am
Forum: Technical Discussion
Topic: Script autostart
Replies: 46
Views: 1192

Re: Script autostart

What?
by kwagyeman
Mon Aug 06, 2018 10:34 pm
Forum: Technical Discussion
Topic: position encoder
Replies: 7
Views: 135

Re: position encoder

Hi, the OpenMV Cam would not be good for this type of thing. While you can definitely interrupt it to count the encoder ticks using interrupts you're not going to capture all ticks due to USB stuff happening at 1KHz. If you still want to use an encoder see here: http://docs.openmv.io/library/pyb.Ext...
by kwagyeman
Mon Aug 06, 2018 10:32 pm
Forum: Technical Discussion
Topic: Linear Regression Line Following vs Glare
Replies: 2
Views: 41

Re: Linear Regression Line Following vs Glare

Hi, use the binary() method with the "zero" argument. This allows you to remove all over saturated parts of the image and set them to zero without affecting other parts of the image.
by kwagyeman
Mon Aug 06, 2018 10:32 pm
Forum: Technical Discussion
Topic: Fastest serial communication
Replies: 7
Views: 120

Re: Fastest serial communication

Um, profiling means to find what part was being slow.
by kwagyeman
Mon Aug 06, 2018 10:31 pm
Forum: Technical Discussion
Topic: Collect ML sample images through serial
Replies: 5
Views: 89

Re: Collect ML sample images through serial

As for your code. The data sent by the OpenMV Cam is not a BMP file but instead the raw image data. Do this instead: ... usb = USB_VCP() ... img = sensor.snapshot().compress() # Take a picture and return the image. usb.send(struct.pack("<L", img.size())) usb.send(img) ser = serial.Serial('/dev/ttyAC...
by kwagyeman
Mon Aug 06, 2018 10:29 pm
Forum: Technical Discussion
Topic: Collect ML sample images through serial
Replies: 5
Views: 89

Re: Collect ML sample images through serial

Hi, just use the ImageWriter method. The latest OpenMV IDE release can turn the ImageWriter files to a set of PNG/BMP/JPG image file outputs. You just have to say "*.jpg" as the target filename and FFMPEG will convert the video to a set of images.
by kwagyeman
Mon Aug 06, 2018 10:27 pm
Forum: Technical Discussion
Topic: Script autostart
Replies: 46
Views: 1192

Re: Script autostart

Hi, by chaining the scale value you change how many scales the algorithm tries.

https://github.com/openmv/openmv/blob/m ... aar.c#L108

Basically, by making the value closer to 1.0 you make the algorithm scale more slowly down in size.
by kwagyeman
Sun Aug 05, 2018 4:25 pm
Forum: Technical Discussion
Topic: Is the serial terminal in IDE output only?
Replies: 3
Views: 60

Re: Is the serial terminal in IDE output only?

Um, no, use the Open terminal feature in OpenMV IDE. This let's you get a serial terminal to the camera that bypasses our debug stack. However, the serial terminal can display images if you do: print(img.compress_for_ide(), end="") Should have mentioned this. See the serial terminal under tools -> o...
by kwagyeman
Sun Aug 05, 2018 3:47 pm
Forum: General Topics
Topic: Convert .xml to .cascade
Replies: 5
Views: 114

Re: Convert .xml to .cascade

by kwagyeman
Sun Aug 05, 2018 3:47 pm
Forum: Technical Discussion
Topic: Is the serial terminal in IDE output only?
Replies: 3
Views: 60

Re: Is the serial terminal in IDE output only?

Hi, OpenMV IDE only provides debug out from the camera. If you want two way coms you'll have to use the VCP port without OpenMV IDE and when the camera connects to OpenMV IDE you enter debug mode. ... Yes... you could consider this a feature we're missing. However, it's generally been on the low pri...
by kwagyeman
Sun Aug 05, 2018 3:43 pm
Forum: Project Discussion
Topic: Resize template image
Replies: 8
Views: 128

Re: Resize template image

Okay, so, here's the issue. The OpenMV Cam is a microcontroller and doesn't have a ton of RAM. So, the reason we don't have resize() is because it's really not possible to store a large template in RAM. Additionally, template matching on large templates is really slow. So, what you actually want to ...
by kwagyeman
Sun Aug 05, 2018 2:56 pm
Forum: General Topics
Topic: NN_Lenet Example error
Replies: 5
Views: 102

Re: NN_Lenet Example error

The Kickstarter will go live in September. I'm working on the media campaign right now and the Kickstarter video. Make sure you are on the email list to get first notice.
by kwagyeman
Sun Aug 05, 2018 3:12 am
Forum: Project Discussion
Topic: Resize template image
Replies: 8
Views: 128

Re: Resize template image

Like, post the code or describe the method call flow.
by kwagyeman
Sun Aug 05, 2018 3:11 am
Forum: Project Discussion
Topic: Resize template image
Replies: 8
Views: 128

Re: Resize template image

Great.

Okay, can you describe to me what you're trying to do and then I can just tell you where to edit the code to minimize your work.
by kwagyeman
Sat Aug 04, 2018 2:26 pm
Forum: Project Discussion
Topic: Resize template image
Replies: 8
Views: 128

Re: Resize template image

Okay, install the build system here and let me know if you can compile the firmware:

https://github.com/openmv/openmv/wiki
by kwagyeman
Sat Aug 04, 2018 12:13 pm
Forum: Project Discussion
Topic: Resize template image
Replies: 8
Views: 128

Re: Resize template image

We need to add a resize method to do this. Right now there's nothing in the library for this.

Would you be comfortable editing the C code? I don't have the bandwidth to add this feature right now.

It's pretty trival to add this.
by kwagyeman
Sat Aug 04, 2018 12:10 pm
Forum: Technical Discussion
Topic: question in use img.findcircle() to find the iris
Replies: 3
Views: 69

Re: question in use img.findcircle() to find the iris

Yes, if you download the build system and tweak anything:

https://github.com/openmv/openmv/wiki

Let me know once you get it installed and I'll walk you through how to add customs methods to the python user interface level.
by kwagyeman
Fri Aug 03, 2018 12:08 pm
Forum: Technical Discussion
Topic: resize the framebuffer with copy function
Replies: 2
Views: 59

Re: resize the framebuffer with copy function

Um, we haven't really added features for that.

Note that for the NN code the heap is the problem that you run out of. There's very little heap on the M7 due to the lower RAM onboard. What's the driver behind this? Maybe Ibrahim can ad something quickly for you.
by kwagyeman
Fri Aug 03, 2018 12:07 pm
Forum: General Topics
Topic: An application for auto-focus
Replies: 12
Views: 622

Re: An application for auto-focus

Hi, so, I made an algorithm for a poster a while back that provided a 2D FFT of the image. The binary for that is on the forums if you search for "MTF". I don't have time to re-release that again right now however. I have to work on the KickStarter.
by kwagyeman
Thu Aug 02, 2018 6:36 pm
Forum: Technical Discussion
Topic: Fastest serial communication
Replies: 7
Views: 120

Re: Fastest serial communication

Mmm, your scripts look fine. Question, can you profile things and see what the camera is spending it's time on? Also, what model are you using? Is this the M4 or M7?
by kwagyeman
Thu Aug 02, 2018 3:20 pm
Forum: Technical Discussion
Topic: Fastest serial communication
Replies: 7
Views: 120

Re: Fastest serial communication

Hi, the print() sends data over the USB serial port to any application that opens the serial port. Note that you can't use the USB VCP or receive any data with print when OpenMV IDE is using the camera. Anyway: print(img.compress(), end='') Generally is fast. Note that when used with OpenMV IDE you ...
by kwagyeman
Thu Aug 02, 2018 12:27 pm
Forum: General Topics
Topic: An application for auto-focus
Replies: 12
Views: 622

Re: An application for auto-focus

It's not a user callable method...
by kwagyeman
Thu Aug 02, 2018 11:34 am
Forum: Technical Discussion
Topic: Saving the BAYER raw for sensor calibration
Replies: 9
Views: 182

Re: Saving the BAYER raw for sensor calibration

Hi, our Kickstarter website has not launched yet. ETA is next month. I'm working on media assets and the video right now.
by kwagyeman
Wed Aug 01, 2018 8:56 pm
Forum: Technical Discussion
Topic: Saving the BAYER raw for sensor calibration
Replies: 9
Views: 182

Re: Saving the BAYER raw for sensor calibration

Hi, you can get the exposure with the get_exposure() method... https://github.com/openmv/openmv/blob/master/src/omv/ov7725.c#L443 https://github.com/openmv/openmv/blob/master/src/omv/ov7725.c#L405 Anyway, the exposure is limited by the chip's internal register scales. Exposure is 16-bits. So, you ma...
by kwagyeman
Tue Jul 31, 2018 10:52 am
Forum: Technical Discussion
Topic: question in use img.findcircle() to find the iris
Replies: 3
Views: 69

Re: question in use img.findcircle() to find the iris

Hi, does the find_features() method find the eyes first? Please verify that part works.
by kwagyeman
Tue Jul 31, 2018 1:26 am
Forum: General Topics
Topic: NN_Lenet Example error
Replies: 5
Views: 102

Re: NN_Lenet Example error

That's when we are doing the KickStarter so you can pre-order.
by kwagyeman
Mon Jul 30, 2018 10:32 pm
Forum: General Topics
Topic: NN_Lenet Example error
Replies: 5
Views: 102

Re: NN_Lenet Example error

Lenet does not run on the M7. You'll need the H7 for it. When the H7 comes out everyone will be able to run it.
by kwagyeman
Mon Jul 30, 2018 12:02 pm
Forum: General Topics
Topic: Is that able to use the algorithm module independently?
Replies: 2
Views: 81

Re: Is that able to use the algorithm module independently?

Yes, please use the ImageReader/ImageWriter classes. See the Examples -> Video Recording for some demo scripts. OpenMV IDE can create ImageReader files. See the tutorial documentation about it.
by kwagyeman
Sun Jul 29, 2018 10:23 pm
Forum: Technical Discussion
Topic: lshift and rshift in nn_quantizer
Replies: 4
Views: 86

Re: lshift and rshift in nn_quantizer

This is unbelievably complex. Basically, just read the ARM quantizer script. We basically did not get anywhere until they released it. https://github.com/openmv/openmv/blob/m ... antizer.py

Go to advanced search