mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
The old code did not actually implement the errode anhd dilate kernels correctly. However, it migh have been a little faster because it avoided the boundary problem. In the future we can optimize all the kernel code to have different loops for doing the edges of image versus the center. But, for now, this is good enough. QVGA color tracking with kernels will be slow, but, the speed can be improved with QQVGA resolution. Using a 3x3 kernel is plenty fast. Larger ones are slower. I also added the ability for you to set the threshold for erode and dialte. This lets you make the kenrel a little bit smarter so that it won't errode or dilate a pixel unless the threshold is met. Meaning, you'll be able to use erode to erode an image down to 1 pixel wide lines. |
||
|---|---|---|
| .. | ||
| data/haar | ||
| examples | ||
| tests | ||
| logo.png | ||
| openmv-cascade.py | ||
| openmv-fb.py | ||
| openmv-ide.glade | ||
| openmv-ide.py | ||
| openmv-ide.spec | ||
| openmv.py | ||
| pinout.png | ||
| pydfu.py | ||
| README.md | ||
Installing the Python OpenMV-IDE
Install libusb
For Linux
$ sudo apt-get install libusb-1.0-0 python-vte
For Everything else
Download and install: http://www.libusb.org/
Install PyUSB
$ sudo pip install --pre pyusb
Use the --pre flag if you are getting the following error. It tells pip to accept pre-release (alpha, beta) versions.
Could not find a version that satisfies the requirement pyusb (from versions: 1.0.0a2, 1.0.0a2, 1.0.0a3, 1.0.0a3, 1.0.0b1)
Install pySerial
$ sudo pip install pySerial