video_classification.proto 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. // Copyright 2021 Google LLC
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. syntax = "proto3";
  15. package google.cloud.aiplatform.v1beta1.schema.predict.prediction;
  16. import "google/protobuf/duration.proto";
  17. import "google/protobuf/wrappers.proto";
  18. option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1.Schema.Predict.Prediction";
  19. option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema/predict/prediction;prediction";
  20. option java_multiple_files = true;
  21. option java_outer_classname = "VideoClassificationPredictionResultProto";
  22. option java_package = "com.google.cloud.aiplatform.v1beta1.schema.predict.prediction";
  23. option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1\\Schema\\Predict\\Prediction";
  24. option ruby_package = "Google::Cloud::AIPlatform::V1beta1::Schema::Predict::Prediction";
  25. // Prediction output format for Video Classification.
  26. message VideoClassificationPredictionResult {
  27. // The resource ID of the AnnotationSpec that had been identified.
  28. string id = 1;
  29. // The display name of the AnnotationSpec that had been identified.
  30. string display_name = 2;
  31. // The type of the prediction. The requested types can be configured
  32. // via parameters. This will be one of
  33. // - segment-classification
  34. // - shot-classification
  35. // - one-sec-interval-classification
  36. string type = 3;
  37. // The beginning, inclusive, of the video's time segment in which the
  38. // AnnotationSpec has been identified. Expressed as a number of seconds as
  39. // measured from the start of the video, with fractions up to a microsecond
  40. // precision, and with "s" appended at the end. Note that for
  41. // 'segment-classification' prediction type, this equals the original
  42. // 'timeSegmentStart' from the input instance, for other types it is the
  43. // start of a shot or a 1 second interval respectively.
  44. google.protobuf.Duration time_segment_start = 4;
  45. // The end, exclusive, of the video's time segment in which the
  46. // AnnotationSpec has been identified. Expressed as a number of seconds as
  47. // measured from the start of the video, with fractions up to a microsecond
  48. // precision, and with "s" appended at the end. Note that for
  49. // 'segment-classification' prediction type, this equals the original
  50. // 'timeSegmentEnd' from the input instance, for other types it is the end
  51. // of a shot or a 1 second interval respectively.
  52. google.protobuf.Duration time_segment_end = 5;
  53. // The Model's confidence in correction of this prediction, higher
  54. // value means higher confidence.
  55. google.protobuf.FloatValue confidence = 6;
  56. }