How to choose a suitable threshold for Binarisation

107 views
Skip to first unread message

易鑫

unread,
Feb 19, 2019, 9:56:33 PM2/19/19
to tesseract-ocr
Hello,everyone:
   In the tesseract wiki   "https://github.com/tesseract-ocr/tesseract/wiki/ImproveQuality", it says the importance of  binarisation to the final recognition result. I have tired many methods for choose a suitable threshold, but I have not find a very perfect method.
   Does anyone have the experience on choose a suitable threshold for binarisation,please teach me,thanks a lot.

Sorry for my poor english.

dimuc...@gmail.com

unread,
Mar 6, 2019, 12:26:11 PM3/6/19
to tesseract-ocr
Hey,
i found this theis that propose a way to calculate the threshold and represent other methods :
i would help.
best regards

易鑫

unread,
Mar 7, 2019, 12:49:37 AM3/7/19
to tesseract-ocr
thank you very much

<dimuc...@gmail.com> 于2019年3月7日周四 上午1:26写道:
--
You received this message because you are subscribed to the Google Groups "tesseract-ocr" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tesseract-oc...@googlegroups.com.
To post to this group, send email to tesser...@googlegroups.com.
Visit this group at https://groups.google.com/group/tesseract-ocr.
To view this discussion on the web visit https://groups.google.com/d/msgid/tesseract-ocr/e7ae47cc-c392-45da-8c6c-909fc712f2be%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Lars Fricke

unread,
Mar 8, 2019, 2:28:41 AM3/8/19
to tesser...@googlegroups.com
Hi,

we use the local Phansalkar binarizer with default values. you can try that very easy in the imagej fiji package. works perfect for all kinds of input, especially with scans with poor lightning and bad contrast. 

there is a nice comparison and yet another method in 

regards lars


--
You received this message because you are subscribed to the Google Groups "tesseract-ocr" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tesseract-oc...@googlegroups.com.
To post to this group, send email to tesser...@googlegroups.com.
Visit this group at https://groups.google.com/group/tesseract-ocr.

Lorenzo Bolzani

unread,
Mar 8, 2019, 4:06:11 AM3/8/19
to tesser...@googlegroups.com

I someone wants to try this and is looking for a python implementation here is one:


   binary_phansalkar = threshold_sauvola(image, w=25, method='phansalkar', r=50)


(I did not try it yet)



Lorenzo


易鑫

unread,
Mar 12, 2019, 9:29:07 PM3/12/19
to tesseract-ocr
thank you all.

Lorenzo Bolzani <l.bo...@gmail.com> 于2019年3月8日周五 下午5:06写道:
Reply all
Reply to author
Forward
0 new messages