Search found 1396 matches

by kwagyeman
Sat Feb 17, 2018 3:30 pm
Forum: Project Discussion
Topic: OpenMV on ESP8266/ESP32
Replies: 3
Views: 1481

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Re: Max recursion

Do the simple one first, and if you think you need more performance then switch.
by kwagyeman
Sun Feb 04, 2018 2:22 pm
Forum: Technical Discussion
Topic: Max recursion
Replies: 3
Views: 43

Re: Max recursion

You're running code on a microcontroller. You shouldn't have any code that re-curses in general. If you need to do something recursive then you may wish to use a list to keep track of what you are up to. A memory inefficient way to do this is to just store context using object state on a list. E.g. ...
by kwagyeman
Sat Feb 03, 2018 10:19 pm
Forum: Technical Discussion
Topic: Camera disconnects from IDE when running script (sometimes)
Replies: 20
Views: 1383

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

I found this: https://aud-ios.com/2017/10/22/usb-monitoring-with-wireshark/. I just need to see the traffic from OpenMV IDE to the OpenMV Cam. So, start logging before you hit connect. Then hit connect, you should see the logger print some stuff going on, then click the run button, afterwards please...
by kwagyeman
Sat Feb 03, 2018 12:32 pm
Forum: General Topics
Topic: Connect the camera to an LCD via Wi-Fi
Replies: 1
Views: 1509

Re: Connect the camera to an LCD via Wi-Fi

You can't have both the WiFi shield and the LCD shield at the same time. They both need the SPI bus.

Note, the reason we don't have wifi onboard by default is because of cost.
by kwagyeman
Sat Feb 03, 2018 1:29 am
Forum: Technical Discussion
Topic: Fresh install on OSX 10.11: TypeError: function does not take keyword
Replies: 7
Views: 2111

Re: Fresh install on OSX 10.11: TypeError: function does not take keyword

We were asked not to do this before. Previously we forced a firmware update on all users before running a script. I guess we can do something similar.
by kwagyeman
Sat Feb 03, 2018 1:27 am
Forum: Technical Discussion
Topic: 3.4 FPS on Find_Line_Segments example
Replies: 8
Views: 7225

Re: 3.4 FPS on Find_Line_Segments example

Add your unix user name. This is a unix issue for accessing serial ports.
by kwagyeman
Fri Feb 02, 2018 12:09 am
Forum: Technical Discussion
Topic: 3.4 FPS on Find_Line_Segments example
Replies: 8
Views: 7225

Re: 3.4 FPS on Find_Line_Segments example

How to build the firmware is here: https://github.com/openmv/openmv/wiki Then change the call here: https://github.com/openmv/openmv/blob/master/src/omv/py/py_image.c#L2895 To using this method: https://github.com/openmv/openmv/blob/master/src/omv/img/hough.c#L762 Note that the two functions don't e...
by kwagyeman
Wed Jan 31, 2018 1:01 pm
Forum: Technical Discussion
Topic: 3.4 FPS on Find_Line_Segments example
Replies: 8
Views: 7225

Re: 3.4 FPS on Find_Line_Segments example

Just pass the "ROI" argument.

E.g. roi=(0, 0, 40, 40)

To only run the algorithm on the x=0, y=0, w=40, h=40 area of the image.
by kwagyeman
Wed Jan 31, 2018 1:18 am
Forum: Technical Discussion
Topic: 3.4 FPS on Find_Line_Segments example
Replies: 8
Views: 7225

Re: 3.4 FPS on Find_Line_Segments example

Hi, we switched algorithms to using the same one OpenCV uses. It's called the LSD line segment detection algorithm. There are papers on it along with C code that I ported. To the camera. It's slow but very accurate. My custom algorithm which you saw on the video is a lot faster but the lines are mor...
by kwagyeman
Tue Jan 30, 2018 4:52 pm
Forum: Project Discussion
Topic: Circle detection in a certain position
Replies: 4
Views: 3544

Re: Circle detection in a certain position

Please work to get to the point where you can get the OpenMV Cam turning the relay and the solenoid off and on in a loop. Once you've gotten to a point where you have good control over what you need we can move to the vision part.
by kwagyeman
Tue Jan 30, 2018 4:51 pm
Forum: Project Discussion
Topic: Circle detection in a certain position
Replies: 4
Views: 3544

Re: Circle detection in a certain position

Okay, great. So, see the pin control example script in the File->Examples->Board control directly and that's how you can make an IO pin high or low. As for timing, see the pyb module documentation for how to delay for some number of seconds or milliseconds. To control the actuator you need a relay o...

Go to advanced search