Spaces:
Build error
Build error
diegulio
commited on
Commit
·
cb46c78
1
Parent(s):
9d74a95
Update app.py
Browse files- cedula/app.py +1 -0
cedula/app.py
CHANGED
@@ -105,6 +105,7 @@ def get_attributes(input_img):
|
|
105 |
#images = check_image(input_img)
|
106 |
images = [Image.fromarray(input_img)]
|
107 |
images = crop(weights="best.pt", files= images)
|
|
|
108 |
image_cedula = [img[0] for img in images if img[1]==1][0] #0 en 'img[1]==0' es el label de cedula, si se reemplaza por 1
|
109 |
#entrega licencias
|
110 |
|
|
|
105 |
#images = check_image(input_img)
|
106 |
images = [Image.fromarray(input_img)]
|
107 |
images = crop(weights="best.pt", files= images)
|
108 |
+
print(images)
|
109 |
image_cedula = [img[0] for img in images if img[1]==1][0] #0 en 'img[1]==0' es el label de cedula, si se reemplaza por 1
|
110 |
#entrega licencias
|
111 |
|