Real-time Persian plate detection + RTSP monitoring + bilingual dashboard, runnable in minutes.
Note: This repository is maintained as a fork of 12345zahraa/Persian-Plates-Detection.
| EN | FA |
|---|---|
![]() |
![]() |
| EN | FA |
|---|---|
![]() |
![]() |
![]() |
![]() |
| EN | FA |
|---|---|
![]() |
![]() |
- End-to-end workflow: detection + OCR + metadata + camera events in one app.
- Built-in multi-camera RTSP workers with reconnect and SSE live feed.
- Bilingual docs/messages (English + Persian) for broader adoption.
make upThen open http://localhost:5000.
این پروژه یک سامانه تشخیص پلاک ایرانی است که شامل:
- تشخیص پلاک با مدل YOLO
- OCR پلاک فارسی
- مدیریت دوربینهای RTSP
- ثبت لاگ تردد و مدیریت لیست مجاز/غیرمجاز
python -m venv .venv
.venv\Scripts\activate
pip install -r requirements.txt
python app.pyآدرسها:
http://localhost:5000http://localhost:5000/scanhttp://localhost:5000/cameras
docker compose up --buildابتدا سرور را بالا بیاورید، سپس:
python scripts/smoke_test.pypython -m venv .venv
.venv\\Scripts\\activate
pip install -r requirements.txt
python app.pyIf you want to run local HTTPS for camera/mobile testing, create a self-signed certificate:
openssl req -x509 -newkey rsa:2048 -nodes -days 365 \
-keyout key.pem -out cert.pem \
-subj "/C=IR/ST=Tehran/L=Tehran/O=IranPlateVision/OU=Dev/CN=localhost"Then run:
python run_https.pyNotes:
cert.pemandkey.pemare for local development/testing only.- For production/public deployment, use a valid certificate from a trusted CA (or your organization PKI).
- Do not commit real private keys to Git.
Start the app first, then:
python scripts/smoke_test.pydocker compose up --build.
├── app.py
├── camera_manager.py
├── db.py
├── run_https.py
├── best.pt
├── plate_data.json
├── templates/
├── static/
├── fonts/
├── scripts/smoke_test.py
├── Dockerfile
├── docker-compose.yml
├── Makefile
└── .github/
GET /statusPOST /detectGET/POST /api/camerasPUT/DELETE /api/cameras/<id>POST /api/cameras/<id>/toggleGET /api/cameras/<id>/snapshotGET /api/eventsGET/DELETE /api/logGET/POST /api/vehiclesDELETE /api/vehicles/<plate>
- Add
docs/demo.gifand 3 screenshots. - Set GitHub topics:
license-plate-recognition,persian-ocr,yolo,flask,rtsp,computer-vision. - Publish release
v1.0.0with concise release notes. - Share launch post on X/LinkedIn/Reddit with demo.
- Keep issue/PR response fast in first 24 hours.
- Remove local HTTPS secrets and DB artifacts before first public push:
cert.pem,key.pem,traffic.db,traffic.db-shm,traffic.db-wal. - Keep large model files out of Git when possible (
best.pt), or use release assets / model download step. - Verify
.gitignoreis active in the actual Git repo root. - Run smoke test before tagging:
python scripts/smoke_test.py - Confirm both
/scanand/camerasviews work inENandFA.
See:
.github/ISSUE_TEMPLATE/bug_report.yml.github/ISSUE_TEMPLATE/feature_request.yml.github/pull_request_template.md
MIT - see LICENSE.








