Commit 427ee814 authored by sasifina's avatar sasifina

update component 3

parent 4f79a414
......@@ -38,8 +38,8 @@ def get_number_plate():
y = int(i["ymin"])
w = int(i["xmax"])
h = int(i["ymax"])
cv2.rectangle(image, (x, y), (x + w, y + h), (0, 255, 0), 2)
crop_img = image[y:y + h, x:x + w]
cv2.rectangle(image, (x, y), (w, h), (0, 255, 0), 2)
crop_img = image[y:h, x:w]
cropped_imgs.append(crop_img)
for cropped_img in cropped_imgs:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment