Repository navigation
Engineering paper: PP-OCRv6 / RapidOCR on Orange Pi Zero 3W A733/VIP9000 NPU #18385
sog777
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hi PaddleOCR community,
I’m sharing an engineering paper about adapting a PP-OCRv6-based RapidOCR pipeline to the Orange Pi Zero 3W’s Allwinner A733 / Vivante VIP9000 NPU, integrated into Visual AI.
Paper and implementation guide: https://github.com/sog777/orange-pi-zero-3w-rapidocr-npu
The conversion path was ONNX → ACUITY → NBG → VIPLite. The paper covers static-shape conversion, targeted graph rewrites, quantization, intermediate arithmetic checks, simulator-versus-hardware comparisons, and physical-board validation.
Some findings that may be useful to developers working with other constrained inference targets:
The deployed architecture remains hybrid: detection and eligible recognition attempts run on the NPU, while a canonical ONNX Runtime CPU recognizer checks every recognition crop and supplies the final text and confidence scores. Wide lines and orientation classification also remain on CPU. CPU checks occur even when NPU and CPU predictions agree.
For a tested 18-line page, the verified path took approximately 1.64–1.66 seconds, with 18 NPU recognition attempts and 18 CPU checks: 14 agreements and four corrections. Agreement with a CPU reference does not establish perfect transcription against human labels, and we have not established a matched CPU-only speed advantage.
The paper also covers higher-resolution tiled detection, full-frame accuracy improvements, and rejected full-NPU recognition experiments. One full-NPU candidate reduced aggregate CPU consumption by approximately 77.65%, but increased processing time by approximately 79.34% and regressed accuracy, so it was not promoted.
The corrected source and command supplement is now public. This is an engineering case study with conditional reproduction instructions, not an officially supported PaddleOCR backend. I hope the graph-conversion and validation lessons are useful to others exploring nonstandard accelerators. Feedback on the methodology and clarity is welcome.
Public source supplement — published 17 October 2026
The corrected engineering guide and source supplement are now public:
The supplement includes 3,143 readable source records and 2,523 retained command records, plus graph rewrite scripts, the VIPLite bridge/runtime, Visual AI integration, validation reports, model provenance and checksums. Commands are placed beside the relevant engineering stages in the guide. Public paths use
/home/user/rapidocr-npu; adapt the account home before installation.Corrections include refreshed manifest byte counts/hashes, completed Visual AI integration notes, installing the systemd user service before enabling it, a true byte comparison before the self-test reports byte-exact output, and corrected camera-recovery paths.
Not distributed: original test/camera images, proprietary
vip_lite.h, 312 vendor-generated C/header files with unverified redistribution terms, and both compiled NBG model files. Their conditional build/validation commands remain documented; compatible authorized SDK components, locally generated outputs and separate image fixtures are required. Numeric parity tensors remain included.The command record contains scripts, comments, fragments and intended commands; it is not a complete chronological terminal transcript. This is an engineering source supplement, not a tested fresh-install or turnkey backend. Hardware tests were not rerun for this publication revision. The deployed pipeline still uses canonical CPU recognition for every crop; rejected full-NPU experiments were not promoted. The 11.76 ms figure measures the native bridge call including associated transfer/cache work, not an isolated NPU kernel. No blanket reuse license has been assigned to project-authored code; third-party notices remain applicable.
All reactions