Update svision_client.py
Browse files- svision_client.py +5 -0
svision_client.py
CHANGED
|
@@ -90,14 +90,19 @@ def add_ocr_and_faces(imagen_path: str, informacion_image: Dict[str, Any], face_
|
|
| 90 |
Dict[str, Any]
|
| 91 |
Processed output containing OCR results, face detection data, and annotations.
|
| 92 |
"""
|
|
|
|
|
|
|
| 93 |
informacion_image_str = json.dumps(informacion_image)
|
|
|
|
| 94 |
face_col_str = json.dumps(face_col)
|
|
|
|
| 95 |
result = _get_svision_client().predict(
|
| 96 |
image=handle_file(imagen_path),
|
| 97 |
informacion_image=informacion_image_str,
|
| 98 |
face_col=face_col_str,
|
| 99 |
api_name="/add_ocr_and_faces"
|
| 100 |
)
|
|
|
|
| 101 |
return result
|
| 102 |
|
| 103 |
|
|
|
|
| 90 |
Dict[str, Any]
|
| 91 |
Processed output containing OCR results, face detection data, and annotations.
|
| 92 |
"""
|
| 93 |
+
print("---------------------")
|
| 94 |
+
print("AQUI ESTA EL FALLO")
|
| 95 |
informacion_image_str = json.dumps(informacion_image)
|
| 96 |
+
print(informacion_image_str)
|
| 97 |
face_col_str = json.dumps(face_col)
|
| 98 |
+
print(face_col_str)
|
| 99 |
result = _get_svision_client().predict(
|
| 100 |
image=handle_file(imagen_path),
|
| 101 |
informacion_image=informacion_image_str,
|
| 102 |
face_col=face_col_str,
|
| 103 |
api_name="/add_ocr_and_faces"
|
| 104 |
)
|
| 105 |
+
print(result)
|
| 106 |
return result
|
| 107 |
|
| 108 |
|