Skip to main content

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__))
  • 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.

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)

Source distribution for plt-ocr 0.0.20
File Size Uploaded
plt_ocr-0.0.20.tar.gz 8.8 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for plt-ocr 0.0.20
File Interpreter ABI Platform
plt_ocr-0.0.20-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.0.20 This release

2 release files

0.0.16

2 release files

0.0.14

2 release files

0.0.12

2 release files

0.0.11

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page