Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
charger-node
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ThiefSil
charger-node
Commits
8942c461
Commit
8942c461
authored
5 months ago
by
최 민서
Browse files
Options
Downloads
Patches
Plain Diff
docs:README.md 작성
parent
0f2c12a0
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+11
-47
11 additions, 47 deletions
README.md
with
11 additions
and
47 deletions
README.md
+
11
−
47
View file @
8942c461
# 충전기 노드
차량의 충전기를 제어하는 C언어 기반
cpp
차량의 충전기를 제어하는 C언어 기반
프로그램(cpp 일부 혼용)
## 주요 기능
-
PaddleOCR을 이용한 실시간 번호판 텍스트
인
식
-
소켓 서버로 번호판 이미지 파일명 수신
-
촬영된 이미지 및 번호판 조회 HTTP API
-
RFID 태그 기반 사용자
인
증
-
충전상태 LCD 모니터링 및 소켓통신 통해 서버로 전달
-
화재 감지 시 화재 경고 LCD 출력
## 설치 방법
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
hcmod
-x
install.sh
```
##
사용
방법
##
빌드
방법
OCR 서버 실행:
makefile을 통한 빌드
```
sh
python ocr.py
make
```
실행 시 다음 서버가 시작됩니다:
-
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 가상환경
```
sh
# 이미지 저장 경로
../images/ # 원본 차량 이미지
../plates/ # 추출된 번호판 이미지
```
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment