Open CV Open source Computer Vision Library Protocol
Open. CV : : Open source Computer Vision Library Protocol Laboratory the department of Nano electronics engineer-ing
공과대학 정보통신공학부 Engineering college. Department of Information & Communication 프로토콜 연구실 1. 세미나 진행 순서 • Open. CV 소개 • Open. CV 환경 구축 • 실제 적용 방법 소개(Hand tracking) 공주대학교 Kongju national university
공과대학 정보통신공학부 Engineering college. Department of Information & Communication 프로토콜 연구실 2. Open. CV 환경구축 • 다운 : http: //www. sourceforge. net/projects/opencvlibrary • 별도의 설정이 필요 없이 간단히 설치가 됩니다. • 2009년 6월 기준으로 v 1. 1이 제공되고 있습니다. 공주대학교 Kongju national university
공과대학 정보통신공학부 Engineering college. Department of Information & Communication 프로토콜 연구실 Click! Window 버전 다운 공주대학교 Kongju national university
공과대학 정보통신공학부 Engineering college. Department of Information & Communication 프로토콜 연구실 기본 샘플 제공 <지원가능한 개발툴> VS 6. 0 VS 2005 VS 2008 <설치목록> Lib 파일 설치 소스코드 설치 헤더파일 설치 공주대학교 Kongju national university
공과대학 정보통신공학부 Engineering college. Department of Information & Communication 프로토콜 연구실 2. Open. CV 환경구축 • Open. CV v 1. 1 : cvcam. lib 통합되어 사라짐 • VS 6. 0, VS 2005 환경 구축의 경우는 Open. CV KOREA 포럼에서 확 인하기 바랍니다. • C: ₩Program Files₩Open. CV -> 기본설치폴더 경로 공주대학교 Kongju national university
공과대학 정보통신공학부 Engineering college. Department of Information & Communication 프로토콜 연구실 2. Open. CV 환경구축 • 메뉴 탭 도구 > 옵션 선택 • Manu tab tool > option 공주대학교 Kongju national university
공과대학 정보통신공학부 Engineering college. Department of Information & Communication 프로토콜 연구실 2. Open. CV 환경구축 • Open. CV : : Add Include file directory path C: PROGRAM FILESOPENCVCXCOREINCLUDE C: PROGRAM FILESOPENCVCVINCLUDE C: PROGRAM FILESOPENCVOTHERLIBSHIGHGUI • Open. CV : : Add Library file directory path C: PROGRAM FILESOPENCVLIB 공주대학교 Kongju national university
공과대학 정보통신공학부 Engineering college. Department of Information & Communication 프로토콜 연구실 2. Open. CV 환경구축 • 메뉴 탭 프로젝트 > 프로젝트 속성 • Manu tab Project > Property 공주대학교 Kongju national university
공과대학 정보통신공학부 Engineering college. Department of Information & Communication 프로토콜 연구실 2. Open. CV 환경구축 • Open. CV : : Add Header files #include <cv. h> #include <cxcore. h> #include <highgui. h> • Open. CV : : DLL file Paste in workspace folder C: PROGRAM FILESOPENCVBIN cv 110. dll, cxcore 110. dll, highgui 110. dll 공주대학교 Kongju national university
공과대학 정보통신공학부 Engineering college. Department of Information & Communication 프로토콜 연구실 #include <cv. h> #include <highgui. h> void main() { Ipl. Image* image = 0; // image 선언 image = cv. Load. Image(“abc. jpg", 1); // abc. jpg 파일을 읽어 들임 cv. Named. Window( “Viewer", 1); // 윈도우 생성 cv. Show. Image( “Viewer ", image ); // 이미지를 보여줌 cv. Wait. Key(0); // 키 입력을 기다림 cv. Destroy. Window( “Viewer " ); // 윈도우 종료 } 공주대학교 Kongju national university
공과대학 정보통신공학부 Engineering college. Department of Information & Communication 프로토콜 연구실 #include <cv. h> #include <highgui. h> void main() { Ipl. Image* image = 0; // 이미지 구조체 생성 Cv. Capture* capture = cv. Capture. From. CAM(0); // 0번째 캠 읽기 cv. Named. Window( “Camera", 0 ); // 윈도우 생성 cv. Resize. Window( “Camera", 320, 240 ); // 윈도우 사이즈 설정 while(1) { cv. Grab. Frame( capture ); // 카메라로 부터 입력받음 image = cv. Retrieve. Frame( capture ); // 이미지 변수에 저장 공주대학교 cv. Show. Image( “Camera", image ); Kongju national university
공과대학 정보통신공학부 Engineering college. Department of Information & Communication 프로토콜 연구실 if( cv. Wait. Key(10) >= 0 ) // 엔터키 입력시 종료 break; } cv. Release. Capture( &capture ); // 메모리 반환 cv. Destroy. Window( “Camera" ); // 윈도우 제거 } 공주대학교 Kongju national university
공과대학 정보통신공학부 Engineering college. Department of Information & Communication 프로토콜 연구실 Thank you~! 공주대학교 Kongju national university
- Slides: 18