CV / PaddleOCR
PaddleOCR v5 Mobile Detection
reComputer R Series (CM5 + Hailo-8)
Text-region detection for document images on reComputer R Series with Hailo-8 or Hailo-10H.
Choose the device you're using, the set up guide and documentation will update accordingly.
Getting Started
sudo docker run --rm \
--name cm5-hailo8-paddle-ocr-v5-mobile-detection \
--privileged \
--net=host \
-e PYTHONUNBUFFERED=1 \
--device /dev/hailo0:/dev/hailo0 \
-v /usr/lib/libhailort.so.4.23.0:/usr/lib/libhailort.so.4.23.0:ro \
-v /usr/lib/libhailort.so:/usr/lib/libhailort.so:ro \
ghcr.io/seeed-projects/recomputer-hailo8-cv/paddle_ocr_v5_mobile_detection:latest \
python web_detection.py --model_path model/paddle_ocr_v5_mobile_detection.hef --video_path video/test.mp4Model Details
reComputer R SeriesPaddleOCR v5 Mobile Detection on reComputer R Series (CM5 + Hailo-8)
PaddleOCR v5 Mobile Detection finds text regions in a full document image. It is an independent model: use its polygons or boxes to crop text lines before sending them to a text-recognition model.
Model information
| Property | Value |
|---|---|
| Task | Text detection |
| Input | 544 × 960 × 3 image |
| Output | Text-region quadrilaterals and axis-aligned boxes |
| HEF | Hailo-8 PaddleOCR detection HEF |
| Runtime | HailoRT 4.23.x |
Host requirements
The Hailo-8 driver, firmware, host libhailort.so, and Python wheel inside the image must use matching HailoRT major/minor versions.
sudo apt update
sudo apt install hailort hailort-pcie-driver python3-hailort
sudo reboot
hailortcli --version
hailortcli fw-control identify
ls -l /dev/hailo0Run the demo
sudo docker run --rm \
--name cm5-hailo8-paddle-ocr-v5-mobile-detection \
--privileged \
--net=host \
-e PYTHONUNBUFFERED=1 \
--device /dev/hailo0:/dev/hailo0 \
-v /usr/lib/libhailort.so.4.23.0:/usr/lib/libhailort.so.4.23.0:ro \
-v /usr/lib/libhailort.so:/usr/lib/libhailort.so:ro \
ghcr.io/seeed-projects/recomputer-hailo8-cv/paddle_ocr_v5_mobile_detection:latest \
python web_detection.py --model_path model/paddle_ocr_v5_mobile_detection.hef --video_path video/test.mp4Open http://<PI_IP>:8000 for the preview.
REST API
curl -X POST "http://<PI_IP>:8000/api/models/paddle_ocr_v5_mobile_detection/predict" \
-F "file=@document.png"The response returns a predictions array; each item contains a polygon and an axis-aligned box in source-image coordinates.
Relationship to recognition
This model does not decode text. Crop or rectify each detected line and pass it to PaddleOCR v5 Mobile Recognition as a separate deployment.
Inputs and Outputs
Input: full document image or demo video frame. Output: detected text-region polygons, bounding boxes, and annotated MJPEG preview.