본문 바로가기

camcv13

OPENCV RASPBERRY PI2 (JESSIE) 5 -얼굴인식 앞에서 picam으로 동영상을 촬영하는 것 까지는 했습니다. 이제 본격적인 얼굴인식을 해보겠습니다. 먼저 opencv-2.3.1을 다운받습니다. opencv 2.3.1 다운로드 다운로드가 안되면 여기서 다운로드 다운받은 파일을 압축을 풀어 폴더 안의 OpenCV-2.3.1/data/harrcascades폴더를usr/share/opencv/haarcascades로 복사합니다. SAMBA 이용시 Terminal 이용시 파일의 권한설정을 바꿔줍니다. 압축을 푼 후 /usr/share/opencv/haarcascades로 이동합니다. 압축을 푼 haarcascades폴더의 파일들을 복사해 옵니다. 이제 새로운 실행파일을 하나 다운로드 합니다. camcv_vid1.cpp 보기 그리고 cmakelists.txt를 .. 2016. 1. 27.
OPENCV RASPBERRY PI2 (JESSIE) 4 -VIDEO 이제 본격적인 opencv를 하기위해 video촬영을 이용하겠습니다. 이전까지 작업했던 camcv.c는 따로 백업을 해놓고 RaspVid.c를 이용하겠습니다. 먼저 수정을 해줘야 됩니다. 1234567We delete- all lines related to the preview component,- all lines related to the encoder component.- all lines related to inline command parsing and picture info…We change :- add the callback directly to the video_port (line 286)- create and attach the pool (to get/send message) to the.. 2016. 1. 27.
OPENCV RASPBERRY PI2 (JESSIE) 3 - OPENCV 라이브러리 앞서 찍은 사진을 파일로 빼는 것 까지 했고, 이제 본격적인 OPENCV를 해보겠습니다. 먼저 관련 패키지들을 설치해 줍니다. 1. GTK + UVC viewer 설치 1sudo apt-get install guvcviewcs 설치가 완료되면 설정을 해줍니다. 12sudo usermod -a -G video pisudo modprobe uvcvideocs 2. OPENCV 라이브러리 설치 1sudo apt-get install libopencv-devcs 좀 오래걸리니 커피라도~^^ 3. 파이선 Opencv 설치 1sudo apt-get install python-opencvcs 4. face recognition 설치 face recognition 다운로드 다운로드가 안될 경우 face recognit.. 2016. 1. 27.
OPENCV RASPBERRY PI2 (JESSIE) 2 - still shot(스틸 샷) 이제 파일을 옮겨서 본격적으로 해보겠습니다. 12345cdmkdir camcvcd camcvcp -r /opt/vc/userland/host_applications/linux/apps/raspicam/* .mv RaspiStill.c camcv.cColored by Color Scriptercs 그리고 stillshot을 찍는 raspistill.c를 camcv.c로 변경하였습니다. 이제 폴더랑 파일이 변경되었으니 다시 cmakelists.txt 를 변경해야 합니다. nano를 열어 cmakeliststxt를 변경합니다. 1sudo nano CMakeLists.txtcs 기존의 내용들을 모두 지우신 후 아래의 내용을 추가해 줍니다. 12345678910111213141516cmake_minimum_req.. 2016. 1. 26.
라즈베리파이 얼굴인식될때 GPIO 제어하기 라즈베리파이에서 GPIO를 쉽게 쓸 수 해주는 라이브러리가 몇개가 있는데, 대표적인게 wiringPi입니다. 라즈베리파이2까지 지원합니다.^^ 그런데 wiringPi를 camcv의 cmake로 컴파일 하기가 힘든거 같습니다. 더 자세히 말하면 컴파일은 되는데 실제 동작을 안하네요 ㅠㅠ 일단 CmakeList.txt에 추가한 내용은 아래와 같습니다. CmakeList.txt123SET(CMAKE_CXX_FLAGS "-pthread -I/usr/local/include -L/usr/local/lib -lwiringPi")include_directories(/usr/local/include/)target_link_libraries(/usr/local/lib/libwiringPi.so /usr/local/lib.. 2015. 9. 15.
Raspberry Pi2 picam에서 openCV 적용하기4 Raspbian JESSIE로 적용하기 이제 본격적인 opencv를 하기위해 video촬영을 이용하겠습니다. 이전까지 작업했던 camcv.c는 따로 백업을 해놓고 RaspVid.c를 이용하겠습니다. 먼저 수정을 해줘야 됩니다. 1234567We delete- all lines related to the preview component,- all lines related to the encoder component.- all lines related to inline command parsing and picture info…We change :- add the callback directly to the video_port (line 286)- create and attach the pool (to ge.. 2015. 4. 23.

인기글