@version 1 # OCR models. Each [model NAME] names the files it needs from this folder (fetch_models.jai # downloads them) and how it is run; ocr_create takes the NAME. Changes apply to engines created # after the file is saved. # # title shown to people # detector, recognizer, dictionary file names, quoted # det_max_side wider images are scaled down to this width for detection (px) # det_tile_height taller images are detected in overlapping strips this high (px, after scaling) # det_threshold a pixel is text when its probability is above this # box_threshold a text region is kept when its mean probability is at least this # unclip_ratio how far each region is grown, as DB detection networks expect # rec_height each text line is scaled to this height for recognition (px) # rec_batch text lines recognized together in one run [model ppocr-v5-mobile] title: "PP-OCRv5 mobile (light)" detector: "ch_PP-OCRv5_det_mobile.onnx" recognizer: "ch_PP-OCRv5_rec_mobile.onnx" dictionary: "ppocrv5_dict.txt" det_max_side: 2560 det_tile_height: 1536 det_threshold: 0.3 box_threshold: 0.6 unclip_ratio: 1.5 rec_height: 48 rec_batch: 16 [model ppocr-v5-server] title: "PP-OCRv5 server (heavy)" detector: "ch_PP-OCRv5_det_server.onnx" recognizer: "ch_PP-OCRv5_rec_server.onnx" dictionary: "ppocrv5_dict.txt" det_max_side: 2560 det_tile_height: 1536 det_threshold: 0.3 box_threshold: 0.6 unclip_ratio: 1.5 rec_height: 48 rec_batch: 16