Search found 3600 matches

by kwagyeman
Fri Jan 17, 2020 3:39 pm
Forum: General Topics
Topic: Count the white pixels on image
Replies: 1
Views: 6

Re: Count the white pixels on image

Call the find_blobs(), pass color thresholds which look for white, then sum the pixels() value for each blob up. See the grayscale color tracking example to get started.
by kwagyeman
Fri Jan 17, 2020 11:22 am
Forum: Technical Discussion
Topic: Problem running usb_vcp.py code.
Replies: 6
Views: 112

Re: Problem running usb_vcp.py code.

Can you post the code in non screen shot form?
by kwagyeman
Fri Jan 17, 2020 1:46 am
Forum: General Topics
Topic: Len type
Replies: 3
Views: 88

Re: Len type

Oh, a standard camera should work for a line follower robot. You don't need to modify the lens. I thought you wanted to view something at a microscopic level.
by kwagyeman
Wed Jan 15, 2020 1:34 am
Forum: Technical Discussion
Topic: Problem running usb_vcp.py code.
Replies: 6
Views: 112

Re: Problem running usb_vcp.py code.

Yes, a couple of things can happen. 1st, what serial port name does your OpenMV Cam appear as? The script we gave as an example expects a certain serial port name. Other than that... Can you verify the main.py script on the camera is the example script and was saved to the camera as main.py? Please ...
by kwagyeman
Wed Jan 15, 2020 1:30 am
Forum: Technical Discussion
Topic: How can I access LEPTON API using OpenMV IDE?
Replies: 7
Views: 429

Re: How can I access LEPTON API using OpenMV IDE?

Print() the values. They will then appear in the terminal in the IDE.

The OpenMV Cam runs MicroPython onboard. You can do a great many things in python onboard it to manipulate data and print it.
by kwagyeman
Wed Jan 15, 2020 1:17 am
Forum: Technical Discussion
Topic: Change RTC clock to external oscillator
Replies: 4
Views: 118

Re: Change RTC clock to external oscillator

Hi,

We don't really know either as it's not something we support.

The PYB module is the same for our board and like the pyb board however. So, whatever works for the pub board should work for the OpenMV Cam.
by kwagyeman
Tue Jan 14, 2020 3:23 pm
Forum: General Topics
Topic: Part size measurement. Hardware questions.
Replies: 9
Views: 322

Re: Part size measurement. Hardware questions.

Note, in the upcoming firmware we increased the speed of find_line_segments to 20 fps or so.
by kwagyeman
Tue Jan 14, 2020 3:22 pm
Forum: General Topics
Topic: GSM/LTE
Replies: 3
Views: 95

Re: GSM/LTE

Since we are a MicroPython board please Google for a MicroPython driver for a popular cellular modem. Someone has likely made an open source one. Otherwise, you have to write your own.
by kwagyeman
Tue Jan 14, 2020 1:34 am
Forum: Technical Discussion
Topic: How can I access LEPTON API using OpenMV IDE?
Replies: 7
Views: 429

Re: How can I access LEPTON API using OpenMV IDE?

First... I recommend looking at the API code for for the lepton too. It helps: https://github.com/openmv/openmv/tree/master/src/lepton/src https://github.com/openmv/openmv/tree/master/src/lepton/include Then, here's the code for that: import sensor, struct def read_enable(en): sensor.ioctl(sensor.IO...
by kwagyeman
Mon Jan 13, 2020 11:14 pm
Forum: Technical Discussion
Topic: Change RTC clock to external oscillator
Replies: 4
Views: 118

Re: Change RTC clock to external oscillator

You need to spin your own board design and modify the firmware. This isn't something we can support you on.
by kwagyeman
Mon Jan 13, 2020 11:13 pm
Forum: Technical Discussion
Topic: What is the best method to sleep for 300 seconds ?
Replies: 3
Views: 78

Re: What is the best method to sleep for 300 seconds ?

We support saving 5MP images to the SD card. You can also run our algorithms on the 5MP image (will be very slow however).
by kwagyeman
Mon Jan 13, 2020 3:46 pm
Forum: Technical Discussion
Topic: Problem running usb_vcp.py code.
Replies: 6
Views: 112

Re: Problem running usb_vcp.py code.

That looks like no data was received and then you Ctrl+c the script.
by kwagyeman
Mon Jan 13, 2020 3:44 pm
Forum: Technical Discussion
Topic: Code Splitting
Replies: 1
Views: 39

Re: Code Splitting

Oh, just call get_stats() with the ROI set the area of the blob and pass the threshold argument with the colors used to find the blob. This will then give you the color stats of the blob.
by kwagyeman
Mon Jan 13, 2020 1:47 am
Forum: General Topics
Topic: 'image' object has no attribute 'classify_object'
Replies: 3
Views: 57

Re: 'image' object has no attribute 'classify_object'

Yes, we have TensorFLow from Google onboard now. Please see the Machine Learning examples (in particular, the person detection one). Note that while we can run Google Tensor Flow lite for Microcontroller models the whole TensorFlow library is still Alpha right now. Google is missing some layers whic...
by kwagyeman
Mon Jan 13, 2020 12:57 am
Forum: General Topics
Topic: 'image' object has no attribute 'classify_object'
Replies: 3
Views: 57

Re: 'image' object has no attribute 'classify_object'

That example is not valid anymore and should be removed. We changed the API for that code...

I see that's the CNN example under feature detection.

Will put a bug on removing that...
by kwagyeman
Sun Jan 12, 2020 10:41 am
Forum: Technical Discussion
Topic: Flashing Green, then white once, then dead... bricked?
Replies: 6
Views: 91

Re: Flashing Green, then white once, then dead... bricked?

That's the normal operating procedure. It goes dark because it's running a script onboard. What script did you put on it? You may have a script onboard that blocks USB access or causes the camera firmware to crash. In this case please select the option with the bootloader to erase the internal upy d...
by kwagyeman
Sun Jan 12, 2020 10:38 am
Forum: Technical Discussion
Topic: Flashing green forever - Cannot connect
Replies: 1
Views: 24

Re: Flashing green forever - Cannot connect

Hi, this means the firmware update failed. The bootloader is running repeatedly over and over again.

That said, you should be able to reflash the camera by clicking connect on the ide when the camera is not connected, plug the camera in when prompted, and then it should relfash it and be good again.
by kwagyeman
Sat Jan 11, 2020 4:29 pm
Forum: Technical Discussion
Topic: Flashing Green, then white once, then dead... bricked?
Replies: 6
Views: 91

Re: Flashing Green, then white once, then dead... bricked?

Hi, if the bootloader is running on the camera then the green light flashes. You should not have the wire connected to the BOOT0/RST pins. ... So, there are two ways to load firmware on the camera: 1. Our bootloader 2. DFU which is built-into the chip itself. Our bootloader runs on power on, flashes...
by kwagyeman
Sat Jan 11, 2020 4:26 pm
Forum: General Topics
Topic: Part size measurement. Hardware questions.
Replies: 9
Views: 322

Re: Part size measurement. Hardware questions.

You were talking about finding rectangles. So, I thought you were looking at a box. Just use find_line_segments(). Then it will return a list of line segments. See the example under feature detection examples to get started. 1. To make the algorithm run faster constrain the ROI of the code to just t...
by kwagyeman
Sat Jan 11, 2020 4:20 pm
Forum: Project Discussion
Topic: Autonomous driving in predefined colored lanes
Replies: 4
Views: 138

Re: Autonomous driving in predefined colored lanes

Yes: http://docs.openmv.io/library/omv.image ... ine-object

Question... googling this is pretty trivial. Is there something I need to do to make the API location more available?
by kwagyeman
Sat Jan 11, 2020 12:07 pm
Forum: Project Discussion
Topic: Determine square wire sizes
Replies: 3
Views: 76

Re: Determine square wire sizes

Yes, you have to filter the output. That's entirely up to you in regular python code and by tuning the threshold argument of find_rect. Our computer vision code just gives you the image->objects extraction. You then have to write a lot of code to throw away what you don't want. No way around this pa...
by kwagyeman
Sat Jan 11, 2020 12:05 pm
Forum: General Topics
Topic: Stereovision
Replies: 7
Views: 471

Re: Stereovision

We use the 8 bit data bus for the MT9V034. There's no way to connect two cameras to the OpenMV Cam without an external FPGA in the data path that combines the two images into one. Designing that type of hardware would be complex. Our software would give you a head start but otherwise it's a lot of w...
by kwagyeman
Fri Jan 10, 2020 10:38 pm
Forum: Technical Discussion
Topic: Use recorded video
Replies: 1
Views: 56

Re: Use recorded video

Yes, the IDE has an option that allows you to concert video to a file the OpenMV Cam can quickly read and process. Once this is done, move the video file on the camera and run the Image Reader script which can read the video file and let you process frames based on that.
by kwagyeman
Fri Jan 10, 2020 10:36 pm
Forum: Technical Discussion
Topic: Flashing Green, then white once, then dead... bricked?
Replies: 6
Views: 91

Re: Flashing Green, then white once, then dead... bricked?

The flashing green led is the bootloader and the flashing white led is the firmware on the board panicking because there's a hardware failure. Since the bootloader is still fine you can reprogram the board using the ide by just clicking connect while the board is not connected to the ide and followi...
by kwagyeman
Fri Jan 10, 2020 1:30 am
Forum: Technical Discussion
Topic: Pipeline for finding hough lines in a binary image
Replies: 4
Views: 89

Re: Pipeline for finding hough lines in a binary image

Oh, we have a optimizer that we hired... I may ask him to work on find_line_segments next. He might be able to 2-3x the performance on that code...
by kwagyeman
Fri Jan 10, 2020 1:29 am
Forum: General Topics
Topic: Part size measurement. Hardware questions.
Replies: 9
Views: 322

Re: Part size measurement. Hardware questions.

Please start with the find_line_segments() algorithm. It will give you line segments for the edge of the box which you can use to measure the length. There's also the find_rect() method.
by kwagyeman
Fri Jan 10, 2020 1:25 am
Forum: Technical Discussion
Topic: Pipeline for finding hough lines in a binary image
Replies: 4
Views: 89

Re: Pipeline for finding hough lines in a binary image

Just run find_lines() this method does the sobel filter and then hough transform in one step. We don't really have the memory to due these independently like with OpenCV. So, our methods typically do multiple things per call. The output will be a list of lines which you can filter by their angle and...
by kwagyeman
Fri Jan 10, 2020 1:23 am
Forum: Project Discussion
Topic: Autonomous driving in predefined colored lanes
Replies: 4
Views: 138

Re: Autonomous driving in predefined colored lanes

So, the environment you are in is easy to work in. Fixed lighting, etc. So, it's doable. Um, regarding lane following, to do that well is actually quite involved. It typically requires doing some 3D rotation of the image and re-projecting it and then finding horizontal lines that can be fit to the l...
by kwagyeman
Thu Jan 09, 2020 1:17 am
Forum: General Topics
Topic: Len type
Replies: 3
Views: 88

Re: Len type

Hi, we don't have anything in stock that can focus at that close. You'll likely need to buy a custom lens from Edmunds Optics and you should feed them the camera chip size (1/4th inch) along with the lens mount type (m12) and height.
by kwagyeman
Thu Jan 09, 2020 1:15 am
Forum: General Topics
Topic: OV2640 module for H7 cam
Replies: 22
Views: 1598

Re: OV2640 module for H7 cam

Use grayscale, as that camera is only grayscale.
by kwagyeman
Thu Jan 09, 2020 1:14 am
Forum: Technical Discussion
Topic: Pipeline for finding hough lines in a binary image
Replies: 4
Views: 89

Re: Pipeline for finding hough lines in a binary image

Binary images probably have too strong of an edge strength making the Hough lines algorithm go crazy.

I'd recommend running the find_line_segements() method instead. It does a lot of filtering on the output which should help.
by kwagyeman
Wed Jan 08, 2020 11:55 am
Forum: Project Discussion
Topic: Determine square wire sizes
Replies: 3
Views: 76

Re: Determine square wire sizes

Have you seen the find rectangle command under examples -> feature detection? Also, try out find line segments under that sample example folder.
by kwagyeman
Wed Jan 08, 2020 11:53 am
Forum: Technical Discussion
Topic: Flashing green LED on boot
Replies: 2
Views: 55

Re: Flashing green LED on boot

It's in the bootloader. The flashing green led is the bootloader running.
by kwagyeman
Wed Jan 08, 2020 11:53 am
Forum: Technical Discussion
Topic: pixels in centimeters
Replies: 1
Views: 41

Re: pixels in centimeters

The camera has no way to know what the size of the object is. You have to write code that converts pixels to mm using a scaling method. It should be a linear scale for your object so just measure how many pixels equals how many cm and multiply the pixels by that ratio.
by kwagyeman
Wed Jan 08, 2020 1:56 am
Forum: General Topics
Topic: Hexagon vs square
Replies: 2
Views: 71

Re: Hexagon vs square

Use the find_line_segments() method. Then constrain the roi for the find_line_segments algorithm to where you expect the object to be. Then, count the number of returned line segments and threshold the returned line segments for only ones that are quite strong. You should end up with 4 line segments...
by kwagyeman
Tue Jan 07, 2020 2:23 am
Forum: General Topics
Topic: Part size measurement. Hardware questions.
Replies: 9
Views: 322

Re: Part size measurement. Hardware questions.

Thanks, but, I was asking more about how you'd use the OpenMV Cam in this situation? What is the camera looking at and what does the picture look like?
by kwagyeman
Mon Jan 06, 2020 3:44 pm
Forum: Project Discussion
Topic: Laser spot detection
Replies: 4
Views: 307

Re: Laser spot detection

I think you're having issues because you are trying to control the PWM in software when it's a hardware timer process. The PWM example doesn't use a callback to set the PWM signal. It's entirely driven by the hardware. Okay, Ibrahim in the last firmware update reserved timer 4 and in the next firmwa...
by kwagyeman
Mon Jan 06, 2020 3:40 pm
Forum: General Topics
Topic: Part size measurement. Hardware questions.
Replies: 9
Views: 322

Re: Part size measurement. Hardware questions.

Hi, can you show me a picture of what the issue is?

I can't tell what you are struggling with.
by kwagyeman
Mon Jan 06, 2020 12:41 pm
Forum: General Topics
Topic: 5MP OV5640 sensor on STM32F765
Replies: 3
Views: 198

Re: 5MP OV5640 sensor on STM32F765

I'm actively working on getting the speed up. It's hard however since the OV5640 isn't as simple as the other Omnivision cameras. I've found how to get a 2x speed boost already but I need to unlock 2x more speed on top of that to hit the correct fps.
by kwagyeman
Mon Jan 06, 2020 12:44 am
Forum: Technical Discussion
Topic: Accessing extra_fb's pixels
Replies: 2
Views: 219

Re: Accessing extra_fb's pixels

Code: Select all

image_t *arg_msk =
        py_helper_keyword_to_image_mutable_mask(n_args, args, 2, kw_args);
Is probably NULL. I think the 2 should be a 1. Or, pass mask=extra_fb in your python code.
by kwagyeman
Mon Jan 06, 2020 12:41 am
Forum: Technical Discussion
Topic: Cannot connect to the H7 Camera Board
Replies: 5
Views: 238

Re: Cannot connect to the H7 Camera Board

Hi, we update the camera firmware with new code constantly and fix bugs. You don't have to update... and given how small our operation is some firmware updates brake things. But, generally you want to update the camera. The firmware is on our github and is updated constantly.
by kwagyeman
Sat Jan 04, 2020 3:12 pm
Forum: Project Discussion
Topic: Using OpenMV for text
Replies: 1
Views: 204

Re: Using OpenMV for text

There's just a CNN that we trained a while ago that can do this for one letter. However, general text reading is not possible right now. The focus push this year is to build out an automatic CNN training pipeline. However, we can only do classification and image segmentation. Anything else is likely...
by kwagyeman
Fri Jan 03, 2020 8:14 pm
Forum: Technical Discussion
Topic: Extracting any pixel temperature data from the frame using Lepton
Replies: 1
Views: 185

Re: Extracting any pixel temperature data from the frame using Lepton

You can do this by opening a file in python and then using the get_pixel() method to read each grayscale pixel value. Then you just need to scale the pixel temp (see the example I talk about in your other post) and then write that value to the file. Please note the file will be very large. Alternati...
by kwagyeman
Fri Jan 03, 2020 8:12 pm
Forum: Technical Discussion
Topic: Temperature value of each pixel captured by LEPTON
Replies: 5
Views: 310

Re: Temperature value of each pixel captured by LEPTON

If you want to get the temperature per pixel please run the "lepton target temp hot spot color tracking" example under the FLIR lepton examples. You can set the min and max range which all pixels are mapped to in the image. Then pixels will go from 0-255 within your range you set. To get the temp pe...
by kwagyeman
Fri Jan 03, 2020 8:10 pm
Forum: Technical Discussion
Topic: Temperature value of each pixel captured by LEPTON
Replies: 5
Views: 310

Re: Temperature value of each pixel captured by LEPTON

Hi, do something like this to get the SPOT-O-Meter value: import sensor, struct data = sensor.ioctl(sensor.IOCTL_LEPTON_GET_ATTRIBUTE, 0x4ED0, 4) radSpotmeterValue, radSpotmeterMaxValue, radSpotmeterMinValue, radSpotmeterPopulation = struct.unpack("<HHHH", data) For other commands, you just need to ...
by kwagyeman
Fri Jan 03, 2020 1:57 pm
Forum: Project Discussion
Topic: Laser spot detection
Replies: 4
Views: 307

Re: Laser spot detection

Anyway, can you describe your problem in a clear way? Maybe I can point you in the right direction.
by kwagyeman
Fri Jan 03, 2020 1:57 pm
Forum: Project Discussion
Topic: Laser spot detection
Replies: 4
Views: 307

Re: Laser spot detection

Howdy, please use the find_blobs() method to track a laser spot. ... Regarding all your questions for color conversion, the OpenMV Cam works on an RGB565 image. Because it s a microcontroller without a lot of RAM we don't convert the color space of the image. Instead, our algorithms work on the pixe...
by kwagyeman
Thu Jan 02, 2020 2:08 pm
Forum: General Topics
Topic: Auto focus
Replies: 6
Views: 2108

Re: Auto focus

You have to write your own code to do this. We don't provide a routine for this.
by kwagyeman
Wed Jan 01, 2020 9:31 pm
Forum: Technical Discussion
Topic: Recommend method to transmit image over Cellular
Replies: 1
Views: 186

Re: Recommend method to transmit image over Cellular

The easiest thing to do is to use a cellular modem that talks UART serial and just port the library to the OpenMV Cam and then use the OpenMV Cam's UART.

Go to advanced search