From 99e11485d3702fb1e9b4d1c9dd6cede0cc7eb12c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E6=99=A8?= Date: Tue, 29 Nov 2022 14:32:22 +0800 Subject: [PATCH] update --- RAFT/analysis_video.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/RAFT/analysis_video.py b/RAFT/analysis_video.py index 49e8ebf..08471c2 100755 --- a/RAFT/analysis_video.py +++ b/RAFT/analysis_video.py @@ -93,9 +93,7 @@ def analysis_video(model, video_path, result_path, uuid_barcode, maskpath=None, if flag: break Addimg_content(uuid_barcode, frame_show)#图片上传 if result is not None: - frame_show = cv2.GaussianBlur(frame_show,(5,5),0) - frame_show = cv2.resize(frame_show, (int(width/2), int(height/2)), interpolation=cv2.INTER_CUBIC) - coordinate = str(coordination[0])+'_'+str(coordination[1])+'_'+str(coordination[2])+'_'+str(coordination[3]) + coordinate = str(coordination[0]*2)+'_'+str(coordination[1]*2)+'_'+str(coordination[2]*2)+'_'+str(coordination[3]*2) cv2.imwrite(os.sep.join([cfg.Ocrimg, uuid_barcode+'_'+str(nu)+'_'+coordinate+'.jpg']), frame_show) #give ocr img else: cv2.imwrite(os.sep.join([cfg.Ocrimg, uuid_barcode+'_'+str(nu)+'_0_0_0_0'+'.jpg']), frame_show) #give ocr img