SlideShare una empresa de Scribd logo
1 de 27
8Th Semester Project
2018
FACE DETECTION AND TRACKING USING DIGITAL IMAGE
PROCESSING
Submitted to
Department of Electronics & Communication
Submitted By
Narayan Lal Menariya
Varun Bhatnagar
Content
• Electricity generation and Consumption in India
• Origin and definition of the Problem
• Need to save electricity?
• Method to reduce consumption and wastage.
• Project Work Plan
• Flow Chart
• Literature survey
• Methodology
• Implementation
• Result
• Minor Equipment
• Reference
SUMMARY
In this MATLAB based project we are extracting the frames from the video and
dividing each frame into two quadrant. After detecting the face in respective
quadrant we are setting the flag variable. This flag variable later can be used as a
switch for automatic controlling of the home appliances.
Electricity generation and Consumption in India
• India is the world's third largest producer and fourth largest
consumer of electricity (2016-2017).
• gross electricity generated was 1,236.39 TWh
• total electricity generation was 1,433.4 TWh
• The gross electricity consumption was 1,122 kWh per capita
• Current electricity generation depending on of fossil fuels(71% )
– coal (59.6%),
– Gas(9%),
– Oil(0.52%)
– Nuclear(1.9%)
Origin and definition of the Problem
• We do not waste electricity for any bad intentions
• but owing to our negligence and casual practices of electricity
use causes wastes
• Lack of awareness & importance of energy conservation
• Use of Inefficient equipment/appliances
• Mentality of “I can pay whatever I consume” thinking
• Negligent way of handling of energy utilities
• Fail to monitoring & auditing energy consumption bills
• present busy and stressful life
Need to save electricity?
• To reduce electricity bills.
• Electricity is not only fuel for our daily life but also vital for
countries economic growth (GDP growth).
• Reduce imports of fossil fuels (import rate of fossil fuel is 38 %
report by 2012) and increasing every year )
• Reduce impacts of fossil fuels on environment
– coal based power plant emits 1.1Kg(average) of CO for
producing 1 unit(kWh) of electricity.
– Oil, Gas & Coal are likely to last for only 20 years.
– we have Oil, Gas, Coal reserves of only 0.5% , 0.6% & 7%
respectively of the total world reserves.
How to reduce consumption and avoid wastage?
• Obviously we can ...
– use LED
– aware before using zero bulbs
– Use air conditioners, refrigerators, freezer at optimum temperature
– Etc...
• But what are the other steps ?
• Its the Era of Artificial Intelligence.
– Smart Home Automation attracted the interest of the research
community at the great manner
– But what if any person is impaired to send the message for controlling
the appliances.
Project Work Plan
• Save Electricity and provide Artificial Intelligence
– for Automatically Controlling of the home Appliances with MATLAB
image processing.
• Supposed to have any room
– Room is divided into specific quadrants
– corresponding quadrants having some appliances
– supposed to switch on and off according to the presence of person in
corresponding quadrant
• Once the image and its quadrant are detected
– corresponding appliances are controlled with the help of
microprocessor interrupts and internet of things (IoT).
PROCEDURE OF FACE DETECTION
• Step 1: Read frame from CCTV camera
• Step 2: Matrix dimension into four Quadrants as shown in
figure
• Step 3: Check for any face detection of person
• Step 4: Check for the respective quadrant where the face is
detected
• Step 5: Actuate the respective appliances of that quadrant
• Step 6: Repeat from Step 1
Literature Survey
Literature survey
Viola-Jones algorithm: Two features are selected for the task of face
detection:
1. first feature: the region of the eyes is often darker than the region
of the nose and cheeks
2. second feature: the eyes are darker than the bridge of the nose
Viola-Jones algorithm
3. Classifier can be constructed which reject many of the
negative sub windows while detecting almost all positive
instances.
4. The final detector is scanned across the image at multiple
scales and locations
5. The detector is also scanned across location, by shifting the
window some number of pixels
6. It is useful to post process the detected sub-windows in
order to combine overlapping detections into a single
detection.
FACE TRACKING
Literature Survey
CAMShift Algorithm:
1. Set the region of interest (ROI) of the probability distribution
image to the entire image.
2. Select an initial location of the Mean Shift search window. The
selected location is the target distribution to be tracked.
3. Calculate a color probability distribution of the region centred at
the Mean Shift search window.
4. Iterate Mean Shift algorithm to find the centroid of the probability
image. Store the zeroth moment (distribution area) and centroid
location.
5. For the following frame, center the search window at the mean
location found in Step 4 and set the window size to a function of
the zeroth moment. Go to Step 3.
Methodology
Implementation
• a simple face tracking system can be design by dividing the
tracking problem into three separate problems:
– Detect a face to track
– Identify facial features to track
– Track the face
Step-1: Detect a Face To Track
• vision.CascadeObjectDetector used to detect the location of a
face in a video frame
• The cascade object detector uses the Viola-Jones detection
algorithm and a trained classification model for detection
Step-2: Identify Facial Features To Track
• shape, texture, or color can be used to track the face.
• In this example, we use skin tone as the feature to track.
– Extract the frame from video
– Convert each frame into hue using rgb2hsv() function
– Display the Hue Channel data and draw the bounding box around the
face.
Step 3: Track the Face
• After selecting skin tone as a tracking feature histogram based
tracker can be used to track the face
• Histogram based tracker uses the CamShift algorithm
Implementation
Implementation
• video player object is created for displaying the video
• Track the face over successive video frames until the video is
finished.
Results
Class Room
Result
Quadrants Division of class room
Result
Face Detection in Two Quadrant
flag1 = 0; flag2=1;
Result
If(flag1 == 1)
switch on the appliances of quadrant1
Else
switch off the appliances of quadrant1
If(flag2 == 1)
switch on the appliances of quadrant2
Else
switch off the appliances of quadrant2
Minor Equipment
• CCTV Camera
• MATLAB Software
• Raspberry Pi Board
• NRF24L01 with antenna
Proposed outcome
• Save wastage of Electricity
• IoT Based project
• No need of Manual controlling of home appliance
• Low cost
• Applicable at
– Home
– Hospital
– School
– Etc
• No requirement of larger area for project installation
• Less maintenance is required
Reference
• Electricity Sector in India – Wikipedia
(https://en.wikipedia.org/wiki/Electricity_sector_in_India )
• Image source – Google
• MATLAB Help menu
• Youtube – Matlab Image Processing
• MATALB Reference note by Cranes Varsity
Thanking you...

Más contenido relacionado

La actualidad más candente

ASP.NET Unit-2.pdf
ASP.NET Unit-2.pdfASP.NET Unit-2.pdf
ASP.NET Unit-2.pdfabiraman7
 
Mantenimiento de la base de datos Oracle 11g
Mantenimiento de la base de datos Oracle 11gMantenimiento de la base de datos Oracle 11g
Mantenimiento de la base de datos Oracle 11gCarmen Soler
 
windows 3.2
windows 3.2windows 3.2
windows 3.2Jef 0811
 
Knowledge Sharing : Java Servlet
Knowledge Sharing : Java ServletKnowledge Sharing : Java Servlet
Knowledge Sharing : Java ServletFahmi Jafar
 
Fuzzy Sets Introduction With Example
Fuzzy Sets Introduction With ExampleFuzzy Sets Introduction With Example
Fuzzy Sets Introduction With Exampleraisnasir
 
Vue.js o poder das render functions
Vue.js  o poder das render functionsVue.js  o poder das render functions
Vue.js o poder das render functionsVinicius Reis
 
Expert systems in artificial intelegence
Expert systems in artificial intelegenceExpert systems in artificial intelegence
Expert systems in artificial intelegenceAnna Aquarian
 
Automatic answer checker
Automatic answer checkerAutomatic answer checker
Automatic answer checkerYesu Raj
 
3. use cases
3. use cases3. use cases
3. use casesAPU
 
Design Patterns Illustrated
Design Patterns IllustratedDesign Patterns Illustrated
Design Patterns IllustratedHerman Peeren
 

La actualidad más candente (20)

Resize sga
Resize sgaResize sga
Resize sga
 
Mediator pattern
Mediator patternMediator pattern
Mediator pattern
 
ASP.NET Unit-2.pdf
ASP.NET Unit-2.pdfASP.NET Unit-2.pdf
ASP.NET Unit-2.pdf
 
Fuzzy sets
Fuzzy setsFuzzy sets
Fuzzy sets
 
Mantenimiento de la base de datos Oracle 11g
Mantenimiento de la base de datos Oracle 11gMantenimiento de la base de datos Oracle 11g
Mantenimiento de la base de datos Oracle 11g
 
windows 3.2
windows 3.2windows 3.2
windows 3.2
 
Fuzzy logic
Fuzzy logicFuzzy logic
Fuzzy logic
 
Knowledge Sharing : Java Servlet
Knowledge Sharing : Java ServletKnowledge Sharing : Java Servlet
Knowledge Sharing : Java Servlet
 
What's new in Java 11
What's new in Java 11What's new in Java 11
What's new in Java 11
 
Facade pattern
Facade patternFacade pattern
Facade pattern
 
Fuzzy Sets Introduction With Example
Fuzzy Sets Introduction With ExampleFuzzy Sets Introduction With Example
Fuzzy Sets Introduction With Example
 
Uml
UmlUml
Uml
 
Vue.js o poder das render functions
Vue.js  o poder das render functionsVue.js  o poder das render functions
Vue.js o poder das render functions
 
Introduction to spring boot
Introduction to spring bootIntroduction to spring boot
Introduction to spring boot
 
Expert systems in artificial intelegence
Expert systems in artificial intelegenceExpert systems in artificial intelegence
Expert systems in artificial intelegence
 
Automatic answer checker
Automatic answer checkerAutomatic answer checker
Automatic answer checker
 
Spring mvc
Spring mvcSpring mvc
Spring mvc
 
3. use cases
3. use cases3. use cases
3. use cases
 
Design Patterns Illustrated
Design Patterns IllustratedDesign Patterns Illustrated
Design Patterns Illustrated
 
Introduction to thymeleaf
Introduction to thymeleafIntroduction to thymeleaf
Introduction to thymeleaf
 

Similar a Home automation using MATLAB image processing

Road signs detection using voila jone's algorithm with the help of opencv
Road signs detection using voila jone's algorithm with the help of opencvRoad signs detection using voila jone's algorithm with the help of opencv
Road signs detection using voila jone's algorithm with the help of opencvMohdSalim34
 
From Experimentation to Production: The Future of WebGL
From Experimentation to Production: The Future of WebGLFrom Experimentation to Production: The Future of WebGL
From Experimentation to Production: The Future of WebGLFITC
 
Implementing Camshift on a Mobile Robot for Person Tracking and Pursuit_ICDM
Implementing Camshift on a Mobile Robot for Person Tracking and Pursuit_ICDMImplementing Camshift on a Mobile Robot for Person Tracking and Pursuit_ICDM
Implementing Camshift on a Mobile Robot for Person Tracking and Pursuit_ICDMSoma Boubou
 
design and develop a FIRE EXTINGUISHER ROBOT.pptx
design and develop a FIRE EXTINGUISHER ROBOT.pptxdesign and develop a FIRE EXTINGUISHER ROBOT.pptx
design and develop a FIRE EXTINGUISHER ROBOT.pptxkayvyyyy
 
Object detection at night
Object detection at nightObject detection at night
Object detection at nightSanjay Crúzé
 
IRJET - Smart Vet Locator for Hybrid Pets
IRJET -  	  Smart Vet Locator for Hybrid PetsIRJET -  	  Smart Vet Locator for Hybrid Pets
IRJET - Smart Vet Locator for Hybrid PetsIRJET Journal
 
Cahall Final Intern Presentation
Cahall Final Intern PresentationCahall Final Intern Presentation
Cahall Final Intern PresentationDaniel Cahall
 
Real Time Object Dectection using machine learning
Real Time Object Dectection using machine learningReal Time Object Dectection using machine learning
Real Time Object Dectection using machine learningpratik pratyay
 
IRJET- New Generation Multilevel based Atm Security System
IRJET- New Generation Multilevel based Atm Security SystemIRJET- New Generation Multilevel based Atm Security System
IRJET- New Generation Multilevel based Atm Security SystemIRJET Journal
 
Machine Learning Algorithms for Anomaly Detection in Particles Accelerators T...
Machine Learning Algorithms for Anomaly Detection in Particles Accelerators T...Machine Learning Algorithms for Anomaly Detection in Particles Accelerators T...
Machine Learning Algorithms for Anomaly Detection in Particles Accelerators T...Deep Learning Italia
 
Object detection technique using bounding box algorithm for
Object detection technique using bounding box algorithm forObject detection technique using bounding box algorithm for
Object detection technique using bounding box algorithm forVESIT,Chembur,Mumbai
 
pick and place robotic arm
pick and place robotic armpick and place robotic arm
pick and place robotic armANJANA ANILKUMAR
 
Mainprojpresentation 150617092611-lva1-app6892
Mainprojpresentation 150617092611-lva1-app6892Mainprojpresentation 150617092611-lva1-app6892
Mainprojpresentation 150617092611-lva1-app6892ANJANA ANILKUMAR
 
Lobula Giant Movement Detector Based Embedded Vision System for Micro-robots
Lobula Giant Movement Detector Based Embedded Vision System for Micro-robotsLobula Giant Movement Detector Based Embedded Vision System for Micro-robots
Lobula Giant Movement Detector Based Embedded Vision System for Micro-robotsNishmi Suresh
 
IRJET- Review on Colored Object Sorting System using Arduino UNO
IRJET- Review on Colored Object Sorting System using Arduino UNOIRJET- Review on Colored Object Sorting System using Arduino UNO
IRJET- Review on Colored Object Sorting System using Arduino UNOIRJET Journal
 
Realtime pothole detection system using improved CNN Models
Realtime pothole detection system using improved CNN ModelsRealtime pothole detection system using improved CNN Models
Realtime pothole detection system using improved CNN Modelsnithinsai2992
 
IRJET- Note to Coin Converter
IRJET- Note to Coin ConverterIRJET- Note to Coin Converter
IRJET- Note to Coin ConverterIRJET Journal
 

Similar a Home automation using MATLAB image processing (20)

Road signs detection using voila jone's algorithm with the help of opencv
Road signs detection using voila jone's algorithm with the help of opencvRoad signs detection using voila jone's algorithm with the help of opencv
Road signs detection using voila jone's algorithm with the help of opencv
 
From Experimentation to Production: The Future of WebGL
From Experimentation to Production: The Future of WebGLFrom Experimentation to Production: The Future of WebGL
From Experimentation to Production: The Future of WebGL
 
Implementing Camshift on a Mobile Robot for Person Tracking and Pursuit_ICDM
Implementing Camshift on a Mobile Robot for Person Tracking and Pursuit_ICDMImplementing Camshift on a Mobile Robot for Person Tracking and Pursuit_ICDM
Implementing Camshift on a Mobile Robot for Person Tracking and Pursuit_ICDM
 
design and develop a FIRE EXTINGUISHER ROBOT.pptx
design and develop a FIRE EXTINGUISHER ROBOT.pptxdesign and develop a FIRE EXTINGUISHER ROBOT.pptx
design and develop a FIRE EXTINGUISHER ROBOT.pptx
 
Object detection at night
Object detection at nightObject detection at night
Object detection at night
 
IRJET - Smart Vet Locator for Hybrid Pets
IRJET -  	  Smart Vet Locator for Hybrid PetsIRJET -  	  Smart Vet Locator for Hybrid Pets
IRJET - Smart Vet Locator for Hybrid Pets
 
Cahall Final Intern Presentation
Cahall Final Intern PresentationCahall Final Intern Presentation
Cahall Final Intern Presentation
 
Tot.st 1
Tot.st 1Tot.st 1
Tot.st 1
 
Real Time Object Dectection using machine learning
Real Time Object Dectection using machine learningReal Time Object Dectection using machine learning
Real Time Object Dectection using machine learning
 
slide-171212080528.pptx
slide-171212080528.pptxslide-171212080528.pptx
slide-171212080528.pptx
 
IRJET- New Generation Multilevel based Atm Security System
IRJET- New Generation Multilevel based Atm Security SystemIRJET- New Generation Multilevel based Atm Security System
IRJET- New Generation Multilevel based Atm Security System
 
Machine Learning Algorithms for Anomaly Detection in Particles Accelerators T...
Machine Learning Algorithms for Anomaly Detection in Particles Accelerators T...Machine Learning Algorithms for Anomaly Detection in Particles Accelerators T...
Machine Learning Algorithms for Anomaly Detection in Particles Accelerators T...
 
Object detection technique using bounding box algorithm for
Object detection technique using bounding box algorithm forObject detection technique using bounding box algorithm for
Object detection technique using bounding box algorithm for
 
pick and place robotic arm
pick and place robotic armpick and place robotic arm
pick and place robotic arm
 
Mainprojpresentation 150617092611-lva1-app6892
Mainprojpresentation 150617092611-lva1-app6892Mainprojpresentation 150617092611-lva1-app6892
Mainprojpresentation 150617092611-lva1-app6892
 
Project vague
Project   vagueProject   vague
Project vague
 
Lobula Giant Movement Detector Based Embedded Vision System for Micro-robots
Lobula Giant Movement Detector Based Embedded Vision System for Micro-robotsLobula Giant Movement Detector Based Embedded Vision System for Micro-robots
Lobula Giant Movement Detector Based Embedded Vision System for Micro-robots
 
IRJET- Review on Colored Object Sorting System using Arduino UNO
IRJET- Review on Colored Object Sorting System using Arduino UNOIRJET- Review on Colored Object Sorting System using Arduino UNO
IRJET- Review on Colored Object Sorting System using Arduino UNO
 
Realtime pothole detection system using improved CNN Models
Realtime pothole detection system using improved CNN ModelsRealtime pothole detection system using improved CNN Models
Realtime pothole detection system using improved CNN Models
 
IRJET- Note to Coin Converter
IRJET- Note to Coin ConverterIRJET- Note to Coin Converter
IRJET- Note to Coin Converter
 

Más de NarayanlalMenariya

Más de NarayanlalMenariya (16)

Updated CV
Updated CVUpdated CV
Updated CV
 
Curriculum Vitae
Curriculum VitaeCurriculum Vitae
Curriculum Vitae
 
Face Detection And Tracking
Face Detection And TrackingFace Detection And Tracking
Face Detection And Tracking
 
Resume for fresher
Resume for fresherResume for fresher
Resume for fresher
 
C++ Programs
C++ ProgramsC++ Programs
C++ Programs
 
Character recognition
Character recognitionCharacter recognition
Character recognition
 
GUI based calculator using MATLAB
GUI based calculator using MATLABGUI based calculator using MATLAB
GUI based calculator using MATLAB
 
Steganography
SteganographySteganography
Steganography
 
client-server communication using socket IPC
client-server communication using socket IPCclient-server communication using socket IPC
client-server communication using socket IPC
 
Message queue and shared memory
Message queue and shared memoryMessage queue and shared memory
Message queue and shared memory
 
Synchronization of shared memory using semaphores
Synchronization of shared memory using semaphoresSynchronization of shared memory using semaphores
Synchronization of shared memory using semaphores
 
Simplified Experimental Determination of Line Transient Immunity of Linear Re...
Simplified Experimental Determination of Line Transient Immunity of Linear Re...Simplified Experimental Determination of Line Transient Immunity of Linear Re...
Simplified Experimental Determination of Line Transient Immunity of Linear Re...
 
SMART E-TOLL SYSTEM
SMART E-TOLL SYSTEMSMART E-TOLL SYSTEM
SMART E-TOLL SYSTEM
 
Voice From Deep Of Heart
Voice From Deep Of HeartVoice From Deep Of Heart
Voice From Deep Of Heart
 
Lidar and sensing
Lidar and sensingLidar and sensing
Lidar and sensing
 
A chip to protect IOT
A chip to protect IOTA chip to protect IOT
A chip to protect IOT
 

Último

Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTbhaskargani46
 
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoorTop Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoordharasingh5698
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...roncy bisnoi
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...Call Girls in Nagpur High Profile
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . pptDineshKumar4165
 
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...Arindam Chakraborty, Ph.D., P.E. (CA, TX)
 
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...SUHANI PANDEY
 
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Bookingroncy bisnoi
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Bookingdharasingh5698
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VDineshKumar4165
 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdfKamal Acharya
 
Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank  Design by Working Stress - IS Method.pdfIntze Overhead Water Tank  Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank Design by Working Stress - IS Method.pdfSuman Jyoti
 
Unit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfUnit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfRagavanV2
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdfankushspencer015
 
Unleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapUnleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapRishantSharmaFr
 
Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueDouble Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueBhangaleSonal
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfJiananWang21
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXssuser89054b
 

Último (20)

Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPT
 
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoorTop Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
 
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced LoadsFEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . ppt
 
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
 
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
 
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
 
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - V
 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdf
 
Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank  Design by Working Stress - IS Method.pdfIntze Overhead Water Tank  Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
 
Unit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfUnit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdf
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
 
Unleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapUnleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leap
 
Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueDouble Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torque
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdf
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
 

Home automation using MATLAB image processing

  • 1. 8Th Semester Project 2018 FACE DETECTION AND TRACKING USING DIGITAL IMAGE PROCESSING Submitted to Department of Electronics & Communication Submitted By Narayan Lal Menariya Varun Bhatnagar
  • 2. Content • Electricity generation and Consumption in India • Origin and definition of the Problem • Need to save electricity? • Method to reduce consumption and wastage. • Project Work Plan • Flow Chart • Literature survey • Methodology • Implementation • Result • Minor Equipment • Reference
  • 3. SUMMARY In this MATLAB based project we are extracting the frames from the video and dividing each frame into two quadrant. After detecting the face in respective quadrant we are setting the flag variable. This flag variable later can be used as a switch for automatic controlling of the home appliances.
  • 4. Electricity generation and Consumption in India • India is the world's third largest producer and fourth largest consumer of electricity (2016-2017). • gross electricity generated was 1,236.39 TWh • total electricity generation was 1,433.4 TWh • The gross electricity consumption was 1,122 kWh per capita • Current electricity generation depending on of fossil fuels(71% ) – coal (59.6%), – Gas(9%), – Oil(0.52%) – Nuclear(1.9%)
  • 5. Origin and definition of the Problem • We do not waste electricity for any bad intentions • but owing to our negligence and casual practices of electricity use causes wastes • Lack of awareness & importance of energy conservation • Use of Inefficient equipment/appliances • Mentality of “I can pay whatever I consume” thinking • Negligent way of handling of energy utilities • Fail to monitoring & auditing energy consumption bills • present busy and stressful life
  • 6. Need to save electricity? • To reduce electricity bills. • Electricity is not only fuel for our daily life but also vital for countries economic growth (GDP growth). • Reduce imports of fossil fuels (import rate of fossil fuel is 38 % report by 2012) and increasing every year ) • Reduce impacts of fossil fuels on environment – coal based power plant emits 1.1Kg(average) of CO for producing 1 unit(kWh) of electricity. – Oil, Gas & Coal are likely to last for only 20 years. – we have Oil, Gas, Coal reserves of only 0.5% , 0.6% & 7% respectively of the total world reserves.
  • 7. How to reduce consumption and avoid wastage? • Obviously we can ... – use LED – aware before using zero bulbs – Use air conditioners, refrigerators, freezer at optimum temperature – Etc... • But what are the other steps ? • Its the Era of Artificial Intelligence. – Smart Home Automation attracted the interest of the research community at the great manner – But what if any person is impaired to send the message for controlling the appliances.
  • 8. Project Work Plan • Save Electricity and provide Artificial Intelligence – for Automatically Controlling of the home Appliances with MATLAB image processing. • Supposed to have any room – Room is divided into specific quadrants – corresponding quadrants having some appliances – supposed to switch on and off according to the presence of person in corresponding quadrant • Once the image and its quadrant are detected – corresponding appliances are controlled with the help of microprocessor interrupts and internet of things (IoT).
  • 9. PROCEDURE OF FACE DETECTION • Step 1: Read frame from CCTV camera • Step 2: Matrix dimension into four Quadrants as shown in figure • Step 3: Check for any face detection of person • Step 4: Check for the respective quadrant where the face is detected • Step 5: Actuate the respective appliances of that quadrant • Step 6: Repeat from Step 1
  • 11. Literature survey Viola-Jones algorithm: Two features are selected for the task of face detection: 1. first feature: the region of the eyes is often darker than the region of the nose and cheeks 2. second feature: the eyes are darker than the bridge of the nose
  • 12.
  • 13. Viola-Jones algorithm 3. Classifier can be constructed which reject many of the negative sub windows while detecting almost all positive instances. 4. The final detector is scanned across the image at multiple scales and locations 5. The detector is also scanned across location, by shifting the window some number of pixels 6. It is useful to post process the detected sub-windows in order to combine overlapping detections into a single detection.
  • 15. Literature Survey CAMShift Algorithm: 1. Set the region of interest (ROI) of the probability distribution image to the entire image. 2. Select an initial location of the Mean Shift search window. The selected location is the target distribution to be tracked. 3. Calculate a color probability distribution of the region centred at the Mean Shift search window. 4. Iterate Mean Shift algorithm to find the centroid of the probability image. Store the zeroth moment (distribution area) and centroid location. 5. For the following frame, center the search window at the mean location found in Step 4 and set the window size to a function of the zeroth moment. Go to Step 3.
  • 17. Implementation • a simple face tracking system can be design by dividing the tracking problem into three separate problems: – Detect a face to track – Identify facial features to track – Track the face Step-1: Detect a Face To Track • vision.CascadeObjectDetector used to detect the location of a face in a video frame • The cascade object detector uses the Viola-Jones detection algorithm and a trained classification model for detection
  • 18. Step-2: Identify Facial Features To Track • shape, texture, or color can be used to track the face. • In this example, we use skin tone as the feature to track. – Extract the frame from video – Convert each frame into hue using rgb2hsv() function – Display the Hue Channel data and draw the bounding box around the face. Step 3: Track the Face • After selecting skin tone as a tracking feature histogram based tracker can be used to track the face • Histogram based tracker uses the CamShift algorithm Implementation
  • 19. Implementation • video player object is created for displaying the video • Track the face over successive video frames until the video is finished.
  • 22. Result Face Detection in Two Quadrant flag1 = 0; flag2=1;
  • 23. Result If(flag1 == 1) switch on the appliances of quadrant1 Else switch off the appliances of quadrant1 If(flag2 == 1) switch on the appliances of quadrant2 Else switch off the appliances of quadrant2
  • 24. Minor Equipment • CCTV Camera • MATLAB Software • Raspberry Pi Board • NRF24L01 with antenna
  • 25. Proposed outcome • Save wastage of Electricity • IoT Based project • No need of Manual controlling of home appliance • Low cost • Applicable at – Home – Hospital – School – Etc • No requirement of larger area for project installation • Less maintenance is required
  • 26. Reference • Electricity Sector in India – Wikipedia (https://en.wikipedia.org/wiki/Electricity_sector_in_India ) • Image source – Google • MATLAB Help menu • Youtube – Matlab Image Processing • MATALB Reference note by Cranes Varsity