VeuReu commited on
Commit
c2067d9
·
verified ·
1 Parent(s): 27097fe

Update svision_client.py

Browse files
Files changed (1) hide show
  1. 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
- print("Calling svision to add OCR and face detection...")
85
-
86
  result = svision_client.predict(
87
- image=handle_file(imagen_path),
88
- informacion_image=informacion_image,
89
- face_col=face_col,
90
- api_name="/add_ocr_and_faces"
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