SlideShare a Scribd company logo
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056
Volume: 04 Issue: 08 | Aug -2017 www.irjet.net p-ISSN: 2395-0072
© 2017, IRJET | Impact Factor value: 5.181 | ISO 9001:2008 Certified Journal | Page 1994
Restoration of Old Documents That Suffer From Degradation
Tejashwini.A.G1, Smt G.Anitha2
1Tejashwini .A.G 4th Sem, MTech, Dept of Computer Science and Engineering, UBDTCE,
PJ Exteension, Davnagere, Karnataka, India.
2Smt. G.Anitha B.E.,M.E. Associate Professor, Dept of Computer Science and Engineering, UBDTCE,
PJ Exteension, Davnagere, Karnataka, India.
---------------------------------------------------------------------***---------------------------------------------------------------------
Abstract - Here I propose a new approach for
foreground/background separation to restore degraded
ancient documents suffering from recto/verso transparency.
This approach is used to process single-sided documents and
proceeds in three steps: The first step aims to separate
between the background and foreground of the image by a
contrast enhancementusing gammacorrectionandhistogram
stretching. The second step consists in separating the final
foreground and the remaining noised pixels. Separation
between the initial resulting foreground and the remaining
background regions by comparing RGB component with
original document, followed by its correction using ostus
method, the third step allows the reconstruction of the final
restored image using the obtained foreground and
background. The new approach presents the advantage ofthe
accuracy of its results.
Key Words: RGB, Ostus method, Contrast Stretching,
Gamma Correction.
1. INTRODUCTION
Ancient documents are a witness of past civilizations.
They represent a valuable cultural and scientific heritage.
This heritage allowsthetransmissionofknowledgefrom one
generation to another, performing the human evaluation.
Therefore, safeguarding and preserving this heritage is of
paramount importance. Unfortunately, most of the
documents have incurred a progressive degradationandare
facing a real danger of disappearance. They suffer from
multiple physical degradations that may be biological,
chemical or of human origin. Thus, several physical
restoration techniques have been used to address these
degradations. Indeed, these techniques can reinforce the
document supports and slowdown its ageing. However,
these techniques represent temporary solutions, which
require qualified competences and which can introduce,
amongst others, side effects on the processed documents.
To tackle this disadvantage, digitizationhasbeenthemost
adequate solution allowing both the preservation of the
patrimonial documents and their diffusion. Digitization
brings in these context large possibilities of image
processing for their analysis and dissemination for the
general public on inexpensivesupports.Moreover,it enables
the search for information in an easier and more effective
way compared to the methods used withthedocumentsona
physical support. In the same way, the duplication of digital
data is carried out very quickly without any loss of
information.
Here it is targets the restoration of the degradations
which includes scanning noise, aging effects, uneven
background or foreground, etc.
2. ARCHITECTURE
In the architecture diagram there are four main steps:
1. Loading image document
2. Background extraction
FIG 2.1
3. Foreground extraction
4. Image correction
All the steps are carried out one after the other and then the
image is reconstructed with new background and
foreground and then the results are compared with original
document.
3. ALGORITHM DESIGN
Step1. Load data for restoration
Step 2.Extract background from the detoriated image
Step 3.Extract foreground from the image
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056
Volume: 04 Issue: 07 | July -2017 www.irjet.net p-ISSN: 2395-0072
© 2017, IRJET | Impact Factor value: 5.181 | ISO 9001:2008 Certified Journal | Page 1995
Step 4.Perform Gama correction
Step5. Perform Contrast stretching
Step 6.Reconstruction of image by combining output
Step 7.Compare result i.e. to compare old document with
restored document
Step 8.Exit from the menu
3.1 Load data
 In load data module an image document is loaded
for restoration.
 Image is loaded my interactive methodbyaccessing
only images from the directory
 Once the loading of an image is completed then
“Done loading image” message is displayed on the
screen
3.2 Extract background
 When the image is loaded then red component,
green component and blue component of the image
are taken for both background and foreground.
 To get only background for processing, background
is subtracted from foreground and all subtracted
image are added.
 Now the process is tochange background.Meanand
mode operation is performed and values are
extracted.
 A new background is constructed using extracted
values, eliminating all uneven background colors.
3.3 Extract foreground
 When the image is loaded then red component,
green component and blue component of the image
are taken for both background and foreground.
 To get only foreground for processing, background
is subtracted from foreground.
 Now the process is to get the normalized denoised
image. And the original image is binarized using
ostu’s method.
3.4 Gamma correction
Gamma correction, or often simply gamma, is the
name of a nonlinear operation used to encode and
decode luminance or tristimulus values in video or still
image systems. Gamma correction is, in the simplest cases,
defined by the following power-law expression:
……..(i)
Gamma correction of images is used to optimize theusage of
bits when encoding an image, or bandwidth used to
transport an image, by taking advantage of the non-linear
manner in which humans perceive light and color. The
human perceptionofbrightness,undercommonillumination
conditions (not pitch black nor blindingly bright),followsan
approximate powerfunction (note:norelationtothe Gamma
function), with greater sensitivity to relative differences
between darker tones than between lighter ones, consistent
with the Stevens' power law for brightness perception. If
images are not gamma-encoded, they allocate too many bits
or too much bandwidth to highlights that humans cannot
differentiate, and too few bits or too little bandwidth to
shadow values that humans are sensitive to and would
require more bits/bandwidth to maintain the same visual
quality. Gamma encoding of floating-point images is not
required (and may be counterproductive), because the
floating-point format already provides a piecewise linear
approximation of a logarithmic curve.
Although gamma encoding was developed originally to
compensate for the input–output characteristic of cathode
ray tube (CRT) displays, that is not its main purpose or
advantage in modern systems. In CRT displays, the light
intensity varies nonlinearly with the electron-gun voltage.
Altering the input signal by gamma compression can cancel
this nonlinearity, such that the output picture has the
intended luminance. However, the gamma characteristicsof
the display device do not play a factor in the gamma
encoding of images and video—they need gamma encoding
to maximize the visual quality of the signal, regardless ofthe
gamma characteristics of the displaydevice.Thesimilarity of
CRT physics to the inverse of gamma encoding needed for
video transmission was a combination of luck and
engineering, which simplified the electronics in early
television sets.
3.5 Contrast stretching
Contrast stretching is a common technique, and
can be quite effective if utilized properly. In the field of
medical imagingorscanned documents,anx-raycamera that
consists of an array of x-ray detectors creates what are
known as digital radiographs, or digital x-ray images. The
detectors accumulate charge (which manifests itself as a
larger pixel intensity) proportional to the amount of x-ray
illumination they receive, which depends on the quality of
the x-ray beam and the object being imaged. A high-density
object means less x-rays pass through the object to
eventually reach the detectors (hence the beam is said to be
attenuated), which results in such higher density areas
appearing darker is a common technique, and can bequite
effective if utilized properly. In the field of medical imaging,
an x-ray camera that consists of an array of x-ray detectors
creates what are known as digital radiographs, or digital x-
ray images. The detectors accumulate charge (which
manifests itself as a larger pixel intensity) proportional to
the amount of x-ray illumination they receive, which
depends on the quality of the x-ray beam and the object
being imaged. A high-density object means less x-rays pass
through the object to eventually reach the detectors (hence
the beam is said to be attenuated), which results in such
higher density areas appearing darker.
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056
Volume: 04 Issue: 07 | July -2017 www.irjet.net p-ISSN: 2395-0072
© 2017, IRJET | Impact Factor value: 5.181 | ISO 9001:2008 Certified Journal | Page 1996
3.6 Reconstruction
 Processed background and foreground image is
taken,
 Then both of them are clubbed together to form a
reconstructed or restored image.
3.7 Compare
 Previously loaded image and output image re put
side by side to compare.
 Difference can be seen from old degraded image to
restored image.
3.8 Exit
 Exits from the menu bar.
 If exit is not done properly then loop will not be
terminated.
4. Methodologies
4.1 Ostu’s Method
Method: This type of thresholding is global thresholding. It
stores the intensities of the pixels in an array. The threshold
is calculated by using total mean and variance. Based on this
threshold value each pixel is set to either 0 or 1. i.e.
background or foreground. Thus here the change of image
takes place only once.
The following formulas are used to calculate the total mean
and variance.
The pixels are divided into 2 classes, C1 with gray levels [1,
...,t] and C2 with gray levels [t+1, ... ,L].The probability
distribution for the two classes is:
Also, the means for the two classes are
Using Discriminate Analysis, Otsu definedthebetween-class
variance of the thresholded image as
For bi-level thresholding, Otsu verified that the optimal
threshold t* is chosen so that the between-classvarianceBis
maximized; that is,
Performance (with respect to our experiments): Otsu works
well with some images and performs badly with some. The
majority of the results from Otsu have too much of noise in
the form of the background being detected as foreground.
Otsu can be used for thresholding if the noise removal and
character recognition implementations are really good. The
main advantage is the simplicity of calculation of the
threshold. Since it is a global algorithm it is well suited only
for the images with equal intensities. This might not give a
good result for the images with lots of variation in the
intensities of pixels.
5.Results
Following are the results showing the outcome at each step
and the final result can be compared which is obtained after
completion of all actions
5.1.1 Background extraction:
(a) (b)
5.1.2 Foreground separation
(a) (b)
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056
Volume: 04 Issue: 07 | July -2017 www.irjet.net p-ISSN: 2395-0072
© 2017, IRJET | Impact Factor value: 5.181 | ISO 9001:2008 Certified Journal | Page 1997
5.1.3Gama correction and contrast stretching
5.1.4 Final result and comparison
6. Conclusion
In this system, we have put forward a hybrid approachfor
restoring images of ancient documents, with irregular
background and some transparency degradation. This
approach occurs in three stages: a first separation between
the foreground and the background based on, gamma
correction and histogram stretching, a second separation
between the initial resulting foreground and the remaining
background regions by comparing RGB component with
original document, followed by its correction using ostus
method and the reconstruction of the final restored image.
The different tests and experimentations have shown that
the results are satisfactory and encouraging. The developed
tool can be improved to meet other needs in dealing with
other problems.
REFERENCES
[1] A. Kricha, N. Essoukri Ben Amara, “ Contribution to the
pre processing and characterization of ancient documents:
Application to the segmentation”, PhD Thesis, SAGE,
University of Manar, Tunis, 2013.
[2] M.A.Charrada, N. Essoukri Ben Amara,“Developmentofa
database with ground truth for old documents analysis”,
Systems, Signals & Devices, 10th International Multi
Conference, pp 1-6, Hammamet, 2013.
[3] M. A. Charrada, N. Essoukri Ben Amara, “Databasedesign
of ancient bleed-through document images with ground-
truth”, 1rst Internatioanl Image ProcessingApplicationsand
Systems Conference, pp.124-128, Hammamet, 2014.
[4] J. Wang and C. L. Tan, “Non-rigid registration and
restoration of double-sided historical manuscripts”, 11th
International Conference On Document Analysis and
Recognition, pp. 1374 – 1378, Beijing, 2011.
[5] R. Rowley-Brooke, A. Kokaram , “Degraded document
bleed-through removal”, Irish, Machine Vision and Image
Processing Conference, pp.70-75, Dublin, 2011.
[6] Rabeux, “Evaluation of the quality of old scanned
documents”, PhD Thesis, LaBRI, University of Bordeaux I,
Bordeaux, 2013.
[7] Y. Huang, M. Brown, and D. Xu, “A framework for
reducing ink-bleed In old documents”, Computer Vision and
Pattern Recognition, CVPR, pp. 1-7, Anchorage, AK , 2008.
BIOGRAPHIES
Tejashwini A G received the
degrees in computer science
from VTU University at
Government EngineeringCollege
Karwar in 2015 and currently
studying MTECH IV in Computer
Science and Engineering at
UBDTCE

More Related Content

PDF
The Computation Complexity Reduction of 2-D Gaussian Filter
IRJET Journal
 
DOCX
Medical Image Compression
Paramjeet Singh Jamwal
 
PDF
Survey on Various Image Denoising Techniques
IRJET Journal
 
PDF
MULTI WAVELET BASED IMAGE COMPRESSION FOR TELE MEDICAL APPLICATION
prj_publication
 
PDF
Image Denoising of various images Using Wavelet Transform and Thresholding Te...
IRJET Journal
 
PDF
Irjet v4 i736Tumor Segmentation using Improved Watershed Transform for the Ap...
IRJET Journal
 
PDF
P180203105108
IOSR Journals
 
PDF
IRJET- Handwritten Decimal Image Compression using Deep Stacked Autoencoder
IRJET Journal
 
The Computation Complexity Reduction of 2-D Gaussian Filter
IRJET Journal
 
Medical Image Compression
Paramjeet Singh Jamwal
 
Survey on Various Image Denoising Techniques
IRJET Journal
 
MULTI WAVELET BASED IMAGE COMPRESSION FOR TELE MEDICAL APPLICATION
prj_publication
 
Image Denoising of various images Using Wavelet Transform and Thresholding Te...
IRJET Journal
 
Irjet v4 i736Tumor Segmentation using Improved Watershed Transform for the Ap...
IRJET Journal
 
P180203105108
IOSR Journals
 
IRJET- Handwritten Decimal Image Compression using Deep Stacked Autoencoder
IRJET Journal
 

What's hot (19)

PDF
IRJET- Performance Analysis of Non Linear Filtering for Image Denoising
IRJET Journal
 
PDF
IMAGE COMPRESSION AND DECOMPRESSION SYSTEM
Vishesh Banga
 
DOCX
3.introduction onwards deepa
Safalsha Babu
 
PDF
IRJET- An Efficient VLSI Architecture for 3D-DWT using Lifting Scheme
IRJET Journal
 
DOCX
Thesis on Image compression by Manish Myst
Manish Myst
 
PDF
Intensity Enhancement in Gray Level Images using HSV Color Coding Technique
IRJET Journal
 
PDF
An Image Enhancement Approach to Achieve High Speed using Adaptive Modified B...
TELKOMNIKA JOURNAL
 
PDF
20120140503009
IAEME Publication
 
PDF
A Review on Haze Removal Techniques
IRJET Journal
 
PDF
IRJET- Image De-Blurring using Blind De-Convolution Algorithm
IRJET Journal
 
PDF
An efficient fusion based up sampling technique for restoration of spatially ...
ijitjournal
 
PDF
Deblurring Image and Removing Noise from Medical Images for Cancerous Disease...
IRJET Journal
 
PDF
Survey on Haze Removal Techniques
Editor IJMTER
 
PDF
IRJET- Kidney Stone Classification using Deep Neural Networks and Facilitatin...
IRJET Journal
 
PDF
IRJET- Exploring Image Super Resolution Techniques
IRJET Journal
 
PDF
Wavelet Based Image Watermarking
IJERA Editor
 
PDF
E1083237
IJERD Editor
 
PDF
A review on automatic wavelet based nonlinear image enhancement for aerial ...
IAEME Publication
 
PDF
Comparison and improvement of image compression
IAEME Publication
 
IRJET- Performance Analysis of Non Linear Filtering for Image Denoising
IRJET Journal
 
IMAGE COMPRESSION AND DECOMPRESSION SYSTEM
Vishesh Banga
 
3.introduction onwards deepa
Safalsha Babu
 
IRJET- An Efficient VLSI Architecture for 3D-DWT using Lifting Scheme
IRJET Journal
 
Thesis on Image compression by Manish Myst
Manish Myst
 
Intensity Enhancement in Gray Level Images using HSV Color Coding Technique
IRJET Journal
 
An Image Enhancement Approach to Achieve High Speed using Adaptive Modified B...
TELKOMNIKA JOURNAL
 
20120140503009
IAEME Publication
 
A Review on Haze Removal Techniques
IRJET Journal
 
IRJET- Image De-Blurring using Blind De-Convolution Algorithm
IRJET Journal
 
An efficient fusion based up sampling technique for restoration of spatially ...
ijitjournal
 
Deblurring Image and Removing Noise from Medical Images for Cancerous Disease...
IRJET Journal
 
Survey on Haze Removal Techniques
Editor IJMTER
 
IRJET- Kidney Stone Classification using Deep Neural Networks and Facilitatin...
IRJET Journal
 
IRJET- Exploring Image Super Resolution Techniques
IRJET Journal
 
Wavelet Based Image Watermarking
IJERA Editor
 
E1083237
IJERD Editor
 
A review on automatic wavelet based nonlinear image enhancement for aerial ...
IAEME Publication
 
Comparison and improvement of image compression
IAEME Publication
 
Ad

Similar to Restoration of Old Documents that Suffer from Degradation (20)

PDF
IRJET- SEPD Technique for Removal of Salt and Pepper Noise in Digital Images
IRJET Journal
 
PDF
Image compression and reconstruction using improved Stockwell transform for q...
IJECEIAES
 
PDF
IRJET- A Review on Image Denoising & Dehazing Algorithm to Improve Dark Chann...
IRJET Journal
 
PDF
IRJET - Change Detection in Satellite Images using Convolutional Neural N...
IRJET Journal
 
PDF
Comparative Analysis of image Enhancement Techniques on Real Time images
IJSRED
 
PDF
Ijarcet vol-2-issue-3-891-896
Editor IJARCET
 
PDF
PARALLEL GENERATION OF IMAGE LAYERS CONSTRUCTED BY EDGE DETECTION USING MESSA...
ijcsit
 
PDF
De-Noisy Image of Activity Tracking System in Digital Image Processing
IRJET Journal
 
PDF
De-Noisy Image of Activity Tracking System in Digital Image Processing
IRJET Journal
 
PDF
IRJET- Different Approaches for Implementation of Fractal Image Compressi...
IRJET Journal
 
PDF
1674 1677
Editor IJARCET
 
PDF
1674 1677
Editor IJARCET
 
PDF
IRJET - Contrast and Color Improvement based Haze Removal of Underwater Image...
IRJET Journal
 
PDF
A Flexible Scheme for Transmission Line Fault Identification Using Image Proc...
IJEEE
 
PDF
Gi3511181122
IJERA Editor
 
PDF
Review On Fractal Image Compression Techniques
IRJET Journal
 
PDF
IRJET- DNA Fragmentation Pattern and its Application in DNA Sample Type Class...
IRJET Journal
 
PDF
IRJET- Low Light Image Enhancement using Convolutional Neural Network
IRJET Journal
 
PDF
A Novel Framework For Preprocessing Of Breast Ultra Sound Images By Combining...
IRJET Journal
 
PDF
BIG DATA-DRIVEN FAST REDUCING THE VISUAL BLOCK ARTIFACTS OF DCT COMPRESSED IM...
IJDKP
 
IRJET- SEPD Technique for Removal of Salt and Pepper Noise in Digital Images
IRJET Journal
 
Image compression and reconstruction using improved Stockwell transform for q...
IJECEIAES
 
IRJET- A Review on Image Denoising & Dehazing Algorithm to Improve Dark Chann...
IRJET Journal
 
IRJET - Change Detection in Satellite Images using Convolutional Neural N...
IRJET Journal
 
Comparative Analysis of image Enhancement Techniques on Real Time images
IJSRED
 
Ijarcet vol-2-issue-3-891-896
Editor IJARCET
 
PARALLEL GENERATION OF IMAGE LAYERS CONSTRUCTED BY EDGE DETECTION USING MESSA...
ijcsit
 
De-Noisy Image of Activity Tracking System in Digital Image Processing
IRJET Journal
 
De-Noisy Image of Activity Tracking System in Digital Image Processing
IRJET Journal
 
IRJET- Different Approaches for Implementation of Fractal Image Compressi...
IRJET Journal
 
1674 1677
Editor IJARCET
 
1674 1677
Editor IJARCET
 
IRJET - Contrast and Color Improvement based Haze Removal of Underwater Image...
IRJET Journal
 
A Flexible Scheme for Transmission Line Fault Identification Using Image Proc...
IJEEE
 
Gi3511181122
IJERA Editor
 
Review On Fractal Image Compression Techniques
IRJET Journal
 
IRJET- DNA Fragmentation Pattern and its Application in DNA Sample Type Class...
IRJET Journal
 
IRJET- Low Light Image Enhancement using Convolutional Neural Network
IRJET Journal
 
A Novel Framework For Preprocessing Of Breast Ultra Sound Images By Combining...
IRJET Journal
 
BIG DATA-DRIVEN FAST REDUCING THE VISUAL BLOCK ARTIFACTS OF DCT COMPRESSED IM...
IJDKP
 
Ad

More from IRJET Journal (20)

PDF
Enhanced heart disease prediction using SKNDGR ensemble Machine Learning Model
IRJET Journal
 
PDF
Utilizing Biomedical Waste for Sustainable Brick Manufacturing: A Novel Appro...
IRJET Journal
 
PDF
Kiona – A Smart Society Automation Project
IRJET Journal
 
PDF
DESIGN AND DEVELOPMENT OF BATTERY THERMAL MANAGEMENT SYSTEM USING PHASE CHANG...
IRJET Journal
 
PDF
Invest in Innovation: Empowering Ideas through Blockchain Based Crowdfunding
IRJET Journal
 
PDF
SPACE WATCH YOUR REAL-TIME SPACE INFORMATION HUB
IRJET Journal
 
PDF
A Review on Influence of Fluid Viscous Damper on The Behaviour of Multi-store...
IRJET Journal
 
PDF
Wireless Arduino Control via Mobile: Eliminating the Need for a Dedicated Wir...
IRJET Journal
 
PDF
Explainable AI(XAI) using LIME and Disease Detection in Mango Leaf by Transfe...
IRJET Journal
 
PDF
BRAIN TUMOUR DETECTION AND CLASSIFICATION
IRJET Journal
 
PDF
The Project Manager as an ambassador of the contract. The case of NEC4 ECC co...
IRJET Journal
 
PDF
"Enhanced Heat Transfer Performance in Shell and Tube Heat Exchangers: A CFD ...
IRJET Journal
 
PDF
Advancements in CFD Analysis of Shell and Tube Heat Exchangers with Nanofluid...
IRJET Journal
 
PDF
Breast Cancer Detection using Computer Vision
IRJET Journal
 
PDF
Auto-Charging E-Vehicle with its battery Management.
IRJET Journal
 
PDF
Analysis of high energy charge particle in the Heliosphere
IRJET Journal
 
PDF
A Novel System for Recommending Agricultural Crops Using Machine Learning App...
IRJET Journal
 
PDF
Auto-Charging E-Vehicle with its battery Management.
IRJET Journal
 
PDF
Analysis of high energy charge particle in the Heliosphere
IRJET Journal
 
PDF
Wireless Arduino Control via Mobile: Eliminating the Need for a Dedicated Wir...
IRJET Journal
 
Enhanced heart disease prediction using SKNDGR ensemble Machine Learning Model
IRJET Journal
 
Utilizing Biomedical Waste for Sustainable Brick Manufacturing: A Novel Appro...
IRJET Journal
 
Kiona – A Smart Society Automation Project
IRJET Journal
 
DESIGN AND DEVELOPMENT OF BATTERY THERMAL MANAGEMENT SYSTEM USING PHASE CHANG...
IRJET Journal
 
Invest in Innovation: Empowering Ideas through Blockchain Based Crowdfunding
IRJET Journal
 
SPACE WATCH YOUR REAL-TIME SPACE INFORMATION HUB
IRJET Journal
 
A Review on Influence of Fluid Viscous Damper on The Behaviour of Multi-store...
IRJET Journal
 
Wireless Arduino Control via Mobile: Eliminating the Need for a Dedicated Wir...
IRJET Journal
 
Explainable AI(XAI) using LIME and Disease Detection in Mango Leaf by Transfe...
IRJET Journal
 
BRAIN TUMOUR DETECTION AND CLASSIFICATION
IRJET Journal
 
The Project Manager as an ambassador of the contract. The case of NEC4 ECC co...
IRJET Journal
 
"Enhanced Heat Transfer Performance in Shell and Tube Heat Exchangers: A CFD ...
IRJET Journal
 
Advancements in CFD Analysis of Shell and Tube Heat Exchangers with Nanofluid...
IRJET Journal
 
Breast Cancer Detection using Computer Vision
IRJET Journal
 
Auto-Charging E-Vehicle with its battery Management.
IRJET Journal
 
Analysis of high energy charge particle in the Heliosphere
IRJET Journal
 
A Novel System for Recommending Agricultural Crops Using Machine Learning App...
IRJET Journal
 
Auto-Charging E-Vehicle with its battery Management.
IRJET Journal
 
Analysis of high energy charge particle in the Heliosphere
IRJET Journal
 
Wireless Arduino Control via Mobile: Eliminating the Need for a Dedicated Wir...
IRJET Journal
 

Recently uploaded (20)

PPTX
Inventory management chapter in automation and robotics.
atisht0104
 
PPT
1. SYSTEMS, ROLES, AND DEVELOPMENT METHODOLOGIES.ppt
zilow058
 
PDF
Biodegradable Plastics: Innovations and Market Potential (www.kiu.ac.ug)
publication11
 
PPTX
easa module 3 funtamental electronics.pptx
tryanothert7
 
PDF
67243-Cooling and Heating & Calculation.pdf
DHAKA POLYTECHNIC
 
PDF
FLEX-LNG-Company-Presentation-Nov-2017.pdf
jbloggzs
 
PDF
67243-Cooling and Heating & Calculation.pdf
DHAKA POLYTECHNIC
 
PPTX
MSME 4.0 Template idea hackathon pdf to understand
alaudeenaarish
 
PDF
top-5-use-cases-for-splunk-security-analytics.pdf
yaghutialireza
 
PDF
JUAL EFIX C5 IMU GNSS GEODETIC PERFECT BASE OR ROVER
Budi Minds
 
PDF
67243-Cooling and Heating & Calculation.pdf
DHAKA POLYTECHNIC
 
DOCX
SAR - EEEfdfdsdasdsdasdasdasdasdasdasdasda.docx
Kanimozhi676285
 
PPTX
Chapter_Seven_Construction_Reliability_Elective_III_Msc CM
SubashKumarBhattarai
 
PDF
Advanced LangChain & RAG: Building a Financial AI Assistant with Real-Time Data
Soufiane Sejjari
 
PDF
Introduction to Ship Engine Room Systems.pdf
Mahmoud Moghtaderi
 
PPTX
business incubation centre aaaaaaaaaaaaaa
hodeeesite4
 
PDF
Unit I Part II.pdf : Security Fundamentals
Dr. Madhuri Jawale
 
PPTX
Information Retrieval and Extraction - Module 7
premSankar19
 
PDF
Software Testing Tools - names and explanation
shruti533256
 
PDF
Chad Ayach - A Versatile Aerospace Professional
Chad Ayach
 
Inventory management chapter in automation and robotics.
atisht0104
 
1. SYSTEMS, ROLES, AND DEVELOPMENT METHODOLOGIES.ppt
zilow058
 
Biodegradable Plastics: Innovations and Market Potential (www.kiu.ac.ug)
publication11
 
easa module 3 funtamental electronics.pptx
tryanothert7
 
67243-Cooling and Heating & Calculation.pdf
DHAKA POLYTECHNIC
 
FLEX-LNG-Company-Presentation-Nov-2017.pdf
jbloggzs
 
67243-Cooling and Heating & Calculation.pdf
DHAKA POLYTECHNIC
 
MSME 4.0 Template idea hackathon pdf to understand
alaudeenaarish
 
top-5-use-cases-for-splunk-security-analytics.pdf
yaghutialireza
 
JUAL EFIX C5 IMU GNSS GEODETIC PERFECT BASE OR ROVER
Budi Minds
 
67243-Cooling and Heating & Calculation.pdf
DHAKA POLYTECHNIC
 
SAR - EEEfdfdsdasdsdasdasdasdasdasdasdasda.docx
Kanimozhi676285
 
Chapter_Seven_Construction_Reliability_Elective_III_Msc CM
SubashKumarBhattarai
 
Advanced LangChain & RAG: Building a Financial AI Assistant with Real-Time Data
Soufiane Sejjari
 
Introduction to Ship Engine Room Systems.pdf
Mahmoud Moghtaderi
 
business incubation centre aaaaaaaaaaaaaa
hodeeesite4
 
Unit I Part II.pdf : Security Fundamentals
Dr. Madhuri Jawale
 
Information Retrieval and Extraction - Module 7
premSankar19
 
Software Testing Tools - names and explanation
shruti533256
 
Chad Ayach - A Versatile Aerospace Professional
Chad Ayach
 

Restoration of Old Documents that Suffer from Degradation

  • 1. International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056 Volume: 04 Issue: 08 | Aug -2017 www.irjet.net p-ISSN: 2395-0072 © 2017, IRJET | Impact Factor value: 5.181 | ISO 9001:2008 Certified Journal | Page 1994 Restoration of Old Documents That Suffer From Degradation Tejashwini.A.G1, Smt G.Anitha2 1Tejashwini .A.G 4th Sem, MTech, Dept of Computer Science and Engineering, UBDTCE, PJ Exteension, Davnagere, Karnataka, India. 2Smt. G.Anitha B.E.,M.E. Associate Professor, Dept of Computer Science and Engineering, UBDTCE, PJ Exteension, Davnagere, Karnataka, India. ---------------------------------------------------------------------***--------------------------------------------------------------------- Abstract - Here I propose a new approach for foreground/background separation to restore degraded ancient documents suffering from recto/verso transparency. This approach is used to process single-sided documents and proceeds in three steps: The first step aims to separate between the background and foreground of the image by a contrast enhancementusing gammacorrectionandhistogram stretching. The second step consists in separating the final foreground and the remaining noised pixels. Separation between the initial resulting foreground and the remaining background regions by comparing RGB component with original document, followed by its correction using ostus method, the third step allows the reconstruction of the final restored image using the obtained foreground and background. The new approach presents the advantage ofthe accuracy of its results. Key Words: RGB, Ostus method, Contrast Stretching, Gamma Correction. 1. INTRODUCTION Ancient documents are a witness of past civilizations. They represent a valuable cultural and scientific heritage. This heritage allowsthetransmissionofknowledgefrom one generation to another, performing the human evaluation. Therefore, safeguarding and preserving this heritage is of paramount importance. Unfortunately, most of the documents have incurred a progressive degradationandare facing a real danger of disappearance. They suffer from multiple physical degradations that may be biological, chemical or of human origin. Thus, several physical restoration techniques have been used to address these degradations. Indeed, these techniques can reinforce the document supports and slowdown its ageing. However, these techniques represent temporary solutions, which require qualified competences and which can introduce, amongst others, side effects on the processed documents. To tackle this disadvantage, digitizationhasbeenthemost adequate solution allowing both the preservation of the patrimonial documents and their diffusion. Digitization brings in these context large possibilities of image processing for their analysis and dissemination for the general public on inexpensivesupports.Moreover,it enables the search for information in an easier and more effective way compared to the methods used withthedocumentsona physical support. In the same way, the duplication of digital data is carried out very quickly without any loss of information. Here it is targets the restoration of the degradations which includes scanning noise, aging effects, uneven background or foreground, etc. 2. ARCHITECTURE In the architecture diagram there are four main steps: 1. Loading image document 2. Background extraction FIG 2.1 3. Foreground extraction 4. Image correction All the steps are carried out one after the other and then the image is reconstructed with new background and foreground and then the results are compared with original document. 3. ALGORITHM DESIGN Step1. Load data for restoration Step 2.Extract background from the detoriated image Step 3.Extract foreground from the image
  • 2. International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056 Volume: 04 Issue: 07 | July -2017 www.irjet.net p-ISSN: 2395-0072 © 2017, IRJET | Impact Factor value: 5.181 | ISO 9001:2008 Certified Journal | Page 1995 Step 4.Perform Gama correction Step5. Perform Contrast stretching Step 6.Reconstruction of image by combining output Step 7.Compare result i.e. to compare old document with restored document Step 8.Exit from the menu 3.1 Load data  In load data module an image document is loaded for restoration.  Image is loaded my interactive methodbyaccessing only images from the directory  Once the loading of an image is completed then “Done loading image” message is displayed on the screen 3.2 Extract background  When the image is loaded then red component, green component and blue component of the image are taken for both background and foreground.  To get only background for processing, background is subtracted from foreground and all subtracted image are added.  Now the process is tochange background.Meanand mode operation is performed and values are extracted.  A new background is constructed using extracted values, eliminating all uneven background colors. 3.3 Extract foreground  When the image is loaded then red component, green component and blue component of the image are taken for both background and foreground.  To get only foreground for processing, background is subtracted from foreground.  Now the process is to get the normalized denoised image. And the original image is binarized using ostu’s method. 3.4 Gamma correction Gamma correction, or often simply gamma, is the name of a nonlinear operation used to encode and decode luminance or tristimulus values in video or still image systems. Gamma correction is, in the simplest cases, defined by the following power-law expression: ……..(i) Gamma correction of images is used to optimize theusage of bits when encoding an image, or bandwidth used to transport an image, by taking advantage of the non-linear manner in which humans perceive light and color. The human perceptionofbrightness,undercommonillumination conditions (not pitch black nor blindingly bright),followsan approximate powerfunction (note:norelationtothe Gamma function), with greater sensitivity to relative differences between darker tones than between lighter ones, consistent with the Stevens' power law for brightness perception. If images are not gamma-encoded, they allocate too many bits or too much bandwidth to highlights that humans cannot differentiate, and too few bits or too little bandwidth to shadow values that humans are sensitive to and would require more bits/bandwidth to maintain the same visual quality. Gamma encoding of floating-point images is not required (and may be counterproductive), because the floating-point format already provides a piecewise linear approximation of a logarithmic curve. Although gamma encoding was developed originally to compensate for the input–output characteristic of cathode ray tube (CRT) displays, that is not its main purpose or advantage in modern systems. In CRT displays, the light intensity varies nonlinearly with the electron-gun voltage. Altering the input signal by gamma compression can cancel this nonlinearity, such that the output picture has the intended luminance. However, the gamma characteristicsof the display device do not play a factor in the gamma encoding of images and video—they need gamma encoding to maximize the visual quality of the signal, regardless ofthe gamma characteristics of the displaydevice.Thesimilarity of CRT physics to the inverse of gamma encoding needed for video transmission was a combination of luck and engineering, which simplified the electronics in early television sets. 3.5 Contrast stretching Contrast stretching is a common technique, and can be quite effective if utilized properly. In the field of medical imagingorscanned documents,anx-raycamera that consists of an array of x-ray detectors creates what are known as digital radiographs, or digital x-ray images. The detectors accumulate charge (which manifests itself as a larger pixel intensity) proportional to the amount of x-ray illumination they receive, which depends on the quality of the x-ray beam and the object being imaged. A high-density object means less x-rays pass through the object to eventually reach the detectors (hence the beam is said to be attenuated), which results in such higher density areas appearing darker is a common technique, and can bequite effective if utilized properly. In the field of medical imaging, an x-ray camera that consists of an array of x-ray detectors creates what are known as digital radiographs, or digital x- ray images. The detectors accumulate charge (which manifests itself as a larger pixel intensity) proportional to the amount of x-ray illumination they receive, which depends on the quality of the x-ray beam and the object being imaged. A high-density object means less x-rays pass through the object to eventually reach the detectors (hence the beam is said to be attenuated), which results in such higher density areas appearing darker.
  • 3. International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056 Volume: 04 Issue: 07 | July -2017 www.irjet.net p-ISSN: 2395-0072 © 2017, IRJET | Impact Factor value: 5.181 | ISO 9001:2008 Certified Journal | Page 1996 3.6 Reconstruction  Processed background and foreground image is taken,  Then both of them are clubbed together to form a reconstructed or restored image. 3.7 Compare  Previously loaded image and output image re put side by side to compare.  Difference can be seen from old degraded image to restored image. 3.8 Exit  Exits from the menu bar.  If exit is not done properly then loop will not be terminated. 4. Methodologies 4.1 Ostu’s Method Method: This type of thresholding is global thresholding. It stores the intensities of the pixels in an array. The threshold is calculated by using total mean and variance. Based on this threshold value each pixel is set to either 0 or 1. i.e. background or foreground. Thus here the change of image takes place only once. The following formulas are used to calculate the total mean and variance. The pixels are divided into 2 classes, C1 with gray levels [1, ...,t] and C2 with gray levels [t+1, ... ,L].The probability distribution for the two classes is: Also, the means for the two classes are Using Discriminate Analysis, Otsu definedthebetween-class variance of the thresholded image as For bi-level thresholding, Otsu verified that the optimal threshold t* is chosen so that the between-classvarianceBis maximized; that is, Performance (with respect to our experiments): Otsu works well with some images and performs badly with some. The majority of the results from Otsu have too much of noise in the form of the background being detected as foreground. Otsu can be used for thresholding if the noise removal and character recognition implementations are really good. The main advantage is the simplicity of calculation of the threshold. Since it is a global algorithm it is well suited only for the images with equal intensities. This might not give a good result for the images with lots of variation in the intensities of pixels. 5.Results Following are the results showing the outcome at each step and the final result can be compared which is obtained after completion of all actions 5.1.1 Background extraction: (a) (b) 5.1.2 Foreground separation (a) (b)
  • 4. International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056 Volume: 04 Issue: 07 | July -2017 www.irjet.net p-ISSN: 2395-0072 © 2017, IRJET | Impact Factor value: 5.181 | ISO 9001:2008 Certified Journal | Page 1997 5.1.3Gama correction and contrast stretching 5.1.4 Final result and comparison 6. Conclusion In this system, we have put forward a hybrid approachfor restoring images of ancient documents, with irregular background and some transparency degradation. This approach occurs in three stages: a first separation between the foreground and the background based on, gamma correction and histogram stretching, a second separation between the initial resulting foreground and the remaining background regions by comparing RGB component with original document, followed by its correction using ostus method and the reconstruction of the final restored image. The different tests and experimentations have shown that the results are satisfactory and encouraging. The developed tool can be improved to meet other needs in dealing with other problems. REFERENCES [1] A. Kricha, N. Essoukri Ben Amara, “ Contribution to the pre processing and characterization of ancient documents: Application to the segmentation”, PhD Thesis, SAGE, University of Manar, Tunis, 2013. [2] M.A.Charrada, N. Essoukri Ben Amara,“Developmentofa database with ground truth for old documents analysis”, Systems, Signals & Devices, 10th International Multi Conference, pp 1-6, Hammamet, 2013. [3] M. A. Charrada, N. Essoukri Ben Amara, “Databasedesign of ancient bleed-through document images with ground- truth”, 1rst Internatioanl Image ProcessingApplicationsand Systems Conference, pp.124-128, Hammamet, 2014. [4] J. Wang and C. L. Tan, “Non-rigid registration and restoration of double-sided historical manuscripts”, 11th International Conference On Document Analysis and Recognition, pp. 1374 – 1378, Beijing, 2011. [5] R. Rowley-Brooke, A. Kokaram , “Degraded document bleed-through removal”, Irish, Machine Vision and Image Processing Conference, pp.70-75, Dublin, 2011. [6] Rabeux, “Evaluation of the quality of old scanned documents”, PhD Thesis, LaBRI, University of Bordeaux I, Bordeaux, 2013. [7] Y. Huang, M. Brown, and D. Xu, “A framework for reducing ink-bleed In old documents”, Computer Vision and Pattern Recognition, CVPR, pp. 1-7, Anchorage, AK , 2008. BIOGRAPHIES Tejashwini A G received the degrees in computer science from VTU University at Government EngineeringCollege Karwar in 2015 and currently studying MTECH IV in Computer Science and Engineering at UBDTCE