Search found 2188 matches

by kwagyeman
Wed Sep 05, 2018 1:44 am
Forum: Technical Discussion
Topic: Failed to eject "A:/"! issue and Reset
Replies: 3
Views: 65

Re: Failed to eject "A:/"! issue and Reset

Ah, yeah, the IDE makes a guess at what drive the OpenMV Cam is at by filtering through all removable drivers on the system. Your RAM disk likely looked like one. Um, in the IDE you can change the drive it bound to the OpenMV Cam in the status bar by clicking on the drive letter.
by kwagyeman
Tue Sep 04, 2018 11:29 pm
Forum: Technical Discussion
Topic: Failed to eject "A:/"! issue and Reset
Replies: 3
Views: 65

Re: Failed to eject "A:/"! issue and Reset

Can you change the camera drive letter path to something other than A? That's for floppy disks. Please do that and see if the errors disappear.
by kwagyeman
Mon Sep 03, 2018 1:43 pm
Forum: Technical Discussion
Topic: DVDD: Power supply (+1.8v) for digital core to ground ?
Replies: 2
Views: 121

Re: DVDD: Power supply (+1.8v) for digital core to ground ?

We turn the internal regulator on the camera on.
by kwagyeman
Mon Sep 03, 2018 1:42 pm
Forum: General Topics
Topic: OpenMV M7 Cam Latency
Replies: 3
Views: 156

Re: OpenMV M7 Cam Latency

Um, if you set the exposure to nothing you'll have no latency but you'll need very bright lights to see.
by kwagyeman
Thu Aug 30, 2018 12:27 am
Forum: General Topics
Topic: Is it possible to use multiple cameras in tandem?
Replies: 4
Views: 343

Re: Is it possible to use multiple cameras in tandem?

Yeah, so, do you know how to general serial port communication? If so, then there are just subtle differences in the API on the camera but not much else. Let's start here. That said, I honestly can't really write the code for you. I don't have that kind of time anymore.
by kwagyeman
Wed Aug 29, 2018 12:35 pm
Forum: Technical Discussion
Topic: CAN Communication Problem OPENMV CAM M7
Replies: 5
Views: 216

Re: CAN Communication Problem OPENMV CAM M7

Hi, I bought the hardware to validate CAN bus communication but I have yet to actually check operation. The hardware on the MCU is definitely there and MicroPython supplies a driver for it but I can't tell you if anything works or not just yet. If you need CAN right now I'd recommend you to connect ...
by kwagyeman
Wed Aug 29, 2018 12:32 pm
Forum: Technical Discussion
Topic: Standby consumption
Replies: 10
Views: 390

Re: Standby consumption

Mmm, let me ask Ibrahim.
by kwagyeman
Wed Aug 29, 2018 11:40 am
Forum: General Topics
Topic: Is it possible to use multiple cameras in tandem?
Replies: 4
Views: 343

Re: Is it possible to use multiple cameras in tandem?

Yes, but, you need to develop a serial protocol to talk between the two cameras. Each camera will have it's own processor. As for frame sync. Just connect the FSIN of one camera to a pin set to output VSYNC to another.
by kwagyeman
Wed Aug 29, 2018 11:36 am
Forum: Technical Discussion
Topic: RGB565 to RGB888?
Replies: 5
Views: 196

Re: RGB565 to RGB888?

If you want 10b per pixel RAW you'll need to mess with the cameras register settings. It can output that. However, once you do this the byte size of the image will be different from what our code expects so you'll need to modify the C code. Um, the OmniVision cameras don't output 24 bits per pixel f...
by kwagyeman
Wed Aug 29, 2018 1:34 am
Forum: General Topics
Topic: Problem related to image.match_descriptor
Replies: 8
Views: 443

Re: Problem related to image.match_descriptor

I'll ping Ibrahim about this but I think we've basically abandoned that code.
by kwagyeman
Tue Aug 28, 2018 10:24 pm
Forum: Technical Discussion
Topic: RGB565 to RGB888?
Replies: 5
Views: 196

Re: RGB565 to RGB888?

Hi, our color conversion stuff is lacking.

Anyway, the conversation is done using a LUT. See the util scripts in the OpenMV GitHub for the code that generates the LUTs. It's on the top level of the OpenMV GitHub repo under util scripts.
by kwagyeman
Mon Aug 27, 2018 5:44 pm
Forum: Technical Discussion
Topic: Using OpenMV Cam M7 for Measuring Object Translation
Replies: 1
Views: 66

Re: Using OpenMV Cam M7 for Measuring Object Translation

Um, basically what you need to do is all standard python code. Once you've got the position of the pin you just have to keep track of where the pin is in the image.

Um, you have the x and y position. So, compare the current to the previous value and accumulate the distance.
by kwagyeman
Sun Aug 26, 2018 3:46 pm
Forum: Technical Discussion
Topic: Sensor settings
Replies: 6
Views: 91

Re: Sensor settings

Every frame more or less. Um, read this PDF:

https://cdn.shopify.com/s/files/1/0803/ ... 8855125476

This is for a different camera sensor but OmniVision doesn't actually change how core tech concepts work too much.
by kwagyeman
Sun Aug 26, 2018 1:21 pm
Forum: Technical Discussion
Topic: Sensor settings
Replies: 6
Views: 91

Re: Sensor settings

Software Application Note (.pdf)
by kwagyeman
Sun Aug 26, 2018 1:20 pm
Forum: Technical Discussion
Topic: Sensor settings
Replies: 6
Views: 91

Re: Sensor settings

Please visit the OpenMV Cam product page and download the sensor application note linked to the datasheet section of the page.
by kwagyeman
Wed Aug 22, 2018 10:46 pm
Forum: Technical Discussion
Topic: How to implement new sensor to openMV?
Replies: 6
Views: 166

Re: How to implement new sensor to openMV?

Um that value is abused. It means a lot of different things in different contexts.

0 -> Binary Image
1 -> Grayscale (1 byte per pixel)
2 -> RGB565 (2 bytes per pixel)
3 -> Bayer
4 >= -> Jpeg byte count
by kwagyeman
Tue Aug 21, 2018 7:28 pm
Forum: Technical Discussion
Topic: Image differencing three separate parts of camera view
Replies: 8
Views: 134

Re: Image differencing three separate parts of camera view

Could you post a snippet of code for others?
by kwagyeman
Tue Aug 21, 2018 3:36 pm
Forum: Technical Discussion
Topic: Image differencing three separate parts of camera view
Replies: 8
Views: 134

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: 6
Views: 166

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: 8
Views: 134

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: 6
Views: 166

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

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: 10
Views: 174

Re: openMV Firmware Build Instructions

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

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: 10
Views: 174

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

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

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: 10
Views: 174

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

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

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

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

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

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

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

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

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

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

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

Re: Script autostart

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

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

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

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

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

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

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

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

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

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

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 ...

Go to advanced search