SlideShare a Scribd company logo
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

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
theijes
 
Captcha Seminar report 2014
Captcha Seminar report 2014Captcha Seminar report 2014
Captcha Seminar report 2014Ganesh Dhage
 
Captcha
CaptchaCaptcha
Captcha
Vruti Surani
 
Captcha system
Captcha  systemCaptcha  system
Captcha system
Kanchan Dixit
 
Captcha seminar report
Captcha seminar reportCaptcha seminar report
Captcha seminar report
Rishabh Agarwal
 
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
gerogepatton
 
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
IRJET Journal
 
web application security using CAPTCHA
web application  security using CAPTCHAweb application  security using CAPTCHA
web application security using CAPTCHA
komal jadhav
 
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
Shubham Saurav
 
CAPTCHA
CAPTCHACAPTCHA
CAPTCHA
Preetam Rout
 
Enhancing Web-Security with Stronger Captchas
Enhancing Web-Security with Stronger CaptchasEnhancing Web-Security with Stronger Captchas
Enhancing Web-Security with Stronger Captchas
Editor IJCATR
 
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
IRJET Journal
 
Captcha by vinit sharma
Captcha by vinit sharmaCaptcha by vinit sharma
Captcha by vinit sharma
vinit1991
 
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
International Journal of Technical Research & Application
 
deCaptcha
deCaptchadeCaptcha
deCaptcha
Vishal Punjabi
 
CSE captcha ppt.pptx
CSE captcha ppt.pptxCSE captcha ppt.pptx
CSE captcha ppt.pptx
Rohit713364
 

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

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...
Saeed Ullah
 
dilating and eroding in open cv
dilating and eroding in open cvdilating and eroding in open cv
dilating and eroding in open cv
Saeed Ullah
 
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
Saeed Ullah
 
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
Saeed Ullah
 
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
Saeed Ullah
 
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
Saeed Ullah
 
aip basic open cv example
aip basic open cv exampleaip basic open cv example
aip basic open cv example
Saeed Ullah
 
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...
Saeed Ullah
 
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...
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

The Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdfThe Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdf
Pipe Restoration Solutions
 
Cosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdfCosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdf
Kamal Acharya
 
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdfAKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
SamSarthak3
 
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&BDesign and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Sreedhar Chowdam
 
HYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generationHYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generation
Robbie Edward Sayers
 
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang,  ICLR 2024, MLILAB, KAIST AI.pdfJ.Yang,  ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
MLILAB
 
AP LAB PPT.pdf ap lab ppt no title specific
AP LAB PPT.pdf ap lab ppt no title specificAP LAB PPT.pdf ap lab ppt no title specific
AP LAB PPT.pdf ap lab ppt no title specific
BrazilAccount1
 
Architectural Portfolio Sean Lockwood
Architectural Portfolio Sean LockwoodArchitectural Portfolio Sean Lockwood
Architectural Portfolio Sean Lockwood
seandesed
 
CME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional ElectiveCME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional Elective
karthi keyan
 
Investor-Presentation-Q1FY2024 investor presentation document.pptx
Investor-Presentation-Q1FY2024 investor presentation document.pptxInvestor-Presentation-Q1FY2024 investor presentation document.pptx
Investor-Presentation-Q1FY2024 investor presentation document.pptx
AmarGB2
 
block diagram and signal flow graph representation
block diagram and signal flow graph representationblock diagram and signal flow graph representation
block diagram and signal flow graph representation
Divya Somashekar
 
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
thanhdowork
 
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdfGoverning Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
WENKENLI1
 
English lab ppt no titlespecENG PPTt.pdf
English lab ppt no titlespecENG PPTt.pdfEnglish lab ppt no titlespecENG PPTt.pdf
English lab ppt no titlespecENG PPTt.pdf
BrazilAccount1
 
weather web application report.pdf
weather web application report.pdfweather web application report.pdf
weather web application report.pdf
Pratik Pawar
 
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Dr.Costas Sachpazis
 
Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024
Massimo Talia
 
Gen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdfGen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdf
gdsczhcet
 
Fundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptxFundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptx
manasideore6
 
Final project report on grocery store management system..pdf
Final project report on grocery store management system..pdfFinal project report on grocery store management system..pdf
Final project report on grocery store management system..pdf
Kamal Acharya
 

Recently uploaded (20)

The Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdfThe Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdf
 
Cosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdfCosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdf
 
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdfAKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
 
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&BDesign and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
 
HYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generationHYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generation
 
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang,  ICLR 2024, MLILAB, KAIST AI.pdfJ.Yang,  ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
 
AP LAB PPT.pdf ap lab ppt no title specific
AP LAB PPT.pdf ap lab ppt no title specificAP LAB PPT.pdf ap lab ppt no title specific
AP LAB PPT.pdf ap lab ppt no title specific
 
Architectural Portfolio Sean Lockwood
Architectural Portfolio Sean LockwoodArchitectural Portfolio Sean Lockwood
Architectural Portfolio Sean Lockwood
 
CME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional ElectiveCME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional Elective
 
Investor-Presentation-Q1FY2024 investor presentation document.pptx
Investor-Presentation-Q1FY2024 investor presentation document.pptxInvestor-Presentation-Q1FY2024 investor presentation document.pptx
Investor-Presentation-Q1FY2024 investor presentation document.pptx
 
block diagram and signal flow graph representation
block diagram and signal flow graph representationblock diagram and signal flow graph representation
block diagram and signal flow graph representation
 
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
 
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdfGoverning Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
 
English lab ppt no titlespecENG PPTt.pdf
English lab ppt no titlespecENG PPTt.pdfEnglish lab ppt no titlespecENG PPTt.pdf
English lab ppt no titlespecENG PPTt.pdf
 
weather web application report.pdf
weather web application report.pdfweather web application report.pdf
weather web application report.pdf
 
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
 
Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024
 
Gen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdfGen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdf
 
Fundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptxFundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptx
 
Final project report on grocery store management system..pdf
Final project report on grocery store management system..pdfFinal project report on grocery store management system..pdf
Final project report on grocery store management system..pdf
 

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.