CloudVisionParser#

class langchain_google_community.vision.CloudVisionParser(project: str | None = None)[source]#

Methods

__init__([project])

lazy_parse(blob)

Lazy parsing interface.

load(gcs_uri)

Loads an image from GCS path to a Document, only the text.

parse(blob)

Eagerly parse the blob into a document or documents.

Parameters:

project (str | None)

__init__(project: str | None = None)[source]#
Parameters:

project (str | None)

lazy_parse(blob: Blob) Iterator[Document][source]#

Lazy parsing interface.

Subclasses are required to implement this method.

Parameters:

blob (Blob) – Blob instance

Returns:

Generator of documents

Return type:

Iterator[Document]

load(gcs_uri: str) Document[source]#

Loads an image from GCS path to a Document, only the text.

Parameters:

gcs_uri (str)

Return type:

Document

parse(blob: Blob) list[Document]#

Eagerly parse the blob into a document or documents.

This is a convenience method for interactive development environment.

Production applications should favor the lazy_parse method instead.

Subclasses should generally not over-ride this parse method.

Parameters:

blob (Blob) – Blob instance

Returns:

List of documents

Return type:

list[Document]