News for hackers. Stuff that matters.
Re:TV backlight compensation (2020) by daedbe on Thursday October 06, 2022 @04:06AM (#33105738)
A common alternative solution in this case would be to use an adaptive thresholding technique such as Otsu’s method.
Re:TV backlight compensation (2020) by komatsu on Thursday October 06, 2022 @04:14AM (#33105793)
Otsu's method finds a single threshold value in an adaptive way. This can't solve a scanned document thresholding problem.

btw: The iOS Notes app has quite a capable document scanning tool. It's cleverly hidden though.

Re:TV backlight compensation (2020) by Rygian on Thursday October 06, 2022 @04:45AM (#33106024)
I'm pretty happy with the scanning feature of Evernote, and I think there are some other nice apps in the Android app store, but my goal is to have a solution that is not captive (either to a specific vendor or to a SaaS solution).
Re:TV backlight compensation (2020) by Rygian on Thursday October 06, 2022 @04:22AM (#33105862)
Thanks, I was not aware of Otsu's method.

From the Wikipedia article, "Otsu's method performs badly in case of heavy noise, small objects size, inhomogeneous lighting and larger intra-class than inter-class variance." (Emphasis mine.)

Right now my solution is at the stage of local thresholds with a configurable block size.

Thanks to your pointer, I know now that my next steps will be to review the Niblack or the Bernsen algorithms. (Or just integrate ImageJ.)