中文ocr效果比较
我本来是参考的https://blog.csdn.net/bugang4663/article/details/131720149
但是后来发现跟他的结果有点区别
tesseract
很差,最好不要用
& "C:\Program Files\Tesseract-OCR\tesseract.exe" .\IMG_20240916_034522.jpg ttt -l chi_sim
结果txt
此编辑也示允各疙册
paddleocr
ocr = PaddleOCR(use_angle_cls=True)
结果
IMG_20240916_034522
['石家香油', '石家香油', '石家香油销', '石家香油', '石家香油', '县石家', '100']
IMG_20240918_024623
['心轻放 遮光、密闭保存', 'trin美林', '国药准字H19991011', 'OTC', '开启时勿伤产品', '请轻拿轻放 严禁踩踏', '生理氯化钠溶液', 'SODIUM CHLORIDE PHYSIOLOGICAL SOLUTION', 'TUD、20B', '产品批号L24041414', '批准文号:国药准字H20083400', '生产日期2024.04.24', '四川科伦药业股份有限公司', '[500ml]']
CnOCR
ocr = CnOcr() # 所有参数都使用默认值
onnxruntime-gpu识别正确率跟paddleocr差不多,但是速度比paddleocr单进程(cpu和gpu单进程情况下速度差不多)慢2-3倍
IMG_20240916_034522
[{'text': '', 'score': 0.10658054798841476, 'position': array([[649, 91],
[772, 141],
[740, 219],
[618, 170]])}, {'text': '9', 'score': 0.09690600633621216, 'position': array([[1917, 231],
[2102, 219],
[2110, 358],
[1925, 369]])}, {'text': '', 'score': 0.13727280497550964, 'position': array([[3174, 592],
[3234, 593],
[3232, 750],
[3172, 749]])}, {'text': 'G', 'score': 0.44654780626296997, 'position': array([[2955, 688],
[3058, 688],
[3058, 813],
[2955, 813]])}, {'text': '中', 'score': 0.12367139756679535, 'position': array([[6139, 757],
[6193, 761],
[6185, 876],
[6131, 873]])}, {'text': '', 'score': 0.2285541445016861, 'position': array([[1866, 821],
[1913, 821],
[1913, 918],
[1866, 918]])}, {'text': '22', 'score': 0.2906400263309479, 'position': array([[3251, 1042],
[3332, 1036],
[3335, 1064],
[3254, 1070]])}, {'text': '京街', 'score': 0.06491634249687195, 'position': array([[4524, 2068],
[4735, 2068],
[4735, 2122],
[4524, 2122]])}, {'text': '2', 'score': 0.27802547812461853, 'position': array([[4785, 2545],
[4888, 2545],
[4888, 2588],
[4785, 2588]])}, {'text': '9', 'score': 0.11071888357400894, 'position': array([[2197, 2646],
[2303, 2617],
[2318, 2671],
[2212, 2700]])}, {'text': '天车', 'score': 0.08940067887306213, 'position': array([[6364, 2899],
[6429, 2899],
[6429, 3002],
[6364, 3002]])}, {'text': '山东名产', 'score': 0.9689404964447021, 'position': array([[5543, 2917],
[5787, 2969],
[5769, 3053],
[5525, 3001]])}, {'text': '东名产', 'score': 0.23485665023326874, 'position': array([[4191, 2996],
[4391, 3083],
[4354, 3168],
[4154, 3080]])}, {'text': '0060', 'score': 0.3224014639854431, 'position': array([[5921, 2995],
[6240, 2961],
[6250, 3058],
[5931, 3092]])}, {'text': '中裱体承', 'score': 0.1109469085931778, 'position': array([[5945, 3023],
[6236, 3019],
[6245, 3641],
[5954, 3646]])}, {'text': 'H四E”', 'score': 0.09927400201559067, 'position': array([[4920, 3048],
[4947, 3048],
[4945, 3187],
[4918, 3186]])}, {'text': '迎以', 'score': 0.08676915615797043, 'position': array([[4952, 3045],
[4976, 3046],
[4972, 3157],
[4948, 3156]])}, {'text': '汽产', 'score': 0.19553706049919128, 'position': array([[1662, 3105],
[1800, 3174],
[1761, 3251],
[1623, 3182]])}, {'text': '000', 'score': 0.42791303992271423, 'position': array([[4544, 3099],
[4791, 3091],
[4794, 3194],
[4547, 3201]])}, {'text': '栋匀产', 'score': 0.29579073190689087, 'position': array([[2896, 3145],
[3133, 3219],
[3105, 3307],
[2868, 3233]])}, {'text': '有迎国址', 'score': 0.15392045676708221, 'position': array([[3728, 3142],
[3745, 3142],
[3745, 3253],
[3728, 3253]])}, {'text': '办口斋作茶二', 'score': 0.07481705397367477, 'position': array([[4496, 3140],
[4781, 3130],
[4803, 3743],
[4518, 3753]])}, {'text': '沙', 'score': 0.08065470308065414, 'position': array([[3701, 3153],
[3725, 3153],
[3725, 3210],
[3701, 3210]])}, {'text': '窠啡坤悌物安解物希', 'score': 0.03652966395020485, 'position': array([[5771, 3152],
[5854, 3148],
[5874, 3688],
[5791, 3691]])}, {'text': '认语临鸭面', 'score': 0.06359657645225525, 'position': array([[2465, 3167],
[2500, 3165],
[2506, 3324],
[2471, 3326]])}, {'text': '包体味火', 'score': 0.07667894661426544, 'position': array([[2406, 3186],
[2443, 3186],
[2443, 3318],
[2406, 3318]])}, {'text': '世车', 'score': 0.09739886969327927, 'position': array([[2436, 3178],
[2469, 3177],
[2473, 3307],
[2440, 3309]])}, {'text': 'HHW', 'score': 0.4497641623020172, 'position': array([[2501, 3187],
[2528, 3186],
[2531, 3290],
[2504, 3291]])}, {'text': '味国x', 'score': 0.12937955558300018, 'position': array([[4918, 3180],
[4945, 3180],
[4945, 3289],
[4918, 3289]])}, {'text': '划礼已银婚', 'score': 0.12274651974439621, 'position': array([[2371, 3195],
[2408, 3194],
[2415, 3446],
[2378, 3447]])}, {'text': 'n', 'score': 0.05900824815034866, 'position': array([[4970, 3186],
[4992, 3186],
[4992, 3233],
[4970, 3233]])}, {'text': '四安', 'score': 0.1494063287973404, 'position': array([[3703, 3203],
[3724, 3202],
[3726, 3276],
[3705, 3276]])}, {'text': '0000', 'score': 0.3105579614639282, 'position': array([[1894, 3214],
[2227, 3235],
[2220, 3343],
[1887, 3322]])}, {'text': '六国爱财味', 'score': 0.0889931246638298, 'position': array([[4943, 3214],
[4970, 3215],
[4965, 3439],
[4938, 3438]])}, {'text': '0000', 'score': 0.37852743268013, 'position': array([[3255, 3247],
[3580, 3210],
[3591, 3313],
[3266, 3349]])}, {'text': '脚体中保和理零物章', 'score': 0.10412746667861938, 'position': array([[4359, 3260],
[4435, 3259],
[4442, 3770],
[4366, 3771]])}, {'text': '京口城和氟店', 'score': 0.061230141669511795, 'position': array([[1905, 3275],
[2209, 3253],
[2255, 3881],
[1951, 3904]])}, {'text': '电A话278', 'score': 0.12383822351694107, 'position': array([[2562, 3283],
[2576, 3283],
[2576, 3378],
[2562, 3378]])}, {'text': '中诚体票', 'score': 0.11677078902721405, 'position': array([[3281, 3277],
[3576, 3263],
[3606, 3896],
[3311, 3910]])}, {'text': 'E&汽', 'score': 0.061820123344659805, 'position': array([[3704, 3298],
[3727, 3298],
[3727, 3397],
[3704, 3397]])}, {'text': 'MT', 'score': 0.09079667180776596, 'position': array([[5001, 3293],
[5021, 3293],
[5021, 3357],
[5001, 3357]])}, {'text': 'OEAHLM)', 'score': 0.12167643755674362, 'position': array([[2500, 3304],
[2537, 3303],
[2544, 3542],
[2507, 3543]])}, {'text': 'H医怕装网区创', 'score': 0.06918022036552429, 'position': array([[2408, 3337],
[2448, 3336],
[2458, 3612],
[2418, 3614]])}, {'text': '1京', 'score': 0.22444164752960205, 'position': array([[2449, 3344],
[2475, 3344],
[2475, 3387],
[2449, 3387]])}, {'text': 'GB16233', 'score': 0.34669873118400574, 'position': array([[2478, 3341],
[2508, 3341],
[2510, 3493],
[2480, 3494]])}, {'text': 'E国风味', 'score': 0.10214851051568985, 'position': array([[3725, 3339],
[3752, 3339],
[3752, 3556],
[3725, 3556]])}, {'text': ' 4608p', 'score': 0.1263788640499115, 'position': array([[1844, 3353],
[1903, 3849],
[1846, 3856],
[1787, 3360]])}, {'text': 'va', 'score': 0.1563429981470108, 'position': array([[2584, 3352],
[2601, 3352],
[2601, 3438],
[2584, 3438]])}, {'text': '国体神体物食评画希', 'score': 0.07124683260917664, 'position': array([[3121, 3406],
[3194, 3401],
[3230, 3937],
[3157, 3942]])}, {'text': 'a', 'score': 0.27049025893211365, 'position': array([[4899, 3553],
[4942, 3535],
[4953, 3563],
[4910, 3580]])}, {'text': '6', 'score': 0.30905255675315857, 'position': array([[5950, 3596],
[6114, 3607],
[6110, 3663],
[5946, 3652]])}, {'text': '山', 'score': 0.08691439777612686, 'position': array([[4905, 3606],
[4940, 3606],
[4940, 3642],
[4905, 3642]])}, {'text': '中A9业', 'score': 0.041910264641046524, 'position': array([[2492, 3642],
[2584, 3600],
[2595, 3624],
[2503, 3665]])}, {'text': 'GD', 'score': 0.4207074046134949, 'position': array([[4897, 3649],
[4929, 3633],
[4941, 3657],
[4909, 3673]])}, {'text': '市100/E', 'score': 0.09749061614274979, 'position': array([[2487, 3688],
[2589, 3641],
[2603, 3672],
[2501, 3719]])}, {'text': 'L', 'score': 0.08779045939445496, 'position': array([[3686, 3679],
[3733, 3647],
[3753, 3678],
[3706, 3709]])}, {'text': '60', 'score': 0.3612309396266937, 'position': array([[4512, 3690],
[4672, 3718],
[4662, 3774],
[4502, 3746]])}, {'text': '项目', 'score': 0.9349932670593262, 'position': array([[2375, 3721],
[2436, 3706],
[2444, 3738],
[2383, 3753]])}, {'text': '业', 'score': 0.12186812609434128, 'position': array([[3701, 3715],
[3725, 3715],
[3725, 3738],
[3701, 3738]])}, {'text': '370', 'score': 0.21399186551570892, 'position': array([[2502, 3730],
[2551, 3707],
[2561, 3728],
[2512, 3751]])}, {'text': 'aE', 'score': 0.21323147416114807, 'position': array([[2546, 3738],
[2578, 3719],
[2591, 3741],
[2559, 3760]])}, {'text': 'a', 'score': 0.0701647475361824, 'position': array([[3688, 3746],
[3734, 3720],
[3749, 3747],
[3703, 3773]])}, {'text': 'E业', 'score': 0.20200960338115692, 'position': array([[2382, 3765],
[2421, 3763],
[2422, 3785],
[2383, 3788]])}, {'text': 'MLAE', 'score': 0.21844007074832916, 'position': array([[2515, 3779],
[2581, 3746],
[2594, 3772],
[2528, 3805]])}, {'text': '爱日店', 'score': 0.11122403293848038, 'position': array([[2377, 3795],
[2443, 3778],
[2450, 3806],
[2384, 3823]])}, {'text': 'as', 'score': 0.14672474563121796, 'position': array([[2541, 3792],
[2586, 3776],
[2597, 3807],
[2552, 3823]])}, {'text': 'CD', 'score': 0.3772389888763428, 'position': array([[2380, 3821],
[2426, 3815],
[2430, 3842],
[2384, 3848]])}, {'text': 'aR', 'score': 0.19559641182422638, 'position': array([[2528, 3830],
[2585, 3797],
[2600, 3822],
[2543, 3855]])}, {'text': 'JO', 'score': 0.2996118664741516, 'position': array([[2036, 3858],
[2168, 3858],
[2168, 3899],
[2036, 3899]])}, {'text': '福水化合款', 'score': 0.2434317022562027, 'position': array([[2379, 3850],
[2483, 3824],
[2490, 3855],
[2386, 3881]])}, {'text': 'O0', 'score': 0.21994121372699738, 'position': array([[3311, 3854],
[3454, 3874],
[3447, 3926],
[3304, 3905]])}]
[772, 141],
[740, 219],
[618, 170]])}, {'text': '9', 'score': 0.09690600633621216, 'position': array([[1917, 231],
[2102, 219],
[2110, 358],
[1925, 369]])}, {'text': '', 'score': 0.13727280497550964, 'position': array([[3174, 592],
[3234, 593],
[3232, 750],
[3172, 749]])}, {'text': 'G', 'score': 0.44654780626296997, 'position': array([[2955, 688],
[3058, 688],
[3058, 813],
[2955, 813]])}, {'text': '中', 'score': 0.12367139756679535, 'position': array([[6139, 757],
[6193, 761],
[6185, 876],
[6131, 873]])}, {'text': '', 'score': 0.2285541445016861, 'position': array([[1866, 821],
[1913, 821],
[1913, 918],
[1866, 918]])}, {'text': '22', 'score': 0.2906400263309479, 'position': array([[3251, 1042],
[3332, 1036],
[3335, 1064],
[3254, 1070]])}, {'text': '京街', 'score': 0.06491634249687195, 'position': array([[4524, 2068],
[4735, 2068],
[4735, 2122],
[4524, 2122]])}, {'text': '2', 'score': 0.27802547812461853, 'position': array([[4785, 2545],
[4888, 2545],
[4888, 2588],
[4785, 2588]])}, {'text': '9', 'score': 0.11071888357400894, 'position': array([[2197, 2646],
[2303, 2617],
[2318, 2671],
[2212, 2700]])}, {'text': '天车', 'score': 0.08940067887306213, 'position': array([[6364, 2899],
[6429, 2899],
[6429, 3002],
[6364, 3002]])}, {'text': '山东名产', 'score': 0.9689404964447021, 'position': array([[5543, 2917],
[5787, 2969],
[5769, 3053],
[5525, 3001]])}, {'text': '东名产', 'score': 0.23485665023326874, 'position': array([[4191, 2996],
[4391, 3083],
[4354, 3168],
[4154, 3080]])}, {'text': '0060', 'score': 0.3224014639854431, 'position': array([[5921, 2995],
[6240, 2961],
[6250, 3058],
[5931, 3092]])}, {'text': '中裱体承', 'score': 0.1109469085931778, 'position': array([[5945, 3023],
[6236, 3019],
[6245, 3641],
[5954, 3646]])}, {'text': 'H四E”', 'score': 0.09927400201559067, 'position': array([[4920, 3048],
[4947, 3048],
[4945, 3187],
[4918, 3186]])}, {'text': '迎以', 'score': 0.08676915615797043, 'position': array([[4952, 3045],
[4976, 3046],
[4972, 3157],
[4948, 3156]])}, {'text': '汽产', 'score': 0.19553706049919128, 'position': array([[1662, 3105],
[1800, 3174],
[1761, 3251],
[1623, 3182]])}, {'text': '000', 'score': 0.42791303992271423, 'position': array([[4544, 3099],
[4791, 3091],
[4794, 3194],
[4547, 3201]])}, {'text': '栋匀产', 'score': 0.29579073190689087, 'position': array([[2896, 3145],
[3133, 3219],
[3105, 3307],
[2868, 3233]])}, {'text': '有迎国址', 'score': 0.15392045676708221, 'position': array([[3728, 3142],
[3745, 3142],
[3745, 3253],
[3728, 3253]])}, {'text': '办口斋作茶二', 'score': 0.07481705397367477, 'position': array([[4496, 3140],
[4781, 3130],
[4803, 3743],
[4518, 3753]])}, {'text': '沙', 'score': 0.08065470308065414, 'position': array([[3701, 3153],
[3725, 3153],
[3725, 3210],
[3701, 3210]])}, {'text': '窠啡坤悌物安解物希', 'score': 0.03652966395020485, 'position': array([[5771, 3152],
[5854, 3148],
[5874, 3688],
[5791, 3691]])}, {'text': '认语临鸭面', 'score': 0.06359657645225525, 'position': array([[2465, 3167],
[2500, 3165],
[2506, 3324],
[2471, 3326]])}, {'text': '包体味火', 'score': 0.07667894661426544, 'position': array([[2406, 3186],
[2443, 3186],
[2443, 3318],
[2406, 3318]])}, {'text': '世车', 'score': 0.09739886969327927, 'position': array([[2436, 3178],
[2469, 3177],
[2473, 3307],
[2440, 3309]])}, {'text': 'HHW', 'score': 0.4497641623020172, 'position': array([[2501, 3187],
[2528, 3186],
[2531, 3290],
[2504, 3291]])}, {'text': '味国x', 'score': 0.12937955558300018, 'position': array([[4918, 3180],
[4945, 3180],
[4945, 3289],
[4918, 3289]])}, {'text': '划礼已银婚', 'score': 0.12274651974439621, 'position': array([[2371, 3195],
[2408, 3194],
[2415, 3446],
[2378, 3447]])}, {'text': 'n', 'score': 0.05900824815034866, 'position': array([[4970, 3186],
[4992, 3186],
[4992, 3233],
[4970, 3233]])}, {'text': '四安', 'score': 0.1494063287973404, 'position': array([[3703, 3203],
[3724, 3202],
[3726, 3276],
[3705, 3276]])}, {'text': '0000', 'score': 0.3105579614639282, 'position': array([[1894, 3214],
[2227, 3235],
[2220, 3343],
[1887, 3322]])}, {'text': '六国爱财味', 'score': 0.0889931246638298, 'position': array([[4943, 3214],
[4970, 3215],
[4965, 3439],
[4938, 3438]])}, {'text': '0000', 'score': 0.37852743268013, 'position': array([[3255, 3247],
[3580, 3210],
[3591, 3313],
[3266, 3349]])}, {'text': '脚体中保和理零物章', 'score': 0.10412746667861938, 'position': array([[4359, 3260],
[4435, 3259],
[4442, 3770],
[4366, 3771]])}, {'text': '京口城和氟店', 'score': 0.061230141669511795, 'position': array([[1905, 3275],
[2209, 3253],
[2255, 3881],
[1951, 3904]])}, {'text': '电A话278', 'score': 0.12383822351694107, 'position': array([[2562, 3283],
[2576, 3283],
[2576, 3378],
[2562, 3378]])}, {'text': '中诚体票', 'score': 0.11677078902721405, 'position': array([[3281, 3277],
[3576, 3263],
[3606, 3896],
[3311, 3910]])}, {'text': 'E&汽', 'score': 0.061820123344659805, 'position': array([[3704, 3298],
[3727, 3298],
[3727, 3397],
[3704, 3397]])}, {'text': 'MT', 'score': 0.09079667180776596, 'position': array([[5001, 3293],
[5021, 3293],
[5021, 3357],
[5001, 3357]])}, {'text': 'OEAHLM)', 'score': 0.12167643755674362, 'position': array([[2500, 3304],
[2537, 3303],
[2544, 3542],
[2507, 3543]])}, {'text': 'H医怕装网区创', 'score': 0.06918022036552429, 'position': array([[2408, 3337],
[2448, 3336],
[2458, 3612],
[2418, 3614]])}, {'text': '1京', 'score': 0.22444164752960205, 'position': array([[2449, 3344],
[2475, 3344],
[2475, 3387],
[2449, 3387]])}, {'text': 'GB16233', 'score': 0.34669873118400574, 'position': array([[2478, 3341],
[2508, 3341],
[2510, 3493],
[2480, 3494]])}, {'text': 'E国风味', 'score': 0.10214851051568985, 'position': array([[3725, 3339],
[3752, 3339],
[3752, 3556],
[3725, 3556]])}, {'text': ' 4608p', 'score': 0.1263788640499115, 'position': array([[1844, 3353],
[1903, 3849],
[1846, 3856],
[1787, 3360]])}, {'text': 'va', 'score': 0.1563429981470108, 'position': array([[2584, 3352],
[2601, 3352],
[2601, 3438],
[2584, 3438]])}, {'text': '国体神体物食评画希', 'score': 0.07124683260917664, 'position': array([[3121, 3406],
[3194, 3401],
[3230, 3937],
[3157, 3942]])}, {'text': 'a', 'score': 0.27049025893211365, 'position': array([[4899, 3553],
[4942, 3535],
[4953, 3563],
[4910, 3580]])}, {'text': '6', 'score': 0.30905255675315857, 'position': array([[5950, 3596],
[6114, 3607],
[6110, 3663],
[5946, 3652]])}, {'text': '山', 'score': 0.08691439777612686, 'position': array([[4905, 3606],
[4940, 3606],
[4940, 3642],
[4905, 3642]])}, {'text': '中A9业', 'score': 0.041910264641046524, 'position': array([[2492, 3642],
[2584, 3600],
[2595, 3624],
[2503, 3665]])}, {'text': 'GD', 'score': 0.4207074046134949, 'position': array([[4897, 3649],
[4929, 3633],
[4941, 3657],
[4909, 3673]])}, {'text': '市100/E', 'score': 0.09749061614274979, 'position': array([[2487, 3688],
[2589, 3641],
[2603, 3672],
[2501, 3719]])}, {'text': 'L', 'score': 0.08779045939445496, 'position': array([[3686, 3679],
[3733, 3647],
[3753, 3678],
[3706, 3709]])}, {'text': '60', 'score': 0.3612309396266937, 'position': array([[4512, 3690],
[4672, 3718],
[4662, 3774],
[4502, 3746]])}, {'text': '项目', 'score': 0.9349932670593262, 'position': array([[2375, 3721],
[2436, 3706],
[2444, 3738],
[2383, 3753]])}, {'text': '业', 'score': 0.12186812609434128, 'position': array([[3701, 3715],
[3725, 3715],
[3725, 3738],
[3701, 3738]])}, {'text': '370', 'score': 0.21399186551570892, 'position': array([[2502, 3730],
[2551, 3707],
[2561, 3728],
[2512, 3751]])}, {'text': 'aE', 'score': 0.21323147416114807, 'position': array([[2546, 3738],
[2578, 3719],
[2591, 3741],
[2559, 3760]])}, {'text': 'a', 'score': 0.0701647475361824, 'position': array([[3688, 3746],
[3734, 3720],
[3749, 3747],
[3703, 3773]])}, {'text': 'E业', 'score': 0.20200960338115692, 'position': array([[2382, 3765],
[2421, 3763],
[2422, 3785],
[2383, 3788]])}, {'text': 'MLAE', 'score': 0.21844007074832916, 'position': array([[2515, 3779],
[2581, 3746],
[2594, 3772],
[2528, 3805]])}, {'text': '爱日店', 'score': 0.11122403293848038, 'position': array([[2377, 3795],
[2443, 3778],
[2450, 3806],
[2384, 3823]])}, {'text': 'as', 'score': 0.14672474563121796, 'position': array([[2541, 3792],
[2586, 3776],
[2597, 3807],
[2552, 3823]])}, {'text': 'CD', 'score': 0.3772389888763428, 'position': array([[2380, 3821],
[2426, 3815],
[2430, 3842],
[2384, 3848]])}, {'text': 'aR', 'score': 0.19559641182422638, 'position': array([[2528, 3830],
[2585, 3797],
[2600, 3822],
[2543, 3855]])}, {'text': 'JO', 'score': 0.2996118664741516, 'position': array([[2036, 3858],
[2168, 3858],
[2168, 3899],
[2036, 3899]])}, {'text': '福水化合款', 'score': 0.2434317022562027, 'position': array([[2379, 3850],
[2483, 3824],
[2490, 3855],
[2386, 3881]])}, {'text': 'O0', 'score': 0.21994121372699738, 'position': array([[3311, 3854],
[3454, 3874],
[3447, 3926],
[3304, 3905]])}]
IMG_20240918_024623
默认的过滤score比paddleocr低,导致很多杂乱结果。
filtered_out = [item for item in out if item['score'] > 0.5]
过滤之后来看,跟paddleocr的结果差不多。(不过这个默认的densenet_lite_136-gru模型不能识别竖排文字。而且不支持方向旋转检测
[{'text': 'rin美林', 'score': 0.5771290063858032, 'position': array([[1039, 676],
[1465, 712],
[1458, 797],
[1032, 761]])}, {'text': 'OTC', 'score': 0.8899973630905151, 'position': array([[2501, 792],
[2571, 798],
[2568, 830],
[2498, 824]])}, {'text': '甲类', 'score': 0.997355580329895, 'position': array([[2504, 833],
[2556, 833],
[2556, 869],
[2504, 869]])}, {'text': '开启时勿伤产品', 'score': 0.7316938638687134, 'position': array([[1504, 1065],
[1960, 1174],
[1948, 1223],
[1492, 1115]])}, {'text': '请轻拿轻放严禁踩踏', 'score': 0.5340415835380554, 'position': array([[1402, 1109],
[2008, 1253],
[1996, 1302],
[1390, 1158]])}, {'text': '科技产业园', 'score': 0.7841044068336487, 'position': array([[2386, 1298],
[2478, 1301],
[2478, 1325],
[2386, 1322]])}, {'text': '至', 'score': 0.9531726241111755, 'position': array([[2360, 1341],
[2378, 1341],
[2378, 1358],
[2360, 1358]])}, {'text': '有限公司川', 'score': 0.5746391415596008, 'position': array([[2371, 1393],
[2457, 1397],
[2456, 1421],
[2370, 1417]])}, {'text': '生理氯化钠溶液', 'score': 0.5723721385002136, 'position': array([[1186, 1424],
[2149, 1609],
[2116, 1777],
[1153, 1592]])}, {'text': '外', 'score': 0.9829220771789551, 'position': array([[2073, 1553],
[2105, 1553],
[2105, 1582],
[2073, 1582]])}, {'text': 'SODIUM CHLORIDE PHYSIOLOGICALSOLUTION', 'score': 0.5309506058692932, 'position': array([[1198, 1608],
[2065, 1757],
[2059, 1790],
[1192, 1641]])}, {'text': '20B', 'score': 0.9487782716751099, 'position': array([[1400, 1707],
[1454, 1712],
[1451, 1742],
[1397, 1737]])}, {'text': '产品批号L24041414', 'score': 0.8539604544639587, 'position': array([[1121, 1727],
[1396, 1772],
[1390, 1805],
[1115, 1760]])}, {'text': '有效期至2027.03.', 'score': 0.5093878507614136, 'position': array([[1110, 1763],
[1358, 1801],
[1353, 1834],
[1105, 1796]])}, {'text': '批准文号:国药准字H20083400', 'score': 0.6882810592651367, 'position': array([[1699, 1770],
[2032, 1824],
[2027, 1852],
[1694, 1799]])}, {'text': '生产日期2024.04.24', 'score': 0.7197651267051697, 'position': array([[1099, 1798],
[1388, 1842],
[1383, 1875],
[1094, 1831]])}, {'text': '四川科伦药业股份有限公司', 'score': 0.6943073272705078, 'position': array([[ 921, 1838],
[1498, 1920],
[1492, 1957],
[ 915, 1875]])}]
[1465, 712],
[1458, 797],
[1032, 761]])}, {'text': 'OTC', 'score': 0.8899973630905151, 'position': array([[2501, 792],
[2571, 798],
[2568, 830],
[2498, 824]])}, {'text': '甲类', 'score': 0.997355580329895, 'position': array([[2504, 833],
[2556, 833],
[2556, 869],
[2504, 869]])}, {'text': '开启时勿伤产品', 'score': 0.7316938638687134, 'position': array([[1504, 1065],
[1960, 1174],
[1948, 1223],
[1492, 1115]])}, {'text': '请轻拿轻放严禁踩踏', 'score': 0.5340415835380554, 'position': array([[1402, 1109],
[2008, 1253],
[1996, 1302],
[1390, 1158]])}, {'text': '科技产业园', 'score': 0.7841044068336487, 'position': array([[2386, 1298],
[2478, 1301],
[2478, 1325],
[2386, 1322]])}, {'text': '至', 'score': 0.9531726241111755, 'position': array([[2360, 1341],
[2378, 1341],
[2378, 1358],
[2360, 1358]])}, {'text': '有限公司川', 'score': 0.5746391415596008, 'position': array([[2371, 1393],
[2457, 1397],
[2456, 1421],
[2370, 1417]])}, {'text': '生理氯化钠溶液', 'score': 0.5723721385002136, 'position': array([[1186, 1424],
[2149, 1609],
[2116, 1777],
[1153, 1592]])}, {'text': '外', 'score': 0.9829220771789551, 'position': array([[2073, 1553],
[2105, 1553],
[2105, 1582],
[2073, 1582]])}, {'text': 'SODIUM CHLORIDE PHYSIOLOGICALSOLUTION', 'score': 0.5309506058692932, 'position': array([[1198, 1608],
[2065, 1757],
[2059, 1790],
[1192, 1641]])}, {'text': '20B', 'score': 0.9487782716751099, 'position': array([[1400, 1707],
[1454, 1712],
[1451, 1742],
[1397, 1737]])}, {'text': '产品批号L24041414', 'score': 0.8539604544639587, 'position': array([[1121, 1727],
[1396, 1772],
[1390, 1805],
[1115, 1760]])}, {'text': '有效期至2027.03.', 'score': 0.5093878507614136, 'position': array([[1110, 1763],
[1358, 1801],
[1353, 1834],
[1105, 1796]])}, {'text': '批准文号:国药准字H20083400', 'score': 0.6882810592651367, 'position': array([[1699, 1770],
[2032, 1824],
[2027, 1852],
[1694, 1799]])}, {'text': '生产日期2024.04.24', 'score': 0.7197651267051697, 'position': array([[1099, 1798],
[1388, 1842],
[1383, 1875],
[1094, 1831]])}, {'text': '四川科伦药业股份有限公司', 'score': 0.6943073272705078, 'position': array([[ 921, 1838],
[1498, 1920],
[1492, 1957],
[ 915, 1875]])}]
[{'text': '零综车园', 'score': 0.16034097969532013, 'position': array([[1723, 32],
[1754, 39],
[1731, 150],
[1700, 143]])}, {'text': 'Sharngrair lconon-lefmon', 'score': 0.1075696274638176, 'position': array([[1242, 122],
[1567, 109],
[1568, 149],
[1244, 162]])}, {'text': 'Shangher', 'score': 0.3387453258037567, 'position': array([[1841, 217],
[1936, 214],
[1936, 242],
[1841, 245]])}, {'text': 'Honog', 'score': 0.19562901556491852, 'position': array([[1931, 214],
[2013, 217],
[2013, 238],
[1931, 235]])}, {'text': 'Guwom', 'score': 0.3076968491077423, 'position': array([[2041, 210],
[2127, 210],
[2127, 231],
[2041, 231]])}, {'text': '孕尚山琴乐歌水我', 'score': 0.10671145468950272, 'position': array([[1316, 225],
[2249, 345],
[2239, 428],
[1306, 308]])}, {'text': 'Shanghail Jomomnalanon Pame', 'score': 0.17732028663158417, 'position': array([[2373, 289],
[2696, 265],
[2699, 303],
[2376, 326]])}, {'text': '石云业', 'score': 0.0638735443353653, 'position': array([[2822, 467],
[2846, 474],
[2828, 537],
[2804, 530]])}, {'text': '南万游雪', 'score': 0.06317020952701569, 'position': array([[2775, 478],
[2813, 365],
[2847, 377],
[2809, 489]])}, {'text': 'S调比通→图', 'score': 0.07031739503145218, 'position': array([[2899, 509],
[2956, 359],
[2989, 372],
[2932, 521]])}, {'text': '上二汤穿菜', 'score': 0.13405460119247437, 'position': array([[2839, 528],
[2905, 349],
[2939, 362],
[2873, 540]])}, {'text': '城福寿烟', 'score': 0.14598910510540009, 'position': array([[2768, 625],
[2800, 525],
[2824, 533],
[2792, 632]])}, {'text': 'rin美林', 'score': 0.5771290063858032, 'position': array([[1039, 676],
[1465, 712],
[1458, 797],
[1032, 761]])}, {'text': '号:国药准字H19991011', 'score': 0.49413031339645386, 'position': array([[2217, 770],
[2478, 790],
[2475, 823],
[2214, 803]])}, {'text': 'OTC', 'score': 0.8899973630905151, 'position': array([[2501, 792],
[2571, 798],
[2568, 830],
[2498, 824]])}, {'text': '县汤', 'score': 0.21412484347820282, 'position': array([[1482, 816],
[1698, 836],
[1691, 917],
[1475, 896]])}, {'text': '甲类', 'score': 0.997355580329895, 'position': array([[2504, 833],
[2556, 833],
[2556, 869],
[2504, 869]])}, {'text': 'AOBX', 'score': 0.24525770545005798, 'position': array([[1201, 860],
[1378, 837],
[1381, 861],
[1204, 884]])}, {'text': 'UOnaX', 'score': 0.20111145079135895, 'position': array([[1306, 888],
[1468, 869],
[1471, 896],
[1309, 915]])}, {'text': 'NnnaX', 'score': 0.2585388123989105, 'position': array([[1411, 916],
[1588, 897],
[1591, 924],
[1414, 943]])}, {'text': 'MOBX', 'score': 0.23700465261936188, 'position': array([[1514, 946],
[1671, 931],
[1674, 955],
[1517, 970]])}, {'text': 'AO13', 'score': 0.2507626712322235, 'position': array([[1615, 978],
[1736, 963],
[1739, 983],
[1618, 998]])}, {'text': '开启时勿伤产品', 'score': 0.7316938638687134, 'position': array([[1504, 1065],
[1960, 1174],
[1948, 1223],
[1492, 1115]])}, {'text': '请轻拿轻放严禁踩踏', 'score': 0.5340415835380554, 'position': array([[1402, 1109],
[2008, 1253],
[1996, 1302],
[1390, 1158]])}, {'text': '100', 'score': 0.325787216424942, 'position': array([[2455, 1260],
[2481, 1260],
[2481, 1279],
[2455, 1279]])}, {'text': '区松桂天', 'score': 0.42028647661209106, 'position': array([[2402, 1279],
[2477, 1282],
[2476, 1306],
[2401, 1303]])}, {'text': '科技产业园', 'score': 0.7841044068336487, 'position': array([[2386, 1298],
[2478, 1301],
[2478, 1325],
[2386, 1322]])}, {'text': '2字门', 'score': 0.3154791295528412, 'position': array([[2374, 1317],
[2419, 1317],
[2419, 1338],
[2374, 1338]])}, {'text': '至', 'score': 0.9531726241111755, 'position': array([[2360, 1341],
[2378, 1341],
[2378, 1358],
[2360, 1358]])}, {'text': '华润医药', 'score': 0.2460228055715561, 'position': array([[2366, 1374],
[2468, 1378],
[2467, 1402],
[2365, 1398]])}, {'text': '有限公司川', 'score': 0.5746391415596008, 'position': array([[2371, 1393],
[2457, 1397],
[2456, 1421],
[2370, 1417]])}, {'text': '生理氯化钠溶液', 'score': 0.5723721385002136, 'position': array([[1186, 1424],
[2149, 1609],
[2116, 1777],
[1153, 1592]])}, {'text': '', 'score': 0.15951424837112427, 'position': array([[ 48, 1561],
[ 66, 1564],
[ 60, 1602],
[ 42, 1599]])}, {'text': '沙迎中', 'score': 0.4275256097316742, 'position': array([[ 324, 1555],
[ 358, 1559],
[ 346, 1679],
[ 312, 1675]])}, {'text': '外', 'score': 0.9829220771789551, 'position': array([[2073, 1553],
[2105, 1553],
[2105, 1582],
[2073, 1582]])}, {'text': '国春', 'score': 0.36254486441612244, 'position': array([[ 10, 1567],
[ 35, 1569],
[ 32, 1629],
[ 7, 1628]])}, {'text': 'SODIUM CHLORIDE PHYSIOLOGICALSOLUTION', 'score': 0.5309506058692932, 'position': array([[1198, 1608],
[2065, 1757],
[2059, 1790],
[1192, 1641]])}, {'text': 'Vibe', 'score': 0.32887303829193115, 'position': array([[ 27, 1623],
[ 51, 1625],
[ 44, 1697],
[ 20, 1695]])}, {'text': 'R', 'score': 0.13540734350681305, 'position': array([[ 296, 1671],
[ 317, 1671],
[ 317, 1698],
[ 296, 1698]])}, {'text': '祝茶', 'score': 0.1830148994922638, 'position': array([[ 358, 1662],
[ 526, 1775],
[ 477, 1847],
[ 309, 1735]])}, {'text': '50', 'score': 0.23956666886806488, 'position': array([[ 582, 1680],
[ 596, 1678],
[ 600, 1700],
[ 586, 1702]])}, {'text': '20B', 'score': 0.9487782716751099, 'position': array([[1400, 1707],
[1454, 1712],
[1451, 1742],
[1397, 1737]])}, {'text': '产品批号L24041414', 'score': 0.8539604544639587, 'position': array([[1121, 1727],
[1396, 1772],
[1390, 1805],
[1115, 1760]])}, {'text': 'O', 'score': 0.1416894495487213, 'position': array([[ 281, 1753],
[ 302, 1753],
[ 302, 1803],
[ 281, 1803]])}, {'text': '有效期至2027.03.', 'score': 0.5093878507614136, 'position': array([[1110, 1763],
[1358, 1801],
[1353, 1834],
[1105, 1796]])}, {'text': '批准文号:国药准字H20083400', 'score': 0.6882810592651367, 'position': array([[1699, 1770],
[2032, 1824],
[2027, 1852],
[1694, 1799]])}, {'text': '生产日期2024.04.24', 'score': 0.7197651267051697, 'position': array([[1099, 1798],
[1388, 1842],
[1383, 1875],
[1094, 1831]])}, {'text': '四川科伦药业股份有限公司', 'score': 0.6943073272705078, 'position': array([[ 921, 1838],
[1498, 1920],
[1492, 1957],
[ 915, 1875]])}, {'text': '电', 'score': 0.417036771774292, 'position': array([[ 446, 1906],
[ 494, 1906],
[ 494, 1943],
[ 446, 1943]])}, {'text': '', 'score': 0.21717050671577454, 'position': array([[ 495, 1910],
[ 541, 1864],
[ 567, 1890],
[ 521, 1936]])}, {'text': '[500ml]', 'score': 0.14223365485668182, 'position': array([[1813, 1931],
[2068, 1967],
[2060, 2024],
[1805, 1988]])}, {'text': '经周系列口有时光灯钟', 'score': 0.08691288530826569, 'position': array([[3362, 1960],
[3385, 1960],
[3385, 2129],
[3362, 2129]])}, {'text': '全敬璃LED(双端特入', 'score': 0.3021184504032135, 'position': array([[3347, 1970],
[3364, 1970],
[3364, 2113],
[3347, 2113]])}, {'text': 'NE', 'score': 0.20714949071407318, 'position': array([[2631, 1985],
[2688, 1988],
[2687, 2016],
[2630, 2013]])}]
[1754, 39],
[1731, 150],
[1700, 143]])}, {'text': 'Sharngrair lconon-lefmon', 'score': 0.1075696274638176, 'position': array([[1242, 122],
[1567, 109],
[1568, 149],
[1244, 162]])}, {'text': 'Shangher', 'score': 0.3387453258037567, 'position': array([[1841, 217],
[1936, 214],
[1936, 242],
[1841, 245]])}, {'text': 'Honog', 'score': 0.19562901556491852, 'position': array([[1931, 214],
[2013, 217],
[2013, 238],
[1931, 235]])}, {'text': 'Guwom', 'score': 0.3076968491077423, 'position': array([[2041, 210],
[2127, 210],
[2127, 231],
[2041, 231]])}, {'text': '孕尚山琴乐歌水我', 'score': 0.10671145468950272, 'position': array([[1316, 225],
[2249, 345],
[2239, 428],
[1306, 308]])}, {'text': 'Shanghail Jomomnalanon Pame', 'score': 0.17732028663158417, 'position': array([[2373, 289],
[2696, 265],
[2699, 303],
[2376, 326]])}, {'text': '石云业', 'score': 0.0638735443353653, 'position': array([[2822, 467],
[2846, 474],
[2828, 537],
[2804, 530]])}, {'text': '南万游雪', 'score': 0.06317020952701569, 'position': array([[2775, 478],
[2813, 365],
[2847, 377],
[2809, 489]])}, {'text': 'S调比通→图', 'score': 0.07031739503145218, 'position': array([[2899, 509],
[2956, 359],
[2989, 372],
[2932, 521]])}, {'text': '上二汤穿菜', 'score': 0.13405460119247437, 'position': array([[2839, 528],
[2905, 349],
[2939, 362],
[2873, 540]])}, {'text': '城福寿烟', 'score': 0.14598910510540009, 'position': array([[2768, 625],
[2800, 525],
[2824, 533],
[2792, 632]])}, {'text': 'rin美林', 'score': 0.5771290063858032, 'position': array([[1039, 676],
[1465, 712],
[1458, 797],
[1032, 761]])}, {'text': '号:国药准字H19991011', 'score': 0.49413031339645386, 'position': array([[2217, 770],
[2478, 790],
[2475, 823],
[2214, 803]])}, {'text': 'OTC', 'score': 0.8899973630905151, 'position': array([[2501, 792],
[2571, 798],
[2568, 830],
[2498, 824]])}, {'text': '县汤', 'score': 0.21412484347820282, 'position': array([[1482, 816],
[1698, 836],
[1691, 917],
[1475, 896]])}, {'text': '甲类', 'score': 0.997355580329895, 'position': array([[2504, 833],
[2556, 833],
[2556, 869],
[2504, 869]])}, {'text': 'AOBX', 'score': 0.24525770545005798, 'position': array([[1201, 860],
[1378, 837],
[1381, 861],
[1204, 884]])}, {'text': 'UOnaX', 'score': 0.20111145079135895, 'position': array([[1306, 888],
[1468, 869],
[1471, 896],
[1309, 915]])}, {'text': 'NnnaX', 'score': 0.2585388123989105, 'position': array([[1411, 916],
[1588, 897],
[1591, 924],
[1414, 943]])}, {'text': 'MOBX', 'score': 0.23700465261936188, 'position': array([[1514, 946],
[1671, 931],
[1674, 955],
[1517, 970]])}, {'text': 'AO13', 'score': 0.2507626712322235, 'position': array([[1615, 978],
[1736, 963],
[1739, 983],
[1618, 998]])}, {'text': '开启时勿伤产品', 'score': 0.7316938638687134, 'position': array([[1504, 1065],
[1960, 1174],
[1948, 1223],
[1492, 1115]])}, {'text': '请轻拿轻放严禁踩踏', 'score': 0.5340415835380554, 'position': array([[1402, 1109],
[2008, 1253],
[1996, 1302],
[1390, 1158]])}, {'text': '100', 'score': 0.325787216424942, 'position': array([[2455, 1260],
[2481, 1260],
[2481, 1279],
[2455, 1279]])}, {'text': '区松桂天', 'score': 0.42028647661209106, 'position': array([[2402, 1279],
[2477, 1282],
[2476, 1306],
[2401, 1303]])}, {'text': '科技产业园', 'score': 0.7841044068336487, 'position': array([[2386, 1298],
[2478, 1301],
[2478, 1325],
[2386, 1322]])}, {'text': '2字门', 'score': 0.3154791295528412, 'position': array([[2374, 1317],
[2419, 1317],
[2419, 1338],
[2374, 1338]])}, {'text': '至', 'score': 0.9531726241111755, 'position': array([[2360, 1341],
[2378, 1341],
[2378, 1358],
[2360, 1358]])}, {'text': '华润医药', 'score': 0.2460228055715561, 'position': array([[2366, 1374],
[2468, 1378],
[2467, 1402],
[2365, 1398]])}, {'text': '有限公司川', 'score': 0.5746391415596008, 'position': array([[2371, 1393],
[2457, 1397],
[2456, 1421],
[2370, 1417]])}, {'text': '生理氯化钠溶液', 'score': 0.5723721385002136, 'position': array([[1186, 1424],
[2149, 1609],
[2116, 1777],
[1153, 1592]])}, {'text': '', 'score': 0.15951424837112427, 'position': array([[ 48, 1561],
[ 66, 1564],
[ 60, 1602],
[ 42, 1599]])}, {'text': '沙迎中', 'score': 0.4275256097316742, 'position': array([[ 324, 1555],
[ 358, 1559],
[ 346, 1679],
[ 312, 1675]])}, {'text': '外', 'score': 0.9829220771789551, 'position': array([[2073, 1553],
[2105, 1553],
[2105, 1582],
[2073, 1582]])}, {'text': '国春', 'score': 0.36254486441612244, 'position': array([[ 10, 1567],
[ 35, 1569],
[ 32, 1629],
[ 7, 1628]])}, {'text': 'SODIUM CHLORIDE PHYSIOLOGICALSOLUTION', 'score': 0.5309506058692932, 'position': array([[1198, 1608],
[2065, 1757],
[2059, 1790],
[1192, 1641]])}, {'text': 'Vibe', 'score': 0.32887303829193115, 'position': array([[ 27, 1623],
[ 51, 1625],
[ 44, 1697],
[ 20, 1695]])}, {'text': 'R', 'score': 0.13540734350681305, 'position': array([[ 296, 1671],
[ 317, 1671],
[ 317, 1698],
[ 296, 1698]])}, {'text': '祝茶', 'score': 0.1830148994922638, 'position': array([[ 358, 1662],
[ 526, 1775],
[ 477, 1847],
[ 309, 1735]])}, {'text': '50', 'score': 0.23956666886806488, 'position': array([[ 582, 1680],
[ 596, 1678],
[ 600, 1700],
[ 586, 1702]])}, {'text': '20B', 'score': 0.9487782716751099, 'position': array([[1400, 1707],
[1454, 1712],
[1451, 1742],
[1397, 1737]])}, {'text': '产品批号L24041414', 'score': 0.8539604544639587, 'position': array([[1121, 1727],
[1396, 1772],
[1390, 1805],
[1115, 1760]])}, {'text': 'O', 'score': 0.1416894495487213, 'position': array([[ 281, 1753],
[ 302, 1753],
[ 302, 1803],
[ 281, 1803]])}, {'text': '有效期至2027.03.', 'score': 0.5093878507614136, 'position': array([[1110, 1763],
[1358, 1801],
[1353, 1834],
[1105, 1796]])}, {'text': '批准文号:国药准字H20083400', 'score': 0.6882810592651367, 'position': array([[1699, 1770],
[2032, 1824],
[2027, 1852],
[1694, 1799]])}, {'text': '生产日期2024.04.24', 'score': 0.7197651267051697, 'position': array([[1099, 1798],
[1388, 1842],
[1383, 1875],
[1094, 1831]])}, {'text': '四川科伦药业股份有限公司', 'score': 0.6943073272705078, 'position': array([[ 921, 1838],
[1498, 1920],
[1492, 1957],
[ 915, 1875]])}, {'text': '电', 'score': 0.417036771774292, 'position': array([[ 446, 1906],
[ 494, 1906],
[ 494, 1943],
[ 446, 1943]])}, {'text': '', 'score': 0.21717050671577454, 'position': array([[ 495, 1910],
[ 541, 1864],
[ 567, 1890],
[ 521, 1936]])}, {'text': '[500ml]', 'score': 0.14223365485668182, 'position': array([[1813, 1931],
[2068, 1967],
[2060, 2024],
[1805, 1988]])}, {'text': '经周系列口有时光灯钟', 'score': 0.08691288530826569, 'position': array([[3362, 1960],
[3385, 1960],
[3385, 2129],
[3362, 2129]])}, {'text': '全敬璃LED(双端特入', 'score': 0.3021184504032135, 'position': array([[3347, 1970],
[3364, 1970],
[3364, 2113],
[3347, 2113]])}, {'text': 'NE', 'score': 0.20714949071407318, 'position': array([[2631, 1985],
[2688, 1988],
[2687, 2016],
[2630, 2013]])}]
easyocr
1200w像素拍照图片 IMG_20241228_020937 1.46 秒 旋转rotation_info 3.72 秒
速度比paddleocr慢大概4倍(如果加上rotation_info=[90, 180 ,270],要大概慢12倍
并且识别效果还没paddleocr好,不过肯定比tesseract好