Commit 427ee814 authored by sasifina's avatar sasifina

update component 3

parent 4f79a414
...@@ -38,8 +38,8 @@ def get_number_plate(): ...@@ -38,8 +38,8 @@ def get_number_plate():
y = int(i["ymin"]) y = int(i["ymin"])
w = int(i["xmax"]) w = int(i["xmax"])
h = int(i["ymax"]) h = int(i["ymax"])
cv2.rectangle(image, (x, y), (x + w, y + h), (0, 255, 0), 2) cv2.rectangle(image, (x, y), (w, h), (0, 255, 0), 2)
crop_img = image[y:y + h, x:x + w] crop_img = image[y:h, x:w]
cropped_imgs.append(crop_img) cropped_imgs.append(crop_img)
for cropped_img in cropped_imgs: 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