google-cloud-vision 0.32.0 → 0.32.1

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: 9f8e0d1755f74466a7f690802a403fe5188c3fea88c7909837e1064d892a936a
4
- data.tar.gz: c2964cf1822eb5a8322a77d375330bc08c9387556104b65ed15d082965a6d3f6
3
+ metadata.gz: 76eaa6b60cb55404c883bb29bdf6c272da64a8c9f2ebe2dbe38126b3934fa583
4
+ data.tar.gz: 726bca72dbd50840f4d739f04bb48700150c05ec44d5bcef8aaf678faea278c9
5
5
  SHA512:
6
- metadata.gz: 4a0b49386304f05fc46c76b1983912e1499379925485503f49c6481d7c577fcedfd70a66ceed9b10211debfdbbe6705db1ca3a187e3929367b673f46fa66ecab
7
- data.tar.gz: d59ff7b92bcae64f6f20714ea9609ef9e73c4bb591692e6ebb7770172cbadd1ff7613a4b4574828a0279b084d83cf1a290a123998b45718bf0b97f332c475973
6
+ metadata.gz: e06bc961760c8493701907553e31fe03b2999c4c96d1c24499cae36f7f8acaaceaecc44c344ee6b66920c603f6a339c082c7b9dc107f2f5d1c3970b5c2f131c2
7
+ data.tar.gz: 524c14e7bf7e0e4df5d04903df0dd5fef1b409d9aa4ac445b8f3cd4f97b311ce5359bebeb025f4afe774d258ed3b76a81f0f9ae38525bc48df76cc7d1a0b7d6b
@@ -84,17 +84,24 @@ module Google
84
84
  if async
85
85
  requests.map! do |request|
86
86
  {
87
- input_config: request[:image],
87
+ input_config: {
88
+ gcs_source: {
89
+ uri: request[:image][:source][:gcs_image_uri]
90
+ },
91
+ mime_type: mime_type
92
+ },
88
93
  features: request[:features],
89
94
  output_config: {
90
- gcs_destination: destination,
95
+ gcs_destination: {
96
+ uri: destination
97
+ },
91
98
  batch_size: batch_size
92
99
  }
93
100
  }
94
101
  end
95
- async_batch_annotate_files requests, options
102
+ async_batch_annotate_files requests, options: options
96
103
  else
97
- batch_annotate_images requests, options, &blk
104
+ batch_annotate_images requests, options: options, &blk
98
105
  end
99
106
  end
100
107
 
@@ -161,17 +168,24 @@ module Google
161
168
  if async
162
169
  requests.map! do |request|
163
170
  {
164
- input_config: request[:image],
171
+ input_config: {
172
+ gcs_source: {
173
+ uri: request[:image][:source][:gcs_image_uri]
174
+ },
175
+ mime_type: mime_type
176
+ },
165
177
  features: request[:features],
166
178
  output_config: {
167
- gcs_destination: destination,
179
+ gcs_destination: {
180
+ uri: destination
181
+ },
168
182
  batch_size: batch_size
169
183
  }
170
184
  }
171
185
  end
172
- async_batch_annotate_files requests, options
186
+ async_batch_annotate_files requests, options: options
173
187
  else
174
- batch_annotate_images requests, options, &blk
188
+ batch_annotate_images requests, options: options, &blk
175
189
  end
176
190
  end
177
191
 
@@ -238,17 +252,24 @@ module Google
238
252
  if async
239
253
  requests.map! do |request|
240
254
  {
241
- input_config: request[:image],
255
+ input_config: {
256
+ gcs_source: {
257
+ uri: request[:image][:source][:gcs_image_uri]
258
+ },
259
+ mime_type: mime_type
260
+ },
242
261
  features: request[:features],
243
262
  output_config: {
244
- gcs_destination: destination,
263
+ gcs_destination: {
264
+ uri: destination
265
+ },
245
266
  batch_size: batch_size
246
267
  }
247
268
  }
248
269
  end
249
- async_batch_annotate_files requests, options
270
+ async_batch_annotate_files requests, options: options
250
271
  else
251
- batch_annotate_images requests, options, &blk
272
+ batch_annotate_images requests, options: options, &blk
252
273
  end
253
274
  end
254
275
 
@@ -315,17 +336,24 @@ module Google
315
336
  if async
316
337
  requests.map! do |request|
317
338
  {
318
- input_config: request[:image],
339
+ input_config: {
340
+ gcs_source: {
341
+ uri: request[:image][:source][:gcs_image_uri]
342
+ },
343
+ mime_type: mime_type
344
+ },
319
345
  features: request[:features],
320
346
  output_config: {
321
- gcs_destination: destination,
347
+ gcs_destination: {
348
+ uri: destination
349
+ },
322
350
  batch_size: batch_size
323
351
  }
324
352
  }
325
353
  end
326
- async_batch_annotate_files requests, options
354
+ async_batch_annotate_files requests, options: options
327
355
  else
328
- batch_annotate_images requests, options, &blk
356
+ batch_annotate_images requests, options: options, &blk
329
357
  end
330
358
  end
331
359
 
@@ -392,17 +420,24 @@ module Google
392
420
  if async
393
421
  requests.map! do |request|
394
422
  {
395
- input_config: request[:image],
423
+ input_config: {
424
+ gcs_source: {
425
+ uri: request[:image][:source][:gcs_image_uri]
426
+ },
427
+ mime_type: mime_type
428
+ },
396
429
  features: request[:features],
397
430
  output_config: {
398
- gcs_destination: destination,
431
+ gcs_destination: {
432
+ uri: destination
433
+ },
399
434
  batch_size: batch_size
400
435
  }
401
436
  }
402
437
  end
403
- async_batch_annotate_files requests, options
438
+ async_batch_annotate_files requests, options: options
404
439
  else
405
- batch_annotate_images requests, options, &blk
440
+ batch_annotate_images requests, options: options, &blk
406
441
  end
407
442
  end
408
443
 
@@ -469,17 +504,24 @@ module Google
469
504
  if async
470
505
  requests.map! do |request|
471
506
  {
472
- input_config: request[:image],
507
+ input_config: {
508
+ gcs_source: {
509
+ uri: request[:image][:source][:gcs_image_uri]
510
+ },
511
+ mime_type: mime_type
512
+ },
473
513
  features: request[:features],
474
514
  output_config: {
475
- gcs_destination: destination,
515
+ gcs_destination: {
516
+ uri: destination
517
+ },
476
518
  batch_size: batch_size
477
519
  }
478
520
  }
479
521
  end
480
- async_batch_annotate_files requests, options
522
+ async_batch_annotate_files requests, options: options
481
523
  else
482
- batch_annotate_images requests, options, &blk
524
+ batch_annotate_images requests, options: options, &blk
483
525
  end
484
526
  end
485
527
 
@@ -546,17 +588,24 @@ module Google
546
588
  if async
547
589
  requests.map! do |request|
548
590
  {
549
- input_config: request[:image],
591
+ input_config: {
592
+ gcs_source: {
593
+ uri: request[:image][:source][:gcs_image_uri]
594
+ },
595
+ mime_type: mime_type
596
+ },
550
597
  features: request[:features],
551
598
  output_config: {
552
- gcs_destination: destination,
599
+ gcs_destination: {
600
+ uri: destination
601
+ },
553
602
  batch_size: batch_size
554
603
  }
555
604
  }
556
605
  end
557
- async_batch_annotate_files requests, options
606
+ async_batch_annotate_files requests, options: options
558
607
  else
559
- batch_annotate_images requests, options, &blk
608
+ batch_annotate_images requests, options: options, &blk
560
609
  end
561
610
  end
562
611
 
@@ -623,17 +672,24 @@ module Google
623
672
  if async
624
673
  requests.map! do |request|
625
674
  {
626
- input_config: request[:image],
675
+ input_config: {
676
+ gcs_source: {
677
+ uri: request[:image][:source][:gcs_image_uri]
678
+ },
679
+ mime_type: mime_type
680
+ },
627
681
  features: request[:features],
628
682
  output_config: {
629
- gcs_destination: destination,
683
+ gcs_destination: {
684
+ uri: destination
685
+ },
630
686
  batch_size: batch_size
631
687
  }
632
688
  }
633
689
  end
634
- async_batch_annotate_files requests, options
690
+ async_batch_annotate_files requests, options: options
635
691
  else
636
- batch_annotate_images requests, options, &blk
692
+ batch_annotate_images requests, options: options, &blk
637
693
  end
638
694
  end
639
695
 
@@ -700,17 +756,24 @@ module Google
700
756
  if async
701
757
  requests.map! do |request|
702
758
  {
703
- input_config: request[:image],
759
+ input_config: {
760
+ gcs_source: {
761
+ uri: request[:image][:source][:gcs_image_uri]
762
+ },
763
+ mime_type: mime_type
764
+ },
704
765
  features: request[:features],
705
766
  output_config: {
706
- gcs_destination: destination,
767
+ gcs_destination: {
768
+ uri: destination
769
+ },
707
770
  batch_size: batch_size
708
771
  }
709
772
  }
710
773
  end
711
- async_batch_annotate_files requests, options
774
+ async_batch_annotate_files requests, options: options
712
775
  else
713
- batch_annotate_images requests, options, &blk
776
+ batch_annotate_images requests, options: options, &blk
714
777
  end
715
778
  end
716
779
 
@@ -777,17 +840,24 @@ module Google
777
840
  if async
778
841
  requests.map! do |request|
779
842
  {
780
- input_config: request[:image],
843
+ input_config: {
844
+ gcs_source: {
845
+ uri: request[:image][:source][:gcs_image_uri]
846
+ },
847
+ mime_type: mime_type
848
+ },
781
849
  features: request[:features],
782
850
  output_config: {
783
- gcs_destination: destination,
851
+ gcs_destination: {
852
+ uri: destination
853
+ },
784
854
  batch_size: batch_size
785
855
  }
786
856
  }
787
857
  end
788
- async_batch_annotate_files requests, options
858
+ async_batch_annotate_files requests, options: options
789
859
  else
790
- batch_annotate_images requests, options, &blk
860
+ batch_annotate_images requests, options: options, &blk
791
861
  end
792
862
  end
793
863
 
@@ -854,17 +924,24 @@ module Google
854
924
  if async
855
925
  requests.map! do |request|
856
926
  {
857
- input_config: request[:image],
927
+ input_config: {
928
+ gcs_source: {
929
+ uri: request[:image][:source][:gcs_image_uri]
930
+ },
931
+ mime_type: mime_type
932
+ },
858
933
  features: request[:features],
859
934
  output_config: {
860
- gcs_destination: destination,
935
+ gcs_destination: {
936
+ uri: destination
937
+ },
861
938
  batch_size: batch_size
862
939
  }
863
940
  }
864
941
  end
865
- async_batch_annotate_files requests, options
942
+ async_batch_annotate_files requests, options: options
866
943
  else
867
- batch_annotate_images requests, options, &blk
944
+ batch_annotate_images requests, options: options, &blk
868
945
  end
869
946
  end
870
947
 
@@ -931,17 +1008,24 @@ module Google
931
1008
  if async
932
1009
  requests.map! do |request|
933
1010
  {
934
- input_config: request[:image],
1011
+ input_config: {
1012
+ gcs_source: {
1013
+ uri: request[:image][:source][:gcs_image_uri]
1014
+ },
1015
+ mime_type: mime_type
1016
+ },
935
1017
  features: request[:features],
936
1018
  output_config: {
937
- gcs_destination: destination,
1019
+ gcs_destination: {
1020
+ uri: destination
1021
+ },
938
1022
  batch_size: batch_size
939
1023
  }
940
1024
  }
941
1025
  end
942
- async_batch_annotate_files requests, options
1026
+ async_batch_annotate_files requests, options: options
943
1027
  else
944
- batch_annotate_images requests, options, &blk
1028
+ batch_annotate_images requests, options: options, &blk
945
1029
  end
946
1030
  end
947
1031
 
@@ -84,17 +84,24 @@ module Google
84
84
  if async
85
85
  requests.map! do |request|
86
86
  {
87
- input_config: request[:image],
87
+ input_config: {
88
+ gcs_source: {
89
+ uri: request[:image][:source][:gcs_image_uri]
90
+ },
91
+ mime_type: mime_type
92
+ },
88
93
  features: request[:features],
89
94
  output_config: {
90
- gcs_destination: destination,
95
+ gcs_destination: {
96
+ uri: destination
97
+ },
91
98
  batch_size: batch_size
92
99
  }
93
100
  }
94
101
  end
95
- async_batch_annotate_files requests, options
102
+ async_batch_annotate_files requests, options: options
96
103
  else
97
- batch_annotate_images requests, options, &blk
104
+ batch_annotate_images requests, options: options, &blk
98
105
  end
99
106
  end
100
107
 
@@ -161,17 +168,24 @@ module Google
161
168
  if async
162
169
  requests.map! do |request|
163
170
  {
164
- input_config: request[:image],
171
+ input_config: {
172
+ gcs_source: {
173
+ uri: request[:image][:source][:gcs_image_uri]
174
+ },
175
+ mime_type: mime_type
176
+ },
165
177
  features: request[:features],
166
178
  output_config: {
167
- gcs_destination: destination,
179
+ gcs_destination: {
180
+ uri: destination
181
+ },
168
182
  batch_size: batch_size
169
183
  }
170
184
  }
171
185
  end
172
- async_batch_annotate_files requests, options
186
+ async_batch_annotate_files requests, options: options
173
187
  else
174
- batch_annotate_images requests, options, &blk
188
+ batch_annotate_images requests, options: options, &blk
175
189
  end
176
190
  end
177
191
 
@@ -238,17 +252,24 @@ module Google
238
252
  if async
239
253
  requests.map! do |request|
240
254
  {
241
- input_config: request[:image],
255
+ input_config: {
256
+ gcs_source: {
257
+ uri: request[:image][:source][:gcs_image_uri]
258
+ },
259
+ mime_type: mime_type
260
+ },
242
261
  features: request[:features],
243
262
  output_config: {
244
- gcs_destination: destination,
263
+ gcs_destination: {
264
+ uri: destination
265
+ },
245
266
  batch_size: batch_size
246
267
  }
247
268
  }
248
269
  end
249
- async_batch_annotate_files requests, options
270
+ async_batch_annotate_files requests, options: options
250
271
  else
251
- batch_annotate_images requests, options, &blk
272
+ batch_annotate_images requests, options: options, &blk
252
273
  end
253
274
  end
254
275
 
@@ -315,17 +336,24 @@ module Google
315
336
  if async
316
337
  requests.map! do |request|
317
338
  {
318
- input_config: request[:image],
339
+ input_config: {
340
+ gcs_source: {
341
+ uri: request[:image][:source][:gcs_image_uri]
342
+ },
343
+ mime_type: mime_type
344
+ },
319
345
  features: request[:features],
320
346
  output_config: {
321
- gcs_destination: destination,
347
+ gcs_destination: {
348
+ uri: destination
349
+ },
322
350
  batch_size: batch_size
323
351
  }
324
352
  }
325
353
  end
326
- async_batch_annotate_files requests, options
354
+ async_batch_annotate_files requests, options: options
327
355
  else
328
- batch_annotate_images requests, options, &blk
356
+ batch_annotate_images requests, options: options, &blk
329
357
  end
330
358
  end
331
359
 
@@ -392,17 +420,24 @@ module Google
392
420
  if async
393
421
  requests.map! do |request|
394
422
  {
395
- input_config: request[:image],
423
+ input_config: {
424
+ gcs_source: {
425
+ uri: request[:image][:source][:gcs_image_uri]
426
+ },
427
+ mime_type: mime_type
428
+ },
396
429
  features: request[:features],
397
430
  output_config: {
398
- gcs_destination: destination,
431
+ gcs_destination: {
432
+ uri: destination
433
+ },
399
434
  batch_size: batch_size
400
435
  }
401
436
  }
402
437
  end
403
- async_batch_annotate_files requests, options
438
+ async_batch_annotate_files requests, options: options
404
439
  else
405
- batch_annotate_images requests, options, &blk
440
+ batch_annotate_images requests, options: options, &blk
406
441
  end
407
442
  end
408
443
 
@@ -469,17 +504,24 @@ module Google
469
504
  if async
470
505
  requests.map! do |request|
471
506
  {
472
- input_config: request[:image],
507
+ input_config: {
508
+ gcs_source: {
509
+ uri: request[:image][:source][:gcs_image_uri]
510
+ },
511
+ mime_type: mime_type
512
+ },
473
513
  features: request[:features],
474
514
  output_config: {
475
- gcs_destination: destination,
515
+ gcs_destination: {
516
+ uri: destination
517
+ },
476
518
  batch_size: batch_size
477
519
  }
478
520
  }
479
521
  end
480
- async_batch_annotate_files requests, options
522
+ async_batch_annotate_files requests, options: options
481
523
  else
482
- batch_annotate_images requests, options, &blk
524
+ batch_annotate_images requests, options: options, &blk
483
525
  end
484
526
  end
485
527
 
@@ -546,17 +588,24 @@ module Google
546
588
  if async
547
589
  requests.map! do |request|
548
590
  {
549
- input_config: request[:image],
591
+ input_config: {
592
+ gcs_source: {
593
+ uri: request[:image][:source][:gcs_image_uri]
594
+ },
595
+ mime_type: mime_type
596
+ },
550
597
  features: request[:features],
551
598
  output_config: {
552
- gcs_destination: destination,
599
+ gcs_destination: {
600
+ uri: destination
601
+ },
553
602
  batch_size: batch_size
554
603
  }
555
604
  }
556
605
  end
557
- async_batch_annotate_files requests, options
606
+ async_batch_annotate_files requests, options: options
558
607
  else
559
- batch_annotate_images requests, options, &blk
608
+ batch_annotate_images requests, options: options, &blk
560
609
  end
561
610
  end
562
611
 
@@ -623,17 +672,24 @@ module Google
623
672
  if async
624
673
  requests.map! do |request|
625
674
  {
626
- input_config: request[:image],
675
+ input_config: {
676
+ gcs_source: {
677
+ uri: request[:image][:source][:gcs_image_uri]
678
+ },
679
+ mime_type: mime_type
680
+ },
627
681
  features: request[:features],
628
682
  output_config: {
629
- gcs_destination: destination,
683
+ gcs_destination: {
684
+ uri: destination
685
+ },
630
686
  batch_size: batch_size
631
687
  }
632
688
  }
633
689
  end
634
- async_batch_annotate_files requests, options
690
+ async_batch_annotate_files requests, options: options
635
691
  else
636
- batch_annotate_images requests, options, &blk
692
+ batch_annotate_images requests, options: options, &blk
637
693
  end
638
694
  end
639
695
 
@@ -700,17 +756,24 @@ module Google
700
756
  if async
701
757
  requests.map! do |request|
702
758
  {
703
- input_config: request[:image],
759
+ input_config: {
760
+ gcs_source: {
761
+ uri: request[:image][:source][:gcs_image_uri]
762
+ },
763
+ mime_type: mime_type
764
+ },
704
765
  features: request[:features],
705
766
  output_config: {
706
- gcs_destination: destination,
767
+ gcs_destination: {
768
+ uri: destination
769
+ },
707
770
  batch_size: batch_size
708
771
  }
709
772
  }
710
773
  end
711
- async_batch_annotate_files requests, options
774
+ async_batch_annotate_files requests, options: options
712
775
  else
713
- batch_annotate_images requests, options, &blk
776
+ batch_annotate_images requests, options: options, &blk
714
777
  end
715
778
  end
716
779
 
@@ -777,17 +840,24 @@ module Google
777
840
  if async
778
841
  requests.map! do |request|
779
842
  {
780
- input_config: request[:image],
843
+ input_config: {
844
+ gcs_source: {
845
+ uri: request[:image][:source][:gcs_image_uri]
846
+ },
847
+ mime_type: mime_type
848
+ },
781
849
  features: request[:features],
782
850
  output_config: {
783
- gcs_destination: destination,
851
+ gcs_destination: {
852
+ uri: destination
853
+ },
784
854
  batch_size: batch_size
785
855
  }
786
856
  }
787
857
  end
788
- async_batch_annotate_files requests, options
858
+ async_batch_annotate_files requests, options: options
789
859
  else
790
- batch_annotate_images requests, options, &blk
860
+ batch_annotate_images requests, options: options, &blk
791
861
  end
792
862
  end
793
863
 
@@ -854,17 +924,24 @@ module Google
854
924
  if async
855
925
  requests.map! do |request|
856
926
  {
857
- input_config: request[:image],
927
+ input_config: {
928
+ gcs_source: {
929
+ uri: request[:image][:source][:gcs_image_uri]
930
+ },
931
+ mime_type: mime_type
932
+ },
858
933
  features: request[:features],
859
934
  output_config: {
860
- gcs_destination: destination,
935
+ gcs_destination: {
936
+ uri: destination
937
+ },
861
938
  batch_size: batch_size
862
939
  }
863
940
  }
864
941
  end
865
- async_batch_annotate_files requests, options
942
+ async_batch_annotate_files requests, options: options
866
943
  else
867
- batch_annotate_images requests, options, &blk
944
+ batch_annotate_images requests, options: options, &blk
868
945
  end
869
946
  end
870
947
 
@@ -931,17 +1008,24 @@ module Google
931
1008
  if async
932
1009
  requests.map! do |request|
933
1010
  {
934
- input_config: request[:image],
1011
+ input_config: {
1012
+ gcs_source: {
1013
+ uri: request[:image][:source][:gcs_image_uri]
1014
+ },
1015
+ mime_type: mime_type
1016
+ },
935
1017
  features: request[:features],
936
1018
  output_config: {
937
- gcs_destination: destination,
1019
+ gcs_destination: {
1020
+ uri: destination
1021
+ },
938
1022
  batch_size: batch_size
939
1023
  }
940
1024
  }
941
1025
  end
942
- async_batch_annotate_files requests, options
1026
+ async_batch_annotate_files requests, options: options
943
1027
  else
944
- batch_annotate_images requests, options, &blk
1028
+ batch_annotate_images requests, options: options, &blk
945
1029
  end
946
1030
  end
947
1031
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-vision
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.32.0
4
+ version: 0.32.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC