Search found 3723 matches

by kwagyeman
Thu Jan 23, 2020 2:06 pm
Forum: Project Discussion
Topic: Area Measurement
Replies: 12
Views: 437

Re: Area Measurement

Having that many thresholds will run very slow... try less thresholds...
by kwagyeman
Thu Jan 23, 2020 2:06 pm
Forum: Project Discussion
Topic: Area Measurement
Replies: 12
Views: 437

Re: Area Measurement

Try this (might have compile issues): import sensor, image, time, math #Thresholds (L Min, L Max, A Min, A Max, B Min, B Max). thresholds = [(38, 47, -20, -9, -28, -12), (15, 27, -19, 6, -23, 6), (38, 61, -27, -8, -28, -1), (18, 31, -20, 6, -31, 1), (16, 32, -16, 7, -23, 0), (24, 34, -13, 7, -26, -7...
by kwagyeman
Thu Jan 23, 2020 1:54 pm
Forum: Technical Discussion
Topic: Interface Library Discussion
Replies: 9
Views: 404

Re: Interface Library Discussion

Yeah, maybe. I will try. I have a bunch of driver firmware development to finish right now followed by clearing out bugs on GitHub, and ide release, and then this new library on my to-do list.
by kwagyeman
Thu Jan 23, 2020 12:39 am
Forum: Technical Discussion
Topic: length of transferred data through UART
Replies: 5
Views: 303

Re: length of transferred data through UART

Sorry, I thought I replied to this post a while back. Um, your NodeMCU code is not enough to do what I think needs to be done to receive the image. Can you comment out the part in the OpenMV Cam code where you send anything but the size and then edit the Arduino code to receive the size? The code yo...
by kwagyeman
Thu Jan 23, 2020 12:15 am
Forum: General Topics
Topic: issue with ucollections module
Replies: 2
Views: 118

Re: issue with ucollections module

Looks like that is missing from the module. Not sure why.

Please open a bug for this on GitHub.
by kwagyeman
Thu Jan 23, 2020 12:10 am
Forum: Technical Discussion
Topic: Interface Library Discussion
Replies: 9
Views: 404

Re: Interface Library Discussion

I'll allow you to set the I2C bus address of the OpenMV Cam for this. As for a finding circles example... if I have time.
by kwagyeman
Thu Jan 23, 2020 12:09 am
Forum: Technical Discussion
Topic: More than one thread
Replies: 1
Views: 85

Re: More than one thread

We can't run threads on the OpenMV Cam due to a bug in MicroPython that hasn't been resolved.

https://github.com/micropython/micropython/issues/3807
by kwagyeman
Tue Jan 21, 2020 10:04 pm
Forum: General Topics
Topic: Connection Wirelessly
Replies: 1
Views: 98

Re: Connection Wirelessly

We just have the wireless TV shield. Our WiFi shield is only good for command and control data transfer. The wireless TV shield allows you to transmit FPV video.
by kwagyeman
Tue Jan 21, 2020 10:03 pm
Forum: Technical Discussion
Topic: Interface Library Discussion
Replies: 9
Views: 404

Re: Interface Library Discussion

Hi Jcp13,

1. There's no API for anything specific, if you want to use the FLIR Lepton you can just use the interface library with it.
2. I would need community support to support the jetson. I'm just one person.
by kwagyeman
Tue Jan 21, 2020 10:02 pm
Forum: Technical Discussion
Topic: Interface Library Discussion
Replies: 9
Views: 404

Re: Interface Library Discussion

The goal is to make the OpenMV Cam into a co-processor that just does something when requested and then returns a result. Here's a simple example: On the Arduino I want to read a QR code string, so, I'll be able to attach an OpenMV Cam to the Arduino and use the interface library to do this. 1. On t...
by kwagyeman
Tue Jan 21, 2020 9:45 pm
Forum: Technical Discussion
Topic: QUESTION ABOUT FIR(MLX90640) CONNECTION
Replies: 7
Views: 1670

Re: QUESTION ABOUT FIR(MLX90640) CONNECTION

Rwan, would you mind posting which pins you used to connect? You just say it doesn't work and then provide no details.
by kwagyeman
Mon Jan 20, 2020 6:53 pm
Forum: Project Discussion
Topic: Area Measurement
Replies: 12
Views: 437

Re: Area Measurement

Okay, So, get the dots: .cx() and .cy() for the center x/y of the dots. It's not really important how you get the order of the dots. Once you have these 8 values... then follow this guide to get the area: http://mathforum.org/dr.math/faq/formulas/faq.quad.html I understand you might be basically ask...
by kwagyeman
Mon Jan 20, 2020 6:00 pm
Forum: Project Discussion
Topic: Area Measurement
Replies: 12
Views: 437

Re: Area Measurement

I understand what you are trying to do. I'm just asking what is the challenge?

If you are able to detect the dots right now can you post the code you are using to do that with? If so, then are you struggling with the math/python code to compute the area with the 4 detected dots?
by kwagyeman
Mon Jan 20, 2020 4:26 pm
Forum: Technical Discussion
Topic: Interface Library Discussion
Replies: 9
Views: 404

Interface Library Discussion

Hi all, We want to make the OpenMV Cam more friendly to interface to other processors and we will now support Interface libraries for the camera to the Arduino and RaspberryPi. The plan is to offer interface libraries for: The OpenMV Cam as slave processor over Aysnc Serial (UART, RX, TX) to the Ard...
by kwagyeman
Mon Jan 20, 2020 3:53 pm
Forum: Project Discussion
Topic: Area Measurement
Replies: 12
Views: 437

Re: Area Measurement

How big is the object? Can it be seen in the field of view? There's a find_rect() function which can find rectangles.

Anyway, if you have the points detected... then what's holding you up with the math? What method are you detecting the points by?
by kwagyeman
Mon Jan 20, 2020 3:51 pm
Forum: Technical Discussion
Topic: length of transferred data through UART
Replies: 5
Views: 303

Re: length of transferred data through UART

Do:
uart = UART(3, 500000)
uart.init(500000, bits=8 , parity=None , stop=1, timeout_char=1000)
The UART stops sending once it timeouts normally. This is the default MicroPython behavior that we inherit.
by kwagyeman
Sun Jan 19, 2020 8:50 pm
Forum: Technical Discussion
Topic: Unpacking data in arduino
Replies: 5
Views: 250

Re: Unpacking data in arduino

Code? And if possible please post the part that has the issue and not everything.

For future post... Please remember this is a forum where I'm answering questions. If you can post them in a way where I might be able to answer it quickly that helps
by kwagyeman
Sun Jan 19, 2020 11:40 am
Forum: Technical Discussion
Topic: Problem running usb_vcp.py code.
Replies: 10
Views: 476

Re: Problem running usb_vcp.py code.

Yes, it's full duplex. The fifo buffer on the OpenMV Cam can receive about 512 bytes before running out of space.
by kwagyeman
Sun Jan 19, 2020 11:39 am
Forum: Technical Discussion
Topic: Unpacking data in arduino
Replies: 5
Views: 250

Re: Unpacking data in arduino

The Arduino Uno has not memory onboard really so if you are using that you lost likely won't be able to do much. If you are using an arm based one you might be able to handle an image size. Mmm... Nodemcu is the esp32 right? That has plenty of ram. Anyway, if you sent the length of the image to the ...
by kwagyeman
Sat Jan 18, 2020 10:43 pm
Forum: Technical Discussion
Topic: Timer 4 Reserved Fix
Replies: 13
Views: 369

Timer 4 Reserved Fix

Hi all, a firmware release previously disabled timer 4. It is now fixed for the next release. Until then, please find the required firmware fix here:
by kwagyeman
Sat Jan 18, 2020 3:04 pm
Forum: General Topics
Topic: Count the white pixels on image
Replies: 3
Views: 224

Re: Count the white pixels on image

import sensor, image, time, math thresholds = (245, 255) sensor.reset() sensor.set_pixformat(sensor.GRAYSCALE) sensor.set_framesize(sensor.QQVGA) sensor.skip_frames(time = 3000) #Just to understand if the sensor needs time before start sensor.set_auto_gain(False) # must be turned off for color trac...
by kwagyeman
Sat Jan 18, 2020 3:00 pm
Forum: Technical Discussion
Topic: Unpacking data in arduino
Replies: 5
Views: 250

Re: Unpacking data in arduino

You just treat the 4 bytes as an int. int x = 0; x |= byte3 << 24; x |= byte2 << 16; x |= byte1 << 8; x |= byte0 << 0; x now has the value in in. Please read this: https://www.cs.cmu.edu/afs/cs/academic/class/15213-s09/www/lectures/02-bits-kesden.pdf Both processors are little endian. https://www.th...
by kwagyeman
Sat Jan 18, 2020 2:33 pm
Forum: Technical Discussion
Topic: Problem running usb_vcp.py code.
Replies: 10
Views: 476

Re: Problem running usb_vcp.py code.

For clarification, we only have one USB link to the PC. Print and the vcp send method do effectively the same thing and both use the same pipe. If you'd like to make your code more flexible If recommend just using the print method only and USB vcp read method. Then, in the desktop code just parse li...
by kwagyeman
Fri Jan 17, 2020 3:39 pm
Forum: General Topics
Topic: Count the white pixels on image
Replies: 3
Views: 224

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

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

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

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

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

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

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

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

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

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

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

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: 3
Views: 190

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

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

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

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

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

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

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

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

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

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

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

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

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

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.

Go to advanced search