File size: 628 Bytes
e0b339d 8b73048 c2ff93d d35e97b c2ff93d d35e97b c2ff93d e0b339d d35e97b e0b339d d35e97b |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
import herramientas
import documentos
import time
async def procesa_dni(image):
textos_extraidos = await herramientas.procesaImagen(image)
#Campos DNI Panamá.
nombre, apellido, identificacion = await documentos.dni(textos_extraidos)
return {
"nombre": nombre,
"apellido": apellido,
"identificacion": identificacion
}
async def procesa_pasaporte(image):
textos_extraidos = await herramientas.procesaImagen(image)
#Campos DNI Panamá.
nombre, apellido, identificacion = await documentos.pasaporte(textos_extraidos)
return {
"nombre": nombre,
"apellido": apellido,
"identificacion": identificacion
} |