google-cloud-video_intelligence 2.0.3 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/google/cloud/video_intelligence.rb +1 -1
- data/lib/google/cloud/video_intelligence/v1.rb +1 -1
- data/lib/google/cloud/video_intelligence/v1/doc/google/cloud/videointelligence/v1/video_intelligence.rb +84 -2
- data/lib/google/cloud/video_intelligence/v1/video_intelligence_service_client.rb +5 -2
- data/lib/google/cloud/video_intelligence/v1beta2.rb +1 -1
- data/lib/google/cloud/video_intelligence/v1beta2/doc/google/cloud/videointelligence/v1beta2/video_intelligence.rb +2 -2
- data/lib/google/cloud/video_intelligence/v1beta2/video_intelligence_service_client.rb +5 -2
- data/lib/google/cloud/video_intelligence/v1p1beta1.rb +1 -1
- data/lib/google/cloud/video_intelligence/v1p1beta1/doc/google/cloud/videointelligence/v1p1beta1/video_intelligence.rb +2 -2
- data/lib/google/cloud/video_intelligence/v1p1beta1/video_intelligence_service_client.rb +5 -2
- data/lib/google/cloud/video_intelligence/v1p2beta1.rb +1 -1
- data/lib/google/cloud/video_intelligence/v1p2beta1/doc/google/cloud/videointelligence/v1p2beta1/video_intelligence.rb +2 -2
- data/lib/google/cloud/video_intelligence/v1p2beta1/video_intelligence_service_client.rb +5 -2
- data/lib/google/cloud/video_intelligence/version.rb +1 -1
- data/lib/google/cloud/videointelligence/v1/video_intelligence_pb.rb +34 -0
- data/lib/google/cloud/videointelligence/v1/video_intelligence_services_pb.rb +1 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3eac1a95854867ea5e7d4f7df3afdfb142ced203a8ce575ac717fe4c4acbc134
|
4
|
+
data.tar.gz: e857cde27c024efd2746ab5817246693ff9fb5291ccec3d98f15ceaf30d91df7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cf23ebda2c15325a2be79b330769760eb3e009de2708bcb918034758f52505a7faa2f1a583be94057d924602e3f553896d18bc1a48b79013dc6a9f4f18f43d41
|
7
|
+
data.tar.gz: f544aae178f6e6871bb70d3ec0b64cbf79445ee60bed6751ee39724fe084182460a0d675b048b91051c462771a04ae1353cf99385b5ec217f556531d9cc3d768
|
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Ruby Client for Cloud Video Intelligence API
|
1
|
+
# Ruby Client for Cloud Video Intelligence API
|
2
2
|
|
3
3
|
[Cloud Video Intelligence API][Product Documentation]:
|
4
4
|
Detects objects, explicit content, and scene changes in videos. It also
|
@@ -21,7 +21,7 @@ module Google
|
|
21
21
|
# rubocop:disable LineLength
|
22
22
|
|
23
23
|
##
|
24
|
-
# # Ruby Client for Cloud Video Intelligence API
|
24
|
+
# # Ruby Client for Cloud Video Intelligence API
|
25
25
|
#
|
26
26
|
# [Cloud Video Intelligence API][Product Documentation]:
|
27
27
|
# Detects objects, explicit content, and scene changes in videos. It also
|
@@ -22,7 +22,7 @@ module Google
|
|
22
22
|
# rubocop:disable LineLength
|
23
23
|
|
24
24
|
##
|
25
|
-
# # Ruby Client for Cloud Video Intelligence API
|
25
|
+
# # Ruby Client for Cloud Video Intelligence API
|
26
26
|
#
|
27
27
|
# [Cloud Video Intelligence API][Product Documentation]:
|
28
28
|
# Detects objects, explicit content, and scene changes in videos. It also
|
@@ -25,7 +25,7 @@ module Google
|
|
25
25
|
# supported, which must be specified in the following format:
|
26
26
|
# `gs://bucket-id/object-id` (other URI formats return
|
27
27
|
# {Google::Rpc::Code::INVALID_ARGUMENT}). For more information, see
|
28
|
-
# [Request URIs](https://cloud.google.com/storage/docs/
|
28
|
+
# [Request URIs](https://cloud.google.com/storage/docs/request-endpoints).
|
29
29
|
# A video URI may include wildcards in `object-id`, and thus identify
|
30
30
|
# multiple videos. Supported wildcards: '*' to match 0 or more characters;
|
31
31
|
# '?' to match 1 character. If unset, the input video should be embedded
|
@@ -48,7 +48,7 @@ module Google
|
|
48
48
|
# URIs are supported, which must be specified in the following format:
|
49
49
|
# `gs://bucket-id/object-id` (other URI formats return
|
50
50
|
# {Google::Rpc::Code::INVALID_ARGUMENT}). For more information, see
|
51
|
-
# [Request URIs](https://cloud.google.com/storage/docs/
|
51
|
+
# [Request URIs](https://cloud.google.com/storage/docs/request-endpoints).
|
52
52
|
# @!attribute [rw] location_id
|
53
53
|
# @return [String]
|
54
54
|
# Optional. Cloud region where annotation should take place. Supported cloud
|
@@ -296,6 +296,67 @@ module Google
|
|
296
296
|
# All video frames where a face was detected.
|
297
297
|
class FaceAnnotation; end
|
298
298
|
|
299
|
+
# For tracking related features.
|
300
|
+
# An object at time_offset with attributes, and located with
|
301
|
+
# normalized_bounding_box.
|
302
|
+
# @!attribute [rw] normalized_bounding_box
|
303
|
+
# @return [Google::Cloud::VideoIntelligence::V1::NormalizedBoundingBox]
|
304
|
+
# Normalized Bounding box in a frame, where the object is located.
|
305
|
+
# @!attribute [rw] time_offset
|
306
|
+
# @return [Google::Protobuf::Duration]
|
307
|
+
# Time-offset, relative to the beginning of the video,
|
308
|
+
# corresponding to the video frame for this object.
|
309
|
+
# @!attribute [rw] attributes
|
310
|
+
# @return [Array<Google::Cloud::VideoIntelligence::V1::DetectedAttribute>]
|
311
|
+
# Optional. The attributes of the object in the bounding box.
|
312
|
+
# @!attribute [rw] landmarks
|
313
|
+
# @return [Array<Google::Cloud::VideoIntelligence::V1::DetectedLandmark>]
|
314
|
+
# Optional. The detected landmarks.
|
315
|
+
class TimestampedObject; end
|
316
|
+
|
317
|
+
# A track of an object instance.
|
318
|
+
# @!attribute [rw] segment
|
319
|
+
# @return [Google::Cloud::VideoIntelligence::V1::VideoSegment]
|
320
|
+
# Video segment of a track.
|
321
|
+
# @!attribute [rw] timestamped_objects
|
322
|
+
# @return [Array<Google::Cloud::VideoIntelligence::V1::TimestampedObject>]
|
323
|
+
# The object with timestamp and attributes per frame in the track.
|
324
|
+
# @!attribute [rw] attributes
|
325
|
+
# @return [Array<Google::Cloud::VideoIntelligence::V1::DetectedAttribute>]
|
326
|
+
# Optional. Attributes in the track level.
|
327
|
+
# @!attribute [rw] confidence
|
328
|
+
# @return [Float]
|
329
|
+
# Optional. The confidence score of the tracked object.
|
330
|
+
class Track; end
|
331
|
+
|
332
|
+
# A generic detected attribute represented by name in string format.
|
333
|
+
# @!attribute [rw] name
|
334
|
+
# @return [String]
|
335
|
+
# The name of the attribute, i.e. glasses, dark_glasses, mouth_open etc.
|
336
|
+
# A full list of supported type names will be provided in the document.
|
337
|
+
# @!attribute [rw] confidence
|
338
|
+
# @return [Float]
|
339
|
+
# Detected attribute confidence. Range [0, 1].
|
340
|
+
# @!attribute [rw] value
|
341
|
+
# @return [String]
|
342
|
+
# Text value of the detection result. For example, the value for "HairColor"
|
343
|
+
# can be "black", "blonde", etc.
|
344
|
+
class DetectedAttribute; end
|
345
|
+
|
346
|
+
# A generic detected landmark represented by name in string format and a 2D
|
347
|
+
# location.
|
348
|
+
# @!attribute [rw] name
|
349
|
+
# @return [String]
|
350
|
+
# The name of this landmark, i.e. left_hand, right_shoulder.
|
351
|
+
# @!attribute [rw] point
|
352
|
+
# @return [Google::Cloud::VideoIntelligence::V1::NormalizedVertex]
|
353
|
+
# The 2D point of the detected landmark using the normalized image
|
354
|
+
# coordindate system. The normalized coordinates have the range from 0 to 1.
|
355
|
+
# @!attribute [rw] confidence
|
356
|
+
# @return [Float]
|
357
|
+
# The confidence score of the detected landmark. Range [0, 1].
|
358
|
+
class DetectedLandmark; end
|
359
|
+
|
299
360
|
# Annotation results for a single video.
|
300
361
|
# @!attribute [rw] input_uri
|
301
362
|
# @return [String]
|
@@ -351,6 +412,9 @@ module Google
|
|
351
412
|
# @!attribute [rw] object_annotations
|
352
413
|
# @return [Array<Google::Cloud::VideoIntelligence::V1::ObjectTrackingAnnotation>]
|
353
414
|
# Annotations for list of objects detected and tracked in video.
|
415
|
+
# @!attribute [rw] logo_recognition_annotations
|
416
|
+
# @return [Array<Google::Cloud::VideoIntelligence::V1::LogoRecognitionAnnotation>]
|
417
|
+
# Annotations for list of logos detected, tracked and recognized in video.
|
354
418
|
# @!attribute [rw] error
|
355
419
|
# @return [Google::Rpc::Status]
|
356
420
|
# If set, indicates an error. Note that for a single `AnnotateVideoRequest`
|
@@ -639,6 +703,21 @@ module Google
|
|
639
703
|
# Streaming mode: it can only be one ObjectTrackingFrame message in frames.
|
640
704
|
class ObjectTrackingAnnotation; end
|
641
705
|
|
706
|
+
# Annotation corresponding to one detected, tracked and recognized logo class.
|
707
|
+
# @!attribute [rw] entity
|
708
|
+
# @return [Google::Cloud::VideoIntelligence::V1::Entity]
|
709
|
+
# Entity category information to specify the logo class that all the logo
|
710
|
+
# tracks within this LogoRecognitionAnnotation are recognized as.
|
711
|
+
# @!attribute [rw] tracks
|
712
|
+
# @return [Array<Google::Cloud::VideoIntelligence::V1::Track>]
|
713
|
+
# All logo tracks where the recognized logo appears. Each track corresponds
|
714
|
+
# to one logo instance appearing in consecutive frames.
|
715
|
+
# @!attribute [rw] segments
|
716
|
+
# @return [Array<Google::Cloud::VideoIntelligence::V1::VideoSegment>]
|
717
|
+
# All video segments where the recognized logo appears. There might be
|
718
|
+
# multiple instances of the same logo class appearing in one VideoSegment.
|
719
|
+
class LogoRecognitionAnnotation; end
|
720
|
+
|
642
721
|
# Video annotation feature.
|
643
722
|
module Feature
|
644
723
|
# Unspecified.
|
@@ -664,6 +743,9 @@ module Google
|
|
664
743
|
|
665
744
|
# Object detection and tracking.
|
666
745
|
OBJECT_TRACKING = 9
|
746
|
+
|
747
|
+
# Logo detection, tracking, and recognition.
|
748
|
+
LOGO_RECOGNITION = 12
|
667
749
|
end
|
668
750
|
|
669
751
|
# Label detection mode.
|
@@ -155,6 +155,9 @@ module Google
|
|
155
155
|
google_api_client.freeze
|
156
156
|
|
157
157
|
headers = { :"x-goog-api-client" => google_api_client }
|
158
|
+
if credentials.respond_to?(:quota_project_id) && credentials.quota_project_id
|
159
|
+
headers[:"x-goog-user-project"] = credentials.quota_project_id
|
160
|
+
end
|
158
161
|
headers.merge!(metadata) unless metadata.nil?
|
159
162
|
client_config_file = Pathname.new(__dir__).join(
|
160
163
|
"video_intelligence_service_client_config.json"
|
@@ -208,7 +211,7 @@ module Google
|
|
208
211
|
# supported, which must be specified in the following format:
|
209
212
|
# `gs://bucket-id/object-id` (other URI formats return
|
210
213
|
# {Google::Rpc::Code::INVALID_ARGUMENT}). For more information, see
|
211
|
-
# [Request URIs](https://cloud.google.com/storage/docs/
|
214
|
+
# [Request URIs](https://cloud.google.com/storage/docs/request-endpoints).
|
212
215
|
# A video URI may include wildcards in `object-id`, and thus identify
|
213
216
|
# multiple videos. Supported wildcards: '*' to match 0 or more characters;
|
214
217
|
# '?' to match 1 character. If unset, the input video should be embedded
|
@@ -227,7 +230,7 @@ module Google
|
|
227
230
|
# URIs are supported, which must be specified in the following format:
|
228
231
|
# `gs://bucket-id/object-id` (other URI formats return
|
229
232
|
# {Google::Rpc::Code::INVALID_ARGUMENT}). For more information, see
|
230
|
-
# [Request URIs](https://cloud.google.com/storage/docs/
|
233
|
+
# [Request URIs](https://cloud.google.com/storage/docs/request-endpoints).
|
231
234
|
# @param location_id [String]
|
232
235
|
# Optional. Cloud region where annotation should take place. Supported cloud
|
233
236
|
# regions: `us-east1`, `us-west1`, `europe-west1`, `asia-east1`. If no region
|
@@ -23,7 +23,7 @@ module Google
|
|
23
23
|
# rubocop:disable LineLength
|
24
24
|
|
25
25
|
##
|
26
|
-
# # Ruby Client for Google Cloud Video Intelligence API
|
26
|
+
# # Ruby Client for Google Cloud Video Intelligence API
|
27
27
|
#
|
28
28
|
# [Google Cloud Video Intelligence API][Product Documentation]:
|
29
29
|
# Detects objects, explicit content, and scene changes in videos. It also
|
@@ -25,7 +25,7 @@ module Google
|
|
25
25
|
# supported, which must be specified in the following format:
|
26
26
|
# `gs://bucket-id/object-id` (other URI formats return
|
27
27
|
# {Google::Rpc::Code::INVALID_ARGUMENT}). For
|
28
|
-
# more information, see [Request URIs](https://cloud.google.com/storage/docs/
|
28
|
+
# more information, see [Request URIs](https://cloud.google.com/storage/docs/request-endpoints). A video
|
29
29
|
# URI may include wildcards in `object-id`, and thus identify multiple
|
30
30
|
# videos. Supported wildcards: '*' to match 0 or more characters;
|
31
31
|
# '?' to match 1 character. If unset, the input video should be embedded
|
@@ -48,7 +48,7 @@ module Google
|
|
48
48
|
# URIs are supported, which must be specified in the following format:
|
49
49
|
# `gs://bucket-id/object-id` (other URI formats return
|
50
50
|
# {Google::Rpc::Code::INVALID_ARGUMENT}). For
|
51
|
-
# more information, see [Request URIs](https://cloud.google.com/storage/docs/
|
51
|
+
# more information, see [Request URIs](https://cloud.google.com/storage/docs/request-endpoints).
|
52
52
|
# @!attribute [rw] location_id
|
53
53
|
# @return [String]
|
54
54
|
# Optional. Cloud region where annotation should take place. Supported cloud
|
@@ -155,6 +155,9 @@ module Google
|
|
155
155
|
google_api_client.freeze
|
156
156
|
|
157
157
|
headers = { :"x-goog-api-client" => google_api_client }
|
158
|
+
if credentials.respond_to?(:quota_project_id) && credentials.quota_project_id
|
159
|
+
headers[:"x-goog-user-project"] = credentials.quota_project_id
|
160
|
+
end
|
158
161
|
headers.merge!(metadata) unless metadata.nil?
|
159
162
|
client_config_file = Pathname.new(__dir__).join(
|
160
163
|
"video_intelligence_service_client_config.json"
|
@@ -206,7 +209,7 @@ module Google
|
|
206
209
|
# supported, which must be specified in the following format:
|
207
210
|
# `gs://bucket-id/object-id` (other URI formats return
|
208
211
|
# {Google::Rpc::Code::INVALID_ARGUMENT}). For
|
209
|
-
# more information, see [Request URIs](https://cloud.google.com/storage/docs/
|
212
|
+
# more information, see [Request URIs](https://cloud.google.com/storage/docs/request-endpoints). A video
|
210
213
|
# URI may include wildcards in `object-id`, and thus identify multiple
|
211
214
|
# videos. Supported wildcards: '*' to match 0 or more characters;
|
212
215
|
# '?' to match 1 character. If unset, the input video should be embedded
|
@@ -227,7 +230,7 @@ module Google
|
|
227
230
|
# URIs are supported, which must be specified in the following format:
|
228
231
|
# `gs://bucket-id/object-id` (other URI formats return
|
229
232
|
# {Google::Rpc::Code::INVALID_ARGUMENT}). For
|
230
|
-
# more information, see [Request URIs](https://cloud.google.com/storage/docs/
|
233
|
+
# more information, see [Request URIs](https://cloud.google.com/storage/docs/request-endpoints).
|
231
234
|
# @param location_id [String]
|
232
235
|
# Optional. Cloud region where annotation should take place. Supported cloud
|
233
236
|
# regions: `us-east1`, `us-west1`, `europe-west1`, `asia-east1`. If no region
|
@@ -23,7 +23,7 @@ module Google
|
|
23
23
|
# rubocop:disable LineLength
|
24
24
|
|
25
25
|
##
|
26
|
-
# # Ruby Client for Cloud Video Intelligence API
|
26
|
+
# # Ruby Client for Cloud Video Intelligence API
|
27
27
|
#
|
28
28
|
# [Cloud Video Intelligence API][Product Documentation]:
|
29
29
|
# Detects objects, explicit content, and scene changes in videos. It also
|
@@ -25,7 +25,7 @@ module Google
|
|
25
25
|
# supported, which must be specified in the following format:
|
26
26
|
# `gs://bucket-id/object-id` (other URI formats return
|
27
27
|
# {Google::Rpc::Code::INVALID_ARGUMENT}). For more information, see
|
28
|
-
# [Request URIs](https://cloud.google.com/storage/docs/
|
28
|
+
# [Request URIs](https://cloud.google.com/storage/docs/request-endpoints).
|
29
29
|
# A video URI may include wildcards in `object-id`, and thus identify
|
30
30
|
# multiple videos. Supported wildcards: '*' to match 0 or more characters;
|
31
31
|
# '?' to match 1 character. If unset, the input video should be embedded
|
@@ -48,7 +48,7 @@ module Google
|
|
48
48
|
# URIs are supported, which must be specified in the following format:
|
49
49
|
# `gs://bucket-id/object-id` (other URI formats return
|
50
50
|
# {Google::Rpc::Code::INVALID_ARGUMENT}). For more information, see
|
51
|
-
# [Request URIs](https://cloud.google.com/storage/docs/
|
51
|
+
# [Request URIs](https://cloud.google.com/storage/docs/request-endpoints).
|
52
52
|
# @!attribute [rw] location_id
|
53
53
|
# @return [String]
|
54
54
|
# Optional. Cloud region where annotation should take place. Supported cloud
|
@@ -155,6 +155,9 @@ module Google
|
|
155
155
|
google_api_client.freeze
|
156
156
|
|
157
157
|
headers = { :"x-goog-api-client" => google_api_client }
|
158
|
+
if credentials.respond_to?(:quota_project_id) && credentials.quota_project_id
|
159
|
+
headers[:"x-goog-user-project"] = credentials.quota_project_id
|
160
|
+
end
|
158
161
|
headers.merge!(metadata) unless metadata.nil?
|
159
162
|
client_config_file = Pathname.new(__dir__).join(
|
160
163
|
"video_intelligence_service_client_config.json"
|
@@ -206,7 +209,7 @@ module Google
|
|
206
209
|
# supported, which must be specified in the following format:
|
207
210
|
# `gs://bucket-id/object-id` (other URI formats return
|
208
211
|
# {Google::Rpc::Code::INVALID_ARGUMENT}). For more information, see
|
209
|
-
# [Request URIs](https://cloud.google.com/storage/docs/
|
212
|
+
# [Request URIs](https://cloud.google.com/storage/docs/request-endpoints).
|
210
213
|
# A video URI may include wildcards in `object-id`, and thus identify
|
211
214
|
# multiple videos. Supported wildcards: '*' to match 0 or more characters;
|
212
215
|
# '?' to match 1 character. If unset, the input video should be embedded
|
@@ -227,7 +230,7 @@ module Google
|
|
227
230
|
# URIs are supported, which must be specified in the following format:
|
228
231
|
# `gs://bucket-id/object-id` (other URI formats return
|
229
232
|
# {Google::Rpc::Code::INVALID_ARGUMENT}). For more information, see
|
230
|
-
# [Request URIs](https://cloud.google.com/storage/docs/
|
233
|
+
# [Request URIs](https://cloud.google.com/storage/docs/request-endpoints).
|
231
234
|
# @param location_id [String]
|
232
235
|
# Optional. Cloud region where annotation should take place. Supported cloud
|
233
236
|
# regions: `us-east1`, `us-west1`, `europe-west1`, `asia-east1`. If no region
|
@@ -23,7 +23,7 @@ module Google
|
|
23
23
|
# rubocop:disable LineLength
|
24
24
|
|
25
25
|
##
|
26
|
-
# # Ruby Client for Cloud Video Intelligence API
|
26
|
+
# # Ruby Client for Cloud Video Intelligence API
|
27
27
|
#
|
28
28
|
# [Cloud Video Intelligence API][Product Documentation]:
|
29
29
|
# Detects objects, explicit content, and scene changes in videos. It also
|
@@ -25,7 +25,7 @@ module Google
|
|
25
25
|
# supported, which must be specified in the following format:
|
26
26
|
# `gs://bucket-id/object-id` (other URI formats return
|
27
27
|
# {Google::Rpc::Code::INVALID_ARGUMENT}). For more information, see
|
28
|
-
# [Request URIs](https://cloud.google.com/storage/docs/
|
28
|
+
# [Request URIs](https://cloud.google.com/storage/docs/request-endpoints).
|
29
29
|
# A video URI may include wildcards in `object-id`, and thus identify
|
30
30
|
# multiple videos. Supported wildcards: '*' to match 0 or more characters;
|
31
31
|
# '?' to match 1 character. If unset, the input video should be embedded
|
@@ -48,7 +48,7 @@ module Google
|
|
48
48
|
# URIs are supported, which must be specified in the following format:
|
49
49
|
# `gs://bucket-id/object-id` (other URI formats return
|
50
50
|
# {Google::Rpc::Code::INVALID_ARGUMENT}). For more information, see
|
51
|
-
# [Request URIs](https://cloud.google.com/storage/docs/
|
51
|
+
# [Request URIs](https://cloud.google.com/storage/docs/request-endpoints).
|
52
52
|
# @!attribute [rw] location_id
|
53
53
|
# @return [String]
|
54
54
|
# Optional. Cloud region where annotation should take place. Supported cloud
|
@@ -155,6 +155,9 @@ module Google
|
|
155
155
|
google_api_client.freeze
|
156
156
|
|
157
157
|
headers = { :"x-goog-api-client" => google_api_client }
|
158
|
+
if credentials.respond_to?(:quota_project_id) && credentials.quota_project_id
|
159
|
+
headers[:"x-goog-user-project"] = credentials.quota_project_id
|
160
|
+
end
|
158
161
|
headers.merge!(metadata) unless metadata.nil?
|
159
162
|
client_config_file = Pathname.new(__dir__).join(
|
160
163
|
"video_intelligence_service_client_config.json"
|
@@ -206,7 +209,7 @@ module Google
|
|
206
209
|
# supported, which must be specified in the following format:
|
207
210
|
# `gs://bucket-id/object-id` (other URI formats return
|
208
211
|
# {Google::Rpc::Code::INVALID_ARGUMENT}). For more information, see
|
209
|
-
# [Request URIs](https://cloud.google.com/storage/docs/
|
212
|
+
# [Request URIs](https://cloud.google.com/storage/docs/request-endpoints).
|
210
213
|
# A video URI may include wildcards in `object-id`, and thus identify
|
211
214
|
# multiple videos. Supported wildcards: '*' to match 0 or more characters;
|
212
215
|
# '?' to match 1 character. If unset, the input video should be embedded
|
@@ -227,7 +230,7 @@ module Google
|
|
227
230
|
# URIs are supported, which must be specified in the following format:
|
228
231
|
# `gs://bucket-id/object-id` (other URI formats return
|
229
232
|
# {Google::Rpc::Code::INVALID_ARGUMENT}). For more information, see
|
230
|
-
# [Request URIs](https://cloud.google.com/storage/docs/
|
233
|
+
# [Request URIs](https://cloud.google.com/storage/docs/request-endpoints).
|
231
234
|
# @param location_id [String]
|
232
235
|
# Optional. Cloud region where annotation should take place. Supported cloud
|
233
236
|
# regions: `us-east1`, `us-west1`, `europe-west1`, `asia-east1`. If no region
|
@@ -102,6 +102,28 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
102
102
|
repeated :segments, :message, 2, "google.cloud.videointelligence.v1.FaceSegment"
|
103
103
|
repeated :frames, :message, 3, "google.cloud.videointelligence.v1.FaceFrame"
|
104
104
|
end
|
105
|
+
add_message "google.cloud.videointelligence.v1.TimestampedObject" do
|
106
|
+
optional :normalized_bounding_box, :message, 1, "google.cloud.videointelligence.v1.NormalizedBoundingBox"
|
107
|
+
optional :time_offset, :message, 2, "google.protobuf.Duration"
|
108
|
+
repeated :attributes, :message, 3, "google.cloud.videointelligence.v1.DetectedAttribute"
|
109
|
+
repeated :landmarks, :message, 4, "google.cloud.videointelligence.v1.DetectedLandmark"
|
110
|
+
end
|
111
|
+
add_message "google.cloud.videointelligence.v1.Track" do
|
112
|
+
optional :segment, :message, 1, "google.cloud.videointelligence.v1.VideoSegment"
|
113
|
+
repeated :timestamped_objects, :message, 2, "google.cloud.videointelligence.v1.TimestampedObject"
|
114
|
+
repeated :attributes, :message, 3, "google.cloud.videointelligence.v1.DetectedAttribute"
|
115
|
+
optional :confidence, :float, 4
|
116
|
+
end
|
117
|
+
add_message "google.cloud.videointelligence.v1.DetectedAttribute" do
|
118
|
+
optional :name, :string, 1
|
119
|
+
optional :confidence, :float, 2
|
120
|
+
optional :value, :string, 3
|
121
|
+
end
|
122
|
+
add_message "google.cloud.videointelligence.v1.DetectedLandmark" do
|
123
|
+
optional :name, :string, 1
|
124
|
+
optional :point, :message, 2, "google.cloud.videointelligence.v1.NormalizedVertex"
|
125
|
+
optional :confidence, :float, 3
|
126
|
+
end
|
105
127
|
add_message "google.cloud.videointelligence.v1.VideoAnnotationResults" do
|
106
128
|
optional :input_uri, :string, 1
|
107
129
|
optional :segment, :message, 10, "google.cloud.videointelligence.v1.VideoSegment"
|
@@ -116,6 +138,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
116
138
|
repeated :speech_transcriptions, :message, 11, "google.cloud.videointelligence.v1.SpeechTranscription"
|
117
139
|
repeated :text_annotations, :message, 12, "google.cloud.videointelligence.v1.TextAnnotation"
|
118
140
|
repeated :object_annotations, :message, 14, "google.cloud.videointelligence.v1.ObjectTrackingAnnotation"
|
141
|
+
repeated :logo_recognition_annotations, :message, 19, "google.cloud.videointelligence.v1.LogoRecognitionAnnotation"
|
119
142
|
optional :error, :message, 9, "google.rpc.Status"
|
120
143
|
end
|
121
144
|
add_message "google.cloud.videointelligence.v1.AnnotateVideoResponse" do
|
@@ -195,6 +218,11 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
195
218
|
optional :track_id, :int64, 5
|
196
219
|
end
|
197
220
|
end
|
221
|
+
add_message "google.cloud.videointelligence.v1.LogoRecognitionAnnotation" do
|
222
|
+
optional :entity, :message, 1, "google.cloud.videointelligence.v1.Entity"
|
223
|
+
repeated :tracks, :message, 2, "google.cloud.videointelligence.v1.Track"
|
224
|
+
repeated :segments, :message, 3, "google.cloud.videointelligence.v1.VideoSegment"
|
225
|
+
end
|
198
226
|
add_enum "google.cloud.videointelligence.v1.Feature" do
|
199
227
|
value :FEATURE_UNSPECIFIED, 0
|
200
228
|
value :LABEL_DETECTION, 1
|
@@ -204,6 +232,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
204
232
|
value :SPEECH_TRANSCRIPTION, 6
|
205
233
|
value :TEXT_DETECTION, 7
|
206
234
|
value :OBJECT_TRACKING, 9
|
235
|
+
value :LOGO_RECOGNITION, 12
|
207
236
|
end
|
208
237
|
add_enum "google.cloud.videointelligence.v1.LabelDetectionMode" do
|
209
238
|
value :LABEL_DETECTION_MODE_UNSPECIFIED, 0
|
@@ -248,6 +277,10 @@ module Google::Cloud::VideoIntelligence::V1
|
|
248
277
|
FaceSegment = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.FaceSegment").msgclass
|
249
278
|
FaceFrame = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.FaceFrame").msgclass
|
250
279
|
FaceAnnotation = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.FaceAnnotation").msgclass
|
280
|
+
TimestampedObject = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.TimestampedObject").msgclass
|
281
|
+
Track = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.Track").msgclass
|
282
|
+
DetectedAttribute = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.DetectedAttribute").msgclass
|
283
|
+
DetectedLandmark = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.DetectedLandmark").msgclass
|
251
284
|
VideoAnnotationResults = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.VideoAnnotationResults").msgclass
|
252
285
|
AnnotateVideoResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.AnnotateVideoResponse").msgclass
|
253
286
|
VideoAnnotationProgress = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.VideoAnnotationProgress").msgclass
|
@@ -264,6 +297,7 @@ module Google::Cloud::VideoIntelligence::V1
|
|
264
297
|
TextAnnotation = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.TextAnnotation").msgclass
|
265
298
|
ObjectTrackingFrame = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.ObjectTrackingFrame").msgclass
|
266
299
|
ObjectTrackingAnnotation = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.ObjectTrackingAnnotation").msgclass
|
300
|
+
LogoRecognitionAnnotation = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.LogoRecognitionAnnotation").msgclass
|
267
301
|
Feature = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.Feature").enummodule
|
268
302
|
LabelDetectionMode = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.LabelDetectionMode").enummodule
|
269
303
|
Likelihood = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.Likelihood").enummodule
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# Source: google/cloud/videointelligence/v1/video_intelligence.proto for package 'Google::Cloud::VideoIntelligence::V1'
|
3
3
|
# Original file comments:
|
4
|
-
# Copyright
|
4
|
+
# Copyright 2020 Google LLC
|
5
5
|
#
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
7
7
|
# you may not use this file except in compliance with the License.
|
@@ -15,7 +15,6 @@
|
|
15
15
|
# See the License for the specific language governing permissions and
|
16
16
|
# limitations under the License.
|
17
17
|
#
|
18
|
-
#
|
19
18
|
|
20
19
|
|
21
20
|
require 'grpc'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-video_intelligence
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0
|
4
|
+
version: 2.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-03-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-gax
|