xueqin84

Results 5 comments of xueqin84

> 原图是什么样子的呢? 以下是原图: ![Image](https://github.com/user-attachments/assets/36d1cf50-7dcc-4cfd-b21b-ced46332d106)

请问,可以调整哪个参数开放以使得不截断之前的图像内容吗?

> uvdoc矫正过后就是会导致坐标发生变化,应该是不好恢复的。 意思是矫正后没法获取全部图像内容?

> 矫正后只能得到矫正区域的信息,想到完整原始的图片信息,得关掉图片矫正。 我的想矫正后做一次整图OCR,如果矫正后内容有截断,就要分矫正前OCR和矫正后OCR了

在tools/infer/predict_rec.py脚本中, 原始的是: `if model_name and model_name not in [ "PP-OCRv5_mobile_rec", "PP-OCRv5_server_rec", ]:` 第47行开始添加需要的模型名字可以,修改为以下代码: `class TextRecognizer(object): def __init__(self, args, logger=None): if os.path.exists(f"{args.rec_model_dir}/inference.yml"): model_config = utility.load_config(f"{args.rec_model_dir}/inference.yml") model_name = model_config.get("Global", {}).get("model_name", "") if...