Top Banner
Interactive Smoothing of Handwritten Text Images Using a Bilateral Filter Oliver A. Nina, Bryan S. Morse Brigham Young University
16

Interactive Smoothing of Handwritten Text Images Using a ...Interactive Smoothing of Handwritten Text Images Using a Bilateral Filter Oliver A. Nina, Bryan S. Morse Brigham Young University.

Jun 19, 2020

Download

Documents

dariahiddleston
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Interactive Smoothing of Handwritten Text Images Using a ...Interactive Smoothing of Handwritten Text Images Using a Bilateral Filter Oliver A. Nina, Bryan S. Morse Brigham Young University.

Interactive Smoothing of Handwritten Text Images Using a

Bilateral Filter

Oliver A. Nina, Bryan S. Morse

Brigham Young University

Page 2: Interactive Smoothing of Handwritten Text Images Using a ...Interactive Smoothing of Handwritten Text Images Using a Bilateral Filter Oliver A. Nina, Bryan S. Morse Brigham Young University.

The Problem

• An increasing number of people are using text images• Volunteers read text images to index important information

• Many of the images are unreadable due to quality and age

of the documents • Artifacts in the images include background noise and

undistinguishable ink strokes

Page 3: Interactive Smoothing of Handwritten Text Images Using a ...Interactive Smoothing of Handwritten Text Images Using a Bilateral Filter Oliver A. Nina, Bryan S. Morse Brigham Young University.

The Problem

Page 4: Interactive Smoothing of Handwritten Text Images Using a ...Interactive Smoothing of Handwritten Text Images Using a Bilateral Filter Oliver A. Nina, Bryan S. Morse Brigham Young University.

The Solution

• We improve image visibility by, • Using a bilateral filter to even out the noise in the background

• Accentuating weak stroke pixels to make them more visible

(Laplacian) • We can apply interactively the algorithm in desired regions

• We adjust the parameters of the algorithm to improve results

Page 5: Interactive Smoothing of Handwritten Text Images Using a ...Interactive Smoothing of Handwritten Text Images Using a Bilateral Filter Oliver A. Nina, Bryan S. Morse Brigham Young University.

The Solution

Before After

Page 6: Interactive Smoothing of Handwritten Text Images Using a ...Interactive Smoothing of Handwritten Text Images Using a Bilateral Filter Oliver A. Nina, Bryan S. Morse Brigham Young University.

Background

Bilateral Filter (Tomasi et al.1998)• Smooths regions while preserving edges

Page 7: Interactive Smoothing of Handwritten Text Images Using a ...Interactive Smoothing of Handwritten Text Images Using a Bilateral Filter Oliver A. Nina, Bryan S. Morse Brigham Young University.

Background - Bilateral Filter• It uses 2 weighting functions

• Gs = spatial normal distribution

• Gr = range (color) normal distribution

Page 8: Interactive Smoothing of Handwritten Text Images Using a ...Interactive Smoothing of Handwritten Text Images Using a Bilateral Filter Oliver A. Nina, Bryan S. Morse Brigham Young University.

Background - Bilateral FilterWe combine the two weighing functions and we have:

Ip' =∑ Gs(|p - q|) Gr(|Ip - Iq) Iq / Wp

whereWp = ∑ Gs(|p - q|) Gr(|Ip - Iq)

Page 9: Interactive Smoothing of Handwritten Text Images Using a ...Interactive Smoothing of Handwritten Text Images Using a Bilateral Filter Oliver A. Nina, Bryan S. Morse Brigham Young University.

Background

Laplacian Filter • Calculates the 2nd derivative of the image (edge detection)

• We combine it with the bilateral filter to augment soft strokes

Page 10: Interactive Smoothing of Handwritten Text Images Using a ...Interactive Smoothing of Handwritten Text Images Using a Bilateral Filter Oliver A. Nina, Bryan S. Morse Brigham Young University.

Our Algorithm

• We identify if the mouse is over an edge (ink stroke)o The Laplacian filter gives us zero crossings

• We apply the bilateral filter on mouse_down and

mouse_move events • If we are over an edge, we darken the stroke

• Otherwise, we make the background lighter

Page 11: Interactive Smoothing of Handwritten Text Images Using a ...Interactive Smoothing of Handwritten Text Images Using a Bilateral Filter Oliver A. Nina, Bryan S. Morse Brigham Young University.

Results

Original Image Result ( Gr = 3, Gs = 5)

Result ( Gr = 3, Gs = 10) Result ( Gr = 3, Gs = 15)

Page 12: Interactive Smoothing of Handwritten Text Images Using a ...Interactive Smoothing of Handwritten Text Images Using a Bilateral Filter Oliver A. Nina, Bryan S. Morse Brigham Young University.

Results

Original Image Result ( Gr = 3, Gs = 5)

Result ( Gr = 3, Gs = 10) Result ( Gr = 3, Gs = 15)

Page 13: Interactive Smoothing of Handwritten Text Images Using a ...Interactive Smoothing of Handwritten Text Images Using a Bilateral Filter Oliver A. Nina, Bryan S. Morse Brigham Young University.

Results

Original Image

Result - Accentuated Strokes

Page 14: Interactive Smoothing of Handwritten Text Images Using a ...Interactive Smoothing of Handwritten Text Images Using a Bilateral Filter Oliver A. Nina, Bryan S. Morse Brigham Young University.

Conclusion

• We applied the Bilateral filter and Laplacian to solve the problem of low quality text images

• Results are promising and indicate that; • Bilateral filter is robust and smooths text images without

losing important pixels

• Edge enhancement can make faint text more readable

Page 15: Interactive Smoothing of Handwritten Text Images Using a ...Interactive Smoothing of Handwritten Text Images Using a Bilateral Filter Oliver A. Nina, Bryan S. Morse Brigham Young University.

Further Work

• Improve identifying the edges better, using a better edge detector.

• Automatically select the parameters to work with the

bilateral and laplacian filters.

• Use the bilateral filter for text segmentation of old document images.

Page 16: Interactive Smoothing of Handwritten Text Images Using a ...Interactive Smoothing of Handwritten Text Images Using a Bilateral Filter Oliver A. Nina, Bryan S. Morse Brigham Young University.

Questions?