Skip to main content

RoboVAI OCR Enterprise Core 🚗🆔👤

PyPI Version Python Version License Build Status

RoboVAI OCR Enterprise Core (robovai-ocr v1.0.5) is a production-grade Computer Vision & OCR system developed by Mohamed Shaban (محمد شعبان العتماني) — Founder & AI Architect at RoboVAI.

It provides specialized AI engines tailored for Smart Parking Management Systems, Barrier Gate Controls, and Identity Verification Systems:

  1. ALPREngine: Automatic License Plate Recognition for Egyptian, Arabic & International plates.
  2. IDEngine: Egyptian National ID & Driver License Deep Learning Engine (14-digit National ID decoding, full name, address, DOB, governorate, photo crop).
  3. FaceEngine: Facial recognition, driver authorization matching & registration database.

📊 Benchmark Performance Results (2,085 Dataset Images)

Benchmark evaluated on full enterprise dataset (robovai_plates 2,085 images):

Metric Benchmark Result Performance Status
Total Images Processed 2,085 Images 100% Full Dataset Benchmark
Plate Detection Rate 2,084 / 2,085 (99.95%) 🎯 Near-Perfect Detection
Valid OCR Extraction Rate 1,825 / 2,084 (87.57%) ⚡ High Reliability OCR
Avg Detection Confidence 91.95% 🔥 YOLOv8/v11 Fine-Tuned Bounding Box
Avg OCR Confidence 50.11% 🔍 Split-Region Whitelisted Character Normalization
Passing Unit Tests 15 / 15 (100% PASS) ✅ Production Verified

🌟 Key Architectural Features

  • Multi-Scale TTA Inference: Automatically applies 1.5x upscaling on low-resolution or distant frames with adaptive fallback confidence (conf = 0.15).
  • Split-Region Whitelisted OCR: Separates Egyptian plates into Left Region (Digits 0-9) and Right Region (Arabic Letters) to eliminate letter-digit confusion.
  • National ID Decoder: Automatically decodes 14-digit Egyptian National IDs into Date of Birth, Gender, Century, and Governorate of origin.
  • High-Throughput Async Pipeline: Decouples fast YOLO object tracking from heavier OCR background execution to maintain real-time RTSP/Webcam stream processing.
  • Green Box Visualizer: Renders high-visibility green bounding box (0, 255, 0) with text label banners for live video feeds and Web Dashboards.

🚀 Quick Start & Installation

Option 1: Install from PyPI

pip install --upgrade robovai-ocr

Option 2: Install from Source (Development Mode)

git clone https://github.com/m0shaban/robovai_ocr_system.git
cd robovai_ocr_system
pip install -e .

💻 Python SDK Usage Example

from robovai_ocr import RoboVAIEngine, Config

# 1. Initialize RoboVAI Engine
engine = RoboVAIEngine(device="cpu") # Or "cuda:0" for GPU

# 2. Automatic License Plate Recognition (ALPR)
plate_result = engine.read_license_plate("car_image.jpg")
print(plate_result)
# Output:
# {
#   "status": "success",
#   "plate_number": "س ط أ 1 2 3",
#   "confidence": 0.96,
#   "bbox": [120, 300, 450, 420]
# }

# 3. Egyptian National ID & Driver License Extraction
id_result = engine.extract_national_id("id_card.jpg")
print(id_result)
# Output:
# {
#   "national_id": "29901010100123",
#   "full_name": "أحمد محمد علي",
#   "dob": "1999-01-01",
#   "gender": "Male",
#   "governorate": "Cairo"
# }

# 4. Driver Face Verification
face_result = engine.verify_driver_face("driver.jpg", db_path="data/driver_faces")
print(face_result)

📡 REST API & Web Dashboard Server

Launch the FastAPI Server & Control Center Dashboard on Port 8500:

# Launch server via CLI
robovai-server --host 0.0.0.0 --port 8500
  • Interactive Control Center Dashboard: http://localhost:8500/
  • OpenAPI / Swagger Documentation: http://localhost:8500/docs

Key REST & WebSocket Endpoints

  • POST /api/v1/alpr: License plate detection & OCR extraction.
  • POST /api/v1/id-card: Egyptian National ID & Driver License OCR.
  • POST /api/v1/face: Driver facial recognition & database matching.
  • POST /api/v1/pipeline: Asynchronous background queue processing.
  • WS /ws/stream: Real-time WebSocket RTSP stream processing.

💻 Command Line Interface (CLI)

# Process single license plate
robovai-cli alpr --image path/to/car.jpg

# Process Egyptian National ID card
robovai-cli idcard --image path/to/id.jpg

👨‍💻 Author & Enterprise Contact

Download files

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

Source Distribution

robovai_ocr-1.0.7.tar.gz (41.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

robovai_ocr-1.0.7-py3-none-any.whl (42.2 kB view details)

Uploaded Python 3

File details

Details for the file robovai_ocr-1.0.7.tar.gz.

File metadata

  • Download URL: robovai_ocr-1.0.7.tar.gz
  • Upload date:
  • Size: 41.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.10

File hashes

Hashes for robovai_ocr-1.0.7.tar.gz
Algorithm Hash digest
SHA256 e84bc76cc7c3f1e2bee760a73541947ba64d69dbacdc8846a85deb4ac84001f3
MD5 d1d8582dd475e84d77c2785b00c64719
BLAKE2b-256 ac5bf9d2dba0d53b23bad525a32792608bb1f6e296cc6a4a4e2a7b48b08a8980

See more details on using hashes here.

File details

Details for the file robovai_ocr-1.0.7-py3-none-any.whl.

File metadata

  • Download URL: robovai_ocr-1.0.7-py3-none-any.whl
  • Upload date:
  • Size: 42.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.10

File hashes

Hashes for robovai_ocr-1.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 56debc1a6180f63805ff31d065d6471901001c131fe69bbbf2edbed5bb9b7c07
MD5 f3d87976f2bd89947b269c9ebc7f6234
BLAKE2b-256 9bce16703979563f336fb3123f7f919df1af3d8963c74c660179f696afee5e56

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page