Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAnnotation ¶
func GetAnnotation(img *image.RGBA) (*pb.TextAnnotation, error)
GetAnnotation gets text (TextAnnotation) from the Vision API for an image at the given file path.
Types ¶
type TextBlock ¶
func OrganizeAnnotation ¶
func OrganizeAnnotation(annotation *pb.TextAnnotation) []TextBlock
OrganizeAnnotation converts a TextAnnotation object to a slice of TextBlocks for easier manipulation.
Click to show internal directories.
Click to hide internal directories.