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

Update svision_client.py

Browse files
Files changed (1) hide show
  1. svision_client.py +2 -4
svision_client.py CHANGED
@@ -82,13 +82,11 @@ def add_ocr_and_faces(imagen_path: str, informacion_image: Dict[str, Any], face_
82
  Processed output containing OCR results, face detection data, and annotations.
83
  """
84
  print("Calling svision to add OCR and face detection...")
85
- informacion_image_str = json.dumps(informacion_image)
86
- face_col_str = json.dumps(face_col)
87
 
88
  result = svision_client.predict(
89
  image=handle_file(imagen_path),
90
- informacion_image=informacion_image_str,
91
- face_col=face_col_str,
92
  api_name="/add_ocr_and_faces"
93
  )
94
  return result
 
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