Skip to content

๐Ÿ† [๋Œ€์ƒ์ž‘] ์ž„๋ฒ ๋””๋“œ ์†Œํ”„ํŠธ์›จ์–ด ๊ฒฝ์ง„๋Œ€ํšŒ webOS๋ถ€๋ฌธ ๋ฐฉํŒŒ์ œํŒ€ - CCTV ๊ธฐ๋Šฅ

License

Notifications You must be signed in to change notification settings

webOS-KOSS/CCTV

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

16 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

CCTV

CCTV

์†Œ๊ฐœ

ESP32-CAM์„ ํ™œ์šฉํ•˜์—ฌ ํ˜„๊ด€, ์ฃผ์ฐจ์žฅ, ๋†€์ดํ„ฐ ๋“ฑ ๋‹ค์–‘ํ•œ ๊ณณ์„ ํ•œ ๋ฒˆ์— ํ™•์ธํ•  ์ˆ˜ ์žˆ๊ฒŒ ํ•œ๋‹ค.

System Architecture

SystemArchitecture

Flow Chart

FlowChart

๊ธฐ์ˆ  ์†Œ๊ฐœ

ESP32-CAM(ํ˜„๊ด€, ์ฃผ์ฐจ์žฅ, ๋†€์ดํ„ฐ CCTV)

  • Arduino
    • client๊ฐ€ ESP32-CAM์˜ HTTP ์„œ๋ฒ„์— ์ ‘๊ทผํ•˜๋ฉด, ์˜์ƒ์„ ์ „์†กํ•ด์ค€๋‹ค.
    • ์ถ”ํ›„, media์„œ๋ฒ„๋ฅผ EC2 ์„œ๋ฒ„์— ๋งŒ๋“ค์–ด์„œ, 1:1 ์ ‘๊ทผ ๋ฟ๋งŒ์ด ์•„๋‹ˆ๋ผ 1:n ์ ‘๊ทผ ๋˜ํ•œ ๊ฐ€๋Šฅํ•˜๊ฒŒ ๊ฐœ์„ ํ•  ๊ฒƒ์ด๋‹ค.

webOS(์›”ํŒจ๋“œ):

  • ENACT(com.cctv.app)
    • ๋ผ์šฐํŒ…์„ ํ†ตํ•ด์„œ ํ˜„๊ด€, ๋†€์ดํ„ฐ, ์ฃผ์ฐจ์žฅ CCTV ํŽ˜์ด์ง€๋ฅผ ๋‚˜๋ˆ„์—ˆ๋‹ค.

๊ฐœ๋ฐœํ™˜๊ฒฝ ๋ฐ ๊ฐœ๋ฐœ์–ธ์–ด

  • ์šด์˜์ฒด์ œ : Windows 11, Ubuntu 20.04.5 LTS, webOS 2.18.0
  • ๋””๋ฐ”์ด์Šค ๊ตฌ์„ฑ : AI-Thinker ESP32-CAM, Raspberry Pi 4B
  • IDE : Visual Studio Code, Arduino IDE
  • ๊ฐœ๋ฐœ ์–ธ์–ด : Arduino, ENACT, REACT
  • package manager : npm, yarn

ESP32-CAM Setting

Customize

ssid์— 2.4GHz์˜ wifi์˜ ์ด๋ฆ„์„, password์—๋Š” wifi์˜ ๋น„๋ฒˆ์„ ๊ฐ๊ฐ ์ž์‹ ์˜ ๊ฒƒ์œผ๋กœ ๋ฐ”๊ฟ”์ฃผ๋ฉด ๋ฉ๋‹ˆ๋‹ค. ๋งํฌ

const char* ssid = "wifi"; // wifi SSID
const char* password = "12345678"; // wifi password

๊ฐ๊ฐ์˜ ESP32-CAM์— ํ• ๋‹น๋œ IP๋“ค์„ ์กฐํšŒํ•˜์—ฌ ๋ฐ”๊ฟ”์ค๋‹ˆ๋‹ค. ๋งํฌ
var ip = "192.168.1.28";

Quick Start

ares-setup-device์—์„œ default๋ฅผ ์ž์‹ ์ด ์„ค์น˜ํ•  webOS์˜ IP๋กœ ์„ค์ •ํ•˜์„ธ์š”.

source wallpad.setup.sh

๊ฐ๊ฐ์˜ ESP32-CAM์— cctv.ino๋ฅผ ์—…๋กœ๋“œ ํ•˜์„ธ์š”.

์žฅ์•  ์š”์ธ

  1. ๊ธฐ์กด์—๋Š” Raspbian OS๋ฅผ ์‚ฌ์šฉํ•˜๊ธฐ๋กœ ํ•˜์˜€์œผ๋‚˜, CCTV์— ๋งŽ์€ ๊ธฐ๋Šฅ์ด ๋“ค์–ด๊ฐ€๋Š” ๊ฒƒ์ด ์•„๋‹ˆ๊ธฐ ๋•Œ๋ฌธ์— ํšจ์œจ์˜ ์ธก๋ฉด์—์„œ ESP32-CAM์„ ์‚ฌ์šฉํ•˜๊ธฐ๋กœ ํ–ˆ๋‹ค. <์ด์Šˆ ์ฐธ์กฐ>
  2. ESP32-CAM์—์„œ๋Š” ํ•œ ๋ช…์˜ client๋งŒ์„ ๋ฐ›์„ ์ˆ˜ ์žˆ๊ฒŒ ๋˜์–ด์žˆ๋‹ค. ํ•˜์ง€๋งŒ ESP32-CAM์ด๋ผ๋Š” ํ•˜๋“œ์›จ์–ด์˜ ๋ฌธ์ œ๊ฐ€ ์žˆ๊ธฐ ๋•Œ๋ฌธ์—, ์ด๋ฅผ ํ•ด๊ฒฐํ•˜๊ณ  1:n์˜ client๋ฅผ ๋ฐ›์„ ์ˆ˜ ์žˆ๊ฒŒ ํ•˜๋ ค๋ฉด ์™ธ๋ถ€์— media ์„œ๋ฒ„๋ฅผ ๋‘์–ด์•ผ ๋œ๋‹ค. ์ถ”ํ›„์— ์ถ”๊ฐ€ํ•˜๊ธฐ๋กœ ํ•˜์˜€๋‹ค. <์ด์Šˆ ์ฐธ์กฐ>

About

๐Ÿ† [๋Œ€์ƒ์ž‘] ์ž„๋ฒ ๋””๋“œ ์†Œํ”„ํŠธ์›จ์–ด ๊ฒฝ์ง„๋Œ€ํšŒ webOS๋ถ€๋ฌธ ๋ฐฉํŒŒ์ œํŒ€ - CCTV ๊ธฐ๋Šฅ

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published