Class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1AnnotateFileRequest
- Inherits:
-
Object
- Object
- Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1AnnotateFileRequest
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/vision_v1p1beta1/classes.rb,
lib/google/apis/vision_v1p1beta1/representations.rb,
lib/google/apis/vision_v1p1beta1/representations.rb
Overview
A request to annotate one single file, e.g. a PDF, TIFF or GIF file.
Instance Attribute Summary collapse
-
#features ⇒ Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1Feature>
Required.
-
#image_context ⇒ Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1ImageContext
Image context and/or feature-specific parameters.
-
#input_config ⇒ Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1InputConfig
The desired input location and metadata.
-
#pages ⇒ Array<Fixnum>
Pages of the file to perform image annotation.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudVisionV1p1beta1AnnotateFileRequest
constructor
A new instance of GoogleCloudVisionV1p1beta1AnnotateFileRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudVisionV1p1beta1AnnotateFileRequest
Returns a new instance of GoogleCloudVisionV1p1beta1AnnotateFileRequest.
916 917 918 |
# File 'lib/google/apis/vision_v1p1beta1/classes.rb', line 916 def initialize(**args) update!(**args) end |
Instance Attribute Details
#features ⇒ Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1Feature>
Required. Requested features.
Corresponds to the JSON property features
893 894 895 |
# File 'lib/google/apis/vision_v1p1beta1/classes.rb', line 893 def features @features end |
#image_context ⇒ Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1ImageContext
Image context and/or feature-specific parameters.
Corresponds to the JSON property imageContext
898 899 900 |
# File 'lib/google/apis/vision_v1p1beta1/classes.rb', line 898 def image_context @image_context end |
#input_config ⇒ Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1InputConfig
The desired input location and metadata.
Corresponds to the JSON property inputConfig
903 904 905 |
# File 'lib/google/apis/vision_v1p1beta1/classes.rb', line 903 def input_config @input_config end |
#pages ⇒ Array<Fixnum>
Pages of the file to perform image annotation. Pages starts from 1, we assume
the first page of the file is page 1. At most 5 pages are supported per
request. Pages can be negative. Page 1 means the first page. Page 2 means the
second page. Page -1 means the last page. Page -2 means the second to the last
page. If the file is GIF instead of PDF or TIFF, page refers to GIF frames. If
this field is empty, by default the service performs image annotation for the
first 5 pages of the file.
Corresponds to the JSON property pages
914 915 916 |
# File 'lib/google/apis/vision_v1p1beta1/classes.rb', line 914 def pages @pages end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
921 922 923 924 925 926 |
# File 'lib/google/apis/vision_v1p1beta1/classes.rb', line 921 def update!(**args) @features = args[:features] if args.key?(:features) @image_context = args[:image_context] if args.key?(:image_context) @input_config = args[:input_config] if args.key?(:input_config) @pages = args[:pages] if args.key?(:pages) end |