Search found 1407 matches

by kwagyeman
Thu Feb 22, 2018 10:47 am
Forum: Technical Discussion
Topic: OpenMV cam for motion direction detection?
Replies: 6
Views: 25

Re: OpenMV cam for motion direction detection?

The auto gain/exposure algorithm continually updates the camera settings to deal with this. That said, vastly changing lighting conditions will ruin most systems. Note that the current sensor isn't a global shutter sensor.
by kwagyeman
Wed Feb 21, 2018 10:00 pm
Forum: Technical Discussion
Topic: OpenMV cam for motion direction detection?
Replies: 6
Views: 25

Re: OpenMV cam for motion direction detection?

You can control the exposure and use an IR lens to see in pitch black. I've tested this and it works. The image is grayscale only though, but, that's fine for motion detection.

The outputs are 5V tolerant. Nothing else. They are 3.3v I/Os directly connected to the MCU.
by kwagyeman
Wed Feb 21, 2018 1:52 pm
Forum: Technical Discussion
Topic: OpenMV cam for motion direction detection?
Replies: 6
Views: 25

Re: OpenMV cam for motion direction detection?

See the blog. On the first page you'll see a video about optical flow phase correlation. This does exactly what you want.
by kwagyeman
Wed Feb 21, 2018 1:36 am
Forum: Technical Discussion
Topic: Blob Statistics - stats of blob instead of rect?
Replies: 2
Views: 8

Re: Blob Statistics - stats of blob instead of rect?

Hi, this firmware does what you need. Call get_histogram() or get_statistics() with the new "threshold = [ (,,,,,), (,,,,,), etc. ]" and "invert = bool" args. These work just like on find_blobs. If you don't pass the threshold list get_* works like normally. If you pass the threshold list only color...
by kwagyeman
Tue Feb 20, 2018 11:59 pm
Forum: Technical Discussion
Topic: Blob Statistics - stats of blob instead of rect?
Replies: 2
Views: 8

Re: Blob Statistics - stats of blob instead of rect?

Ah... I see what you need me to do. I'll have to add this to the firmware. Basically, you need me to constrain the histogram given a rect to the color thresholds you used for the blob. We had this same feature on the CMUcam4. I can have this done for you by tomorrow. It's very easily. I just have to...
by kwagyeman
Mon Feb 19, 2018 2:31 pm
Forum: Project Discussion
Topic: OpenMV on ESP8266/ESP32
Replies: 6
Views: 4448

Re: OpenMV on ESP8266/ESP32

Um, for our upcoming STM32H7 launch we need to performance test on the Raspberry PI zero. So, maybe by May/June. Once we get the library in portable state it will run on any machine.
by kwagyeman
Mon Feb 19, 2018 12:18 pm
Forum: General Topics
Topic: Face detection on "Vertical video"
Replies: 1
Views: 16

Re: Face detection on "Vertical video"

Just use the rotation correction method: http://docs.openmv.io/library/omv.image.html#image.img.rotation_corr ... I plan to add 90 degree rotation correction also to sensor in the future which will be less compute on the CPU. But, for now, we just have the above method. Um, anyway, you might need to...
by kwagyeman
Sun Feb 18, 2018 11:41 pm
Forum: General Topics
Topic: linpolar example error
Replies: 5
Views: 1978

Re: linpolar example error

Here you go: import sensor, time, image # Reset sensor sensor.reset() # Sensor settings sensor.set_contrast(1) sensor.set_gainceiling(16) # HQVGA and GRAYSCALE are the best for face tracking. sensor.set_framesize(sensor.HQVGA) sensor.set_pixformat(sensor.GRAYSCALE) # Load Haar Cascade # By default t...
by kwagyeman
Sun Feb 18, 2018 2:00 pm
Forum: Project Discussion
Topic: Extracting text from QR Codes
Replies: 5
Views: 1310

Re: Extracting text from QR Codes

Qr codes require the background to be white. The scanning algorithm looks for certain attributes about the area around a QR code before decoding them. In particular, you absolutely need to have enough of a white border around the codes or the algorithm ignores the codes. As for your second question....
by kwagyeman
Sun Feb 18, 2018 12:49 am
Forum: General Topics
Topic: linpolar example error
Replies: 5
Views: 1978

Re: linpolar example error

Hi, to do that you need to store a list that is not tossed per frame. Then draw that list every frame. This doesn't require a lot of CPU power... But keep in mind the limited heap space. Just take the object that is returned, what it is and add it to a list. Then if that list grows over let's say 10...
by kwagyeman
Sat Feb 17, 2018 3:30 pm
Forum: Project Discussion
Topic: OpenMV on ESP8266/ESP32
Replies: 6
Views: 4448

Re: OpenMV on ESP8266/ESP32

The AprilTag code is in this file: You can port it if you want... https://github.com/openmv/openmv/blob/master/src/omv/img/apriltag.c It depends on a ton of stuff in our code library though. Note that the EPS floating point performance is 7X worse than the OpenMV Cam. https://blog.classycode.com/esp...
by kwagyeman
Sat Feb 17, 2018 2:21 pm
Forum: Project Discussion
Topic: OpenMV on ESP8266/ESP32
Replies: 6
Views: 4448

Re: OpenMV on ESP8266/ESP32

Hi, that video just shows how OpenMV IDE can talk to any micropython board over a REPL terminal. There is no way as of right now to use OpenMV code with an ESP32.
by kwagyeman
Sat Feb 17, 2018 2:19 pm
Forum: General Topics
Topic: UART data communication to arduino board question?
Replies: 7
Views: 12730

Re: UART data communication to arduino board question?

Try the attached. You might see some compile errors.
by kwagyeman
Sat Feb 17, 2018 1:42 am
Forum: General Topics
Topic: UART data communication to arduino board question?
Replies: 7
Views: 12730

Re: UART data communication to arduino board question?

On the Arduino side:

https://www.google.com/search?q=arduino ... e&ie=UTF-8

You need a method to read a line of text. I.e. keep reading text until you see '/n'.
by kwagyeman
Sat Feb 17, 2018 1:35 am
Forum: General Topics
Topic: UART data communication to arduino board question?
Replies: 7
Views: 12730

Re: UART data communication to arduino board question?

Try this code: # Single Color RGB565 Blob Tracking Example import sensor, image, time import time from pyb import UART uart = UART(3,9600, timeout_char = 1000) threshold_index = 0 # 0 for red, 1 for green, 2 for blue thresholds = [(30, 100, 15, 127, 15, 127), # generic_red_thresholds (30, 100, -64, ...
by kwagyeman
Fri Feb 16, 2018 11:51 am
Forum: General Topics
Topic: UART data communication to arduino board question?
Replies: 7
Views: 12730

Re: UART data communication to arduino board question?

Please post your OpenMV Cam code and Arduino code.
by kwagyeman
Thu Feb 15, 2018 11:06 am
Forum: Technical Discussion
Topic: FOV and lens question
Replies: 1
Views: 2978

Re: FOV and lens question

Hi, the 115 degree is what was quoted by the lens provider. Yeah, I agree its likely less given what I see. I guess I can work the math to get the real FoV for our given setup. The 1.7mm lens does provide a much wider field of view than the default one. Anyway, the info on the website is just the qu...
by kwagyeman
Wed Feb 14, 2018 7:59 pm
Forum: Technical Discussion
Topic: Issue with external interrupt
Replies: 1
Views: 2150

Re: Issue with external interrupt

Don't create the interrupt in the loop. Make it outside of the loop.
by kwagyeman
Wed Feb 14, 2018 2:01 pm
Forum: General Topics
Topic: importing a *.bmp file
Replies: 5
Views: 5313

Re: importing a *.bmp file

Hi, the forum may require you to zip up files you post to the website. Um, so, you put the file on the camera and tried loading it. What's the exact issue again? Sometimes our software has issues loading BMP files. We have much better support for ppm and pgm files which are easier to parse. You can ...
by kwagyeman
Wed Feb 14, 2018 12:01 pm
Forum: Project Discussion
Topic: A Bio-inspired Collision Detector
Replies: 7
Views: 1041

Re: A Bio-inspired Collision Detector

If you have code it's way easier for me to port. A lot less of my time then.
by kwagyeman
Wed Feb 14, 2018 11:59 am
Forum: Project Discussion
Topic: Extracting text from QR Codes
Replies: 5
Views: 1310

Re: Extracting text from QR Codes

Sorry, I meant .payload().

The parens are important.
by kwagyeman
Tue Feb 13, 2018 12:39 pm
Forum: Project Discussion
Topic: Extracting text from QR Codes
Replies: 5
Views: 1310

Re: Extracting text from QR Codes

Do: codes = img.find_qrcodes() for code in codes: img.draw_rectangle(code.rect(), color = (255, 0, 0)) print(code) if codes: if code[0].payload == "LEFT": s1 = pyb.Servo(1) s1.angle(45) This extracts the text for the first QR code seen. The find QR codes method returns a list of objects, so, I put t...
by kwagyeman
Tue Feb 13, 2018 12:34 pm
Forum: Project Discussion
Topic: A Bio-inspired Collision Detector
Replies: 7
Views: 1041

Re: A Bio-inspired Collision Detector

If I wrote the input/output part and left you to just write the raw algorithm would that work?

I can make a branch and put the input and output stuff together pretty easily.

A question though, how do you see a img method working? What arguments should it take... what kind of object should it return.
by kwagyeman
Mon Feb 12, 2018 11:30 pm
Forum: Project Discussion
Topic: A Bio-inspired Collision Detector
Replies: 7
Views: 1041

Re: A Bio-inspired Collision Detector

That algorithm is pretty easy implement. Would you like to give it a shot in C? It seems to require 3 frames in RAM to work but you can easily store that now with the new alloc_extra_fb command.
by kwagyeman
Mon Feb 12, 2018 6:51 pm
Forum: Project Discussion
Topic: A Bio-inspired Collision Detector
Replies: 7
Views: 1041

Re: A Bio-inspired Collision Detector

Hi, for the next release about to come out I finally have optical flow working really well.
by kwagyeman
Mon Feb 12, 2018 12:30 pm
Forum: Technical Discussion
Topic: AttributeError: 'module' object has no attribute 'alloc_extra_fb'
Replies: 9
Views: 271

Re: AttributeError: 'module' object has no attribute 'alloc_extra_fb'

OpenMV 3 is the OpenMV Cam M7. OpenMV 2 is the M4 board, 1 is the oldest OpenMV Cam from 2013 that was never sold commerically. 4 is the upcoming H7 model.
by kwagyeman
Mon Feb 12, 2018 10:53 am
Forum: Project Discussion
Topic: OpenMV M7 with Raspberry Pi and OpenCV Feasibility
Replies: 3
Views: 1826

Re: OpenMV M7 with Raspberry Pi and OpenCV Feasibility

Have you considered using AprilTags for tracking? These are QRcode like things which we can track at about 10 FPS from out to 8 ft away. AprilTags are rotation, scale, and skew invariant. They sound like more of what you need. Each AprilTag encodes a number from 0 to 511. Template tracking is just f...
by kwagyeman
Sun Feb 11, 2018 10:01 pm
Forum: Technical Discussion
Topic: how do i command fan ESC from M7?
Replies: 1
Views: 1290

Re: how do i command fan ESC from M7?

Hi, so, the third party external library support for the OpenMV Cam is kinda thin... But, you have to start somewhere. Um, if you can find a MicroPython library for what you need we can run it. Anyway, how is the ESC controlled? Can you send me a link to the product? If it's controllable like a serv...
by kwagyeman
Sun Feb 11, 2018 9:58 pm
Forum: Project Discussion
Topic: OpenMV M7 with Raspberry Pi and OpenCV Feasibility
Replies: 3
Views: 1826

Re: OpenMV M7 with Raspberry Pi and OpenCV Feasibility

Hi, There's no point in using the OpenMV Cam as a webcam for the PI. It's not really good at that. Better to buy a camera for the Pi. That said, the Pi is not exponentially faster than the OpenMV Cam at image processing. If you're finding template matching too slow on the camera you're not going to ...
by kwagyeman
Sun Feb 11, 2018 1:48 pm
Forum: Technical Discussion
Topic: Send data from OpenMV Camera to PC
Replies: 3
Views: 2845

Re: Send data from OpenMV Camera to PC

You can do this but the OpenMV Cam only has one serial port to the PC which OpenMV IDE uses for debugging the camera. So, if you want to use the IDE and a serial port to the PC you need to add an FTDI chip to the device and use the hardware UART to send data back to the PC. Once you're done debuggin...
by kwagyeman
Sat Feb 10, 2018 2:31 am
Forum: Technical Discussion
Topic: Out of Memory Error
Replies: 2
Views: 3540

Re: Out of Memory Error

Yes, use the compress() method versus compressed (). Compress() compressed in place. The ed() method creates a copy in the heap which is tiny.
by kwagyeman
Fri Feb 09, 2018 1:24 am
Forum: General Topics
Topic: Importing a custom class
Replies: 6
Views: 3503

Re: Importing a custom class

Hi, library management is now working in OpenMV IDE. It will automatically scan a user folder now along with the examples folder for imports in your code and copy/update modules as necessary.
by kwagyeman
Thu Feb 08, 2018 11:54 pm
Forum: Project Discussion
Topic: Realtime Color Tracking With Arduino and OpenMV
Replies: 2
Views: 3917

Re: Realtime Color Tracking With Arduino and OpenMV

That looks like the first OpenMV Cam made a while back.

Um, the OpenMV Cam can control the servos all by itself. You don't need the Arduino.

That said, do you have a rig setup to track the color yet? This is the harder part.
by kwagyeman
Thu Feb 08, 2018 4:34 pm
Forum: General Topics
Topic: missing find_circles
Replies: 1
Views: 1960

Re: missing find_circles

Yeah, sorry, there's no list of missing features on the M4.

Um, there's a file though to see what we removed...

https://github.com/openmv/openmv/blob/m ... b_config.h
by kwagyeman
Wed Feb 07, 2018 10:31 pm
Forum: Technical Discussion
Topic: Find_Line_Seg doesn't work with ROI from saved image?
Replies: 3
Views: 3517

Re: Find_Line_Seg doesn't work with ROI from saved image?

Which algorithm is this? The old one? This looks like a bug. Check that you are passing ROI right.
by kwagyeman
Wed Feb 07, 2018 10:24 pm
Forum: Technical Discussion
Topic: OpenMV IDE on aarch64 (Nvidia Jetson TX1)
Replies: 13
Views: 2672

Re: OpenMV IDE on aarch64 (Nvidia Jetson TX1)

I see. I don't know how to solve this problem for you with our current resources. It's just me an Ibrahim working on OpenMV right now. We're really busy rolling out a lot of feature necessary for DIY Robocar racing and the upcoming H7 module which will double the feature performance. Anyway, so, the...
by kwagyeman
Wed Feb 07, 2018 5:49 pm
Forum: General Topics
Topic: usb cable
Replies: 4
Views: 747

Re: usb cable

You can buy those anywhere. It's just a standard USB micro cable. They are available every where.
by kwagyeman
Wed Feb 07, 2018 5:00 pm
Forum: Technical Discussion
Topic: OpenMV IDE on aarch64 (Nvidia Jetson TX1)
Replies: 13
Views: 2672

Re: OpenMV IDE on aarch64 (Nvidia Jetson TX1)

So, unless you are programming the OpenMV Cam you don't need OpenMV IDE. What's your goal with OpenMV IDE on the Jetson? To view what the OpenMV Cam sees or to be able to reprogram it? You can do all these things without the IDE in general. For example, if you'd like to send custom scripts to the ca...
by kwagyeman
Wed Feb 07, 2018 10:54 am
Forum: Technical Discussion
Topic: OpenMV IDE on aarch64 (Nvidia Jetson TX1)
Replies: 13
Views: 2672

Re: OpenMV IDE on aarch64 (Nvidia Jetson TX1)

I was only able to make the OpenMV IDE work on arm by using the qtrpi tools. Getting 64-bit support requires doing a full recompile of qt.

This is somewhat of a magnificent amount of work and frustration.

Anyway, why are you trying to run OpenMV IDE of a TX1? Just curious.
by kwagyeman
Tue Feb 06, 2018 11:15 pm
Forum: Technical Discussion
Topic: OpenMV IDE on aarch64 (Nvidia Jetson TX1)
Replies: 13
Views: 2672

Re: OpenMV IDE on aarch64 (Nvidia Jetson TX1)

I can't really help you with answering that question. Generally you have to keep installing stuff until it works.
by kwagyeman
Tue Feb 06, 2018 11:10 pm
Forum: Technical Discussion
Topic: OpenMV IDE on aarch64 (Nvidia Jetson TX1)
Replies: 13
Views: 2672

Re: OpenMV IDE on aarch64 (Nvidia Jetson TX1)

Mmm, this must be because you are running a 64-bit OS. Linux doesn't let you mix 32-bit and 64-bit apps easily. You'll need to install all the 32-bit libs. https://support.humblebundle.com/hc/en-us/articles/202759400-Installing-32-bit-libs-on-a-64-bit-Linux-system https://askubuntu.com/questions/454...
by kwagyeman
Tue Feb 06, 2018 9:14 pm
Forum: General Topics
Topic: usb cable
Replies: 4
Views: 747

Re: usb cable

Um, our USB cables aren't special. Any USB cable you can buy from anywhere is fine.

Are you talking about the USB connector on the board?
by kwagyeman
Tue Feb 06, 2018 8:02 pm
Forum: Technical Discussion
Topic: OpenMV IDE on aarch64 (Nvidia Jetson TX1)
Replies: 13
Views: 2672

Re: OpenMV IDE on aarch64 (Nvidia Jetson TX1)

Note that the IDE runs fine without 64 bit support.
by kwagyeman
Tue Feb 06, 2018 8:01 pm
Forum: Technical Discussion
Topic: OpenMV IDE on aarch64 (Nvidia Jetson TX1)
Replies: 13
Views: 2672

Re: OpenMV IDE on aarch64 (Nvidia Jetson TX1)

If that arch is arm then the Raspberry Pi port should run on it. The raspberry pi port is for the oldest raspberry pi architecture.

Otherwise, unless there's a Qt version it's going to be an extreme amount of work.
by kwagyeman
Mon Feb 05, 2018 6:42 pm
Forum: Technical Discussion
Topic: OSError: Failed to write requested bytes!
Replies: 1
Views: 38

Re: OSError: Failed to write requested bytes!

You need an SD card with your camera. The internal flash drive is only 96kb which can't handle an image.

As for the roi=Auto, that just means the default ROI is the whole image. If you want to save something smaller pass an ROI rectangle tuple (x,y,w,h).
by kwagyeman
Sun Feb 04, 2018 5:54 pm
Forum: Technical Discussion
Topic: Camera disconnects from IDE when running script (sometimes)
Replies: 20
Views: 1413

Re: Camera disconnects from IDE when running script (sometimes)

Hi, I uploaded a new version of the IDE with the fix here: http://upload.openmv.io/openmv-ide-mac-1.8.0.dmg

Give it a try.
by kwagyeman
Sun Feb 04, 2018 3:58 pm
Forum: Technical Discussion
Topic: Max recursion
Replies: 3
Views: 46

Re: Max recursion

Do the simple one first, and if you think you need more performance then switch.

Go to advanced search