2014年6月17日星期二

OpenCV installation for UDOO(Ubuntu)

    OpenCV is released under a BSD license and hence it’s free for both academic and commercial use. It has C++, C, Python and Java interfaces and supports Windows, Linux, Mac OS, iOS and Android. OpenCV was designed for computational efficiency and with a strong focus on real-time applications. Written in optimized C/C++, the library can take advantage of multi-core processing. Enabled with OpenCL, it can take advantage of the hardware acceleration of the underlying heterogeneous compute platform. Adopted all around the world, OpenCV has more than 47 thousand people of user community and estimated number of downloads exceeding 7 million. Usage ranges from interactive art, to mines inspection, stitching maps on the web or through advanced robotics.
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

没有评论:

发表评论