@@ -101,9 +101,6 @@ message VideoContext {
101101
102102 // Config for SPEECH_TRANSCRIPTION.
103103 SpeechTranscriptionConfig speech_transcription_config = 6 ;
104-
105- // Config for FACE_DETECTION.
106- FaceConfig face_detection_config = 7 ;
107104}
108105
109106// Config for LABEL_DETECTION.
@@ -140,21 +137,6 @@ message ExplicitContentDetectionConfig {
140137 string model = 1 ;
141138}
142139
143- // Config for FACE_DETECTION.
144- message FaceConfig {
145- // Model to use for face detection.
146- // Supported values: "builtin/stable" (the default if unset) and
147- // "builtin/latest".
148- string model = 1 ;
149-
150- // Whether bounding boxes be included in the face annotation output.
151- bool include_bounding_boxes = 2 ;
152-
153- // Whether to enable emotion detection. Ignored if 'include_bounding_boxes' is
154- // false.
155- bool include_emotions = 4 ;
156- }
157-
158140// Video segment.
159141message VideoSegment {
160142 // Time-offset, relative to the beginning of the video,
@@ -252,51 +234,6 @@ message NormalizedBoundingBox {
252234 float bottom = 4 ;
253235}
254236
255- // Video segment level annotation results for face detection.
256- message FaceSegment {
257- // Video segment where a face was detected.
258- VideoSegment segment = 1 ;
259- }
260-
261- // Video frame level annotation results for face detection.
262- message FaceDetectionFrame {
263- // Face attributes in a frame.
264- // There can be more than one attributes if the same face is detected in
265- // multiple locations within the current frame.
266- repeated FaceDetectionAttribute attributes = 1 ;
267-
268- // Time-offset, relative to the beginning of the video,
269- // corresponding to the video frame for this location.
270- google.protobuf.Duration time_offset = 2 ;
271- }
272-
273- // Face detection attribute.
274- message FaceDetectionAttribute {
275- // Normalized Bounding box.
276- NormalizedBoundingBox normalized_bounding_box = 1 ;
277-
278- // Emotion attributes.
279- repeated EmotionAttribute emotions = 2 ;
280- }
281-
282- // Emotion attribute.
283- message EmotionAttribute {
284- // Emotion entry.
285- Emotion emotion = 1 ;
286-
287- // Confidence score.
288- float score = 2 ;
289- }
290-
291- // Face detection annotation.
292- message FaceDetectionAnnotation {
293- // All video segments where a face was detected.
294- repeated FaceSegment segments = 1 ;
295-
296- // All video frames where a face was detected.
297- repeated FaceDetectionFrame frames = 2 ;
298- }
299-
300237// Annotation results for a single video.
301238message VideoAnnotationResults {
302239 // Video file location in
@@ -315,9 +252,6 @@ message VideoAnnotationResults {
315252 // There is exactly one element for each unique label.
316253 repeated LabelAnnotation frame_label_annotations = 4 ;
317254
318- // Face detection annotations.
319- repeated FaceDetectionAnnotation face_detection_annotations = 13 ;
320-
321255 // Shot annotations. Each shot is represented as a video segment.
322256 repeated VideoSegment shot_annotations = 6 ;
323257
@@ -467,9 +401,6 @@ enum Feature {
467401 // Explicit content detection.
468402 EXPLICIT_CONTENT_DETECTION = 3 ;
469403
470- // Face detection.
471- FACE_DETECTION = 8 ;
472-
473404 // Speech transcription.
474405 SPEECH_TRANSCRIPTION = 6 ;
475406}
@@ -509,48 +440,3 @@ enum Likelihood {
509440 // Very likely.
510441 VERY_LIKELY = 5 ;
511442}
512-
513- // Emotions.
514- enum Emotion {
515- // Unspecified emotion.
516- EMOTION_UNSPECIFIED = 0 ;
517-
518- // Amusement.
519- AMUSEMENT = 1 ;
520-
521- // Anger.
522- ANGER = 2 ;
523-
524- // Concentration.
525- CONCENTRATION = 3 ;
526-
527- // Contentment.
528- CONTENTMENT = 4 ;
529-
530- // Desire.
531- DESIRE = 5 ;
532-
533- // Disappointment.
534- DISAPPOINTMENT = 6 ;
535-
536- // Disgust.
537- DISGUST = 7 ;
538-
539- // Elation.
540- ELATION = 8 ;
541-
542- // Embarrassment.
543- EMBARRASSMENT = 9 ;
544-
545- // Interest.
546- INTEREST = 10 ;
547-
548- // Pride.
549- PRIDE = 11 ;
550-
551- // Sadness.
552- SADNESS = 12 ;
553-
554- // Surprise.
555- SURPRISE = 13 ;
556- }
0 commit comments