google_api_vision v0.21.0 GoogleApi.Vision.V1.Model.AnnotateFileRequest View Source

A request to annotate one single file, e.g. a PDF, TIFF or GIF file.

Attributes

  • features (type: list(GoogleApi.Vision.V1.Model.Feature.t), default: nil) - Required. Requested features.
  • imageContext (type: GoogleApi.Vision.V1.Model.ImageContext.t, default: nil) - Additional context that may accompany the image(s) in the file.
  • inputConfig (type: GoogleApi.Vision.V1.Model.InputConfig.t, default: nil) - Required. Information about the input file.
  • pages (type: list(integer()), default: nil) - 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.

Link to this section Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Link to this section Types

Link to this type

t()

View Source
t() :: %GoogleApi.Vision.V1.Model.AnnotateFileRequest{
  features: [GoogleApi.Vision.V1.Model.Feature.t()],
  imageContext: GoogleApi.Vision.V1.Model.ImageContext.t(),
  inputConfig: GoogleApi.Vision.V1.Model.InputConfig.t(),
  pages: [integer()]
}

Link to this section Functions

Link to this function

decode(value, options)

View Source
decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.