Skip to content

How to unpack detect_with_stream #11202

@kalaschnik

Description

@kalaschnik

How can I print the contents of my response from detect_with_stream, in this case the emotion attribute?

detected_faces_details = face_client.face.detect_with_stream(
  open((os.path.join("img/test-faces.jpg")),'r+b'),
  return_face_attributes=['emotion'])

detected_faces_details is only printing my two faces in test-faces.jpg in this manner:

[<azure.cognitiveservices.vision.face.models._models_py3.DetectedFace at 0x1e20ec06648>,
 <azure.cognitiveservices.vision.face.models._models_py3.DetectedFace at 0x1e20ec063c8>]

Metadata

Metadata

Assignees

Labels

ClientThis issue points to a problem in the data-plane of the library.Cognitive - FacequestionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions