SlideShare a Scribd company logo
1 of 1
Download to read offline
CAPTCHA Formation with Warping and Random
Number Generation
Muhammad Umer Kakli
Electronics and Telecommunication Research Institute,
University of Science and Technology,
Daejeon, South Korea
Email: umar.isb@gmail.com, umar.isb@etri.re.kr
Saeed Ullah
Korea Institute of Science and Technology Information,
University of Science and Technology,
Daejeon, South Korea
Email: saeedonline12@gmail.com
Summary— Completely Automated Public Turing test to tell
Computers and Human Apart (CAPTCHA) is a test used in
computing to check that whether the user is human or not.
Typically, a distorted random sequence of alphabets and
numbers is shown the user, and then asked to enter those
alphanumeric values, and finally it is compared with the original
alphanumeric values for verification. In this report, we utilized
OpenCV to automatically generate a CAPTCHA sequence based
on warping and random number generation.
I. INTRODUCNTION TO CAPTCHA’S
In recent years, we have witnessed tremendous
advancements in mobile phone and internet technology. We
can retrieve the information from anywhere in the world with
just few clicks. In this era of globalization where such
inventions and progressions improved our daily life quality on
one hand, the risks and frauds involved in cyber world cannot
be overlooked on the other hand. With every passing day
numbers of cybercrimes are increasing. Researchers are trying
to build more reliable and secure systems. One of the
challenges in cybersecurity domain is the ‘success of deep
learning and artificial intelligence’. Deep learning algorithms
are intelligent enough to breach the security systems. One of
the basic idea to prevent from automated cyber-attacks is the
use of CAPTCHA’s. The alphabets and numbers in CAPTCHA
image are distorted too much that it is not easy for recognition
algorithms to accurately recognize the alphanumeric values.
Some of the CAPTCHA images are shown in Figure 1.
Figure 1. Some sample CAPTCHAs
In this report, we have utilized OpenCV’s warping function
and Random Number Generation (RNG) class to automatically
generate a CAPTCHA image. Firstly, we used warping to
distort the image from its original shape. The input image is
warped to a randomly selected plane. This is done by using
‘warpPerspective’ function. After warping, we further rotate
the image with random angle up to 30 degrees to make it robust
but readable. We used ‘warpAffine’ function to achieve the
rotation task. Once both transformations are done we further
applied salt and pepper noise so that it becomes strong against
automatic character recognition algorithms.
II. RESULTS AND DISCUSSION
The environment used for this program is Microsoft Visual
Studio 2010 and OpenCV 3.2.
Figure 2. shows the transformations applied to one
character of CAPTCHA
(a) Original (b) Warped (c) Rotated
Figure 2. Transformation of one character
Length of total number of characters in CAPCHA can be
vary from application of application. In our experiments we
used five character CAPCHA. Different random values for
warping plane and rotation angle are applied to each character.
Once all five characters are concatenated salt and pepper noise
is further added. Figure 3. shows the final CAPCHA image.
Figure 3. Final CAPCHA Image
III. CONCLUSION
A very simple approach based on warping, rotation and salt
& pepper noise is used to generate a CAPCHA Image.
OpenCV also provides various functions for drawing apart
from traditional image processing functions which are easy to
use. By adding random colors or drawing random line over the
image could increase the CAPCHA strength against cyber-
attacks.

More Related Content

Similar to captcha formation with warping and random number generation

Captcha Seminar report 2014
Captcha Seminar report 2014Captcha Seminar report 2014
Captcha Seminar report 2014
Ganesh Dhage
 

Similar to captcha formation with warping and random number generation (20)

Enhancing The Human Perceivable Image Content In CAPTCHA Based BF Algorithm
Enhancing The Human Perceivable Image Content In CAPTCHA Based BF AlgorithmEnhancing The Human Perceivable Image Content In CAPTCHA Based BF Algorithm
Enhancing The Human Perceivable Image Content In CAPTCHA Based BF Algorithm
 
Captcha Seminar report 2014
Captcha Seminar report 2014Captcha Seminar report 2014
Captcha Seminar report 2014
 
Captcha
CaptchaCaptcha
Captcha
 
Captcha system
Captcha  systemCaptcha  system
Captcha system
 
Captcha seminar report
Captcha seminar reportCaptcha seminar report
Captcha seminar report
 
Captcha ppt
Captcha pptCaptcha ppt
Captcha ppt
 
An Optimized System to Solve Text-Based Captcha
An Optimized System to Solve Text-Based CaptchaAn Optimized System to Solve Text-Based Captcha
An Optimized System to Solve Text-Based Captcha
 
Demonstrated Deep Learning Techniques for the Resolution of CAPTCHA images
Demonstrated Deep Learning Techniques for the Resolution of CAPTCHA imagesDemonstrated Deep Learning Techniques for the Resolution of CAPTCHA images
Demonstrated Deep Learning Techniques for the Resolution of CAPTCHA images
 
web application security using CAPTCHA
web application  security using CAPTCHAweb application  security using CAPTCHA
web application security using CAPTCHA
 
Captchas
CaptchasCaptchas
Captchas
 
Captchas
CaptchasCaptchas
Captchas
 
An Implementation of A Geometric and Arithmetic CAPTCHA without Database
An Implementation of A Geometric and Arithmetic CAPTCHA without DatabaseAn Implementation of A Geometric and Arithmetic CAPTCHA without Database
An Implementation of A Geometric and Arithmetic CAPTCHA without Database
 
Captcha
CaptchaCaptcha
Captcha
 
CAPTCHA
CAPTCHACAPTCHA
CAPTCHA
 
Enhancing Web-Security with Stronger Captchas
Enhancing Web-Security with Stronger CaptchasEnhancing Web-Security with Stronger Captchas
Enhancing Web-Security with Stronger Captchas
 
A countermeasure for security intensification in cloud using CaPGP
A countermeasure for security intensification in cloud using CaPGPA countermeasure for security intensification in cloud using CaPGP
A countermeasure for security intensification in cloud using CaPGP
 
Captcha by vinit sharma
Captcha by vinit sharmaCaptcha by vinit sharma
Captcha by vinit sharma
 
A SURVEY ON CAPTCHA TECHNIQUE BASED ON DRAG AND DROP MOUSE ACTION
A SURVEY ON CAPTCHA TECHNIQUE BASED ON DRAG AND DROP MOUSE ACTIONA SURVEY ON CAPTCHA TECHNIQUE BASED ON DRAG AND DROP MOUSE ACTION
A SURVEY ON CAPTCHA TECHNIQUE BASED ON DRAG AND DROP MOUSE ACTION
 
deCaptcha
deCaptchadeCaptcha
deCaptcha
 
CSE captcha ppt.pptx
CSE captcha ppt.pptxCSE captcha ppt.pptx
CSE captcha ppt.pptx
 

More from Saeed Ullah

More from Saeed Ullah (9)

downsampling and upsampling of an image using pyramids (pyr up and pyrdown me...
downsampling and upsampling of an image using pyramids (pyr up and pyrdown me...downsampling and upsampling of an image using pyramids (pyr up and pyrdown me...
downsampling and upsampling of an image using pyramids (pyr up and pyrdown me...
 
dilating and eroding in open cv
dilating and eroding in open cvdilating and eroding in open cv
dilating and eroding in open cv
 
line and circle detection using hough transform
line and circle detection using hough transformline and circle detection using hough transform
line and circle detection using hough transform
 
aip shape detection and tracking using contours
aip shape detection and tracking using contoursaip shape detection and tracking using contours
aip shape detection and tracking using contours
 
aip edge detection using sobel and canny methods
aip edge detection using sobel and canny methodsaip edge detection using sobel and canny methods
aip edge detection using sobel and canny methods
 
histogram equalization of grayscale and color image
histogram equalization of grayscale and color imagehistogram equalization of grayscale and color image
histogram equalization of grayscale and color image
 
aip basic open cv example
aip basic open cv exampleaip basic open cv example
aip basic open cv example
 
Online Transaction Processing (OLTP) System for Dir Maidan Palace (Saeed BS p...
Online Transaction Processing (OLTP) System for Dir Maidan Palace (Saeed BS p...Online Transaction Processing (OLTP) System for Dir Maidan Palace (Saeed BS p...
Online Transaction Processing (OLTP) System for Dir Maidan Palace (Saeed BS p...
 
A comprehensive study on nondestructive inspection of reinforced concrete uti...
A comprehensive study on nondestructive inspection of reinforced concrete uti...A comprehensive study on nondestructive inspection of reinforced concrete uti...
A comprehensive study on nondestructive inspection of reinforced concrete uti...
 

Recently uploaded

Tembisa Central Terminating Pills +27838792658 PHOMOLONG Top Abortion Pills F...
Tembisa Central Terminating Pills +27838792658 PHOMOLONG Top Abortion Pills F...Tembisa Central Terminating Pills +27838792658 PHOMOLONG Top Abortion Pills F...
Tembisa Central Terminating Pills +27838792658 PHOMOLONG Top Abortion Pills F...
drjose256
 
Final DBMS Manual (2).pdf final lab manual
Final DBMS Manual (2).pdf final lab manualFinal DBMS Manual (2).pdf final lab manual
Final DBMS Manual (2).pdf final lab manual
BalamuruganV28
 

Recently uploaded (20)

Fuzzy logic method-based stress detector with blood pressure and body tempera...
Fuzzy logic method-based stress detector with blood pressure and body tempera...Fuzzy logic method-based stress detector with blood pressure and body tempera...
Fuzzy logic method-based stress detector with blood pressure and body tempera...
 
Tembisa Central Terminating Pills +27838792658 PHOMOLONG Top Abortion Pills F...
Tembisa Central Terminating Pills +27838792658 PHOMOLONG Top Abortion Pills F...Tembisa Central Terminating Pills +27838792658 PHOMOLONG Top Abortion Pills F...
Tembisa Central Terminating Pills +27838792658 PHOMOLONG Top Abortion Pills F...
 
Worksharing and 3D Modeling with Revit.pptx
Worksharing and 3D Modeling with Revit.pptxWorksharing and 3D Modeling with Revit.pptx
Worksharing and 3D Modeling with Revit.pptx
 
Instruct Nirmaana 24-Smart and Lean Construction Through Technology.pdf
Instruct Nirmaana 24-Smart and Lean Construction Through Technology.pdfInstruct Nirmaana 24-Smart and Lean Construction Through Technology.pdf
Instruct Nirmaana 24-Smart and Lean Construction Through Technology.pdf
 
Involute of a circle,Square, pentagon,HexagonInvolute_Engineering Drawing.pdf
Involute of a circle,Square, pentagon,HexagonInvolute_Engineering Drawing.pdfInvolute of a circle,Square, pentagon,HexagonInvolute_Engineering Drawing.pdf
Involute of a circle,Square, pentagon,HexagonInvolute_Engineering Drawing.pdf
 
5G and 6G refer to generations of mobile network technology, each representin...
5G and 6G refer to generations of mobile network technology, each representin...5G and 6G refer to generations of mobile network technology, each representin...
5G and 6G refer to generations of mobile network technology, each representin...
 
What is Coordinate Measuring Machine? CMM Types, Features, Functions
What is Coordinate Measuring Machine? CMM Types, Features, FunctionsWhat is Coordinate Measuring Machine? CMM Types, Features, Functions
What is Coordinate Measuring Machine? CMM Types, Features, Functions
 
21scheme vtu syllabus of visveraya technological university
21scheme vtu syllabus of visveraya technological university21scheme vtu syllabus of visveraya technological university
21scheme vtu syllabus of visveraya technological university
 
Research Methodolgy & Intellectual Property Rights Series 1
Research Methodolgy & Intellectual Property Rights Series 1Research Methodolgy & Intellectual Property Rights Series 1
Research Methodolgy & Intellectual Property Rights Series 1
 
NO1 Best Powerful Vashikaran Specialist Baba Vashikaran Specialist For Love V...
NO1 Best Powerful Vashikaran Specialist Baba Vashikaran Specialist For Love V...NO1 Best Powerful Vashikaran Specialist Baba Vashikaran Specialist For Love V...
NO1 Best Powerful Vashikaran Specialist Baba Vashikaran Specialist For Love V...
 
Diploma Engineering Drawing Qp-2024 Ece .pdf
Diploma Engineering Drawing Qp-2024 Ece .pdfDiploma Engineering Drawing Qp-2024 Ece .pdf
Diploma Engineering Drawing Qp-2024 Ece .pdf
 
handbook on reinforce concrete and detailing
handbook on reinforce concrete and detailinghandbook on reinforce concrete and detailing
handbook on reinforce concrete and detailing
 
SLIDESHARE PPT-DECISION MAKING METHODS.pptx
SLIDESHARE PPT-DECISION MAKING METHODS.pptxSLIDESHARE PPT-DECISION MAKING METHODS.pptx
SLIDESHARE PPT-DECISION MAKING METHODS.pptx
 
UNIT 4 PTRP final Convergence in probability.pptx
UNIT 4 PTRP final Convergence in probability.pptxUNIT 4 PTRP final Convergence in probability.pptx
UNIT 4 PTRP final Convergence in probability.pptx
 
Final DBMS Manual (2).pdf final lab manual
Final DBMS Manual (2).pdf final lab manualFinal DBMS Manual (2).pdf final lab manual
Final DBMS Manual (2).pdf final lab manual
 
Dynamo Scripts for Task IDs and Space Naming.pptx
Dynamo Scripts for Task IDs and Space Naming.pptxDynamo Scripts for Task IDs and Space Naming.pptx
Dynamo Scripts for Task IDs and Space Naming.pptx
 
Working Principle of Echo Sounder and Doppler Effect.pdf
Working Principle of Echo Sounder and Doppler Effect.pdfWorking Principle of Echo Sounder and Doppler Effect.pdf
Working Principle of Echo Sounder and Doppler Effect.pdf
 
Artificial Intelligence in due diligence
Artificial Intelligence in due diligenceArtificial Intelligence in due diligence
Artificial Intelligence in due diligence
 
Autodesk Construction Cloud (Autodesk Build).pptx
Autodesk Construction Cloud (Autodesk Build).pptxAutodesk Construction Cloud (Autodesk Build).pptx
Autodesk Construction Cloud (Autodesk Build).pptx
 
Developing a smart system for infant incubators using the internet of things ...
Developing a smart system for infant incubators using the internet of things ...Developing a smart system for infant incubators using the internet of things ...
Developing a smart system for infant incubators using the internet of things ...
 

captcha formation with warping and random number generation

  • 1. CAPTCHA Formation with Warping and Random Number Generation Muhammad Umer Kakli Electronics and Telecommunication Research Institute, University of Science and Technology, Daejeon, South Korea Email: umar.isb@gmail.com, umar.isb@etri.re.kr Saeed Ullah Korea Institute of Science and Technology Information, University of Science and Technology, Daejeon, South Korea Email: saeedonline12@gmail.com Summary— Completely Automated Public Turing test to tell Computers and Human Apart (CAPTCHA) is a test used in computing to check that whether the user is human or not. Typically, a distorted random sequence of alphabets and numbers is shown the user, and then asked to enter those alphanumeric values, and finally it is compared with the original alphanumeric values for verification. In this report, we utilized OpenCV to automatically generate a CAPTCHA sequence based on warping and random number generation. I. INTRODUCNTION TO CAPTCHA’S In recent years, we have witnessed tremendous advancements in mobile phone and internet technology. We can retrieve the information from anywhere in the world with just few clicks. In this era of globalization where such inventions and progressions improved our daily life quality on one hand, the risks and frauds involved in cyber world cannot be overlooked on the other hand. With every passing day numbers of cybercrimes are increasing. Researchers are trying to build more reliable and secure systems. One of the challenges in cybersecurity domain is the ‘success of deep learning and artificial intelligence’. Deep learning algorithms are intelligent enough to breach the security systems. One of the basic idea to prevent from automated cyber-attacks is the use of CAPTCHA’s. The alphabets and numbers in CAPTCHA image are distorted too much that it is not easy for recognition algorithms to accurately recognize the alphanumeric values. Some of the CAPTCHA images are shown in Figure 1. Figure 1. Some sample CAPTCHAs In this report, we have utilized OpenCV’s warping function and Random Number Generation (RNG) class to automatically generate a CAPTCHA image. Firstly, we used warping to distort the image from its original shape. The input image is warped to a randomly selected plane. This is done by using ‘warpPerspective’ function. After warping, we further rotate the image with random angle up to 30 degrees to make it robust but readable. We used ‘warpAffine’ function to achieve the rotation task. Once both transformations are done we further applied salt and pepper noise so that it becomes strong against automatic character recognition algorithms. II. RESULTS AND DISCUSSION The environment used for this program is Microsoft Visual Studio 2010 and OpenCV 3.2. Figure 2. shows the transformations applied to one character of CAPTCHA (a) Original (b) Warped (c) Rotated Figure 2. Transformation of one character Length of total number of characters in CAPCHA can be vary from application of application. In our experiments we used five character CAPCHA. Different random values for warping plane and rotation angle are applied to each character. Once all five characters are concatenated salt and pepper noise is further added. Figure 3. shows the final CAPCHA image. Figure 3. Final CAPCHA Image III. CONCLUSION A very simple approach based on warping, rotation and salt & pepper noise is used to generate a CAPCHA Image. OpenCV also provides various functions for drawing apart from traditional image processing functions which are easy to use. By adding random colors or drawing random line over the image could increase the CAPCHA strength against cyber- attacks.