How can I use detection.detect(file1.read()) to detect file in memory? #829
-
How can I use detection.detect(file1.read()) to detect file in memory? @app.route("/detectAndSaveAllFaces", methods=["POST"])
I don't want to save this file. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
It returns {'message': 'No face is found in the given image', 'code': 28} |
Beta Was this translation helpful? Give feedback.
-
This method supports url, local path or bytes as an argument. |
Beta Was this translation helpful? Give feedback.
This method supports url, local path or bytes as an argument.
You can look at how it is used in the demo, we also send bytes to this method
https://github.com/exadel-inc/compreface-python-sdk/blob/main/webcam_demo/compreface_webcam_detection_demo.py