MareArts ANPR SDK
MareArts ANPR โ SDK & Server
Automatic Number Plate Recognition โ detection + OCR for 80+ countries, GPU acceleration, ARM/Windows support, and cloud Vehicle Intelligence (make, model, color, type, face, plate nation, server-side OCR).
๐ Python SDK
Detect and read license plates in 5 lines of Python.
Installation
# CPU (all platforms: Linux, macOS, Windows, ARM)
pip install marearts-anpr
# GPU โ use the built-in setup command:
ma-anpr gpu-setup cuda # NVIDIA CUDA
ma-anpr gpu-setup directml # Windows AMD/Intel/NVIDIA
Requirements: Python 3.10 โ 3.14
Quick Start
from marearts_anpr import (
ma_anpr_detector_v16, ma_anpr_ocr_v16, marearts_anpr_from_image_file
)
detector = ma_anpr_detector_v16("640p_fp32", user_name, serial_key, signature)
ocr = ma_anpr_ocr_v16("fp32", "univ", user_name, serial_key, signature)
result = marearts_anpr_from_image_file(detector, ocr, "car.jpg")
print(result)
# {'results': [{'ocr': 'ABC1234', 'ocr_conf': 99, 'ltrb': [...], ...}], ...}
V16 Models
V16 ships one unified model for detection and one for OCR โ no model-size selection needed.
| Component | Model | Precision | Notes |
|---|---|---|---|
| Detector | 320p_fp32 |
fp32 / int8 | Fast โ ~2ร speed of 640p |
| Detector | 640p_fp32 |
fp32 / int8 | High detection โ best for distant/small plates |
| OCR | fp32 |
fp32 / int8 | Single model, all regions, dynamic switching |
Dynamic Region Switching
Switch OCR region instantly without reloading models โ supports 80+ countries:
ocr.set_region('eu') # Europe+ (37 countries)
ocr.set_region('kr') # Korea
ocr.set_region('na') # North America
ocr.set_region('cn') # China
ocr.set_region('jp') # Japan
ocr.set_region('univ') # Universal (default)
Pass a 2-letter country code (e.g. de, au, th) for best accuracy, or use a group code. Unknown codes fall back to univ.
Input Formats
import cv2
from PIL import Image
from marearts_anpr import marearts_anpr_from_cv2, marearts_anpr_from_pil
result = marearts_anpr_from_image_file(detector, ocr, "car.jpg")
result = marearts_anpr_from_pil(detector, ocr, Image.open("car.jpg"))
result = marearts_anpr_from_cv2(detector, ocr, cv2.imread("car.jpg"))
CLI
ma-anpr car.jpg # detect + OCR
ma-anpr car.jpg --region kr # with specific region
ma-anpr car.jpg --backend cuda # GPU acceleration
ma-anpr *.jpg --json results.json # batch processing
ma-anpr config # configure credentials
ma-anpr validate # validate license
๐ Full SDK Documentation & Examples โ
๐ Vehicle Intelligence (Cloud AI)
Go beyond plate text โ identify the vehicle itself with a single API call.
| Feature | Example Output |
|---|---|
| Make | Toyota, BMW, Hyundai, โฆ |
| Model | Camry, 3 Series, Tucson, โฆ |
| Color | White, Black, Silver, โฆ |
| Type | Sedan, SUV, Truck, Van, โฆ |
| Face | front, rear |
| Plate Nation | KR, DE, US, โฆ |
| Server-side OCR | Cross-check plate text via cloud |
from marearts_anpr import ma_anpr_mmc
mmc = ma_anpr_mmc(user_name, serial_key, signature)
# Pass mmc to any detection call
result = marearts_anpr_from_image_file(detector, ocr, "car.jpg", mmc)
# Each result now has 7 mmc fields:
for r in result["results"]:
print(r["ocr"], r["mmc_make"], r["mmc_model"], r["mmc_color"])
# ABC1234 Toyota Camry White
Also available via the REST API server โ just call the /api/anpr/mmc endpoint.
๐ REST API Server
Production-ready server with web dashboard โ zero code deployment. Included in pip install marearts-anpr.
Quick Start
ma-anpr config # one-time credential setup
ma-anpr server start # http://localhost:8000
ma-anpr server start --daemon # run in background
# Detect plates via REST API
curl -X POST http://localhost:8000/api/anpr -F "image=@car.jpg"
# With Vehicle Intelligence
curl -X POST http://localhost:8000/api/anpr/mmc -F "image=@car.jpg"
Web Dashboard
20+ REST API Endpoints
| Category | Endpoints |
|---|---|
| Detection |
POST /api/anpr ยท POST /api/anpr/mmc ยท batch processing |
| History | List, search, detail, delete detections ยท CSV/JSON export |
| Watchlist | Add, list, delete watched plates ยท alert counts |
| Config | Region, threads, models, MMC status |
| Monitor | Health, stats, event stream (SSE), logs |
Server CLI
ma-anpr server start # foreground
ma-anpr server start --daemon # background
ma-anpr server start --port 9000 # custom port
ma-anpr server stop # stop server
ma-anpr server stop --all # stop all instances
ma-anpr server list # list running instances
ma-anpr server status # server info
ma-anpr server logs --follow # tail logs
# Detection via CLI (server must be running)
ma-anpr server detect car.jpg # local ANPR only
ma-anpr server detect car.jpg --mmc # ANPR + Vehicle Intelligence
ma-anpr server health # health check
ma-anpr server mmc # MMC status and quota
๐ Full Server Documentation โ
๐ฆ Road Object Detection
Detect persons, vehicles, and 2-wheelers in real-time โ included in your ANPR license at no extra cost.
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")
# [{'class': 'car', 'conf': 0.97, 'ltrb': [...]}, {'class': 'person', ...}]
Use alongside ANPR for complete traffic scene understanding โ plate reading + vehicle/pedestrian awareness in one pipeline.
๐ Road Objects Documentation โ
๐ Supported Regions
80+ countries across 12 regional groups with per-country character sets for maximum accuracy.
| Region | Countries | Code |
|---|---|---|
| ๐ช๐บ Europe+ | 37 countries (EU + Balkans + Indonesia) | eu |
| ๐ท๐บ Ex-USSR | 15 countries (Russia, Ukraine, Kazakhstan, โฆ) | ru |
| ๐ Asia | 17 countries (Japan, Thailand, Vietnam, โฆ) | asia |
| ๐บ๐ธ North America | USA, Canada, Mexico | na |
| ๐ง๐ท South America | Brazil, Argentina | sa |
| ๐ฟ๐ฆ Africa | South Africa, Nigeria | af |
| ๐ฆ๐บ Oceania | Australia, New Zealand | oc |
| ๐ฌ๐ง UK | England, Scotland, Wales, N. Ireland | uk |
| ๐จ๐ณ China | All provinces | cn |
| ๐ฐ๐ท Korea | All plate types | kr |
| ๐ฏ๐ต Japan | All prefectures | jp |
| ๐ Universal | All of the above | univ |
Pass a 2-letter ISO country code (e.g. de, au, th), a full name (germany, australia), or a group code. Unknown codes fall back to univ.
๐ Full Region & Country Reference โ
๐ฑ Mobile App
On-device ANPR for iOS and Android โ parking, security, fleet management.
- On-device AI โ ~100-160 ms, 100% offline capable
- Team Work โ leader/member collaboration with shared data
- Webhooks โ Discord, Slack, or any custom endpoint
- Cloud Sync โ sync across devices via marearts.com
- Vehicle Intelligence โ make, model, color, type, face, plate nation, server-side OCR
- Map View, CSV Export, Whitelist/Blacklist, Stats
No additional license required โ the app works as your ANPR license.
๐ Mobile App Guide โ
MareArts Ecosystem
- marearts-anpr โ Automatic Number Plate Recognition (GitHub)
- marearts-road-objects โ Road object detection (GitHub)
- marearts-xcolor โ Color extraction and similarity (GitHub)
- marearts-mast โ Real-time panoramic stitching (GitHub)
Support & Resources
| Resource | Link |
|---|---|
| ๐ง Contact | hello@marearts.com |
| ๐ Homepage | https://marearts.com |
| ๐ณ License | ANPR Solution |
| ๐ฎ Live Demo | http://live.marearts.com |
| ๐บ Videos | YouTube Playlist |
| ๐ฑ App Store | MareArts ANPR App |
| ๐ค Google Play | MareArts ANPR App |
License
This software requires a valid license key. Visit MareArts ANPR Solution for licensing options.
ยฉ 2026 MareArts. All rights reserved.