Search found 3829 matches

by kwagyeman
Fri Jan 24, 2020 12:38 pm
Forum: Technical Discussion
Topic: Serial comunication with Arduino
Replies: 3
Views: 623

Re: Serial comunication with Arduino

Can you wrap your code in the code tags the forum has so it's more readable and fix the indentation?
by kwagyeman
Fri Jan 24, 2020 11:36 am
Forum: Technical Discussion
Topic: Method speed scaling to 5MP images
Replies: 3
Views: 596

Re: Method speed scaling to 5MP images

The OV5640 supports outputting jpeg images, so, it's cheap to get a 5MP image stream since we just have to receive the data and write it to disk.
by kwagyeman
Fri Jan 24, 2020 1:40 am
Forum: Technical Discussion
Topic: Method speed scaling to 5MP images
Replies: 3
Views: 596

Re: Method speed scaling to 5MP images

Yes, but, after qrcode, barcode, and datamatrix stuff. If you want to offer financial support to help make these faster now email us. As for speed... Yeah, going beyond 640x480 you are looking at sub 1 fps for any of the more serious algorithms. The point of the OpenMV Cam H7 plus was to allow folks...
by kwagyeman
Fri Jan 24, 2020 1:36 am
Forum: Project Discussion
Topic: Flat Field Correction
Replies: 1
Views: 634

Re: Flat Field Correction

Use the img.difference() method. See the frame differencing scripts for an example of how to do this. You can allocate a second frame buffer and then difference the current image using that.
by kwagyeman
Fri Jan 24, 2020 1:35 am
Forum: Project Discussion
Topic: Area Measurement
Replies: 12
Views: 1219

Re: Area Measurement

It's in pixels, so, you need to rescale the value. Lookup how to scale a number from one range to another in Python. Note that it's an area so it's pixels^2. Also... The size of each pixels in space in determined by the distance from the camera... So, whatever scaling method you figure out will only...
by kwagyeman
Thu Jan 23, 2020 2:08 pm
Forum: Project Discussion
Topic: Area Measurement
Replies: 12
Views: 1219

Re: Area Measurement

Regarding the area, that seems about right. You can compare by making the rects almost straight in the field of view and then selecting that area in OpenMV IDE and seeing if the numbers are similar.
by kwagyeman
Thu Jan 23, 2020 2:06 pm
Forum: Project Discussion
Topic: Area Measurement
Replies: 12
Views: 1219

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

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: 12
Views: 1396

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

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

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: 12
Views: 1396

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

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

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: 12
Views: 1396

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: 12
Views: 1396

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

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

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

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: 12
Views: 1396

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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?

Go to advanced search