Skip to content
Snippets Groups Projects
Commit 0f2c12a0 authored by 최 민서's avatar 최 민서
Browse files

Update file README.md

parent 5e21694a
Branches
No related tags found
No related merge requests found
# 충전기 노드
차량의 충전기를 제어하는 C언어 기반 cpp
## 주요 기능
- PaddleOCR을 이용한 실시간 번호판 텍스트 인식
- 소켓 서버로 번호판 이미지 파일명 수신
- 촬영된 이미지 및 번호판 조회 HTTP API
## 설치 방법
1. 가상환경 생성 및 활성화:
```sh
# 시스템 패키지를 포함한 가상환경 생성
python -m venv --system-site-packages venv
# 가상환경 활성화
source venv/bin/activate
```
2. 필수 라이브러리 설치:
```sh
pip install opencv-python
pip install paddlepaddle
pip install paddleocr
```
## 사용 방법
OCR 서버 실행:
```sh
python ocr.py
```
실행 시 다음 서버가 시작됩니다:
- OCR TCP 서버 (포트 3000)
- HTTP 서버 (포트 8000)
### API 엔드포인트
- `GET /api/images` - 촬영된 차량 이미지 목록 조회
- `GET /api/plates` - 추출된 번호판 이미지 목록 조회
- `GET /images/{filename}` - 특정 차량 이미지 조회
- `GET /plates/{filename}` - 특정 번호판 이미지 조회
## 요구사항
- Python 3.8 이상
- OpenCV
- PaddleOCR
- PaddlePaddle
## 프로젝트 구조
```
camera-node-ocr/
├── ocr.py # OCR 서버 구현 코드
└── venv/ # Python 가상환경
# 이미지 저장 경로
../images/ # 원본 차량 이미지
../plates/ # 추출된 번호판 이미지
```
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment