Plate OCR
A Mobilenet based, single IL car plate OCR
Installation
Currently plt-ocr is intended to use on CPU machine (GPU support is coming soon). To install plt-ocr on a CPU run:
pip3 install plt-ocr
pip3 install torch --index-url https://download.pytorch.org/whl/cpu
Usage
Command line
If you have a car plate image named plate.jpg
You can run pltocr car.jpg and get
{"prediction": "70660202", "confidence": 0.9978833775525012}
Python
import json
from PIL import Image
from plt_ocr.model import OCR
img = Image.open(plate_path)
model = OCR()
result = model(img)
print(json.dumps(result.__dict__))
Related
- Detecty is a Mobilenet based single car plate detection model that works well with plt-ocr.
- cars.vardale.org is a website that uses both detecty and plt-ocr.
Metadata
Release files for plt-ocr 0.0.20
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| plt_ocr-0.0.20.tar.gz | 8.8 MB | Without provenance | Details for plt_ocr-0.0.20.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| plt_ocr-0.0.20-py3-none-any.whl | Python 3 | none | any | Details for plt_ocr-0.0.20-py3-none-any.whl |
Total release size: 17.7 MB
Release files / plt_ocr-0.0.20.tar.gz
| Download URL | plt_ocr-0.0.20.tar.gz |
|---|---|
| Size | 8.8 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
57ebb5b1eb5b0d21144742d86894a4acb21abe841a2c8d8a5e67c8fb25793fd2
|
|
BLAKE2b-256 checksum How to use checksums |
ef7724af77903044c629e2093111cfcd151b817541852b466fa7928c8ec7a333
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.6.1 CPython/3.10.13 Linux/5.3.0-28-generic
|
Release files / plt_ocr-0.0.20-py3-none-any.whl
| Download URL | plt_ocr-0.0.20-py3-none-any.whl |
|---|---|
| Size | 8.8 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3bfa2b85ec2bd67aba7763f52285a86298c889673f8131e8442edb49b47e9ec8
|
|
BLAKE2b-256 checksum How to use checksums |
11a6f4eb355ee318c32a0cd3da46ebd5dc151201b18644dcd34797f6b598660d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.6.1 CPython/3.10.13 Linux/5.3.0-28-generic
|
Security for plt-ocr 0.0.20
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.