Update svision_client.py
Browse files- svision_client.py +6 -6
svision_client.py
CHANGED
|
@@ -81,13 +81,13 @@ def add_ocr_and_faces(imagen_path: str, informacion_image: Dict[str, Any], face_
|
|
| 81 |
Dict[str, Any]
|
| 82 |
Processed output containing OCR results, face detection data, and annotations.
|
| 83 |
"""
|
| 84 |
-
|
| 85 |
-
|
| 86 |
result = svision_client.predict(
|
| 87 |
-
|
| 88 |
-
|
| 89 |
-
|
| 90 |
-
|
| 91 |
)
|
| 92 |
return result
|
| 93 |
|
|
|
|
| 81 |
Dict[str, Any]
|
| 82 |
Processed output containing OCR results, face detection data, and annotations.
|
| 83 |
"""
|
| 84 |
+
informacion_image_str = json.dumps(informacion_image)
|
| 85 |
+
face_col_str = json.dumps(face_col)
|
| 86 |
result = svision_client.predict(
|
| 87 |
+
image=handle_file(imagen_path),
|
| 88 |
+
informacion_image=informacion_image_str,
|
| 89 |
+
face_col=face_col_str,
|
| 90 |
+
api_name="/add_ocr_and_faces"
|
| 91 |
)
|
| 92 |
return result
|
| 93 |
|