오늘보다 더 나은 내일의 나에게_

비전공자의 IoT 국비 교육 수강일지 Day_74 본문

비전공자의 코딩일지

비전공자의 IoT 국비 교육 수강일지 Day_74

chan_96 2022. 4. 4. 17:30
728x90

라즈베리파이

 

 

=> -t 10000 10초뒤에 이미지 저장

 

동영상 촬영후 저장

비밀번호 : raspberry

 

동영상 파일 변환 gpac 설치

 

토니파이썬

파이썬으로 카메라 찍기

 

터미널 명령어 파이썬에서 os로 사용가능!

 

동영상 촬영 후 저장 -> 파일 변환

 

Motion 프로그램

 

나노 편집기를 사용해 설정하기

더보기

sudo apt-get install motion
mkdir motion
sudo nano /etc/motion/motion.conf
daemon on
ctrl+w, targer_dir /home/pi/motion, ctrl+s
locate_motion_mode
locate_motion_style
stream_motion
stream_localhost
webcontrol_port 8082
webcontrol_localhost off
ctrl+x

Ctrl + X로 nano 편집기 나가기

 

1초에 100개의 화면을 보여줌
사진 캡쳐 기능

 

UV4L

- V4L2 호환 크로스 플랫폼

- 드라이버 모듈 모음으로

- 대표적으로 IoT장치를 위한 서버 플러그인을 포함

더보기

sudo curl https://www.linux-projects.org/listing/uv4l_repo/lpkey.asc | sudo apt-key add -
sudo nano /etc/apt/sources.list
deb http://www.linux-projects.org/listing/uv4l_repo/raspbian/stretch stretch main
sudo apt-get update
sudo apt-get install uv4l uv4l-raspicam
sudo apt-get install uv4l-raspicam-extras
sudo rpi-update
sudo service uv4l_raspicam restart
sudo apt-get install uv4l-server uv4l-uvc uv4l-xscreen uv4l-mjpegstream uv4l-dummy uv4l-raspidisp
sudo apt-get install uv4l-webrtc

WebRTC(Web ReALTime Communication)란?
 - 웹 브라우저 간에 실시간, 플러그인이 필요 없이 영상 및 음성,
    데이터 통신에 대한 공개된 표준
openssl genrsa -out selfsign.key 2048&& openssl req -new-x509 -key selfsign.key -out selfsign.crt - sha256
sudo apt-get install uv4l-xmpp-bridge
sudo reboot -> 리부팅
www.localhost:8080



부팅할 때 자동으로 실행

안드로이드

개발환경 설정

더보기

링크

다운로드

 

Android의 등장

프로젝트 생성하기

Empty Activity

기기관리자 / 가상기기


색상 변경

색상툴 링크1

 

Color Tool - Material Design

Create and share color palettes for your UI, and measure the accessibility of any color combination.

material.io

색상툴 링크2

 

Material Design

Build beautiful, usable products faster. Material Design is an adaptable system—backed by open-source code—that helps teams build high quality digital experiences.

material.io

 

728x90
Comments