Skip to content

Better fuzzy search for OCRed documents #564

Description

@0x-Apollyon

Hey so I have been using ugrep's fuzzy search feature for some of my university projects which involve OCR scanning huge corpus of documents. One problem which I run into often is that finetuning the edit distance parameter to match common OCR errors, is a bit of chore.

My current pipeline is somewhat similar to what is describe in #304, followed by manual scanning as I have to keep the edit distance a bit wide to get all possible OCR errors

I propose a sort of OCR aware fuzzy search, something like:

Normal edit distance:

rn → m cost 2
I → l cost 1
O → 0 cost 1

OCR aware:

rn → m cost ~0.5
I → l cost ~0.2
O → 0 cost ~0.2

We can let the user describe these configurations, and if possible, have some preset ones for common OCR technologies like Tesseract

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions