부경대 전자공학과 객체지향프로그래밍 과제1(배경 바꾸기)
타라우
다운로드
장바구니
소개글
객체지향 프로그래밍 python을 이용하여 background difference를 이용해 배경을 바꾸는 과제입니다. 결과칸에 결과사진은 본인의 결과값으로 대입하여 작성하시면 됩니다.목차
Ⅰ. 소개 ···································································································································· 11. 과제 수행 배경(동기)과 목적 ································································································ 1
2. 과제 수행 방향 및 방법 ········································································································· 1
Ⅱ. 방법 ···································································································································· 1
1. 과제 구성 ··································································································································· 1
2. 과제 세부 방법 및 내용 ········································································································· 2
Ⅲ. 결과 및 분석 ···················································································································· 3
1. 실험(시뮬레이션) 환경 ············································································································ 3
2. 실험 결과 및 분석 ··················································································································· 3
3. 한계 및 개선 방향 ··················································································································· 3
Ⅳ. 결론 ···································································································································· 4
1. 과제 수행 결과 요약 ··············································································································· 4
2. 과제 수행을 통해 느낀 점 ····································································································· 4
Ⅴ. 참고문헌 ···························································································································· 4
본문내용
Ⅰ. 소개1. 과제 수행 배경과 목적:
open cv2 라이브러리를 이용해 웹캠으로부터 받은 영상에 내가 원하는 배경의 영상을 덮어 씌우면 좋을 것 같아서 수행하게 되었다.
2. 과제 수행 방향 및 방법:
google ,githube등을 참고해 open source를 변형하여 원하는 방식의 동작이 이루어지도록 설계하였다.
Ⅱ. 방법
1. 과제 구성:
웹캠을 이용하여 이미지를 불러오고 기본적으로 spyder 개발환경에서 실험을 진행하였다. Python 3.9를 이용하여 실험을 진행하였다.
2. 과제 세부 방법 및 내용:
OpenCV의 tutorial의 내용 중 “How to Use Background Subtraction Methods”에 따르면 마스크영상을 생성하기 위해서 현재의 프레임과 객체를 추출하기 위한 배경모델의 차이 영상을 구하여 이미지 이진화 기법을 거친다. 웹캠의 마스크영상과 배경영상의 마스크가 아닌부분의 영상을 합쳐 원하는 이미지를 구할 수 있다.
참고 자료
Open Source Computer Vision, Background Subtraction MethodsROHIT PANDEY, SERGIO ORTS ESCOLANO, CHLOE LEGENDRE, CHRISTIAN HÄNE, SOFIEN BOUAZIZ, CHRISTOPH RHEMANN, PAUL DEBEVEC, and SEAN FANELLO, Learning to Relight Portraits for Background Replacement, Google Research