Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -77,7 +77,7 @@ def alpr():
|
|
| 77 |
score_array = (c_float * 1024)() # Assuming a maximum of 256 rectangles
|
| 78 |
|
| 79 |
license_plate_ptr = POINTER(c_char_p)()
|
| 80 |
-
cnt = getLicensePlate(img_byte, len(img_byte), byref(license_plate_ptr), recog_array)
|
| 81 |
|
| 82 |
license_plate = [license_plate_ptr[i].decode('utf-8') for i in range(cnt)]
|
| 83 |
rectangles = [
|
|
|
|
| 77 |
score_array = (c_float * 1024)() # Assuming a maximum of 256 rectangles
|
| 78 |
|
| 79 |
license_plate_ptr = POINTER(c_char_p)()
|
| 80 |
+
cnt = getLicensePlate(img_byte, len(img_byte), byref(license_plate_ptr), recog_array, score_array)
|
| 81 |
|
| 82 |
license_plate = [license_plate_ptr[i].decode('utf-8') for i in range(cnt)]
|
| 83 |
rectangles = [
|