UDOO - Python-OPENCV TEST
To install OpenCV on the Ubuntu operating system.
sudo apt-get install python-dev python-numpy sudo apt-get update sudo apt-cache search opencv sudo apt-get install libcv-dev libcv2.3 libcvaux-dev libcvaux2.3 libhighgui-dev libhighgui2.3 libopencv-calib3d-dev libopencv-calib3d2.3 libopencv-contrib-dev libopencv-contrib2.3 libopencv-core-dev libopencv-core2.3 libopencv-dev libopencv-features2d-dev libopencv-features2d2.3 libopencv-flann-dev libopencv-flann2.3 libopencv-highgui-dev libopencv-highgui2.3 libopencv-imgproc-dev libopencv-imgproc2.3 libopencv-legacy-dev libopencv-legacy2.3 libopencv-ml-dev libopencv-ml2.3 libopencv-objdetect-dev libopencv-objdetect2.3 libopencv-video-dev libopencv-video2.3 python-opencv
Test Python-OpenCV
python cvx2.py car.jpeg
cvx2.py code:
import sys import cv2 import cv2.cv as cv from cv2.cv import * from cv2 import * if __name__=='__main__': if len(sys.argv)>1: image=cv2.imread(sys.argv[1]) cv2.imshow("UDOO-OPENCV",image ) cv2.waitKey(0)car.jpeg
没有评论:
发表评论