SlideShare a Scribd company logo
2
Most read
Venkat Java Projects
Mobile:+91 9966499110
Visit:www.venkatjavaprojects.com Email:venkatjavaprojects@gmail.com
EYE BALL CURSOR MOVEMENT USING OPENCV
In this project we are instructing mouse cursor to change its location based on eye ball
movement, in this application using OPENCV we will connect to webcam and then extract each
frame from the webcam and pass to OPENCV to detect eye balls location. Once eye ball location
detected then we can extract x and y coordinates of eye balls from OPENCV and then using
python pyautogui API we can instruct mouse to change its current location to given eyeballs X
and Y Coordinates. Below is the example to move mouse in python.
pyautogui.moveTo(int(data_x),int(data_y))
In above line moveTo function move cursor to given data_x and data_y location
To implement above concept we are using following modules
Video Recording: Using this module we will connect application to webcam using OPENCV
built-in function called VideoCapture.
Frame Extraction: Using this module we will grab frames from webcam and then extract
each picture frame by frame and send that frame to GazeTracking.
GazeTracking: Using this module we can detect eyeballs and the extract x and y coordinates
of both left and right pupil.
MoveCursor: Using this module we will instruct mouse to change its current location to
given new x and y location.
To stop video recording from webcam press ‘Esc’ key.
OpenCV is an artificial intelligence API available in python to perform various operation on
images/videos such as image recognition, face detection, eye detection/eye ball tracking and
convert images to gray or coloured images etc. This API written in C++ languages and then
make C++ functions available to call from python using native language programming. Steps
involved in face detection using OpenCV.
Face Detection/Eye Detection Using OpenCV
This seems complex at first but it is very easy. Let me walk you through the entire process
and you will feel the same.
Step 1: Considering our prerequisites, we will require an image, to begin with. Later we need
to create a cascade classifier which will eventually give us the features of the face.
Step 2: This step involves making use of OpenCV which will read the image and the features
file. So at this point, there are NumPy arrays at the primary data points.
All we need to do is to search for the row and column values of the face NumPyN
dimensional array. This is the array with the face rectangle coordinates.
Venkat Java Projects
Mobile:+91 9966499110
Visit:www.venkatjavaprojects.com Email:venkatjavaprojects@gmail.com
Step 3: This final step involves displaying the image with the rectangular face box.
Screen shots
To run this project double click on ‘run.bat’ file to get below webcam screen.
In above screen you can see cursor moves based on eye ball movement. Exception will raise
and window close if u move cursor close corners of the screen

More Related Content

PDF
snake game
PDF
Hand Gesture Recognition using Neural Network
PDF
project report on IoT
PPTX
Third Eye for blind.pptx
PPTX
Smart mirror
PPTX
Sniffer for Detecting Lost Mobile
PPTX
Face detection and recognition with pi
PPTX
Intelligent apps
snake game
Hand Gesture Recognition using Neural Network
project report on IoT
Third Eye for blind.pptx
Smart mirror
Sniffer for Detecting Lost Mobile
Face detection and recognition with pi
Intelligent apps

What's hot (20)

PPTX
Electromagnetic pulse generator(emp bomb)
PPTX
metaverse presentation
PPTX
Secure e voting system
PPTX
ppt on virtual keyboard
PPT
Currency converter
PDF
Screenless displays seminar report
PPTX
Summer training presentation on "CORE JAVA".
PPT
Screenless Display PPT
PPT
Voice morphing-
PPT
Smart note taker
PPTX
Global wireless e voting powerpoint presentation
PPTX
AUTOMATIC BELL FOR COLLEGE
PDF
fingerprint based electronic voting machine
PPTX
SMART NOTE TAKER
PPTX
ONLINE STUDENT FEEDBACK SYSTEM
PPTX
Radar Using Arduino
PPTX
Sniffer for detecting lost mobile ppt
PPTX
Silent sound technology_powerpoint
PPTX
Electronic Voting Machine
PDF
Seminar report
Electromagnetic pulse generator(emp bomb)
metaverse presentation
Secure e voting system
ppt on virtual keyboard
Currency converter
Screenless displays seminar report
Summer training presentation on "CORE JAVA".
Screenless Display PPT
Voice morphing-
Smart note taker
Global wireless e voting powerpoint presentation
AUTOMATIC BELL FOR COLLEGE
fingerprint based electronic voting machine
SMART NOTE TAKER
ONLINE STUDENT FEEDBACK SYSTEM
Radar Using Arduino
Sniffer for detecting lost mobile ppt
Silent sound technology_powerpoint
Electronic Voting Machine
Seminar report
Ad

Similar to Eye ball cursor movement using opencv (20)

DOCX
Virtual mouse operation using webcam
PPTX
Human computer interaction_ 23CSM1R19.pptx
PDF
Image Detection and Count Using Open Computer Vision (Opencv)
PPTX
A computer vision based virtual mouse
PPT
Intro_OpenCV.ppt
PDF
Introduction to OpenCV 3.x (with Java)
PDF
OpenCV Workshop
PDF
OpenCV (Open source computer vision)
PDF
computer_vision_dummies_with_Opencv.pdf
PDF
Implementing Deep Learning Model in Human Computer Interaction with Face Reco...
PDF
Mouse Cursor Control Hands Free Using Deep Learning
PDF
Mouse Cursor Control Hands Free Using Deep Learning
PDF
Computer Vision Workshop
PPTX
20110220 computer vision_eruhimov_lecture02
PDF
Cursor Movement with Eyeball
PPTX
OpenCV presentation for engineering.pptx
PDF
PDF
بینایی ماشین
PPTX
Python Open CV
PPT
Automated Face Detection System
Virtual mouse operation using webcam
Human computer interaction_ 23CSM1R19.pptx
Image Detection and Count Using Open Computer Vision (Opencv)
A computer vision based virtual mouse
Intro_OpenCV.ppt
Introduction to OpenCV 3.x (with Java)
OpenCV Workshop
OpenCV (Open source computer vision)
computer_vision_dummies_with_Opencv.pdf
Implementing Deep Learning Model in Human Computer Interaction with Face Reco...
Mouse Cursor Control Hands Free Using Deep Learning
Mouse Cursor Control Hands Free Using Deep Learning
Computer Vision Workshop
20110220 computer vision_eruhimov_lecture02
Cursor Movement with Eyeball
OpenCV presentation for engineering.pptx
بینایی ماشین
Python Open CV
Automated Face Detection System
Ad

More from Venkat Projects (20)

DOCX
1.AUTOMATIC DETECTION OF DIABETIC RETINOPATHY USING CNN.docx
DOCX
12.BLOCKCHAIN BASED MILK DELIVERY PLATFORM FOR STALLHOLDER DAIRY FARMERS IN K...
DOCX
10.ATTENDANCE CAPTURE SYSTEM USING FACE RECOGNITION.docx
DOCX
9.IMPLEMENTATION OF BLOCKCHAIN IN FINANCIAL SECTOR TO IMPROVE SCALABILITY.docx
DOCX
8.Geo Tracking Of Waste And Triggering Alerts And Mapping Areas With High Was...
DOCX
Image Forgery Detection Based on Fusion of Lightweight Deep Learning Models.docx
DOCX
6.A FOREST FIRE IDENTIFICATION METHOD FOR UNMANNED AERIAL VEHICLE MONITORING ...
DOCX
WATERMARKING IMAGES
DOCX
4.LOCAL DYNAMIC NEIGHBORHOOD BASED OUTLIER DETECTION APPROACH AND ITS FRAMEWO...
DOCX
Application and evaluation of a K-Medoidsbased shape clustering method for an...
DOCX
OPTIMISED STACKED ENSEMBLE TECHNIQUES IN THE PREDICTION OF CERVICAL CANCER US...
DOCX
1.AUTOMATIC DETECTION OF DIABETIC RETINOPATHY USING CNN.docx
DOCX
2022 PYTHON MAJOR PROJECTS LIST.docx
DOCX
2022 PYTHON PROJECTS LIST.docx
DOCX
2021 PYTHON PROJECTS LIST.docx
DOCX
2021 python projects list
DOCX
10.sentiment analysis of customer product reviews using machine learni
DOCX
9.data analysis for understanding the impact of covid–19 vaccinations on the ...
DOCX
6.iris recognition using machine learning technique
DOCX
5.local community detection algorithm based on minimal cluster
1.AUTOMATIC DETECTION OF DIABETIC RETINOPATHY USING CNN.docx
12.BLOCKCHAIN BASED MILK DELIVERY PLATFORM FOR STALLHOLDER DAIRY FARMERS IN K...
10.ATTENDANCE CAPTURE SYSTEM USING FACE RECOGNITION.docx
9.IMPLEMENTATION OF BLOCKCHAIN IN FINANCIAL SECTOR TO IMPROVE SCALABILITY.docx
8.Geo Tracking Of Waste And Triggering Alerts And Mapping Areas With High Was...
Image Forgery Detection Based on Fusion of Lightweight Deep Learning Models.docx
6.A FOREST FIRE IDENTIFICATION METHOD FOR UNMANNED AERIAL VEHICLE MONITORING ...
WATERMARKING IMAGES
4.LOCAL DYNAMIC NEIGHBORHOOD BASED OUTLIER DETECTION APPROACH AND ITS FRAMEWO...
Application and evaluation of a K-Medoidsbased shape clustering method for an...
OPTIMISED STACKED ENSEMBLE TECHNIQUES IN THE PREDICTION OF CERVICAL CANCER US...
1.AUTOMATIC DETECTION OF DIABETIC RETINOPATHY USING CNN.docx
2022 PYTHON MAJOR PROJECTS LIST.docx
2022 PYTHON PROJECTS LIST.docx
2021 PYTHON PROJECTS LIST.docx
2021 python projects list
10.sentiment analysis of customer product reviews using machine learni
9.data analysis for understanding the impact of covid–19 vaccinations on the ...
6.iris recognition using machine learning technique
5.local community detection algorithm based on minimal cluster

Recently uploaded (20)

PDF
TR - Agricultural Crops Production NC III.pdf
PDF
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
PPTX
Institutional Correction lecture only . . .
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PDF
VCE English Exam - Section C Student Revision Booklet
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PDF
Insiders guide to clinical Medicine.pdf
PPTX
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
PPTX
Pharma ospi slides which help in ospi learning
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PDF
Classroom Observation Tools for Teachers
PDF
RMMM.pdf make it easy to upload and study
PPTX
Microbial diseases, their pathogenesis and prophylaxis
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
TR - Agricultural Crops Production NC III.pdf
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
Institutional Correction lecture only . . .
Supply Chain Operations Speaking Notes -ICLT Program
human mycosis Human fungal infections are called human mycosis..pptx
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
VCE English Exam - Section C Student Revision Booklet
O5-L3 Freight Transport Ops (International) V1.pdf
STATICS OF THE RIGID BODIES Hibbelers.pdf
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
Insiders guide to clinical Medicine.pdf
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
Pharma ospi slides which help in ospi learning
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
Pharmacology of Heart Failure /Pharmacotherapy of CHF
Classroom Observation Tools for Teachers
RMMM.pdf make it easy to upload and study
Microbial diseases, their pathogenesis and prophylaxis
2.FourierTransform-ShortQuestionswithAnswers.pdf

Eye ball cursor movement using opencv

  • 1. Venkat Java Projects Mobile:+91 9966499110 Visit:www.venkatjavaprojects.com Email:venkatjavaprojects@gmail.com EYE BALL CURSOR MOVEMENT USING OPENCV In this project we are instructing mouse cursor to change its location based on eye ball movement, in this application using OPENCV we will connect to webcam and then extract each frame from the webcam and pass to OPENCV to detect eye balls location. Once eye ball location detected then we can extract x and y coordinates of eye balls from OPENCV and then using python pyautogui API we can instruct mouse to change its current location to given eyeballs X and Y Coordinates. Below is the example to move mouse in python. pyautogui.moveTo(int(data_x),int(data_y)) In above line moveTo function move cursor to given data_x and data_y location To implement above concept we are using following modules Video Recording: Using this module we will connect application to webcam using OPENCV built-in function called VideoCapture. Frame Extraction: Using this module we will grab frames from webcam and then extract each picture frame by frame and send that frame to GazeTracking. GazeTracking: Using this module we can detect eyeballs and the extract x and y coordinates of both left and right pupil. MoveCursor: Using this module we will instruct mouse to change its current location to given new x and y location. To stop video recording from webcam press ‘Esc’ key. OpenCV is an artificial intelligence API available in python to perform various operation on images/videos such as image recognition, face detection, eye detection/eye ball tracking and convert images to gray or coloured images etc. This API written in C++ languages and then make C++ functions available to call from python using native language programming. Steps involved in face detection using OpenCV. Face Detection/Eye Detection Using OpenCV This seems complex at first but it is very easy. Let me walk you through the entire process and you will feel the same. Step 1: Considering our prerequisites, we will require an image, to begin with. Later we need to create a cascade classifier which will eventually give us the features of the face. Step 2: This step involves making use of OpenCV which will read the image and the features file. So at this point, there are NumPy arrays at the primary data points. All we need to do is to search for the row and column values of the face NumPyN dimensional array. This is the array with the face rectangle coordinates.
  • 2. Venkat Java Projects Mobile:+91 9966499110 Visit:www.venkatjavaprojects.com Email:venkatjavaprojects@gmail.com Step 3: This final step involves displaying the image with the rectangular face box. Screen shots To run this project double click on ‘run.bat’ file to get below webcam screen. In above screen you can see cursor moves based on eye ball movement. Exception will raise and window close if u move cursor close corners of the screen