google-cloud-video_intelligence 1.1.5 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3cea7a7a08418a38120bd66b96432731c50fa70b999f747ad44f5d44e049a5fc
4
- data.tar.gz: 22f0012b527ac1c7f535809203337f956b2314dee943c8aae8aee737c890a01b
3
+ metadata.gz: b9f0e96541eaab13203195fee2e7d40cecee4ecdd2df605e7a8817dae29a9faf
4
+ data.tar.gz: 9ce079faaafadbeb5c4ba835d117dae5a869dd2a97fa6269e8d92b8459e10fa0
5
5
  SHA512:
6
- metadata.gz: 85977dbd6f10fd19a4ea484590f181b5a5aa3f86bc7252a93b9af7dd921333ebf1a45ffce9071fa55e43c747554681c73198e2f49e8698892623aaed64a4a617
7
- data.tar.gz: 5f22dc14d90a74a8adf86521a2098593227cda1c7ee535fd91ee481ae4e99dcf3f00a3c2213c70ca0039e9ee39c5ec182d9e4377b6e635d08c91aafed1bd4856
6
+ metadata.gz: 31cdd6e8eb56e05237cd2e9d96d1040d55b5d6f0b98b0490df854b6f55c061ca9968482719b34617591b345b65de86b121f7bd4b0682a36a0760593ab804f6a7
7
+ data.tar.gz: 43fcd20aad7cc3346455bc24720fdeaf382ccd4ac756f27dad2be822f5803a2a7b6a8af2fe591ea5b8d04dc4606d5d0cfd01f0e27bb0dbf3c1b43e573a829089
data/README.md CHANGED
@@ -25,7 +25,7 @@ $ gem install google-cloud-video_intelligence
25
25
  require "google/cloud/video_intelligence"
26
26
 
27
27
  video_intelligence_client = Google::Cloud::VideoIntelligence.new
28
- input_uri = "gs://demomaker/cat.mp4"
28
+ input_uri = "gs://cloud-samples-data/video/cat.mp4"
29
29
  features_element = :LABEL_DETECTION
30
30
  features = [features_element]
31
31
 
@@ -47,7 +47,7 @@ module Google
47
47
  # require "google/cloud/video_intelligence"
48
48
  #
49
49
  # video_intelligence_client = Google::Cloud::VideoIntelligence.new
50
- # input_uri = "gs://demomaker/cat.mp4"
50
+ # input_uri = "gs://cloud-samples-data/video/cat.mp4"
51
51
  # features_element = :LABEL_DETECTION
52
52
  # features = [features_element]
53
53
  #
@@ -49,7 +49,7 @@ module Google
49
49
  # require "google/cloud/video_intelligence"
50
50
  #
51
51
  # video_intelligence_client = Google::Cloud::VideoIntelligence.new(version: :v1)
52
- # input_uri = "gs://demomaker/cat.mp4"
52
+ # input_uri = "gs://cloud-samples-data/video/cat.mp4"
53
53
  # features_element = :LABEL_DETECTION
54
54
  # features = [features_element]
55
55
  #
@@ -80,6 +80,9 @@ module Google
80
80
  # @!attribute [rw] text_detection_config
81
81
  # @return [Google::Cloud::Videointelligence::V1::TextDetectionConfig]
82
82
  # Config for TEXT_DETECTION.
83
+ # @!attribute [rw] object_tracking_config
84
+ # @return [Google::Cloud::Videointelligence::V1::ObjectTrackingConfig]
85
+ # Config for OBJECT_TRACKING.
83
86
  class VideoContext; end
84
87
 
85
88
  # Config for LABEL_DETECTION.
@@ -98,6 +101,22 @@ module Google
98
101
  # Model to use for label detection.
99
102
  # Supported values: "builtin/stable" (the default if unset) and
100
103
  # "builtin/latest".
104
+ # @!attribute [rw] frame_confidence_threshold
105
+ # @return [Float]
106
+ # The confidence threshold we perform filtering on the labels from
107
+ # frame-level detection. If not set, it is set to 0.4 by default. The valid
108
+ # range for this threshold is [0.1, 0.9]. Any value set outside of this
109
+ # range will be clipped.
110
+ # Note: for best results please follow the default threshold. We will update
111
+ # the default threshold everytime when we release a new model.
112
+ # @!attribute [rw] video_confidence_threshold
113
+ # @return [Float]
114
+ # The confidence threshold we perform filtering on the labels from
115
+ # video-level and shot-level detections. If not set, it is set to 0.3 by
116
+ # default. The valid range for this threshold is [0.1, 0.9]. Any value set
117
+ # outside of this range will be clipped.
118
+ # Note: for best results please follow the default threshold. We will update
119
+ # the default threshold everytime when we release a new model.
101
120
  class LabelDetectionConfig; end
102
121
 
103
122
  # Config for SHOT_CHANGE_DETECTION.
@@ -127,6 +146,14 @@ module Google
127
146
  # Whether bounding boxes be included in the face annotation output.
128
147
  class FaceDetectionConfig; end
129
148
 
149
+ # Config for OBJECT_TRACKING.
150
+ # @!attribute [rw] model
151
+ # @return [String]
152
+ # Model to use for object tracking.
153
+ # Supported values: "builtin/stable" (the default if unset) and
154
+ # "builtin/latest".
155
+ class ObjectTrackingConfig; end
156
+
130
157
  # Config for TEXT_DETECTION.
131
158
  # @!attribute [rw] language_hints
132
159
  # @return [Array<String>]
@@ -135,6 +162,11 @@ module Google
135
162
  # be language code in BCP-47 format.
136
163
  #
137
164
  # Automatic language detection is performed if no hint is provided.
165
+ # @!attribute [rw] model
166
+ # @return [String]
167
+ # Model to use for text detection.
168
+ # Supported values: "builtin/stable" (the default if unset) and
169
+ # "builtin/latest".
138
170
  class TextDetectionConfig; end
139
171
 
140
172
  # Video segment.
@@ -29,6 +29,7 @@ require "google/longrunning/operations_client"
29
29
 
30
30
  require "google/cloud/videointelligence/v1/video_intelligence_pb"
31
31
  require "google/cloud/video_intelligence/v1/credentials"
32
+ require "google/cloud/video_intelligence/version"
32
33
 
33
34
  module Google
34
35
  module Cloud
@@ -136,7 +137,7 @@ module Google
136
137
  updater_proc = credentials.updater_proc
137
138
  end
138
139
 
139
- package_version = Gem.loaded_specs['google-cloud-video_intelligence'].version.version
140
+ package_version = Google::Cloud::VideoIntelligence::VERSION
140
141
 
141
142
  google_api_client = "gl-ruby/#{RUBY_VERSION}"
142
143
  google_api_client << " #{lib_name}/#{lib_version}" if lib_name
@@ -231,7 +232,7 @@ module Google
231
232
  # require "google/cloud/video_intelligence"
232
233
  #
233
234
  # video_intelligence_client = Google::Cloud::VideoIntelligence.new(version: :v1)
234
- # input_uri = "gs://demomaker/cat.mp4"
235
+ # input_uri = "gs://cloud-samples-data/video/cat.mp4"
235
236
  # features_element = :LABEL_DETECTION
236
237
  # features = [features_element]
237
238
  #
@@ -29,6 +29,7 @@ require "google/longrunning/operations_client"
29
29
 
30
30
  require "google/cloud/videointelligence/v1beta1/video_intelligence_pb"
31
31
  require "google/cloud/video_intelligence/v1beta1/credentials"
32
+ require "google/cloud/video_intelligence/version"
32
33
 
33
34
  module Google
34
35
  module Cloud
@@ -136,7 +137,7 @@ module Google
136
137
  updater_proc = credentials.updater_proc
137
138
  end
138
139
 
139
- package_version = Gem.loaded_specs['google-cloud-video_intelligence'].version.version
140
+ package_version = Google::Cloud::VideoIntelligence::VERSION
140
141
 
141
142
  google_api_client = "gl-ruby/#{RUBY_VERSION}"
142
143
  google_api_client << " #{lib_name}/#{lib_version}" if lib_name
@@ -230,7 +231,7 @@ module Google
230
231
  # require "google/cloud/video_intelligence"
231
232
  #
232
233
  # video_intelligence_client = Google::Cloud::VideoIntelligence.new(version: :v1beta1)
233
- # input_uri = "gs://demomaker/cat.mp4"
234
+ # input_uri = "gs://cloud-samples-data/video/cat.mp4"
234
235
  # features_element = :LABEL_DETECTION
235
236
  # features = [features_element]
236
237
  #
@@ -29,6 +29,7 @@ require "google/longrunning/operations_client"
29
29
 
30
30
  require "google/cloud/videointelligence/v1beta2/video_intelligence_pb"
31
31
  require "google/cloud/video_intelligence/v1beta2/credentials"
32
+ require "google/cloud/video_intelligence/version"
32
33
 
33
34
  module Google
34
35
  module Cloud
@@ -136,7 +137,7 @@ module Google
136
137
  updater_proc = credentials.updater_proc
137
138
  end
138
139
 
139
- package_version = Gem.loaded_specs['google-cloud-video_intelligence'].version.version
140
+ package_version = Google::Cloud::VideoIntelligence::VERSION
140
141
 
141
142
  google_api_client = "gl-ruby/#{RUBY_VERSION}"
142
143
  google_api_client << " #{lib_name}/#{lib_version}" if lib_name
@@ -231,7 +232,7 @@ module Google
231
232
  # require "google/cloud/video_intelligence"
232
233
  #
233
234
  # video_intelligence_client = Google::Cloud::VideoIntelligence.new(version: :v1beta2)
234
- # input_uri = "gs://demomaker/cat.mp4"
235
+ # input_uri = "gs://cloud-samples-data/video/cat.mp4"
235
236
  # features_element = :LABEL_DETECTION
236
237
  # features = [features_element]
237
238
  #
@@ -49,7 +49,7 @@ module Google
49
49
  # require "google/cloud/video_intelligence"
50
50
  #
51
51
  # video_intelligence_client = Google::Cloud::VideoIntelligence.new(version: :v1p1beta1)
52
- # input_uri = "gs://demomaker/cat.mp4"
52
+ # input_uri = "gs://cloud-samples-data/video/cat.mp4"
53
53
  # features_element = :LABEL_DETECTION
54
54
  # features = [features_element]
55
55
  #
@@ -29,6 +29,7 @@ require "google/longrunning/operations_client"
29
29
 
30
30
  require "google/cloud/videointelligence/v1p1beta1/video_intelligence_pb"
31
31
  require "google/cloud/video_intelligence/v1p1beta1/credentials"
32
+ require "google/cloud/video_intelligence/version"
32
33
 
33
34
  module Google
34
35
  module Cloud
@@ -136,7 +137,7 @@ module Google
136
137
  updater_proc = credentials.updater_proc
137
138
  end
138
139
 
139
- package_version = Gem.loaded_specs['google-cloud-video_intelligence'].version.version
140
+ package_version = Google::Cloud::VideoIntelligence::VERSION
140
141
 
141
142
  google_api_client = "gl-ruby/#{RUBY_VERSION}"
142
143
  google_api_client << " #{lib_name}/#{lib_version}" if lib_name
@@ -231,7 +232,7 @@ module Google
231
232
  # require "google/cloud/video_intelligence"
232
233
  #
233
234
  # video_intelligence_client = Google::Cloud::VideoIntelligence.new(version: :v1p1beta1)
234
- # input_uri = "gs://demomaker/cat.mp4"
235
+ # input_uri = "gs://cloud-samples-data/video/cat.mp4"
235
236
  # features_element = :LABEL_DETECTION
236
237
  # features = [features_element]
237
238
  #
@@ -49,7 +49,7 @@ module Google
49
49
  # require "google/cloud/video_intelligence"
50
50
  #
51
51
  # video_intelligence_client = Google::Cloud::VideoIntelligence.new(version: :v1p2beta1)
52
- # input_uri = "gs://demomaker/cat.mp4"
52
+ # input_uri = "gs://cloud-samples-data/video/cat.mp4"
53
53
  # features_element = :LABEL_DETECTION
54
54
  # features = [features_element]
55
55
  #
@@ -29,6 +29,7 @@ require "google/longrunning/operations_client"
29
29
 
30
30
  require "google/cloud/videointelligence/v1p2beta1/video_intelligence_pb"
31
31
  require "google/cloud/video_intelligence/v1p2beta1/credentials"
32
+ require "google/cloud/video_intelligence/version"
32
33
 
33
34
  module Google
34
35
  module Cloud
@@ -136,7 +137,7 @@ module Google
136
137
  updater_proc = credentials.updater_proc
137
138
  end
138
139
 
139
- package_version = Gem.loaded_specs['google-cloud-video_intelligence'].version.version
140
+ package_version = Google::Cloud::VideoIntelligence::VERSION
140
141
 
141
142
  google_api_client = "gl-ruby/#{RUBY_VERSION}"
142
143
  google_api_client << " #{lib_name}/#{lib_version}" if lib_name
@@ -231,7 +232,7 @@ module Google
231
232
  # require "google/cloud/video_intelligence"
232
233
  #
233
234
  # video_intelligence_client = Google::Cloud::VideoIntelligence.new(version: :v1p2beta1)
234
- # input_uri = "gs://demomaker/cat.mp4"
235
+ # input_uri = "gs://cloud-samples-data/video/cat.mp4"
235
236
  # features_element = :LABEL_DETECTION
236
237
  # features = [features_element]
237
238
  #
@@ -0,0 +1,22 @@
1
+ # Copyright 2019 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # https://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+
16
+ module Google
17
+ module Cloud
18
+ module VideoIntelligence
19
+ VERSION = "1.2.0".freeze
20
+ end
21
+ end
22
+ end
@@ -26,11 +26,14 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
26
26
  optional :face_detection_config, :message, 5, "google.cloud.videointelligence.v1.FaceDetectionConfig"
27
27
  optional :speech_transcription_config, :message, 6, "google.cloud.videointelligence.v1.SpeechTranscriptionConfig"
28
28
  optional :text_detection_config, :message, 8, "google.cloud.videointelligence.v1.TextDetectionConfig"
29
+ optional :object_tracking_config, :message, 13, "google.cloud.videointelligence.v1.ObjectTrackingConfig"
29
30
  end
30
31
  add_message "google.cloud.videointelligence.v1.LabelDetectionConfig" do
31
32
  optional :label_detection_mode, :enum, 1, "google.cloud.videointelligence.v1.LabelDetectionMode"
32
33
  optional :stationary_camera, :bool, 2
33
34
  optional :model, :string, 3
35
+ optional :frame_confidence_threshold, :float, 4
36
+ optional :video_confidence_threshold, :float, 5
34
37
  end
35
38
  add_message "google.cloud.videointelligence.v1.ShotChangeDetectionConfig" do
36
39
  optional :model, :string, 1
@@ -42,8 +45,12 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
42
45
  optional :model, :string, 1
43
46
  optional :include_bounding_boxes, :bool, 2
44
47
  end
48
+ add_message "google.cloud.videointelligence.v1.ObjectTrackingConfig" do
49
+ optional :model, :string, 1
50
+ end
45
51
  add_message "google.cloud.videointelligence.v1.TextDetectionConfig" do
46
52
  repeated :language_hints, :string, 1
53
+ optional :model, :string, 2
47
54
  end
48
55
  add_message "google.cloud.videointelligence.v1.VideoSegment" do
49
56
  optional :start_time_offset, :message, 1, "google.protobuf.Duration"
@@ -217,6 +224,7 @@ module Google
217
224
  ShotChangeDetectionConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.ShotChangeDetectionConfig").msgclass
218
225
  ExplicitContentDetectionConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.ExplicitContentDetectionConfig").msgclass
219
226
  FaceDetectionConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.FaceDetectionConfig").msgclass
227
+ ObjectTrackingConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.ObjectTrackingConfig").msgclass
220
228
  TextDetectionConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.TextDetectionConfig").msgclass
221
229
  VideoSegment = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.VideoSegment").msgclass
222
230
  LabelSegment = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.LabelSegment").msgclass
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: 1.1.5
4
+ version: 1.2.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: 2019-04-30 00:00:00.000000000 Z
11
+ date: 2019-06-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-gax
@@ -151,6 +151,7 @@ files:
151
151
  - lib/google/cloud/video_intelligence/v1p2beta1/doc/google/rpc/status.rb
152
152
  - lib/google/cloud/video_intelligence/v1p2beta1/video_intelligence_service_client.rb
153
153
  - lib/google/cloud/video_intelligence/v1p2beta1/video_intelligence_service_client_config.json
154
+ - lib/google/cloud/video_intelligence/version.rb
154
155
  - lib/google/cloud/videointelligence/v1/video_intelligence_pb.rb
155
156
  - lib/google/cloud/videointelligence/v1/video_intelligence_services_pb.rb
156
157
  - lib/google/cloud/videointelligence/v1beta1/video_intelligence_pb.rb