• 검색 결과가 없습니다.

카메라모듈제어카메라모듈제어

N/A
N/A
Protected

Academic year: 2022

Share "카메라모듈제어카메라모듈제어"

Copied!
13
0
0

로드 중.... (전체 텍스트 보기)

전체 글

(1)

컴퓨터 네트워크 설계

청주대학교 융합전자공학부 전자공학전공 한철수

카메라 모듈 제어

(2)

목차

2

• 라즈베리 파이 카메라 모듈의 개요

• 사진 촬영 명령어

• 동영상 촬영 명령어

• 제어 연습

(3)

라즈베리 파이 카메라 모듈

3

• 카메라 모듈을 이용해 사진 및 영상을 고화질로 촬영할 수 있 음.

• 카메라 모듈과 라즈베리 파이의 CSI 카메라 포트를 FFC 케이 블로 연결함.

FFC: Flexible Flat Cable

CSI: Camera Serial Interface

CSI 카메라 포트

(4)

라즈베리 파이와 카메라 모듈의 통신

4

• 카메라 모듈의 제어는 I2C 통신을 통해 이루어 지고, 데이터의 전송은 병렬 통신을 통해 이루어짐.

(5)

사진 촬영 명령어

5

• raspistill 명령어는 카메라 모듈을 이용해 사진을 촬영하는 명 령어임.

• 명령어 사용법

$ raspistill [option]

• 다양한 옵션을 붙여 사진을 촬영할 수 있음.

• 사용 예

$ raspistill -o test.jpg

• 사진을 촬영한 후, test.jpg라는 이름으로 사진 파일을 저장함.

(6)

raspistill의 다양한 옵션 (1/2)

6

$ raspistill -?

(7)

raspistill의 다양한 옵션 (2/2)

7

(8)

명령어 실습 1

8

• 2초 후에 사진을 촬영하고, 현재 작업 디렉터리안에 image01.jpg라는 이름으로 사진 파일을 저장하라.

(9)

동영상 촬영 명령어

9

• raspivid 명령어는 카메라 모듈을 이용해 동영상을 촬영하는 명령어임.

• 명령어 사용법

$ raspivid [option]

• 다양한 옵션을 붙여 동영상을 촬영할 수 있음.

• 사용 예

$ raspivid -o test.h264

• 동영상을 촬영한 후, test.h264라는 이름으로 동영상 파일을 저장함.

(10)

명령어 실습 2

10

• 10초 동안 동영상을 30 FPS로 촬영하고, video.h264라는 이 름으로 동영상 파일을 저장하라.

$ raspivid -t 10000 -fps 30 -o video.h264

• 동영상 재생하기.

$ omxplayer video.h264

• MP4 비디오 포맷으로 변환

‒ MP4Box 설치

$ sudo apt install -y gpac

‒ 파일 변환

$ MP4Box -add video.h264 –fps 30 video.mp4

‒ 파일 재생

$ omxplayer video.mp4

FPS: Frames Per Second

(11)

예제 (1/2)

11

• 버튼을 눌러 사진 촬영하기

// 빨간색 버튼

(12)

예제 (2/2)

12

(13)

질문

13

Q&A

참조

관련 문서

The aim of our study was to evaluate the additional value provided by dual-exposure dual-energy radiogra- phy using a CsI flat-panel detector for the detection and discrimination

The reviewed studies were divided into 10 categories according to subject characteristics; healthy normal, excessive pronation or flexible flat foot,

The results showed that Intarsia and Floating Jacquard are thin, flexible and light, Bird's eye Jacquard is slick, flat and slim, Tubular Jacquard is stiff and

비접촉 온도 측정이 가능한 적외선 카메라 개발 본 연구에서 개발한 웨이퍼 레벨 진공 패키징 열화상 센서를 기반으로 웨이퍼 레벨 진공 패키징 열화상 센서 모듈과

Effect of Pressure Based Customized 3-Dimensional Printing Insole in Pediatric Flexible Flat Foot Patients.. Si-Wook Lee, Jung-Hoon Choi, Hyuk-Jun Kwon,

또한 구부러지는 복강경 카메라 및 수술 기구(flexible laparoscopes and instruments), 다중 채널 단일 투관침(multichannel single ports) 등 복강경 기구의 발전

For estimation of the motion, we measure the circumference change of the muscle which is proportional to muscle activation level using a flexible piezoelectric cable (pMAS,

In this study, the use of insole inserted indoor sandal during the majority of the indoor life in school aged flexible flat foot patients is effective in