2023.04.04 이미지 디텍션 & 동영상 디텍션

차유빈·2023년 4월 4일
0

회사

목록 보기
2/13
post-thumbnail

이미지 라벨링

Object Detection

Computer Vision

  • Object Detection = Classification + Localization
    = Multi-Labeled Classification + Bounding Box Regression



데이터셋이란?

구조화된데이터 vs 비구조화된데이터

아래의 4종류가 있음

Pascal VOC Dataset

COCO Dataset


Object Detection History

Detector Case

RetinaNet



UltraLytics 패키지



UltraLytics YOLO : Pretrained

명령어 도움말 : python detect.py -h

명령어 도움말을 참고하여 파일 경로나 이름 설정해줌



Object Detection Metrics


IoU(경계 상자가 겹치는 정도)

threshold(이진화=흑백화)를 위한 밝기 임계값)




Precision - Recall Curve


Average Precision (AP)


mean Average Precision(mAP)



UltraLytics YOLO v3 Image Detection 직접하기

Coloaboratory의 런타임 : 런타임 유형변경에서 GPU 사용 체크


Yolo3 설치하기

git clone 명령어

pip install -r



리눅스 명령어



Image Detection

1. 원하는 이미지 다운로드


2.Pretrained weights 다운로드

pretrained Checkpoints

Pretrained weights 하는 이유?

mkdir (make directory) : 디렉토리(폴더)를 생성할 때 사용하는 명령어 => pretrained 폴더 생성하기


3. detect.py 실행

  • 명령어 도움말 : python detect.py -h
  • 명령어 도움말을 참고하여 필요 정보 기입



Detect Image 살펴보기

1. 디텍팅 된 zip 파일 생성

2. zip 파일 다운로드

3. 결과



UltraLytics YOLO v3 Video Detection 직접하기

UltraLytics YOLO v3 설치

UltraLytics git에서 복사하기

yolov3 폴더 이동 및 requirements.txt 내부 패키지 설치



Video Detection

1. 예제 비디오 다운로드

wget : 리눅스에서 url을 통해서 파일 다운로드를 하고 싶을 때 사용할 수 있는 명령어

2. Pretrained weights 다운로드

3. pretrained weights 저장 폴더 생성

4. pretrained weights 다운로드


detect.py 실행

1. detect.py 실행하면 초단위로 디텍딩 됨

2.라이브러리 설치

3. files.download( ) 사용

4. 결과 파일 저장



Video Detection 실습하기

yolo3 설치 - 비디오 다운(불러오기) - Pretrained weights 다운로드 - detect.py 실행 - Detect Video 다운로드

디텍팅 결과

profile
chacha's 프로그래밍 공부

0개의 댓글

관련 채용 정보