Update app.py
Browse files
app.py
CHANGED
|
@@ -58,8 +58,8 @@ def process_image(img):
|
|
| 58 |
plate = image.crop((x1, y1, x2, y2))
|
| 59 |
vehicle_type = classify_plate_color(plate)
|
| 60 |
|
| 61 |
-
draw.rectangle([x1, y1, x2, y2], outline="
|
| 62 |
-
draw.text((x1, y1 - 10), vehicle_type, fill="
|
| 63 |
|
| 64 |
return image, vehicle_type
|
| 65 |
|
|
|
|
| 58 |
plate = image.crop((x1, y1, x2, y2))
|
| 59 |
vehicle_type = classify_plate_color(plate)
|
| 60 |
|
| 61 |
+
draw.rectangle([x1, y1, x2, y2], outline="yellow", width=3)
|
| 62 |
+
draw.text((x1, y1 - 10), vehicle_type, fill="black")
|
| 63 |
|
| 64 |
return image, vehicle_type
|
| 65 |
|