Cloud Vision V1p4beta1 API - Class Google::Cloud::Vision::V1p4beta1::ImageAnnotationContext (v0.7.0)

Reference documentation and code samples for the Cloud Vision V1p4beta1 API class Google::Cloud::Vision::V1p4beta1::ImageAnnotationContext.

If an image was produced from a file (e.g. a PDF), this message gives information about the source of that image.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#page_number

def page_number() -> ::Integer
Returns
  • (::Integer) — If the file was a PDF or TIFF, this field gives the page number within the file used to produce the image.

#page_number=

def page_number=(value) -> ::Integer
Parameter
  • value (::Integer) — If the file was a PDF or TIFF, this field gives the page number within the file used to produce the image.
Returns
  • (::Integer) — If the file was a PDF or TIFF, this field gives the page number within the file used to produce the image.

#uri

def uri() -> ::String
Returns
  • (::String) — The URI of the file used to produce the image.

#uri=

def uri=(value) -> ::String
Parameter
  • value (::String) — The URI of the file used to produce the image.
Returns
  • (::String) — The URI of the file used to produce the image.