-2

https://pasteboard.co/J5FM06V.png

What would be the best way to clean up this image for OCR using opencv with python?

I'm really not good at this part. Could someone give me a hand, please?

ankh
  • 147
  • 2
  • 9
  • This is too broad/vague, and likely off-topic. Please see [help/on-topic], [ask]. – AMC Apr 27 '20 at 01:12
  • I'm just wondering what would be the best opencv filters and how to apply them, using opencv with python, so ocr would work better. It's not vague... It's just not much to ask. – ankh Apr 27 '20 at 01:25
  • Use adaptiveThreshold() – fmw42 Apr 27 '20 at 01:44
  • @ankh _It's not vague..._ It may be too vague for Stack Overflow, was my point. – AMC Apr 27 '20 at 02:03
  • See https://stackoverflow.com/questions/56905592/automatic-contrast-and-brightness-adjustment-of-a-color-photo-of-a-sheet-of-pape – fmw42 May 09 '20 at 21:47

1 Answers1

0

The first thing to try would be some thresholding techniques. There is a great tutorial here.

You might want to look at some morphology operations.

bfris
  • 5,272
  • 1
  • 20
  • 37