Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1 | <html><body> |
| 2 | <style> |
| 3 | |
| 4 | body, h1, h2, h3, div, span, p, pre, a { |
| 5 | margin: 0; |
| 6 | padding: 0; |
| 7 | border: 0; |
| 8 | font-weight: inherit; |
| 9 | font-style: inherit; |
| 10 | font-size: 100%; |
| 11 | font-family: inherit; |
| 12 | vertical-align: baseline; |
| 13 | } |
| 14 | |
| 15 | body { |
| 16 | font-size: 13px; |
| 17 | padding: 1em; |
| 18 | } |
| 19 | |
| 20 | h1 { |
| 21 | font-size: 26px; |
| 22 | margin-bottom: 1em; |
| 23 | } |
| 24 | |
| 25 | h2 { |
| 26 | font-size: 24px; |
| 27 | margin-bottom: 1em; |
| 28 | } |
| 29 | |
| 30 | h3 { |
| 31 | font-size: 20px; |
| 32 | margin-bottom: 1em; |
| 33 | margin-top: 1em; |
| 34 | } |
| 35 | |
| 36 | pre, code { |
| 37 | line-height: 1.5; |
| 38 | font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; |
| 39 | } |
| 40 | |
| 41 | pre { |
| 42 | margin-top: 0.5em; |
| 43 | } |
| 44 | |
| 45 | h1, h2, h3, p { |
| 46 | font-family: Arial, sans serif; |
| 47 | } |
| 48 | |
| 49 | h1, h2, h3 { |
| 50 | border-bottom: solid #CCC 1px; |
| 51 | } |
| 52 | |
| 53 | .toc_element { |
| 54 | margin-top: 0.5em; |
| 55 | } |
| 56 | |
| 57 | .firstline { |
| 58 | margin-left: 2 em; |
| 59 | } |
| 60 | |
| 61 | .method { |
| 62 | margin-top: 1em; |
| 63 | border: solid 1px #CCC; |
| 64 | padding: 1em; |
| 65 | background: #EEE; |
| 66 | } |
| 67 | |
| 68 | .details { |
| 69 | font-weight: bold; |
| 70 | font-size: 14px; |
| 71 | } |
| 72 | |
| 73 | </style> |
| 74 | |
| 75 | <h1><a href="datalabeling_v1beta1.html">Data Labeling API</a> . <a href="datalabeling_v1beta1.projects.html">projects</a> . <a href="datalabeling_v1beta1.projects.datasets.html">datasets</a> . <a href="datalabeling_v1beta1.projects.datasets.evaluations.html">evaluations</a> . <a href="datalabeling_v1beta1.projects.datasets.evaluations.exampleComparisons.html">exampleComparisons</a></h1> |
| 76 | <h2>Instance Methods</h2> |
| 77 | <p class="toc_element"> |
| 78 | <code><a href="#close">close()</a></code></p> |
| 79 | <p class="firstline">Close httplib2 connections.</p> |
| 80 | <p class="toc_element"> |
| 81 | <code><a href="#search">search(parent, body=None, x__xgafv=None)</a></code></p> |
| 82 | <p class="firstline">Searches example comparisons from an evaluation. The return format is a list of example comparisons that show ground truth and prediction(s) for a single input. Search by providing an evaluation ID.</p> |
| 83 | <p class="toc_element"> |
| 84 | <code><a href="#search_next">search_next(previous_request, previous_response)</a></code></p> |
| 85 | <p class="firstline">Retrieves the next page of results.</p> |
| 86 | <h3>Method Details</h3> |
| 87 | <div class="method"> |
| 88 | <code class="details" id="close">close()</code> |
| 89 | <pre>Close httplib2 connections.</pre> |
| 90 | </div> |
| 91 | |
| 92 | <div class="method"> |
| 93 | <code class="details" id="search">search(parent, body=None, x__xgafv=None)</code> |
| 94 | <pre>Searches example comparisons from an evaluation. The return format is a list of example comparisons that show ground truth and prediction(s) for a single input. Search by providing an evaluation ID. |
| 95 | |
| 96 | Args: |
| 97 | parent: string, Required. Name of the Evaluation resource to search for example comparisons from. Format: "projects/{project_id}/datasets/{dataset_id}/evaluations/ {evaluation_id}" (required) |
| 98 | body: object, The request body. |
| 99 | The object takes the form of: |
| 100 | |
| 101 | { # Request message of SearchExampleComparisons. |
| 102 | "pageToken": "A String", # Optional. A token identifying a page of results for the server to return. Typically obtained by the nextPageToken of the response to a previous search rquest. If you don't specify this field, the API call requests the first page of the search. |
| 103 | "pageSize": 42, # Optional. Requested page size. Server may return fewer results than requested. Default value is 100. |
| 104 | } |
| 105 | |
| 106 | x__xgafv: string, V1 error format. |
| 107 | Allowed values |
| 108 | 1 - v1 error format |
| 109 | 2 - v2 error format |
| 110 | |
| 111 | Returns: |
| 112 | An object of the form: |
| 113 | |
| 114 | { # Results of searching example comparisons. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 115 | "exampleComparisons": [ # A list of example comparisons matching the search criteria. |
| 116 | { # Example comparisons comparing ground truth output and predictions for a specific input. |
| 117 | "groundTruthExample": { # An Example is a piece of data and its annotation. For example, an image with label "house". # The ground truth output for the input. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 118 | "annotations": [ # Output only. Annotations for the piece of data in Example. One piece of data can have multiple annotations. |
| 119 | { # Annotation for Example. Each example may have one or more annotations. For example in image classification problem, each image might have one or more labels. We call labels binded with this image an Annotation. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 120 | "name": "A String", # Output only. Unique name of this annotation, format is: projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/{annotated_dataset}/examples/{example_id}/annotations/{annotation_id} |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 121 | "annotationMetadata": { # Additional information associated with the annotation. # Output only. Annotation metadata, including information like votes for labels. |
| 122 | "operatorMetadata": { # General information useful for labels coming from contributors. # Metadata related to human labeling. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 123 | "comments": [ # Comments from contributors. |
| 124 | "A String", |
| 125 | ], |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 126 | "labelVotes": 42, # The total number of contributors that choose this label. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 127 | "score": 3.14, # Confidence score corresponding to a label. For examle, if 3 contributors have answered the question and 2 of them agree on the final label, the confidence score will be 0.67 (2/3). |
| 128 | "totalVotes": 42, # The total number of contributors that answer this question. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 129 | }, |
| 130 | }, |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 131 | "annotationSentiment": "A String", # Output only. Sentiment for this annotation. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 132 | "annotationSource": "A String", # Output only. The source of the annotation. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 133 | "annotationValue": { # Annotation value for an example. # Output only. This is the actual annotation value, e.g classification, bounding box values are stored here. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 134 | "imageClassificationAnnotation": { # Image classification annotation definition. # Annotation value for image classification case. |
| 135 | "annotationSpec": { # Container of information related to one possible annotation that can be used in a labeling task. For example, an image classification task where images are labeled as `dog` or `cat` must reference an AnnotationSpec for `dog` and an AnnotationSpec for `cat`. # Label of image. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 136 | "description": "A String", # Optional. User-provided description of the annotation specification. The description can be up to 10,000 characters long. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 137 | "displayName": "A String", # Required. The display name of the AnnotationSpec. Maximum of 64 characters. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 138 | "index": 42, # Output only. This is the integer index of the AnnotationSpec. The index for the whole AnnotationSpecSet is sequential starting from 0. For example, an AnnotationSpecSet with classes `dog` and `cat`, might contain one AnnotationSpec with `{ display_name: "dog", index: 0 }` and one AnnotationSpec with `{ display_name: "cat", index: 1 }`. This is especially useful for model training as it encodes the string labels into numeric values. |
| 139 | }, |
| 140 | }, |
| 141 | "imageSegmentationAnnotation": { # Image segmentation annotation. # Annotation value for image segmentation. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 142 | "imageBytes": "A String", # A byte string of a full image's color map. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 143 | "mimeType": "A String", # Image format. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 144 | "annotationColors": { # The mapping between rgb color and annotation spec. The key is the rgb color represented in format of rgb(0, 0, 0). The value is the AnnotationSpec. |
| 145 | "a_key": { # Container of information related to one possible annotation that can be used in a labeling task. For example, an image classification task where images are labeled as `dog` or `cat` must reference an AnnotationSpec for `dog` and an AnnotationSpec for `cat`. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 146 | "description": "A String", # Optional. User-provided description of the annotation specification. The description can be up to 10,000 characters long. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 147 | "displayName": "A String", # Required. The display name of the AnnotationSpec. Maximum of 64 characters. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 148 | "index": 42, # Output only. This is the integer index of the AnnotationSpec. The index for the whole AnnotationSpecSet is sequential starting from 0. For example, an AnnotationSpecSet with classes `dog` and `cat`, might contain one AnnotationSpec with `{ display_name: "dog", index: 0 }` and one AnnotationSpec with `{ display_name: "cat", index: 1 }`. This is especially useful for model training as it encodes the string labels into numeric values. |
| 149 | }, |
| 150 | }, |
| 151 | }, |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 152 | "videoObjectTrackingAnnotation": { # Video object tracking annotation. # Annotation value for video object detection and tracking case. |
| 153 | "annotationSpec": { # Container of information related to one possible annotation that can be used in a labeling task. For example, an image classification task where images are labeled as `dog` or `cat` must reference an AnnotationSpec for `dog` and an AnnotationSpec for `cat`. # Label of the object tracked in this annotation. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 154 | "description": "A String", # Optional. User-provided description of the annotation specification. The description can be up to 10,000 characters long. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 155 | "displayName": "A String", # Required. The display name of the AnnotationSpec. Maximum of 64 characters. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 156 | "index": 42, # Output only. This is the integer index of the AnnotationSpec. The index for the whole AnnotationSpecSet is sequential starting from 0. For example, an AnnotationSpecSet with classes `dog` and `cat`, might contain one AnnotationSpec with `{ display_name: "dog", index: 0 }` and one AnnotationSpec with `{ display_name: "cat", index: 1 }`. This is especially useful for model training as it encodes the string labels into numeric values. |
| 157 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 158 | "timeSegment": { # A time period inside of an example that has a time dimension (e.g. video). # The time segment of the video to which object tracking applies. |
| 159 | "endTimeOffset": "A String", # End of the time segment (exclusive), represented as the duration since the example start. |
| 160 | "startTimeOffset": "A String", # Start of the time segment (inclusive), represented as the duration since the example start. |
| 161 | }, |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 162 | "objectTrackingFrames": [ # The list of frames where this object track appears. |
| 163 | { # Video frame level annotation for object detection and tracking. |
| 164 | "normalizedBoundingPoly": { # Normalized bounding polygon. |
| 165 | "normalizedVertices": [ # The bounding polygon normalized vertices. |
| 166 | { # A vertex represents a 2D point in the image. NOTE: the normalized vertex coordinates are relative to the original image and range from 0 to 1. |
| 167 | "y": 3.14, # Y coordinate. |
| 168 | "x": 3.14, # X coordinate. |
| 169 | }, |
| 170 | ], |
| 171 | }, |
| 172 | "boundingPoly": { # A bounding polygon in the image. |
| 173 | "vertices": [ # The bounding polygon vertices. |
| 174 | { # A vertex represents a 2D point in the image. NOTE: the vertex coordinates are in the same scale as the original image. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 175 | "x": 42, # X coordinate. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 176 | "y": 42, # Y coordinate. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 177 | }, |
| 178 | ], |
| 179 | }, |
| 180 | "timeOffset": "A String", # The time offset of this frame relative to the beginning of the video. |
| 181 | }, |
| 182 | ], |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 183 | }, |
| 184 | "imagePolylineAnnotation": { # A polyline for the image annotation. # Annotation value for image polyline cases. Polyline here is different from BoundingPoly. It is formed by line segments connected to each other but not closed form(Bounding Poly). The line segments can cross each other. |
| 185 | "polyline": { # A line with multiple line segments. |
| 186 | "vertices": [ # The polyline vertices. |
| 187 | { # A vertex represents a 2D point in the image. NOTE: the vertex coordinates are in the same scale as the original image. |
| 188 | "x": 42, # X coordinate. |
| 189 | "y": 42, # Y coordinate. |
| 190 | }, |
| 191 | ], |
| 192 | }, |
| 193 | "annotationSpec": { # Container of information related to one possible annotation that can be used in a labeling task. For example, an image classification task where images are labeled as `dog` or `cat` must reference an AnnotationSpec for `dog` and an AnnotationSpec for `cat`. # Label of this polyline. |
| 194 | "description": "A String", # Optional. User-provided description of the annotation specification. The description can be up to 10,000 characters long. |
| 195 | "displayName": "A String", # Required. The display name of the AnnotationSpec. Maximum of 64 characters. |
| 196 | "index": 42, # Output only. This is the integer index of the AnnotationSpec. The index for the whole AnnotationSpecSet is sequential starting from 0. For example, an AnnotationSpecSet with classes `dog` and `cat`, might contain one AnnotationSpec with `{ display_name: "dog", index: 0 }` and one AnnotationSpec with `{ display_name: "cat", index: 1 }`. This is especially useful for model training as it encodes the string labels into numeric values. |
| 197 | }, |
| 198 | "normalizedPolyline": { # Normalized polyline. |
| 199 | "normalizedVertices": [ # The normalized polyline vertices. |
| 200 | { # A vertex represents a 2D point in the image. NOTE: the normalized vertex coordinates are relative to the original image and range from 0 to 1. |
| 201 | "y": 3.14, # Y coordinate. |
| 202 | "x": 3.14, # X coordinate. |
| 203 | }, |
| 204 | ], |
| 205 | }, |
| 206 | }, |
| 207 | "textEntityExtractionAnnotation": { # Text entity extraction annotation. # Annotation value for text entity extraction case. |
| 208 | "annotationSpec": { # Container of information related to one possible annotation that can be used in a labeling task. For example, an image classification task where images are labeled as `dog` or `cat` must reference an AnnotationSpec for `dog` and an AnnotationSpec for `cat`. # Label of the text entities. |
| 209 | "description": "A String", # Optional. User-provided description of the annotation specification. The description can be up to 10,000 characters long. |
| 210 | "displayName": "A String", # Required. The display name of the AnnotationSpec. Maximum of 64 characters. |
| 211 | "index": 42, # Output only. This is the integer index of the AnnotationSpec. The index for the whole AnnotationSpecSet is sequential starting from 0. For example, an AnnotationSpecSet with classes `dog` and `cat`, might contain one AnnotationSpec with `{ display_name: "dog", index: 0 }` and one AnnotationSpec with `{ display_name: "cat", index: 1 }`. This is especially useful for model training as it encodes the string labels into numeric values. |
| 212 | }, |
| 213 | "sequentialSegment": { # Start and end position in a sequence (e.g. text segment). # Position of the entity. |
| 214 | "end": 42, # End position (exclusive). |
| 215 | "start": 42, # Start position (inclusive). |
| 216 | }, |
| 217 | }, |
| 218 | "videoClassificationAnnotation": { # Video classification annotation. # Annotation value for video classification case. |
| 219 | "timeSegment": { # A time period inside of an example that has a time dimension (e.g. video). # The time segment of the video to which the annotation applies. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 220 | "endTimeOffset": "A String", # End of the time segment (exclusive), represented as the duration since the example start. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 221 | "startTimeOffset": "A String", # Start of the time segment (inclusive), represented as the duration since the example start. |
| 222 | }, |
| 223 | "annotationSpec": { # Container of information related to one possible annotation that can be used in a labeling task. For example, an image classification task where images are labeled as `dog` or `cat` must reference an AnnotationSpec for `dog` and an AnnotationSpec for `cat`. # Label of the segment specified by time_segment. |
| 224 | "description": "A String", # Optional. User-provided description of the annotation specification. The description can be up to 10,000 characters long. |
| 225 | "displayName": "A String", # Required. The display name of the AnnotationSpec. Maximum of 64 characters. |
| 226 | "index": 42, # Output only. This is the integer index of the AnnotationSpec. The index for the whole AnnotationSpecSet is sequential starting from 0. For example, an AnnotationSpecSet with classes `dog` and `cat`, might contain one AnnotationSpec with `{ display_name: "dog", index: 0 }` and one AnnotationSpec with `{ display_name: "cat", index: 1 }`. This is especially useful for model training as it encodes the string labels into numeric values. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 227 | }, |
| 228 | }, |
| 229 | "textClassificationAnnotation": { # Text classification annotation. # Annotation value for text classification case. |
| 230 | "annotationSpec": { # Container of information related to one possible annotation that can be used in a labeling task. For example, an image classification task where images are labeled as `dog` or `cat` must reference an AnnotationSpec for `dog` and an AnnotationSpec for `cat`. # Label of the text. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 231 | "description": "A String", # Optional. User-provided description of the annotation specification. The description can be up to 10,000 characters long. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 232 | "displayName": "A String", # Required. The display name of the AnnotationSpec. Maximum of 64 characters. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 233 | "index": 42, # Output only. This is the integer index of the AnnotationSpec. The index for the whole AnnotationSpecSet is sequential starting from 0. For example, an AnnotationSpecSet with classes `dog` and `cat`, might contain one AnnotationSpec with `{ display_name: "dog", index: 0 }` and one AnnotationSpec with `{ display_name: "cat", index: 1 }`. This is especially useful for model training as it encodes the string labels into numeric values. |
| 234 | }, |
| 235 | }, |
| 236 | "imageBoundingPolyAnnotation": { # Image bounding poly annotation. It represents a polygon including bounding box in the image. # Annotation value for image bounding box, oriented bounding box and polygon cases. |
| 237 | "normalizedBoundingPoly": { # Normalized bounding polygon. |
| 238 | "normalizedVertices": [ # The bounding polygon normalized vertices. |
| 239 | { # A vertex represents a 2D point in the image. NOTE: the normalized vertex coordinates are relative to the original image and range from 0 to 1. |
| 240 | "y": 3.14, # Y coordinate. |
| 241 | "x": 3.14, # X coordinate. |
| 242 | }, |
| 243 | ], |
| 244 | }, |
| 245 | "annotationSpec": { # Container of information related to one possible annotation that can be used in a labeling task. For example, an image classification task where images are labeled as `dog` or `cat` must reference an AnnotationSpec for `dog` and an AnnotationSpec for `cat`. # Label of object in this bounding polygon. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 246 | "description": "A String", # Optional. User-provided description of the annotation specification. The description can be up to 10,000 characters long. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 247 | "displayName": "A String", # Required. The display name of the AnnotationSpec. Maximum of 64 characters. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 248 | "index": 42, # Output only. This is the integer index of the AnnotationSpec. The index for the whole AnnotationSpecSet is sequential starting from 0. For example, an AnnotationSpecSet with classes `dog` and `cat`, might contain one AnnotationSpec with `{ display_name: "dog", index: 0 }` and one AnnotationSpec with `{ display_name: "cat", index: 1 }`. This is especially useful for model training as it encodes the string labels into numeric values. |
| 249 | }, |
| 250 | "boundingPoly": { # A bounding polygon in the image. |
| 251 | "vertices": [ # The bounding polygon vertices. |
| 252 | { # A vertex represents a 2D point in the image. NOTE: the vertex coordinates are in the same scale as the original image. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 253 | "x": 42, # X coordinate. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 254 | "y": 42, # Y coordinate. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 255 | }, |
| 256 | ], |
| 257 | }, |
| 258 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 259 | "videoEventAnnotation": { # Video event annotation. # Annotation value for video event case. |
| 260 | "timeSegment": { # A time period inside of an example that has a time dimension (e.g. video). # The time segment of the video to which the annotation applies. |
| 261 | "endTimeOffset": "A String", # End of the time segment (exclusive), represented as the duration since the example start. |
| 262 | "startTimeOffset": "A String", # Start of the time segment (inclusive), represented as the duration since the example start. |
| 263 | }, |
| 264 | "annotationSpec": { # Container of information related to one possible annotation that can be used in a labeling task. For example, an image classification task where images are labeled as `dog` or `cat` must reference an AnnotationSpec for `dog` and an AnnotationSpec for `cat`. # Label of the event in this annotation. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 265 | "description": "A String", # Optional. User-provided description of the annotation specification. The description can be up to 10,000 characters long. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 266 | "displayName": "A String", # Required. The display name of the AnnotationSpec. Maximum of 64 characters. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 267 | "index": 42, # Output only. This is the integer index of the AnnotationSpec. The index for the whole AnnotationSpecSet is sequential starting from 0. For example, an AnnotationSpecSet with classes `dog` and `cat`, might contain one AnnotationSpec with `{ display_name: "dog", index: 0 }` and one AnnotationSpec with `{ display_name: "cat", index: 1 }`. This is especially useful for model training as it encodes the string labels into numeric values. |
| 268 | }, |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 269 | }, |
| 270 | }, |
| 271 | }, |
| 272 | ], |
| 273 | "textPayload": { # Container of information about a piece of text. # The text payload, a container of the text content. |
| 274 | "textContent": "A String", # Text content. |
| 275 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 276 | "name": "A String", # Output only. Name of the example, in format of: projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/ {annotated_dataset_id}/examples/{example_id} |
| 277 | "imagePayload": { # Container of information about an image. # The image payload, a container of the image bytes/uri. |
| 278 | "signedUri": "A String", # Signed uri of the image file in the service bucket. |
| 279 | "imageThumbnail": "A String", # A byte string of a thumbnail image. |
| 280 | "mimeType": "A String", # Image format. |
| 281 | "imageUri": "A String", # Image uri from the user bucket. |
| 282 | }, |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 283 | "videoPayload": { # Container of information of a video. # The video payload, a container of the video uri. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 284 | "mimeType": "A String", # Video format. |
| 285 | "videoUri": "A String", # Video uri from the user bucket. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 286 | "signedUri": "A String", # Signed uri of the video file in the service bucket. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 287 | "videoThumbnails": [ # The list of video thumbnails. |
| 288 | { # Container of information of a video thumbnail. |
| 289 | "timeOffset": "A String", # Time offset relative to the beginning of the video, corresponding to the video frame where the thumbnail has been extracted from. |
| 290 | "thumbnail": "A String", # A byte string of the video frame. |
| 291 | }, |
| 292 | ], |
| 293 | "frameRate": 3.14, # FPS of the video. |
| 294 | }, |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 295 | }, |
| 296 | "modelCreatedExamples": [ # Predictions by the model for the input. |
| 297 | { # An Example is a piece of data and its annotation. For example, an image with label "house". |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 298 | "annotations": [ # Output only. Annotations for the piece of data in Example. One piece of data can have multiple annotations. |
| 299 | { # Annotation for Example. Each example may have one or more annotations. For example in image classification problem, each image might have one or more labels. We call labels binded with this image an Annotation. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 300 | "name": "A String", # Output only. Unique name of this annotation, format is: projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/{annotated_dataset}/examples/{example_id}/annotations/{annotation_id} |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 301 | "annotationMetadata": { # Additional information associated with the annotation. # Output only. Annotation metadata, including information like votes for labels. |
| 302 | "operatorMetadata": { # General information useful for labels coming from contributors. # Metadata related to human labeling. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 303 | "comments": [ # Comments from contributors. |
| 304 | "A String", |
| 305 | ], |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 306 | "labelVotes": 42, # The total number of contributors that choose this label. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 307 | "score": 3.14, # Confidence score corresponding to a label. For examle, if 3 contributors have answered the question and 2 of them agree on the final label, the confidence score will be 0.67 (2/3). |
| 308 | "totalVotes": 42, # The total number of contributors that answer this question. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 309 | }, |
| 310 | }, |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 311 | "annotationSentiment": "A String", # Output only. Sentiment for this annotation. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 312 | "annotationSource": "A String", # Output only. The source of the annotation. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 313 | "annotationValue": { # Annotation value for an example. # Output only. This is the actual annotation value, e.g classification, bounding box values are stored here. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 314 | "imageClassificationAnnotation": { # Image classification annotation definition. # Annotation value for image classification case. |
| 315 | "annotationSpec": { # Container of information related to one possible annotation that can be used in a labeling task. For example, an image classification task where images are labeled as `dog` or `cat` must reference an AnnotationSpec for `dog` and an AnnotationSpec for `cat`. # Label of image. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 316 | "description": "A String", # Optional. User-provided description of the annotation specification. The description can be up to 10,000 characters long. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 317 | "displayName": "A String", # Required. The display name of the AnnotationSpec. Maximum of 64 characters. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 318 | "index": 42, # Output only. This is the integer index of the AnnotationSpec. The index for the whole AnnotationSpecSet is sequential starting from 0. For example, an AnnotationSpecSet with classes `dog` and `cat`, might contain one AnnotationSpec with `{ display_name: "dog", index: 0 }` and one AnnotationSpec with `{ display_name: "cat", index: 1 }`. This is especially useful for model training as it encodes the string labels into numeric values. |
| 319 | }, |
| 320 | }, |
| 321 | "imageSegmentationAnnotation": { # Image segmentation annotation. # Annotation value for image segmentation. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 322 | "imageBytes": "A String", # A byte string of a full image's color map. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 323 | "mimeType": "A String", # Image format. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 324 | "annotationColors": { # The mapping between rgb color and annotation spec. The key is the rgb color represented in format of rgb(0, 0, 0). The value is the AnnotationSpec. |
| 325 | "a_key": { # Container of information related to one possible annotation that can be used in a labeling task. For example, an image classification task where images are labeled as `dog` or `cat` must reference an AnnotationSpec for `dog` and an AnnotationSpec for `cat`. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 326 | "description": "A String", # Optional. User-provided description of the annotation specification. The description can be up to 10,000 characters long. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 327 | "displayName": "A String", # Required. The display name of the AnnotationSpec. Maximum of 64 characters. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 328 | "index": 42, # Output only. This is the integer index of the AnnotationSpec. The index for the whole AnnotationSpecSet is sequential starting from 0. For example, an AnnotationSpecSet with classes `dog` and `cat`, might contain one AnnotationSpec with `{ display_name: "dog", index: 0 }` and one AnnotationSpec with `{ display_name: "cat", index: 1 }`. This is especially useful for model training as it encodes the string labels into numeric values. |
| 329 | }, |
| 330 | }, |
| 331 | }, |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 332 | "videoObjectTrackingAnnotation": { # Video object tracking annotation. # Annotation value for video object detection and tracking case. |
| 333 | "annotationSpec": { # Container of information related to one possible annotation that can be used in a labeling task. For example, an image classification task where images are labeled as `dog` or `cat` must reference an AnnotationSpec for `dog` and an AnnotationSpec for `cat`. # Label of the object tracked in this annotation. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 334 | "description": "A String", # Optional. User-provided description of the annotation specification. The description can be up to 10,000 characters long. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 335 | "displayName": "A String", # Required. The display name of the AnnotationSpec. Maximum of 64 characters. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 336 | "index": 42, # Output only. This is the integer index of the AnnotationSpec. The index for the whole AnnotationSpecSet is sequential starting from 0. For example, an AnnotationSpecSet with classes `dog` and `cat`, might contain one AnnotationSpec with `{ display_name: "dog", index: 0 }` and one AnnotationSpec with `{ display_name: "cat", index: 1 }`. This is especially useful for model training as it encodes the string labels into numeric values. |
| 337 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 338 | "timeSegment": { # A time period inside of an example that has a time dimension (e.g. video). # The time segment of the video to which object tracking applies. |
| 339 | "endTimeOffset": "A String", # End of the time segment (exclusive), represented as the duration since the example start. |
| 340 | "startTimeOffset": "A String", # Start of the time segment (inclusive), represented as the duration since the example start. |
| 341 | }, |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 342 | "objectTrackingFrames": [ # The list of frames where this object track appears. |
| 343 | { # Video frame level annotation for object detection and tracking. |
| 344 | "normalizedBoundingPoly": { # Normalized bounding polygon. |
| 345 | "normalizedVertices": [ # The bounding polygon normalized vertices. |
| 346 | { # A vertex represents a 2D point in the image. NOTE: the normalized vertex coordinates are relative to the original image and range from 0 to 1. |
| 347 | "y": 3.14, # Y coordinate. |
| 348 | "x": 3.14, # X coordinate. |
| 349 | }, |
| 350 | ], |
| 351 | }, |
| 352 | "boundingPoly": { # A bounding polygon in the image. |
| 353 | "vertices": [ # The bounding polygon vertices. |
| 354 | { # A vertex represents a 2D point in the image. NOTE: the vertex coordinates are in the same scale as the original image. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 355 | "x": 42, # X coordinate. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 356 | "y": 42, # Y coordinate. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 357 | }, |
| 358 | ], |
| 359 | }, |
| 360 | "timeOffset": "A String", # The time offset of this frame relative to the beginning of the video. |
| 361 | }, |
| 362 | ], |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 363 | }, |
| 364 | "imagePolylineAnnotation": { # A polyline for the image annotation. # Annotation value for image polyline cases. Polyline here is different from BoundingPoly. It is formed by line segments connected to each other but not closed form(Bounding Poly). The line segments can cross each other. |
| 365 | "polyline": { # A line with multiple line segments. |
| 366 | "vertices": [ # The polyline vertices. |
| 367 | { # A vertex represents a 2D point in the image. NOTE: the vertex coordinates are in the same scale as the original image. |
| 368 | "x": 42, # X coordinate. |
| 369 | "y": 42, # Y coordinate. |
| 370 | }, |
| 371 | ], |
| 372 | }, |
| 373 | "annotationSpec": { # Container of information related to one possible annotation that can be used in a labeling task. For example, an image classification task where images are labeled as `dog` or `cat` must reference an AnnotationSpec for `dog` and an AnnotationSpec for `cat`. # Label of this polyline. |
| 374 | "description": "A String", # Optional. User-provided description of the annotation specification. The description can be up to 10,000 characters long. |
| 375 | "displayName": "A String", # Required. The display name of the AnnotationSpec. Maximum of 64 characters. |
| 376 | "index": 42, # Output only. This is the integer index of the AnnotationSpec. The index for the whole AnnotationSpecSet is sequential starting from 0. For example, an AnnotationSpecSet with classes `dog` and `cat`, might contain one AnnotationSpec with `{ display_name: "dog", index: 0 }` and one AnnotationSpec with `{ display_name: "cat", index: 1 }`. This is especially useful for model training as it encodes the string labels into numeric values. |
| 377 | }, |
| 378 | "normalizedPolyline": { # Normalized polyline. |
| 379 | "normalizedVertices": [ # The normalized polyline vertices. |
| 380 | { # A vertex represents a 2D point in the image. NOTE: the normalized vertex coordinates are relative to the original image and range from 0 to 1. |
| 381 | "y": 3.14, # Y coordinate. |
| 382 | "x": 3.14, # X coordinate. |
| 383 | }, |
| 384 | ], |
| 385 | }, |
| 386 | }, |
| 387 | "textEntityExtractionAnnotation": { # Text entity extraction annotation. # Annotation value for text entity extraction case. |
| 388 | "annotationSpec": { # Container of information related to one possible annotation that can be used in a labeling task. For example, an image classification task where images are labeled as `dog` or `cat` must reference an AnnotationSpec for `dog` and an AnnotationSpec for `cat`. # Label of the text entities. |
| 389 | "description": "A String", # Optional. User-provided description of the annotation specification. The description can be up to 10,000 characters long. |
| 390 | "displayName": "A String", # Required. The display name of the AnnotationSpec. Maximum of 64 characters. |
| 391 | "index": 42, # Output only. This is the integer index of the AnnotationSpec. The index for the whole AnnotationSpecSet is sequential starting from 0. For example, an AnnotationSpecSet with classes `dog` and `cat`, might contain one AnnotationSpec with `{ display_name: "dog", index: 0 }` and one AnnotationSpec with `{ display_name: "cat", index: 1 }`. This is especially useful for model training as it encodes the string labels into numeric values. |
| 392 | }, |
| 393 | "sequentialSegment": { # Start and end position in a sequence (e.g. text segment). # Position of the entity. |
| 394 | "end": 42, # End position (exclusive). |
| 395 | "start": 42, # Start position (inclusive). |
| 396 | }, |
| 397 | }, |
| 398 | "videoClassificationAnnotation": { # Video classification annotation. # Annotation value for video classification case. |
| 399 | "timeSegment": { # A time period inside of an example that has a time dimension (e.g. video). # The time segment of the video to which the annotation applies. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 400 | "endTimeOffset": "A String", # End of the time segment (exclusive), represented as the duration since the example start. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 401 | "startTimeOffset": "A String", # Start of the time segment (inclusive), represented as the duration since the example start. |
| 402 | }, |
| 403 | "annotationSpec": { # Container of information related to one possible annotation that can be used in a labeling task. For example, an image classification task where images are labeled as `dog` or `cat` must reference an AnnotationSpec for `dog` and an AnnotationSpec for `cat`. # Label of the segment specified by time_segment. |
| 404 | "description": "A String", # Optional. User-provided description of the annotation specification. The description can be up to 10,000 characters long. |
| 405 | "displayName": "A String", # Required. The display name of the AnnotationSpec. Maximum of 64 characters. |
| 406 | "index": 42, # Output only. This is the integer index of the AnnotationSpec. The index for the whole AnnotationSpecSet is sequential starting from 0. For example, an AnnotationSpecSet with classes `dog` and `cat`, might contain one AnnotationSpec with `{ display_name: "dog", index: 0 }` and one AnnotationSpec with `{ display_name: "cat", index: 1 }`. This is especially useful for model training as it encodes the string labels into numeric values. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 407 | }, |
| 408 | }, |
| 409 | "textClassificationAnnotation": { # Text classification annotation. # Annotation value for text classification case. |
| 410 | "annotationSpec": { # Container of information related to one possible annotation that can be used in a labeling task. For example, an image classification task where images are labeled as `dog` or `cat` must reference an AnnotationSpec for `dog` and an AnnotationSpec for `cat`. # Label of the text. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 411 | "description": "A String", # Optional. User-provided description of the annotation specification. The description can be up to 10,000 characters long. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 412 | "displayName": "A String", # Required. The display name of the AnnotationSpec. Maximum of 64 characters. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 413 | "index": 42, # Output only. This is the integer index of the AnnotationSpec. The index for the whole AnnotationSpecSet is sequential starting from 0. For example, an AnnotationSpecSet with classes `dog` and `cat`, might contain one AnnotationSpec with `{ display_name: "dog", index: 0 }` and one AnnotationSpec with `{ display_name: "cat", index: 1 }`. This is especially useful for model training as it encodes the string labels into numeric values. |
| 414 | }, |
| 415 | }, |
| 416 | "imageBoundingPolyAnnotation": { # Image bounding poly annotation. It represents a polygon including bounding box in the image. # Annotation value for image bounding box, oriented bounding box and polygon cases. |
| 417 | "normalizedBoundingPoly": { # Normalized bounding polygon. |
| 418 | "normalizedVertices": [ # The bounding polygon normalized vertices. |
| 419 | { # A vertex represents a 2D point in the image. NOTE: the normalized vertex coordinates are relative to the original image and range from 0 to 1. |
| 420 | "y": 3.14, # Y coordinate. |
| 421 | "x": 3.14, # X coordinate. |
| 422 | }, |
| 423 | ], |
| 424 | }, |
| 425 | "annotationSpec": { # Container of information related to one possible annotation that can be used in a labeling task. For example, an image classification task where images are labeled as `dog` or `cat` must reference an AnnotationSpec for `dog` and an AnnotationSpec for `cat`. # Label of object in this bounding polygon. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 426 | "description": "A String", # Optional. User-provided description of the annotation specification. The description can be up to 10,000 characters long. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 427 | "displayName": "A String", # Required. The display name of the AnnotationSpec. Maximum of 64 characters. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 428 | "index": 42, # Output only. This is the integer index of the AnnotationSpec. The index for the whole AnnotationSpecSet is sequential starting from 0. For example, an AnnotationSpecSet with classes `dog` and `cat`, might contain one AnnotationSpec with `{ display_name: "dog", index: 0 }` and one AnnotationSpec with `{ display_name: "cat", index: 1 }`. This is especially useful for model training as it encodes the string labels into numeric values. |
| 429 | }, |
| 430 | "boundingPoly": { # A bounding polygon in the image. |
| 431 | "vertices": [ # The bounding polygon vertices. |
| 432 | { # A vertex represents a 2D point in the image. NOTE: the vertex coordinates are in the same scale as the original image. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 433 | "x": 42, # X coordinate. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 434 | "y": 42, # Y coordinate. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 435 | }, |
| 436 | ], |
| 437 | }, |
| 438 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 439 | "videoEventAnnotation": { # Video event annotation. # Annotation value for video event case. |
| 440 | "timeSegment": { # A time period inside of an example that has a time dimension (e.g. video). # The time segment of the video to which the annotation applies. |
| 441 | "endTimeOffset": "A String", # End of the time segment (exclusive), represented as the duration since the example start. |
| 442 | "startTimeOffset": "A String", # Start of the time segment (inclusive), represented as the duration since the example start. |
| 443 | }, |
| 444 | "annotationSpec": { # Container of information related to one possible annotation that can be used in a labeling task. For example, an image classification task where images are labeled as `dog` or `cat` must reference an AnnotationSpec for `dog` and an AnnotationSpec for `cat`. # Label of the event in this annotation. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 445 | "description": "A String", # Optional. User-provided description of the annotation specification. The description can be up to 10,000 characters long. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 446 | "displayName": "A String", # Required. The display name of the AnnotationSpec. Maximum of 64 characters. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 447 | "index": 42, # Output only. This is the integer index of the AnnotationSpec. The index for the whole AnnotationSpecSet is sequential starting from 0. For example, an AnnotationSpecSet with classes `dog` and `cat`, might contain one AnnotationSpec with `{ display_name: "dog", index: 0 }` and one AnnotationSpec with `{ display_name: "cat", index: 1 }`. This is especially useful for model training as it encodes the string labels into numeric values. |
| 448 | }, |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 449 | }, |
| 450 | }, |
| 451 | }, |
| 452 | ], |
| 453 | "textPayload": { # Container of information about a piece of text. # The text payload, a container of the text content. |
| 454 | "textContent": "A String", # Text content. |
| 455 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 456 | "name": "A String", # Output only. Name of the example, in format of: projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/ {annotated_dataset_id}/examples/{example_id} |
| 457 | "imagePayload": { # Container of information about an image. # The image payload, a container of the image bytes/uri. |
| 458 | "signedUri": "A String", # Signed uri of the image file in the service bucket. |
| 459 | "imageThumbnail": "A String", # A byte string of a thumbnail image. |
| 460 | "mimeType": "A String", # Image format. |
| 461 | "imageUri": "A String", # Image uri from the user bucket. |
| 462 | }, |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 463 | "videoPayload": { # Container of information of a video. # The video payload, a container of the video uri. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 464 | "mimeType": "A String", # Video format. |
| 465 | "videoUri": "A String", # Video uri from the user bucket. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 466 | "signedUri": "A String", # Signed uri of the video file in the service bucket. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 467 | "videoThumbnails": [ # The list of video thumbnails. |
| 468 | { # Container of information of a video thumbnail. |
| 469 | "timeOffset": "A String", # Time offset relative to the beginning of the video, corresponding to the video frame where the thumbnail has been extracted from. |
| 470 | "thumbnail": "A String", # A byte string of the video frame. |
| 471 | }, |
| 472 | ], |
| 473 | "frameRate": 3.14, # FPS of the video. |
| 474 | }, |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 475 | }, |
| 476 | ], |
| 477 | }, |
| 478 | ], |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 479 | "nextPageToken": "A String", # A token to retrieve next page of results. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 480 | }</pre> |
| 481 | </div> |
| 482 | |
| 483 | <div class="method"> |
| 484 | <code class="details" id="search_next">search_next(previous_request, previous_response)</code> |
| 485 | <pre>Retrieves the next page of results. |
| 486 | |
| 487 | Args: |
| 488 | previous_request: The request for the previous page. (required) |
| 489 | previous_response: The response from the request for the previous page. (required) |
| 490 | |
| 491 | Returns: |
| 492 | A request object that you can call 'execute()' on to request the next |
| 493 | page. Returns None if there are no more items in the collection. |
| 494 | </pre> |
| 495 | </div> |
| 496 | |
| 497 | </body></html> |