摘要: 使用场景:勾选框提取字段值等。 def mat_inter(box1, box2): # box1,box2是否相交 x01, y01, x02, y02 = box1 # (x01,y01),(x02,y02) 对角线的点坐标 x11, y11, x12, y12 = box2 lx = abs( 阅读全文
posted @ 2021-10-13 16:33 清风_Z 阅读(92) 评论(0) 推荐(0) 编辑
摘要: 一. 打开图片,旋转图片, 保存图片 import cv2 img = r'./3.jpg' g_res = api_call(img, 'general', 'chinese_print') angle = g_res['data']['json']['general_ocr_res']['rot 阅读全文
posted @ 2021-10-13 12:33 清风_Z 阅读(273) 评论(0) 推荐(0) 编辑