This release is a pre-release and may not be stable for production use.
MareArts ANPR (Automatic Number Plate Recognition) library with multi-region support
pip install marearts-anpr-sdk Copy PIP instructions
Automatic Number Plate Recognition — plate detection + OCR for 80+ countries, with GPU acceleration, ARM/Windows support, and Vehicle Intelligence (make, model, color, type, side, plate nation, and server-side OCR — cloud or on-device).
The ANPR SDK license covers: Python SDK · REST API Server · MASS · Road Object Detection. The Mobile App has its own license.
This is the 4.x SDK, published as marearts-anpr-sdk (same import marearts_anpr). The 3.x SDK stays on PyPI as marearts-anpr for MAEV2 keys. Existing MareArts ANPR (SDK + Mobile) subscriptions keep working. · SDK page: marearts.com/pages/marearts-anpr-sdk · Try the live demo · Full docs & examples on GitHub
pip install marearts-anpr-sdk Moving from 3.x? Remove the old package first — both install the marearts_anpr module: pip uninstall marearts-anpr && pip install marearts-anpr-sdk.
Linux / Windows / macOS · Python 3.10–3.14 · CPU by default (CUDA & DirectML optional).
Detect and read license plates in a few lines of Python.
from marearts_anpr import ( ma_anpr_detector_v17, ma_anpr_ocr_v17, marearts_anpr_from_image_file ) user_name = "your@email.com" # the e-mail your licence was issued to serial_key = "MAEV3:anpr|..." # your MAEV3 licence key detector = ma_anpr_detector_v17("640p_fp32", user_name, serial_key) ocr = ma_anpr_ocr_v17("fp32", "univ", user_name, serial_key) result = marearts_anpr_from_image_file(detector, ocr, "car.jpg") print(result) # {'results': [{'ocr': 'ABC1234', 'ocr_conf': 99, 'ltrb': [...], ...}], ...} Models: detector 320p_fp32, 640p_fp32 · OCR fp32, int8.
When you compare plate text with your own records, remove the separators (-, ·, spaces) from both. The OCR model this release downloads writes plate characters only (RRP855C, 津CP1851); the model 4.0.0b9 and earlier download writes some plates with them (RRP-855-C, 津C·P1851). A machine that downloaded an older model gets the current one on its next online run after the update (set MAREARTS_ANPR_V17_NO_REFRESH=1 to keep it).
Keeping the key in an environment variable? A MAEV3 key contains |, so quote it — unquoted, the shell reads | as a pipe and cuts the key short:
export MAREARTS_ANPR_SERIAL_KEY='MAEV3:anpr|...' # Linux / macOS set "MAREARTS_ANPR_SERIAL_KEY=MAEV3:anpr|..." # Windows cmd $env:MAREARTS_ANPR_SERIAL_KEY = 'MAEV3:anpr|...' # Windows PowerShell ma-anpr config stores it for you, with no quoting needed.
Production-ready server with a web dashboard — zero code deployment.
ma-anpr config # one-time credential setup (MAEV3 key) ma-anpr server start # http://localhost:8000 curl -X POST http://localhost:8000/api/anpr -F "image=@car.jpg" Serving other machines (ma-anpr server start --host 0.0.0.0): every request needs the API token — ma-anpr server token prints it and a dashboard sign-in link.
curl -X POST http://SERVER:8000/api/anpr -H "Authorization: Bearer " -F "image=@car.jpg" 20+ endpoints: detect, batch, history, watchlist, alerts, stats, config, model selection, and more.
docker run -d --gpus all -p 8000:8000 \ -e MAREARTS_ANPR_USERNAME="your@email.com" \ -e MAREARTS_ANPR_SERIAL_KEY="your_MAEV3_key" \ -e MAREARTS_ANPR_SIGNATURE="your_signature" \ marearts-anpr-server:latest Includes CUDA acceleration, automatic CPU fallback, web dashboard, and all endpoints.
Go beyond plate text — identify the vehicle itself: make, model, color, type, vehicle side, plate nation, and server-side OCR.
from marearts_anpr import ma_anpr_mmc mmc = ma_anpr_mmc(user_name, serial_key, signature) info = mmc.enrich(image, anpr_results) # run ANPR first, then enrich print(info) Two backends, identical output fields:
ma-anpr mmc-setup # download on-device model + engine (~1.5 GB) ma-anpr mmc-backend local # switch enrichment to on-device (or: cloud) ma-anpr mmc-uninstall --all # cleanly remove the engine + model Also available on the server via POST /api/anpr/mmc, with backend switching through GET /api/mmc/status and PUT /api/mmc/backend.
Detect persons, vehicles, and 2-wheelers in real time — included in your ANPR license.
from marearts_road_objects import ma_road_object_detector rod = ma_road_object_detector("640p_fp32", user_name, serial_key, signature) result = rod.detect("street.jpg") See MareArts Road Objects.
80+ countries across 12 regional groups, each with per-country character sets for maximum accuracy.
Pass a 2-letter country code (e.g. de, au, th) for best accuracy, or a group code. Unknown codes fall back to univ.
On-device ANPR for iOS and Android — parking, security, fleet management. On-device AI (~100–160 ms), offline capable, team collaboration, webhooks, cloud sync, and Vehicle Intelligence.
The app has its own license, ANPR Mobile: marearts.com/products/anpr.
all-gpu cuda directml full gpu mcp server tensorrt
anpr license plate recognition computer vision ocr vehicle detection
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Enable javascript to be able to filter the list of wheel files.
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.
None of the files in this release were uploaded with provenance metadata.
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.




