aax
10th December 2014, 22:50
Hi guys.
I'm extracting burned-in subtitles from some videos and have made a Photoshop action that does a pretty good job of isolating them from background when applied to screenshots (for easy OCR). So I was wondering if there is a way to get a similar effect with Avisynth because that would not only save me a step, but also improve automatic subtitle detection.
Here's what I do in Photoshop:
smart blur with both radius and threshold at 100%
high pass filter with radius around 4.2
new layer filled with black with blending set to "blend if" "underlying layer" is white (with white level set to around 160)
repeat smart blur on background layer some dozen times until I'm left with mostly clean letters (radius and threshold again at 100%)
https://dl.dropboxusercontent.com/u/11379791/KG/Forum/VideoSubFinder%20and%20ABBFR/Photoshop-highpass-01.png
https://dl.dropboxusercontent.com/u/11379791/KG/Forum/VideoSubFinder%20and%20ABBFR/Photoshop-highpass-02.png
I'm extracting burned-in subtitles from some videos and have made a Photoshop action that does a pretty good job of isolating them from background when applied to screenshots (for easy OCR). So I was wondering if there is a way to get a similar effect with Avisynth because that would not only save me a step, but also improve automatic subtitle detection.
Here's what I do in Photoshop:
smart blur with both radius and threshold at 100%
high pass filter with radius around 4.2
new layer filled with black with blending set to "blend if" "underlying layer" is white (with white level set to around 160)
repeat smart blur on background layer some dozen times until I'm left with mostly clean letters (radius and threshold again at 100%)
https://dl.dropboxusercontent.com/u/11379791/KG/Forum/VideoSubFinder%20and%20ABBFR/Photoshop-highpass-01.png
https://dl.dropboxusercontent.com/u/11379791/KG/Forum/VideoSubFinder%20and%20ABBFR/Photoshop-highpass-02.png