Search found 3723 matches

by kwagyeman
Fri Jan 10, 2020 1:25 am
Forum: Technical Discussion
Topic: Pipeline for finding hough lines in a binary image
Replies: 5
Views: 198

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

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

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

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: 5
Views: 198

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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.
by kwagyeman
Wed Jan 01, 2020 1:14 pm
Forum: General Topics
Topic: Auto focus
Replies: 6
Views: 2203

Re: Auto focus

?
by kwagyeman
Mon Dec 30, 2019 5:34 pm
Forum: Technical Discussion
Topic: Temperature value of each pixel captured by LEPTON
Replies: 5
Views: 410

Re: Temperature value of each pixel captured by LEPTON

Hi, you need to put the camera into a target temperature range mode (see the flir example scripts) and then comment out the code in the example scripts that markup the image with blob locations. You can then save the image to an SD card or save the image in OpenMV IDE by right clicking on the screen...
by kwagyeman
Mon Dec 30, 2019 4:17 pm
Forum: General Topics
Topic: NN support on OpenMV
Replies: 4
Views: 614

Re: NN support on OpenMV

Hi, we are moving all our support to using TensorFlow models now. Please see the tf module: http://docs.openmv.io/library/omv.tf.html?highlight=tf#module-tf Please note that you need to make sure you use mobilenet as the model you use transfer learning with. Google has not yet released all operation...
by kwagyeman
Mon Dec 30, 2019 1:42 pm
Forum: General Topics
Topic: Still Unable to Get Accurate Temps from Lepton3.5 Even after Firmware Update
Replies: 4
Views: 421

Re: Still Unable to Get Accurate Temps from Lepton3.5 Even after Firmware Update

Okay, I see your issue. So, you have to set the min and max temp range. The whole image is filled with pixels where the min and max temps represent 0 to 255. That said, as you increase the temp range it's harder to see subtle temperature contrasts because the image is scaled across such a wide range...
by kwagyeman
Sun Dec 29, 2019 8:19 pm
Forum: General Topics
Topic: Still Unable to Get Accurate Temps from Lepton3.5 Even after Firmware Update
Replies: 4
Views: 421

Re: Still Unable to Get Accurate Temps from Lepton3.5 Even after Firmware Update

Hey, can you give me a raw image capture with markups of what you are capturing? Also, please make sure you are running the target temperature capture script that puts the Lepton into the mode where you get the actual temperature value from the image versus AGC mode (the default) that just makes up ...
by kwagyeman
Sun Dec 29, 2019 5:39 pm
Forum: Technical Discussion
Topic: Burned mybe
Replies: 1
Views: 197

Re: Burned mybe

5v into the 3.3v pin would definitely destroy the main processor and camera sensor. Reversing the power wouldn't normally do that on Vin since we have diode power protection. If you reversed the power on the 3.3v pin would break the system even more than 5v unreversed because the voltages would add ...
by kwagyeman
Sun Dec 29, 2019 5:09 pm
Forum: General Topics
Topic: Still Unable to Get Accurate Temps from Lepton3.5 Even after Firmware Update
Replies: 4
Views: 421

Re: Still Unable to Get Accurate Temps from Lepton3.5 Even after Firmware Update

If you didn't erase the file system the script onboard the camera will continue to run. That's why the blue led didn't blink. Should add an if statement on the ide text to handle that...

Um, regarding the temp. Let me check out what's going on.
by kwagyeman
Sat Dec 28, 2019 6:19 pm
Forum: Technical Discussion
Topic: Streaming videos from OpenMV to nodeMCU
Replies: 5
Views: 443

Re: Streaming videos from OpenMV to nodeMCU

Hi, we don't really provide Arduino libraries since the camera ins't a fixed function sensor. It's another microcontroller so you can literally make it talk to your Arduino in whatever way you'd like. As for the image data. What Arduino are you plugging the OpenMV Cam into? A standard AVR Arduino is...
by kwagyeman
Fri Dec 27, 2019 9:35 pm
Forum: Technical Discussion
Topic: Streaming videos from OpenMV to nodeMCU
Replies: 5
Views: 443

Re: Streaming videos from OpenMV to nodeMCU

Just do like: jpg = img.compress() UART.write(struct.pack("<I", len(jpg))) UART.write(jpg) This will send the length and then the jpg image bytes. Any PC that can read a jpg image byte stream can view the jpg image. So, you can setup some code to stream mjpeg images with nodemcu and then you just se...
by kwagyeman
Fri Dec 27, 2019 4:27 pm
Forum: Technical Discussion
Topic: Streaming videos from OpenMV to nodeMCU
Replies: 5
Views: 443

Re: Streaming videos from OpenMV to nodeMCU

Hi, the image can be jpeg compressed on the OpenMV Cam and then you can send a the length of the image along with the image data to the device.

Most Microcontrollers can't actually buffer in ram raw image sizes since they are huge. Is there a reason you need to send raw image data?
by kwagyeman
Fri Dec 27, 2019 12:47 pm
Forum: Project Discussion
Topic: Standard Lens FOV
Replies: 11
Views: 1187

Re: Standard Lens FOV

Hi, the OpenMV Cam doesn't run OpenCV code because we are a Microcontroller which doesn't have an operating system on it.

As for getting pixel stats for an area. Please use the get_stats() method to get pixel stats of an area.
by kwagyeman
Fri Dec 27, 2019 9:05 am
Forum: Project Discussion
Topic: Extracting text from QR Codes
Replies: 15
Views: 4655

Re: Extracting text from QR Codes

codes[0].payload()[1] Will return 1 character. If you want 4 characters starting from position 1 do: codes[0].payload()[1:4] Note that these are general python questions you are asking. If you Google how python strings work you'd be able to solve these more quickly. ... The payload method returns a ...
by kwagyeman
Tue Dec 24, 2019 11:01 am
Forum: Project Discussion
Topic: Extracting text from QR Codes
Replies: 15
Views: 4655

Re: Extracting text from QR Codes

It's codes[0] not code[0].

Accessing code[0] makes no sense. That variable isn't in scope at that time in your code. However, since MP doesn't garbage cleanup variables quickly you don't get an error about accessing an out of scope variable... But, you are doing that.
by kwagyeman
Tue Dec 24, 2019 9:26 am
Forum: Project Discussion
Topic: Detect movement and direction
Replies: 8
Views: 712

Re: Detect movement and direction

MicroPython doesn't allow you to do things like this. Objects are static and can't be added to.

Instead, create a new tuple or object with a blob inside it and the other fields you want.
by kwagyeman
Mon Dec 23, 2019 8:18 pm
Forum: Technical Discussion
Topic: ATWINC1500-MR210PB firmware
Replies: 6
Views: 549

Re: ATWINC1500-MR210PB firmware

The IDE should ask you when it starts to download updated resources... If this isn't happening it would be due to the IDE not being able to ping our server. In that case, the firmware is here: https://github.com/openmv/openmv/releases/tag/v3.5.2 Open the zip file and the firmware for the WiFi shield...
by kwagyeman
Mon Dec 23, 2019 5:01 pm
Forum: Project Discussion
Topic: Trash level detection
Replies: 2
Views: 400

Re: Trash level detection

You have to think about a way this will work. I.e. what is the camera pointed at and what you are trying to detect. The camera is a sensor and if you want good results you need to think about what it's facing and how to eliminate variables like lighting and etc to make the detection job easy.
by kwagyeman
Mon Dec 23, 2019 4:57 pm
Forum: Technical Discussion
Topic: ATWINC1500-MR210PB firmware
Replies: 6
Views: 549

Re: ATWINC1500-MR210PB firmware

Please download the lastest IDE resources.
by kwagyeman
Sun Dec 22, 2019 5:32 pm
Forum: General Topics
Topic: Github sponsors as way to help fund
Replies: 3
Views: 308

Re: Github sponsors as way to help fund

I haven't looked into that. I guess we could sign up for funding via GitHub. In particular, I would love to have more funding to hire folks to help with software development. For example, software optimization of features for ARM Cortex processors to make some of the operations faster. What kind of ...
by kwagyeman
Sun Dec 22, 2019 4:54 pm
Forum: Technical Discussion
Topic: H7 camera flashes red when plugged in, then starts blinking white
Replies: 5
Views: 370

Re: H7 camera flashes red when plugged in, then starts blinking white

Hi, where did you buy the OpenMV Cam from? Is the PCB board red and does it have a qrcode on the back of it? The white flashing LED indicates a hardware failure typically. Reflashing the firmware sometimes can fix this. You can do so by clicking the connect button on OpenMV IDE without the OpenMV Ca...
by kwagyeman
Thu Dec 19, 2019 11:55 am
Forum: General Topics
Topic: Stereovision
Replies: 7
Views: 587

Re: Stereovision

Yes, if you send data out the serial port over USB then the camera blocks on that data transmit. If you are trying to sync cameras you have to keep in mind that you have to deal with that. You should use a master device a that generates a trigger capture signal to each camera. I.e. if you have two c...
by kwagyeman
Thu Dec 19, 2019 11:49 am
Forum: Technical Discussion
Topic: View real time coordinates
Replies: 1
Views: 269

Re: View real time coordinates

Hi, are you trying to view that point on your computer or on our LCD display?
by kwagyeman
Thu Dec 19, 2019 11:31 am
Forum: Technical Discussion
Topic: The image De-bayered from RAW-RGB format has noise on object edge.
Replies: 4
Views: 534

Re: The image De-bayered from RAW-RGB format has noise on object edge.

1. Yes, we debayer the image. It's slow, but, it works.
2. There's no one function that sends data to the IDE. See the usbdbg.c file and the framebuffer.c code. It's a complex system to transfer data to the IDE.
by kwagyeman
Tue Dec 17, 2019 12:36 pm
Forum: Technical Discussion
Topic: The image De-bayered from RAW-RGB format has noise on object edge.
Replies: 4
Views: 534

Re: The image De-bayered from RAW-RGB format has noise on object edge.

I understand you need help on this... but, you're essentially asking us to debug code unrelated to our product... we don't provide help support for that... Given our debayer method is open-source... um, why not just start with our code and modify it slightly repeatedly and check that you changes don...
by kwagyeman
Tue Dec 17, 2019 12:32 pm
Forum: General Topics
Topic: Stereovision
Replies: 7
Views: 587

Re: Stereovision

What's the question?
by kwagyeman
Mon Dec 16, 2019 3:07 pm
Forum: Technical Discussion
Topic: Communication with Arduino Mega - Serial or I2C?
Replies: 7
Views: 439

Re: Communication with Arduino Mega - Serial or I2C?

In the other post you just posted to there's an example of that.
by kwagyeman
Mon Dec 16, 2019 11:38 am
Forum: Technical Discussion
Topic: Communication with Arduino Mega - Serial or I2C?
Replies: 7
Views: 439

Re: Communication with Arduino Mega - Serial or I2C?

Can you post the code that you think is in error? I know the serial comm code is robust... I've built a robot that uses it to communicate between the OpenMV Cam and an Arduino and it works fine.

Please post the serial comm side snippet and etc.
by kwagyeman
Sun Dec 15, 2019 8:36 pm
Forum: General Topics
Topic: Stereo camera systems with OpenMV, stereo vision
Replies: 1
Views: 229

Re: Stereo camera systems with OpenMV, stereo vision

There's a frame sync pin on each camera that you can use to sync the video. That said, it's not really that critical to sync each frame as our default camera is a rolling shutter camera. As such, we aren't really movement invariant. If you are trying to detect something that's moving fast you have t...

Go to advanced search