반응형
출처 : http://blog.naver.com/hextrial/60167419343
자세한 설명이 나와있다.
http://www.ozbotz.org/opencv-installation/
참조 :
http://karytech.blogspot.kr/2012/05/opencv-24-on-ubuntu-1204.html
설치후 간단한 소스로 테스트 해 보려면 다음을 참조
http://opencv.willowgarage.com/wiki/Getting_started
#include <cv.h>
#include <highgui.h>
int main ( int argc, char **argv )
{
cvNamedWindow( "My Window", 1 );
IplImage *img = cvCreateImage( cvSize( 640, 480 ), IPL_DEPTH_8U, 1 );
CvFont font;
double hScale = 1.0;
double vScale = 1.0;
int lineWidth = 1;
cvInitFont( &font, CV_FONT_HERSHEY_SIMPLEX | CV_FONT_ITALIC,
hScale, vScale, 0, lineWidth );
cvPutText( img, "Hello World!", cvPoint( 200, 400 ), &font,
cvScalar( 255, 255, 0 ) );
cvShowImage( "My Window", img );
cvWaitKey();
return 0;
}
그리고 cmake 파일은 다음과 같이 꾸민다.
PROJECT( helloworld_proj )
FIND_PACKAGE( OpenCV REQUIRED )
ADD_EXECUTABLE( helloworld helloworld.cxx )
TARGET_LINK_LIBRARIES( helloworld ${OpenCV_LIBS} )
반응형
'개발 & 기술 > 컴퓨터 비전' 카테고리의 다른 글
| YOLO v11 한국어 사용법, 객체 인식 5분 시작 가이드 (0) | 2026.05.26 |
|---|---|
| 우분투에 OpenCV 3.0 설치 (0) | 2015.09.22 |
| PCL 1.8 Install (0) | 2015.09.11 |
| Trouble Shooting (0) | 2014.09.28 |
| PCL 1.7 설치 (0) | 2014.09.15 |