123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617 |
- syntax = "proto3";
- package google.cloud.visionai.v1alpha1;
- import "google/protobuf/struct.proto";
- import "google/protobuf/timestamp.proto";
- option csharp_namespace = "Google.Cloud.VisionAI.V1Alpha1";
- option go_package = "google.golang.org/genproto/googleapis/cloud/visionai/v1alpha1;visionai";
- option java_multiple_files = true;
- option java_outer_classname = "AnnotationsProto";
- option java_package = "com.google.cloud.visionai.v1alpha1";
- option php_namespace = "Google\\Cloud\\VisionAI\\V1alpha1";
- option ruby_package = "Google::Cloud::VisionAI::V1alpha1";
- enum StreamAnnotationType {
-
- STREAM_ANNOTATION_TYPE_UNSPECIFIED = 0;
-
-
-
- STREAM_ANNOTATION_TYPE_ACTIVE_ZONE = 1;
-
-
-
-
- STREAM_ANNOTATION_TYPE_CROSSING_LINE = 2;
- }
- message PersonalProtectiveEquipmentDetectionOutput {
-
- message PersonEntity {
-
- int64 person_entity_id = 1;
- }
-
- message PPEEntity {
-
- int64 ppe_label_id = 1;
-
- string ppe_label_string = 2;
-
-
- string ppe_supercategory_label_string = 3;
-
- int64 ppe_entity_id = 4;
- }
-
- message NormalizedBoundingBox {
-
- float xmin = 1;
-
- float ymin = 2;
-
- float width = 3;
-
- float height = 4;
- }
-
-
- message PersonIdentifiedBox {
-
- int64 box_id = 1;
-
- NormalizedBoundingBox normalized_bounding_box = 2;
-
- float confidence_score = 3;
-
- PersonEntity person_entity = 4;
- }
-
- message PPEIdentifiedBox {
-
- int64 box_id = 1;
-
- NormalizedBoundingBox normalized_bounding_box = 2;
-
- float confidence_score = 3;
-
- PPEEntity ppe_entity = 4;
- }
-
-
- message DetectedPerson {
-
- int64 person_id = 1;
-
- PersonIdentifiedBox detected_person_identified_box = 2;
-
- repeated PPEIdentifiedBox detected_ppe_identified_boxes = 3;
-
-
- optional float face_coverage_score = 4;
-
- optional float eyes_coverage_score = 5;
-
- optional float head_coverage_score = 6;
-
- optional float hands_coverage_score = 7;
-
- optional float body_coverage_score = 8;
-
- optional float feet_coverage_score = 9;
- }
-
- google.protobuf.Timestamp current_time = 1;
-
- repeated DetectedPerson detected_persons = 2;
- }
- message ObjectDetectionPredictionResult {
-
- message Entity {
-
- int64 label_id = 1;
-
- string label_string = 2;
- }
-
- message IdentifiedBox {
-
- message NormalizedBoundingBox {
-
- float xmin = 1;
-
- float ymin = 2;
-
- float width = 3;
-
- float height = 4;
- }
-
- int64 box_id = 1;
-
- NormalizedBoundingBox normalized_bounding_box = 2;
-
- float confidence_score = 3;
-
- Entity entity = 4;
- }
-
- google.protobuf.Timestamp current_time = 1;
-
- repeated IdentifiedBox identified_boxes = 2;
- }
- message ImageObjectDetectionPredictionResult {
-
-
-
- repeated int64 ids = 1;
-
-
- repeated string display_names = 2;
-
-
- repeated float confidences = 3;
-
-
-
-
-
-
- repeated google.protobuf.ListValue bboxes = 4;
- }
- message ClassificationPredictionResult {
-
- repeated int64 ids = 1;
-
-
- repeated string display_names = 2;
-
-
- repeated float confidences = 3;
- }
- message ImageSegmentationPredictionResult {
-
-
-
-
-
-
- string category_mask = 1;
-
-
-
-
-
- string confidence_mask = 2;
- }
- message VideoActionRecognitionPredictionResult {
-
-
-
- message IdentifiedAction {
-
- string id = 1;
-
- string display_name = 2;
-
-
- float confidence = 3;
- }
-
-
- google.protobuf.Timestamp segment_start_time = 1;
-
-
-
- google.protobuf.Timestamp segment_end_time = 2;
-
- repeated IdentifiedAction actions = 3;
- }
- message VideoObjectTrackingPredictionResult {
-
-
-
- message BoundingBox {
-
- float x_min = 1;
-
- float x_max = 2;
-
- float y_min = 3;
-
- float y_max = 4;
- }
-
-
-
- message DetectedObject {
-
- string id = 1;
-
- string display_name = 2;
-
- BoundingBox bounding_box = 3;
-
-
- float confidence = 4;
-
-
-
-
- int64 track_id = 5;
- }
-
-
- google.protobuf.Timestamp segment_start_time = 1;
-
-
-
- google.protobuf.Timestamp segment_end_time = 2;
-
- repeated DetectedObject objects = 3;
- }
- message VideoClassificationPredictionResult {
-
-
-
- message IdentifiedClassification {
-
- string id = 1;
-
- string display_name = 2;
-
-
- float confidence = 3;
- }
-
-
- google.protobuf.Timestamp segment_start_time = 1;
-
-
-
-
- google.protobuf.Timestamp segment_end_time = 2;
-
- repeated IdentifiedClassification classifications = 3;
- }
- message OccupancyCountingPredictionResult {
-
- message Entity {
-
- int64 label_id = 1;
-
- string label_string = 2;
- }
-
- message IdentifiedBox {
-
- message NormalizedBoundingBox {
-
- float xmin = 1;
-
- float ymin = 2;
-
- float width = 3;
-
- float height = 4;
- }
-
- int64 box_id = 1;
-
- NormalizedBoundingBox normalized_bounding_box = 2;
-
- float score = 3;
-
- Entity entity = 4;
-
-
- int64 track_id = 5;
- }
-
- message Stats {
-
-
- message ObjectCount {
-
- Entity entity = 1;
-
- int32 count = 2;
- }
-
- message CrossingLineCount {
-
- StreamAnnotation annotation = 1;
-
- repeated ObjectCount positive_direction_counts = 2;
-
- repeated ObjectCount negative_direction_counts = 3;
- }
-
- message ActiveZoneCount {
-
- StreamAnnotation annotation = 1;
-
- repeated ObjectCount counts = 2;
- }
-
- repeated ObjectCount full_frame_count = 1;
-
- repeated CrossingLineCount crossing_line_counts = 2;
-
- repeated ActiveZoneCount active_zone_counts = 3;
- }
-
- message TrackInfo {
-
- string track_id = 1;
-
- google.protobuf.Timestamp start_time = 2;
- }
-
- message DwellTimeInfo {
-
- string track_id = 1;
-
- string zone_id = 2;
-
- google.protobuf.Timestamp dwell_start_time = 3;
-
- google.protobuf.Timestamp dwell_end_time = 4;
- }
-
- google.protobuf.Timestamp current_time = 1;
-
- repeated IdentifiedBox identified_boxes = 2;
-
- Stats stats = 3;
-
-
- repeated TrackInfo track_info = 4;
-
-
- repeated DwellTimeInfo dwell_time_info = 5;
- }
- message StreamAnnotation {
- oneof annotation_payload {
-
- NormalizedPolygon active_zone = 5;
-
- NormalizedPolyline crossing_line = 6;
- }
-
-
-
- string id = 1;
-
- string display_name = 2;
-
- string source_stream = 3;
-
- StreamAnnotationType type = 4;
- }
- message StreamAnnotations {
-
- repeated StreamAnnotation stream_annotations = 1;
- }
- message NormalizedPolygon {
-
-
- repeated NormalizedVertex normalized_vertices = 1;
- }
- message NormalizedPolyline {
-
- repeated NormalizedVertex normalized_vertices = 1;
- }
- message NormalizedVertex {
-
- float x = 1;
-
- float y = 2;
- }
- message AppPlatformMetadata {
-
- string application = 1;
-
-
- string instance_id = 2;
-
- string node = 3;
-
- string processor = 4;
- }
- message AppPlatformCloudFunctionRequest {
-
-
- message StructedInputAnnotation {
-
- int64 ingestion_time_micros = 1;
-
- google.protobuf.Struct annotation = 2;
- }
-
-
- AppPlatformMetadata app_platform_metadata = 1;
-
- repeated StructedInputAnnotation annotations = 2;
- }
- message AppPlatformCloudFunctionResponse {
-
-
- message StructedOutputAnnotation {
-
- google.protobuf.Struct annotation = 1;
- }
-
-
-
- repeated StructedOutputAnnotation annotations = 2;
- }
|