This commit is contained in:
Sefik Ilkin Serengil 2023-02-10 13:34:34 +00:00 committed by GitHub
parent 8f667eecc8
commit 067e8f8c19
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -659,6 +659,8 @@ def represent(
img = cv2.resize(img, target_size) img = cv2.resize(img, target_size)
else: else:
raise ValueError(f"unexpected type for img_path - {type(img_path)}") raise ValueError(f"unexpected type for img_path - {type(img_path)}")
img_region = [0, 0, img.shape[1], img.shape[0]]
img_objs = [(img, img_region, 0)]
# --------------------------------- # ---------------------------------
for img, region, _ in img_objs: for img, region, _ in img_objs: