Photo Restoration Using Open CV in Python: A Computer Vision Based Project
Photo Restoration Using Open CV in Python: A Computer Vision Based Project
Abstract: At present image processing has become one of the very famous subjects for research area among rapidly growing
technologies within engineering. This paper will explain how a damaged or corrupted image or photograph (cracked, torn or folded) can
be restored using OpenCV(Open Source Computer Vision) in Python. Here we feed a damaged or corrupted image in the program along
with a masked image as input and eventually we will get restored image as output. There are some methods like Denoising, Gray scaling,
Thresholding, Dilation etc and few inbuilt function and algorithms are used to construct the code. Thus this is a very interesting, simple,
and fascinating image processing technique and can be used for several purposes like restoring old, damaged or corrupted image for
archiving purposes.
4. Flowchart
3. Methodology
Initially the path of the damaged file is mentioned and is
loaded in our program. To enhance the final output image,
the damaged photo is processed by Denoising it by means of Figure 4: Flowchart of the program
Fast Means Denoising method. This reduces the coarseness
of the image and makes the image smooth. 5. Result
Next, a greyscale masked image of the same damaged image In this section we will get to know how the damaged or
is created by marking the regions which are to be repaired corrupted image is being developed to restore image in step
and is also loaded. The marking is done by creating strokes by step format as defined in the flowchart section. The result
over the damaged area with a brush of white colour edited in is as following:
MS Paint for Windows or any similar software in Mac or
Linux Ubuntu.
6. Conclusion
In this paper we discussed about Image restoration by the
help of Inpainting function using the language of Python
with the help of OpenCV software. This program gives us
facility to restore image from damaged condition for
archiving purpose of any old, torn photograph etc which can
be considered as application of this program. We have
successfully done the restoration of some photographs in our
project, so we conclude that we can easily restore all types of
damaged photograph using this effective and efficient
program code.
References
[1] Nidhi, “Image Processing and Object Detection”,
International Journal of Applied Research 2015;1(9):
396-399
[2] Kruti Goyal, Kartikey Agarwal, Rishi Kumar , “Face
Detection and Tracking”, International Conference on
Electronics, Communication and Aerospace Technology
ICECA 2017
[3] Y ue Yaru, Zhu Jialin, “Algorithm of Fingerprint
Extraction and Implementation Based on OpenCV”,
2017 2nd International Conference on Image, Vision and
Computing,978-1-5090-6238-6/1 7©20 17 IEEE
[4] Chaoxing Huang ,Dan Chen ,Xusheng
Tang,”Implementation of Workpiece Recognition and
Location Based on Opencv”, 2015 8th International
Symposium on Computational Intelligence and Design.
[5] M. Ashok Kumar, R.R. Tewari, “Human gestures and
recognizing faces in natural expressions by considering
computer vision techniques on mobile devices”,
Intelligent Computing and Control Systems (ICICCS),
2017 International Conference.
[6] Cristhian Rosales, Luis Jácome, Jorge Carrión, Carlos
Jaramillo, Mario Palma, “Computer Vision for detection
of body expressions of children with cerebral palsy”,
2017 IEEE Second Ecuador Technical Chapters Meeting
(ETCM).
[7] G.D. Illeperuma, D.U.J. Sonnadara, “Computer Vision
Based Object Tracking as a Teaching Aid for High
School Physics Experiments”, Proc. EECSI 2017,
Yogyakarta, Indonesia, 19-21 September 2017, 2017 4th
Volume 7 Issue 1, January 2018
www.ijsr.net
Licensed Under Creative Commons Attribution CC BY
Paper ID: ART20179794 DOI: 10.21275/ART20179794 1970