BGR/RGB mismatch in PP-OCRv6 Android recog preprocessing
Author: ankandrewCreated Sep 28, 2026Updated Sep 28, 2026
Search before asking
- I have searched the PaddleOCR Docs and found no similar bug report.
- I have searched the PaddleOCR Issues and found no similar bug report.
- I have searched the PaddleOCR Discussions and found no similar bug report.
Bug (问题描述)
Seems PP-OCRv6 recognition is trained/evaluated with BGR images, but Android ONNX preprocessing converts BGR to RGB...
♂️ Environment (运行环境)
Latest PaddleOCR main, PP-OCRv6 ONNX models.
Minimal Reproducible Example (最小可复现问题的Demo)
PP-OCRv6 training config uses BGR:
Android ONNX preprocessing converts BGR to RGB:
so training pipeline uses BGR, while the Android recog preprocessing converts the crop to RGB before inference.
Source: PaddlePaddle/PaddleOCR