From e75f40ed936c1182fd25e7c8539a0b5be1806538 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E8=8E=B9?= Date: Wed, 21 Jun 2023 13:24:20 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=20'BANK=5Fatm/cut=5Fimg=5Fbb?= =?UTF-8?q?ox.py'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- BANK_atm/cut_img_bbox.py | 16 ---------------- 1 file changed, 16 deletions(-) delete mode 100644 BANK_atm/cut_img_bbox.py diff --git a/BANK_atm/cut_img_bbox.py b/BANK_atm/cut_img_bbox.py deleted file mode 100644 index 828b10d..0000000 --- a/BANK_atm/cut_img_bbox.py +++ /dev/null @@ -1,16 +0,0 @@ - - -def cut_img_bbox(img,bbox): - - # blist = bbox.tolist() - - x_min = bbox[0] - y_min = bbox[1] - x_max = bbox[2] - y_max = bbox[3] - - obj_img = img[int(y_min):int(y_max), int(x_min):int(x_max)] #cv2裁剪出目标框中的图片 - #保存图片 - # cut_images = obj_img_path + '\\' + '%s_%s'%(img_name, count) + '.jpg' - - return obj_img \ No newline at end of file