
I hope you found the MagPi article about my vision system interesting.
If you have any questions about using OpenCV image recognition on the Raspberry Pi, please post them here and I'll do my best to answer them.
best regards,
PiTeR

I started again with my scripts and got it to work by editing rc.local and adding the modprobe command, the export command and then starting my script using your example.guzunty wrote:Hi Steve,
LD_LIBRARY_PATH is not set in my default environment
What makes you think you need it set? If you have error messages, please post them and I'll help interpret them.
FWIW, to launch the PiTeR.py script automatically at boot time, I call it from the startup script /etc/rc.local. If you find you really need LD_LIBRARY_PATH set it would make sense to run the export command just before launching the Python script in rc.local. I start it like this:
(python /home/pi/Projects/Pi/src/gz_piter/Python/PiTeR.py > home/pi/Projects/Pi/src/gz_piter/Python/piterlog 2>&1)&
Derek
Code: Select all
imgThresholded = cv2.inRange(imgHSV, (lowH,lowS, lowV), (highH, highS, highV))Code: Select all
sudo apt-get install libopencv-dev python-opencvCode: Select all
sudo apt-get install python-opencvCode: Select all
other code (loading image, converting to HSV format etc)
now=time.time()
imgThresholded = cv2.inRange(imgHSV, (lowH,l owS, lowV), (highH, hi ghS, highV))
print (time.time()-now)
more code...