0. Device별 폴더 분리
SSCCounter
├── CamDevice # 사진을 찍고 웹서버로 전송
├── nCounter # 사진에서 인원 수를 체크하여 기록
└── WebServer # 인원 수 관리를 하는 서버
1. 리팩토링 목표 정하기
- 기능 별 분리 (객체화)
- 모듈 별, 테스트코드 추가
- 변수명 규칙 통일
- 기존 기능 유지 보수
- 필요 시 새로운 기능 추가
2. CamDevice 리팩토링
CamDevice
├── main.py
└── utils
├── image_creater
│ ├── cv2.py
│ └── pi.py
└── image_sender.py
3. nCounter 리팩토링
nCounter
├── Yolo_Folder
│ ├── yolov3.cfg
│ ├── yolov3.md
│ └── yolov3.weights
├── analysis.jpg
├── main.py
├── nCnt.txt
├── photo.jpg
├── test.py
└── yolo.py
4. WebServer 리팩토링
WebServer
├── main.py
├── nCnt.txt
├── photo.jpg
├── static
│ ├── css
│ └── images
└── templates
├── Contribute.html
├── docs.html
├── image.html
├── index(Ver_8).html
├── manager.html
├── new.html
└── test.html
댓글