Class: Google::Apis::VisionV1::ImageAnnotationContext
- Inherits:
-
Object
- Object
- Google::Apis::VisionV1::ImageAnnotationContext
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/vision_v1/classes.rb,
lib/google/apis/vision_v1/representations.rb,
lib/google/apis/vision_v1/representations.rb
Overview
If an image was produced from a file (e.g. a PDF), this message gives information about the source of that image.
Instance Attribute Summary collapse
-
#page_number ⇒ Fixnum
If the file was a PDF or TIFF, this field gives the page number within the file used to produce the image.
-
#uri ⇒ String
The URI of the file used to produce the image.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ImageAnnotationContext
constructor
A new instance of ImageAnnotationContext.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ImageAnnotationContext
Returns a new instance of ImageAnnotationContext.
8573 8574 8575 |
# File 'lib/google/apis/vision_v1/classes.rb', line 8573 def initialize(**args) update!(**args) end |
Instance Attribute Details
#page_number ⇒ Fixnum
If the file was a PDF or TIFF, this field gives the page number within the
file used to produce the image.
Corresponds to the JSON property pageNumber
8566 8567 8568 |
# File 'lib/google/apis/vision_v1/classes.rb', line 8566 def page_number @page_number end |
#uri ⇒ String
The URI of the file used to produce the image.
Corresponds to the JSON property uri
8571 8572 8573 |
# File 'lib/google/apis/vision_v1/classes.rb', line 8571 def uri @uri end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
8578 8579 8580 8581 |
# File 'lib/google/apis/vision_v1/classes.rb', line 8578 def update!(**args) @page_number = args[:page_number] if args.key?(:page_number) @uri = args[:uri] if args.key?(:uri) end |