Skip to content

Commit befc9fd

Browse files
dpebotJustinBeckwith
authored andcommitted
chore: minor generator changes (#110)
1 parent ec069a4 commit befc9fd

File tree

2 files changed

+17
-17
lines changed

2 files changed

+17
-17
lines changed

packages/google-cloud-videointelligence/protos/google/cloud/videointelligence/v1p2beta1/video_intelligence.proto

+8-8
Original file line numberDiff line numberDiff line change
@@ -352,6 +352,13 @@ message NormalizedBoundingPoly {
352352
message TextSegment {
353353
// Video segment where a text snippet was detected.
354354
VideoSegment segment = 1;
355+
356+
// Confidence for the track of detected text. It is calculated as the highest
357+
// over all frames where OCR detected text appears.
358+
float confidence = 2;
359+
360+
// Information related to the frames where OCR detected text appears.
361+
repeated TextFrame frames = 3;
355362
}
356363

357364
// Video frame level annotation results for text annotation (OCR).
@@ -372,15 +379,8 @@ message TextAnnotation {
372379
// The detected text.
373380
string text = 1;
374381

375-
// Confidence for the track of detected text. It is calculated as the highest
376-
// over all frames where OCR detected text appears.
377-
float confidence = 2;
378-
379-
// Information related to the frames where OCR detected text appears.
380-
repeated TextFrame frames = 3;
381-
382382
// All video segments where OCR detected text appears.
383-
repeated TextSegment segments = 4;
383+
repeated TextSegment segments = 2;
384384
}
385385

386386
// Video frame level annotations for object detection and tracking. This field

packages/google-cloud-videointelligence/src/v1p2beta1/doc/google/cloud/videointelligence/v1p2beta1/doc_video_intelligence.js

+9-9
Original file line numberDiff line numberDiff line change
@@ -550,6 +550,15 @@ const NormalizedBoundingPoly = {
550550
*
551551
* This object should have the same structure as [VideoSegment]{@link google.cloud.videointelligence.v1p2beta1.VideoSegment}
552552
*
553+
* @property {number} confidence
554+
* Confidence for the track of detected text. It is calculated as the highest
555+
* over all frames where OCR detected text appears.
556+
*
557+
* @property {Object[]} frames
558+
* Information related to the frames where OCR detected text appears.
559+
*
560+
* This object should have the same structure as [TextFrame]{@link google.cloud.videointelligence.v1p2beta1.TextFrame}
561+
*
553562
* @typedef TextSegment
554563
* @memberof google.cloud.videointelligence.v1p2beta1
555564
* @see [google.cloud.videointelligence.v1p2beta1.TextSegment definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/cloud/videointelligence/v1p2beta1/video_intelligence.proto}
@@ -589,15 +598,6 @@ const TextFrame = {
589598
* @property {string} text
590599
* The detected text.
591600
*
592-
* @property {number} confidence
593-
* Confidence for the track of detected text. It is calculated as the highest
594-
* over all frames where OCR detected text appears.
595-
*
596-
* @property {Object[]} frames
597-
* Information related to the frames where OCR detected text appears.
598-
*
599-
* This object should have the same structure as [TextFrame]{@link google.cloud.videointelligence.v1p2beta1.TextFrame}
600-
*
601601
* @property {Object[]} segments
602602
* All video segments where OCR detected text appears.
603603
*

0 commit comments

Comments
 (0)