Versions in this module Expand all Collapse all v0 v0.2.2 Aug 11, 2026 v0.2.1 Aug 6, 2026 v0.2.0 Aug 6, 2026 v0.1.0 Aug 4, 2026retracted Changes in this version + func FuzzyLocateText(recognizedText, targetText string, ...) []fuzzy.Candidate + func PageDiffScore(a, b OCRPage) int + func PageDiffScoreOrigTable(a, b TPage) int + type DiffResult struct + ExtraPages []ExtraPage + HasDiff bool + MappingScheme string + PageDiffs []PageDiff + Valid bool + func CompareOCRJSON(orig, ret []byte) (DiffResult, error) + func CompareOCRResponses(orig, ret OCRResponse) DiffResult + type ExtraPage struct + PageNumber int + Text string + type LineDiff struct + BoundingBox []float64 + DiffText string + Op string + type OCRChar struct + Char string + Position []int + func ExtractOCRCharsFromPage(page OCRPage) []OCRChar + func ExtractTableCharsFromPage(page TPage) []OCRChar + func NormalizeOCRPage(page OCRPage) (string, []int, []OCRChar) + func NormalizeTablePage(page TPage) (string, []int, []OCRChar) + type OCRLine struct + Angle int + CharCandidates [][]string + CharCandidatesScore [][]float64 + CharCenters [][]int + CharPositions [][]int + CharScores []float64 + Direction int + Handwritten int + Position []int + Score float64 + Text string + Type string + type OCRPage struct + Angle int + Height int + Lines []OCRLine + Width int + type OCRResponse struct + Code int + Message string + Result struct{ ... } + func ParseOCRResponse(data []byte) (*OCRResponse, error) + type PageDiff struct + DiffAreas []LineDiff + PageNumber int + type TLine struct + Angle int + CharCandidates [][]string + CharCandidatesScore [][]float64 + CharPositions [][]int + Direction int + Handwritten int + Position []int + Score float64 + Text string + Type string + type TPage struct + Angle int + Height int + Tables []Table + Width int + type Table struct + HeightOfRows []int + Lines []TLine + Position []int + TableCells []TableCell + TableCols int + TableRows int + WidthOfCols []int + type TableCell struct + EndCol int + EndRow int + Lines []TLine + Position []int + StartCol int + StartRow int + Text string + type TableDiffResult struct + ExtraPages []ExtraPage + HasDiff bool + MappingScheme string + PageDiffs []TablePageDiff + Valid bool + func CompareTableJSON(orig, ret []byte) (TableDiffResult, error) + func CompareTableResponses(orig, ret TableResponse) TableDiffResult + type TablePageDiff struct + DiffAreas []LineDiff + PageNumber int + type TableResponse struct + Code int + Msg string + Result struct{ ... } + func ParseTableResponse(data []byte) (*TableResponse, error)