Update app.py
Browse files
app.py
CHANGED
|
@@ -28,11 +28,11 @@ def classify_plate_color(plate_img):
|
|
| 28 |
w = np.sum(white)
|
| 29 |
|
| 30 |
if g > y and g > w:
|
| 31 |
-
return "
|
| 32 |
elif y > g and y > w:
|
| 33 |
-
return "
|
| 34 |
else:
|
| 35 |
-
return "
|
| 36 |
|
| 37 |
# -------- Main Pipeline -------- #
|
| 38 |
def process_image(img):
|
|
|
|
| 28 |
w = np.sum(white)
|
| 29 |
|
| 30 |
if g > y and g > w:
|
| 31 |
+
return " ELECTRIC Vehicle (Green Plate) "
|
| 32 |
elif y > g and y > w:
|
| 33 |
+
return " COMMERCIAL Vehicle (Yellow Plate) "
|
| 34 |
else:
|
| 35 |
+
return " PERSONAL Vehicle (White Plate) "
|
| 36 |
|
| 37 |
# -------- Main Pipeline -------- #
|
| 38 |
def process_image(img):
|