Versions in this module Expand all Collapse all v2 v2.3.2 May 31, 2022 Changes in this version + func ClearPersistentCache() + func GetAvailableLanguages() ([]string, error) + func Version() string + type BoundingBox struct + BlockNum int + Box image.Rectangle + Confidence float64 + LineNum int + ParNum int + Word string + WordNum int + type Client struct + ConfigFilePath string + Languages []string + TessdataPrefix string + Trim bool + Variables map[SettableVariable]string + func NewClient() *Client + func (client *Client) Close() (err error) + func (client *Client) DisableOutput() error + func (client *Client) GetBoundingBoxes(level PageIteratorLevel) (out []BoundingBox, err error) + func (client *Client) GetBoundingBoxesVerbose() (out []BoundingBox, err error) + func (client *Client) HOCRText() (out string, err error) + func (client *Client) SetBlacklist(blacklist string) error + func (client *Client) SetConfigFile(fpath string) error + func (client *Client) SetImage(imagepath string) error + func (client *Client) SetImageFromBytes(data []byte) error + func (client *Client) SetLanguage(langs ...string) error + func (client *Client) SetPageSegMode(mode PageSegMode) error + func (client *Client) SetTessdataPrefix(prefix string) error + func (client *Client) SetVariable(key SettableVariable, value string) error + func (client *Client) SetWhitelist(whitelist string) error + func (client *Client) Text() (out string, err error) + func (client *Client) Version() string + type Content struct + Class string + ID string + Par Par + Title string + type Line struct + Class string + ID string + Title string + Words []Word + type Page struct + Class string + Content Content + ID string + Title string + type PageIteratorLevel int + const RIL_BLOCK + const RIL_PARA + const RIL_SYMBOL + const RIL_TEXTLINE + const RIL_WORD + type PageSegMode int + const PSM_AUTO + const PSM_AUTO_ONLY + const PSM_AUTO_OSD + const PSM_CIRCLE_WORD + const PSM_COUNT + const PSM_OSD_ONLY + const PSM_RAW_LINE + const PSM_SINGLE_BLOCK + const PSM_SINGLE_BLOCK_VERT_TEXT + const PSM_SINGLE_CHAR + const PSM_SINGLE_COLUMN + const PSM_SINGLE_LINE + const PSM_SINGLE_WORD + const PSM_SPARSE_TEXT + const PSM_SPARSE_TEXT_OSD + type Par struct + Class string + ID string + Language string + Lines []Line + Title string + type SettableVariable string + const DEBUG_FILE + const TESSEDIT_CHAR_BLACKLIST + const TESSEDIT_CHAR_WHITELIST + type Word struct + Characters string + Class string + ID string + Title string