From 7e2e5af7839f9842bba4c4a0ea7ab83c0eec9e61 Mon Sep 17 00:00:00 2001 From: bibliofilo Date: Tue, 1 Dec 2026 15:40:27 -0600 Subject: [PATCH 1/5] fix(vision): remove deprecated emotion fields from detect.py --- vision/snippets/detect/detect.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/vision/snippets/detect/detect.py b/vision/snippets/detect/detect.py index 271ad1b9a53..8aab15cbda4 100644 --- a/vision/snippets/detect/detect.py +++ b/vision/snippets/detect/detect.py @@ -66,9 +66,9 @@ def detect_faces(path): print("Faces:") for face in faces: - print(f"anger: {likelihood_name[face.anger_likelihood]}") - print(f"joy: {likelihood_name[face.joy_likelihood]}") - print(f"surprise: {likelihood_name[face.surprise_likelihood]}") + print(f"headwear: {likelihood_name[face.headwear_likelihood]}") + print(f"under exposed: {likelihood_name[face.under_exposed_likelihood]}") + print(f"blurred: {likelihood_name[face.blurred_likelihood]}") vertices = [ f"({vertex.x},{vertex.y})" for vertex in face.bounding_poly.vertices @@ -113,9 +113,9 @@ def detect_faces_uri(uri): print("Faces:") for face in faces: - print(f"anger: {likelihood_name[face.anger_likelihood]}") - print(f"joy: {likelihood_name[face.joy_likelihood]}") - print(f"surprise: {likelihood_name[face.surprise_likelihood]}") + print(f"headwear: {likelihood_name[face.headwear_likelihood]}") + print(f"under exposed: {likelihood_name[face.under_exposed_likelihood]}") + print(f"blurred: {likelihood_name[face.blurred_likelihood]}") vertices = [ f"({vertex.x},{vertex.y})" for vertex in face.bounding_poly.vertices From e2daaed4a1305da953d5ddde5c3723603b954537 Mon Sep 17 00:00:00 2001 From: bibliofilo Date: Wed, 2 Dec 2026 10:33:41 -0600 Subject: [PATCH 2/5] fix(vision): remove deprecated emotion fields from video_detect_faces_gcs.py --- videointelligence/samples/analyze/video_detect_faces_gcs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/videointelligence/samples/analyze/video_detect_faces_gcs.py b/videointelligence/samples/analyze/video_detect_faces_gcs.py index 20e59bfea45..d882a119691 100644 --- a/videointelligence/samples/analyze/video_detect_faces_gcs.py +++ b/videointelligence/samples/analyze/video_detect_faces_gcs.py @@ -67,7 +67,7 @@ def detect_faces(gcs_uri="gs://YOUR_BUCKET_ID/path/to/your/video.mp4"): print("\tright : {}".format(box.right)) print("\tbottom: {}".format(box.bottom)) - # Attributes include glasses, headwear, smiling, direction of gaze + # Attributes include glasses, headwear, direction of gaze print("Attributes:") for attribute in timestamped_object.attributes: print( From b3d4aaa95ad5384277e081add34af3dec60300cd Mon Sep 17 00:00:00 2001 From: bibliofilo Date: Wed, 2 Dec 2026 10:35:15 -0600 Subject: [PATCH 3/5] fix(vision): remove deprecated emotion fields from video_detect_faces.py --- videointelligence/samples/analyze/video_detect_faces.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/videointelligence/samples/analyze/video_detect_faces.py b/videointelligence/samples/analyze/video_detect_faces.py index 92c9d12f8fe..42c5fe0e5b2 100644 --- a/videointelligence/samples/analyze/video_detect_faces.py +++ b/videointelligence/samples/analyze/video_detect_faces.py @@ -72,7 +72,7 @@ def detect_faces(local_file_path="path/to/your/video-file.mp4"): print("\tright : {}".format(box.right)) print("\tbottom: {}".format(box.bottom)) - # Attributes include glasses, headwear, smiling, direction of gaze + # Attributes include glasses, headwear, direction of gaze print("Attributes:") for attribute in timestamped_object.attributes: print( From d8f59b419f9946949d8df910de7e07053ef8fc9a Mon Sep 17 00:00:00 2001 From: bibliofilo Date: Wed, 2 Dec 2026 11:08:38 -0600 Subject: [PATCH 4/5] fix(video): remove deprecated emotion fields from video_detect_faces.py --- videointelligence/samples/analyze/video_detect_faces.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/videointelligence/samples/analyze/video_detect_faces.py b/videointelligence/samples/analyze/video_detect_faces.py index 42c5fe0e5b2..deabf76655c 100644 --- a/videointelligence/samples/analyze/video_detect_faces.py +++ b/videointelligence/samples/analyze/video_detect_faces.py @@ -72,7 +72,8 @@ def detect_faces(local_file_path="path/to/your/video-file.mp4"): print("\tright : {}".format(box.right)) print("\tbottom: {}".format(box.bottom)) - # Attributes include glasses, headwear, direction of gaze + # Attributes include glasses, headwear, frontal_gaze, + # eyes_visible, mouth_open print("Attributes:") for attribute in timestamped_object.attributes: print( From 2e748b87fc5673d4058c3f0296a763c3ca9aff48 Mon Sep 17 00:00:00 2001 From: bibliofilo Date: Wed, 2 Dec 2026 11:09:58 -0600 Subject: [PATCH 5/5] fix(video): remove deprecated emotion fields from video_detect_faces_gcs.py --- videointelligence/samples/analyze/video_detect_faces_gcs.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/videointelligence/samples/analyze/video_detect_faces_gcs.py b/videointelligence/samples/analyze/video_detect_faces_gcs.py index d882a119691..2e409f742ee 100644 --- a/videointelligence/samples/analyze/video_detect_faces_gcs.py +++ b/videointelligence/samples/analyze/video_detect_faces_gcs.py @@ -67,7 +67,8 @@ def detect_faces(gcs_uri="gs://YOUR_BUCKET_ID/path/to/your/video.mp4"): print("\tright : {}".format(box.right)) print("\tbottom: {}".format(box.bottom)) - # Attributes include glasses, headwear, direction of gaze + # Attributes include glasses, headwear, frontal_gaze, + # eyes_visible, mouth_open print("Attributes:") for attribute in timestamped_object.attributes: print(