mmocr 测试字符检测和识别模型

mmocr 测试字符检测和识别模型,第1张

注:左图是原图,右图是定位和识别结果。

可以兼容多种模型。

import os.path

import cv2
import torch

from mmocr.apis.inference import model_inference
from mmocr.apis import init_detector
from mmocr.utils import revert_sync_batchnorm
from mmocr.datasets.pipelines.crop import crop_img
from mmocr.core.visualize import det_recog_show_result

textdet_models = {
            'DB_r18': {
                'config':
                &#

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/langs/714088.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-04-24
下一篇 2022-04-24

发表评论

登录后才能评论

评论列表(0条)

保存