mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
Speed up the algorithm by fixing the abs() issue. Do not use that function in any of your code. It by itself cut the speed of the code in half. I don't know what's in that function but I'm guessing it does ABS of a float using ints or something. I made the zoom parameter functional now too so you can use lens_corr to zoom in on the image. Argument parsing is handled too. Finally, I updated the only script where this is used. Note that I'm able to get more than 10 FPS at 160x120 on the M4 and 15 FPS at 160x120 on the M7. Previous this was at about 5 FPS and 7.5 FPS respectively. |
||
|---|---|---|
| .. | ||
| data/haar | ||
| examples | ||
| gdk_rthook.py | ||
| loaders.cache | ||
| 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