openCV๋ฅผ ์ฌ์ฉํ YOLO ๊ฐ์ฒด ๊ฐ์ง
๊นํ์์ ํฅ๋ฏธ๋ก์ด ํ๋ก์ ํธ๊ฐ ์์ด ํ๋ฒ ์คํ ์์ผ๋ณด์๋ค.
https://github.com/yash42828/YOLO-object-detection-with-OpenCV
GitHub - yash42828/YOLO-object-detection-with-OpenCV: Object detection using YOLO object detector
Object detection using YOLO object detector. Contribute to yash42828/YOLO-object-detection-with-OpenCV development by creating an account on GitHub.
github.com
๋ฅ๋ฌ๋, OpenCV , python ์ ์ฌ์ฉํ์ฌ ์ด๋ฏธ์ง์ ๋น๋์ค์คํธ๋ฆผ ๋ชจ๋์์ ๊ฐ์ฒด๋ฅผ ํ์งํ๋ ํ๋ก์ ํธ
์ด ํ๋ก์ ํธ์์ YOLO ๋ฅผ ์ฌ์ฉํ๋ค๊ณ ํ๋ค.
coco ๋ฐ์ดํฐ ์ธํธ์์ ํ๋ จ๋ YOLO(https://pjreddie.com/darknet/yolo/)๋ฅผ ์ฌ์ฉํ๋ค๊ณ ํ๋ค.
- ์ฌ๋, ์์ ๊ฑฐ, ์๋์ฐจ/ํธ๋ญ, ๋นํ๊ธฐ, ๋ฑ..ํ๋ จ๋์ด ์๋ค๊ณ ํ๋ค.
์์ธํ ๋ด์ฉ์ ์๋ darknet/data/coco.names์์ ํ์ธ ๊ฐ๋ฅ(https://github.com/pjreddie/darknet/blob/master/data/coco.names)
๋ฅ ๋ฌ๋ ๋ฐ OpenCV๋ฅผ ํตํ ์ค์๊ฐ ๊ฐ์ฒด ๊ฐ์ง
์ค์น
- pip install numpy
- pip install opencv-python
- pip install imutils
ํฐ๋ฏธ๋์ ์ ์ค์น ๋ช ๋ น์ด๋ฅผ ์ ๋ ฅํ์ฌ ์ค์นํด์ฃผ๊ณ ,
ํ๋ก์ ํธ๋ฅผ ์คํํ๋ ค๋ฉด
- python real_time_object_detection.py
์ ์คํ ๋ช ๋ น์ด๋ฅผ ์ ๋ ฅํ๊ธฐ์ ์, ๋ฐ๋์ cd.real-time-object-detection ์ ์ ๋ ฅํ์ฌ,
์ด๋ํ ๋ค์ python real_time_object_detection.py ์คํ ๋ช ๋ น์ด๋ฅผ ์ ๋ ฅํด์ผํ๋ค.
<๋ง์ฝ, cd.real- ์ ๋ช ๋ น์ด๋ฅผ ์ ๋ ฅ ํ์ง ์์์ python: can't open file 'real_time_object_detection.py': [Errno 2] No such file or directory ์ค๋ฅ๊ฐ ๋์ด>
์คํฌ๋ฆฐ์ท