CvCapture *cap = cvCaptureFromCAM(0);



1. cvCaptureFromCAM()


2. cvCapture


VideoCapture



VIDEOIO ERROR: V4L2: Pixel format of incoming image is unsupported by OpenCV

Unable to stop the stream: Device or resource busy

OpenCV Error: Unspecified error (GStreamer: unable to start pipeline


빌드시 옵션

g++ -ggdb video.cpp -o video `pkg-config --cflags --libs opencv`





참고 사이트

동영상녹화 : http://blog.naver.com/PostView.nhn?blogId=sangtakeg&logNo=120092132260


'OpenCV' 카테고리의 다른 글

GStreamer사용법  (0) 2016.05.15
OpenCV 설치  (0) 2015.04.21

"링크":http://bagng.tistory.com/116

'OpenCV' 카테고리의 다른 글

[OpenCV] 함수  (0) 2018.08.09
OpenCV 설치  (0) 2015.04.21

 

 

sudo apt-get install libopencv-dev 

 

Install Dependencies

 

sudo apt-get install build-essential checkinstall cmake pkg-config yasm
sudo apt-get install libtiff4-dev libjpeg-dev libjasper-dev
sudo apt-get install libavcodec-dev libavformat-dev libswscale-dev libdc1394-22-dev libxine-dev libgstreamer0.10-dev libgstreamer-plugins-base0.10-dev libv4l-dev
sudo apt-get install python-dev python-numpy
sudo apt-get install libtbb-dev
sudo apt-get install libqt4-dev libgtk2.0-dev

 

http://sourceforge.net/projects/opencvlibrary/files/opencv-unix/2.4.10/opencv-2.4.10.zip/download

접속 및 소스 다운로드

 

압축풀고

mkdir build

cd build

cmake

make

 

sudo make -j6 install

 

li@li:/$ pkg-config --modversion opencv

 

이클립스 opencv

예제소스및 eclipse 설정방법

https://sites.google.com/site/opencvwikiproject/table-of-contents/opencv-tutorials/introduction-to-opencv/using-opencv-with-eclipse-plugin-cdt

 


 

'OpenCV' 카테고리의 다른 글

[OpenCV] 함수  (0) 2018.08.09
GStreamer사용법  (0) 2016.05.15

+ Recent posts