Skip to content

Latest commit

 

History

History
 
 

PP-OCRv3cls

PP-OCRv3cls

Description

The direction classifier is used in the scene where the image is not 0 degrees. In this scene, it is necessary to perform a correction operation on the text line detected in the picture. In the PaddleOCR system, The text line image obtained after text detection is sent to the recognition model after affine transformation.

At this time, only a 0 and 180 degree angle classification of the text is required, so the built-in PaddleOCR text angle classifier only supports 0 and 180 degree classification.

It is recommended to use fastdeploy.

Model

Model Download Shape(hw)
ch-PP-OCRv3-Direction classifier 2.08 MB 128 128
  • Convert to onnx
paddle2onnx  --model_dir ch_ppocr_mobile_v2.0_cls_infer \
             --model_filename inference.pdmodel \
             --params_filename inference.pdiparams \
             --opset_version 13 \
             --save_file ch_ppocr_mobile_v2.0_cls_infer.onnx

Dataset

References

License

Apache 2.0