Onnx Text Recognition (OnnxTR) is an Onnx-wrapped version of docTR that provides high-performance OCR on documents. It supports text detection, recognition, and end-to-end OCR pipelines using pre-trained models exported to ONNX. Current version 0.8.1 requires Python >=3.10 and <4. Release cadence is irregular.
pip install onnxtrVerified import paths — ran on the pinned version, not inferred.
Basic usage of onnxtr to perform OCR on an image and print the recognized text.
Upgrade Python to 3.10 or later; or use onnxtr<0.8.0 (not recommended).
Use DocumentFile.from_images() or ensure image is converted to RGB: cv2.cvtColor(img, cv2.COLOR_BGR2RGB).
Use docTR's onnx_export utilities. See docTR documentation.
No dependency data recorded yet.