Class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p4beta1ImageAnnotationContext

Inherits:
Object
  • Object
show all
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

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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudVisionV1p4beta1ImageAnnotationContext

Returns a new instance of GoogleCloudVisionV1p4beta1ImageAnnotationContext.



7613
7614
7615
# File 'lib/google/apis/vision_v1p1beta1/classes.rb', line 7613

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#page_numberFixnum

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

Returns:

  • (Fixnum)


7606
7607
7608
# File 'lib/google/apis/vision_v1p1beta1/classes.rb', line 7606

def page_number
  @page_number
end

#uriString

The URI of the file used to produce the image. Corresponds to the JSON property uri

Returns:

  • (String)


7611
7612
7613
# File 'lib/google/apis/vision_v1p1beta1/classes.rb', line 7611

def uri
  @uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7618
7619
7620
7621
# File 'lib/google/apis/vision_v1p1beta1/classes.rb', line 7618

def update!(**args)
  @page_number = args[:page_number] if args.key?(:page_number)
  @uri = args[:uri] if args.key?(:uri)
end