Update app.py
Browse files
app.py
CHANGED
@@ -34,7 +34,7 @@ if submit:
|
|
34 |
model.conf = 0.5
|
35 |
license = DetectLicensePlate()
|
36 |
counter = dict()
|
37 |
-
frame = np.array(image_file)
|
38 |
try:
|
39 |
plate_img = alpr(frame,license)
|
40 |
#plate_img = cv2.resize(plate_img,(200,50))
|
|
|
34 |
model.conf = 0.5
|
35 |
license = DetectLicensePlate()
|
36 |
counter = dict()
|
37 |
+
frame = np.array(image_file)[...,::-1]
|
38 |
try:
|
39 |
plate_img = alpr(frame,license)
|
40 |
#plate_img = cv2.resize(plate_img,(200,50))
|