Post-processing

Post-processing in OCR (Optical Character Recognition) refers to the additional steps or techniques applied to the output of an OCR system in order to improve the accuracy and quality of the recognize

1. Regular Expression (RegExp)

Regular Expressions are patterns used to match character combinations in strings

RegExp Matching

Recognizing specific sequences or patterns of characters in the text and ensuring that the recognized text conforms to a specific format or structure

Example:

["[ไธ€-้พ ]+|[ใ-ใ‚”]+|[ใ‚ก-ใƒดใƒผ]+|[ใ€…ใ€†ใ€ค]+|[โบ€-โฟ•]+|[ใ€-ใ€ฟ]+|[ใ‡ฐ-ใ‡ฟใˆ -ใ‰ƒใŠ€-ใฟ]+", "gmu"]
Matching

RegExp Replacement (Search & Replace)

Searching for specific patterns of text and replacing them with text or another pattern

Example:

["ใ€Ž", "g", "ใ€Œ"]
["ใ€", "g", "ใ€"]
["โ™ช", "g", ""]
["ใ€‚ใ€‚ใ€‚", "g", "..."]
["(\r\n|\n|\r)", "gm", " "]
["\\|", "g", "I"]
Replacement

2. Spell Checker ๐Ÿšง

Last updated