Skip to main content

A high-performance, scalable, and ready-to-use Automatic Number Plate Recognition (ANPR) package.

Project description

PyPlateX

High-Performance Scalable ANPR Package: Ready-to-Use, Simple, and Efficient License Plate Recognition

Unlock top-tier accuracy and scalability with cutting-edge ANPR solution in 3 line of code. Designed for seamless integration and ease of use, it delivers robust performance and reliability for all your license plate recognition needs.

Downloads Supported Versions GitHub PyPI PyPI - Downloads Downloads PyPI - Format

Simple ready to use ANPR

Note: The ANPR.detect function is asynchronous, so ensure you use the await keyword when calling it within an async function.

Install from pypi.org

pip install pyplatex
from pyplatex import ANPR
anpr = ANPR()
det = await anpr.detect('./demo/plate-1.jpg')
print(det)

or

from pyplatex import ANPR
import asyncio

async def main():
    anpr = ANPR()
    plates = await anpr.detect('./demo/plate-1.jpg')
    print(plates)

# Run the async main function
asyncio.run(main())

the output would be like

https://github.com/nuhmanpk/pyplatex

{
    'is_plate': True, 
    'is_plate_confidence': 0.78, 
    'plate_number': 'MUN389', 
    'plate_number_confidence': 1.0
}

Args for anpr.detect()

Parameter Default Value Description
image_path None Path to the image file to be processed.
max_detections 1 Maximum number of license plates to detect in the image.
confidence 0.6 Confidence threshold for detecting a license plate. Only detections with confidence above this value will be considered.
save_image False If True, the detected plate image will be saved to disk.
padding 5 Padding around the detected license plate when saving the image.
folder_name None Directory name where the detected images will be saved. If save_image is True, this folder will be created if it does not exist.
use_ocr True If True, Optical Character Recognition (OCR) will be performed on the detected license plates.
return_tensor False If True, returns the image tensor of the detected license plates.
verbose True If True, logs detailed information during processing.

Dev TODO:

  • Release a Inital Version
  • Add a plate detection model
  • Read and detect Plates
  • Format output
  • Integrate Cv2filters
  • Change Cofidence to a round number
  • Add a ocr Model
  • Release a Initial Version
  • Add a option to accept image as Tensor / numpy array
  • Add auto filters tag

This is a pre-release version; there might be some bugs. If you encounter any issues or performance-related problems, please report them here. If you'd like to contribute to this project, you can create a pull request here.

Warning: Use this pre-release with caution as it may still have unresolved issues.

Happy Coding 🚀 ...

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyplatex-0.0.5.tar.gz (5.6 MB view details)

Uploaded Source

Built Distribution

pyplatex-0.0.5-py3-none-any.whl (5.6 MB view details)

Uploaded Python 3

File details

Details for the file pyplatex-0.0.5.tar.gz.

File metadata

  • Download URL: pyplatex-0.0.5.tar.gz
  • Upload date:
  • Size: 5.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.19

File hashes

Hashes for pyplatex-0.0.5.tar.gz
Algorithm Hash digest
SHA256 b3d244a56124225fbe15506d7bf0a8bae7e375d28719ff26fd6a78cb21d0fb02
MD5 bdc59687e3e6ae75c5f183f0a2c4a3ba
BLAKE2b-256 20d86d6389b5081217f1cffeb93d2301aaabd470e2f820173ec3c0d270aac9ff

See more details on using hashes here.

File details

Details for the file pyplatex-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: pyplatex-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 5.6 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.19

File hashes

Hashes for pyplatex-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 e70e13eba5983005b6fdd56a0ecaa10c481a37e7ea53f5a265d9a4c6fc929be3
MD5 824463378480a2e1c08673c57ba0befe
BLAKE2b-256 0f4756dde2ee31440d24648d2450e80fc80fd0763ac40b3acc2dab3cd3d2c331

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page