0% found this document useful (0 votes)
20 views25 pages

ML Based Project

Uploaded by

srihariakki07
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
20 views25 pages

ML Based Project

Uploaded by

srihariakki07
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 25

TEEGALA KRISHNA REDDY ENGINEERING COLLEGE

(UGC-AUTONOMOUS)
APPROVED BY AICTE, AFFILIATED BY JNTUH, ACCREDITATED BY NAAC- ‘A’ GRADE
MEDBOWLI, MEERPET, BALAPUR, HYDERABAD, TELANGANA- 500097
MOB: 9393959597. EMAIL: INFO@TKREC.AC.IN, DEANACADEMICS@TKREC.AC.IN

DEPARTMENT OF ELECTRONICS AND COMMUNICATION ENGINEERING


BATCH NO : A12
Major Project (Phase I)
ML BASED FACE DISTANCE MEASUREMENT USING CAMERA
FOR CHIDREN EYE SAFTEY
Presented By
Internal Guide
1. A. Chandulal 21R91A0403
Mr K . RAMESH
ASST PROFESSOR-ECE 2. G. Karthikeya 21R91A0467
3. A. Srihari 21R91A0404
4. D. Lokesh 21R91A0459
CONTENTS
 Objectives
 Existing Methods
 Problem Identification
 Abstract
 Block Diagram
 Working Principle
 Flow chart
 Schematic Diagram
 Advantages
 Applications
OBJECTIVE

• Detecting the Faces using Machine learning technique.


• Alerting the People as per their Distance between TV and the persons.
• Automatic TV turn off and On system.
EXISTING SYSTEM

• No System were developed before on this Application.


• Finding the Distance is done by Sensor but they cannot able to classify the face.
• Traditional systems rely on manual monitoring or static distance sensors, which are less adaptable for dynamic
environments.
• Existing face detection systems often lack real-time response and integration with safety features.
• No seamless integration of distance estimation with device control, limiting their utility for applications like

child safety.
PROBLEM IDENTIFICATION

• Prolonged screen exposure at unsafe distances can harm children’s eyes.


• Existing distance detection methods are either too complex or unsuitable for real-time operation.
• Lack of integrated systems for automatic safety responses based on distance detection .
PROPOSED SYSTEM
• This system is based on face detection system using Haarcascade algorithm.
• And based on the image pixel and resolution we calculate the distance between the camera and the
persons or children.
• Based on the distance parameter the Arduino microcontroller will gives the Buzzer sound and also
Turns OFF the Tv on further closeness is detected.
ABSTRACT
• In a human and computer interaction based system, distance estimation by computer vision between
camera and human face is a vital operation.
• To calculate the distance between the camera and face, an estimation method based on feature
detection is proposed in this project, where detection of eye and face in an image sequence is
described.
• From the estimated face, canny and Hugo transform is used to determine the iris, and to calculate the
distance between the centroid of iris. Later Pythagoras and similarity of triangles are used for distance
estimation and based on that, a arduino controller is connected to the system/ laptop so that it will
send the commands to the controller to turn ON and turn OFF of the TV.
BLOCK DIAGRAM
Stage 1:

PyCharm/
Web System/ Numpy and
Camera Laptop Open CV

Monitor
Stage 2:

Web Camera System/Laptop PyCharm/


Numpy and
Open CV

Monitor
Red Led Arduino Nano

Buzzer Relay

Green Led TV(monitor)


DETAILED EXPLAINATION ABOUT INDIVIDUAL
BLOCKS
Arduino Nano

The Arduino Nano is a small, complete, and


breadboard-friendly board based on the
ATmega328 . It has more or less the same
functionality of the Arduino Duemilanove, but in a
different package. It lacks only a DC power jack,
and works with a Mini-B USB cable instead of a
standard one.
Specifications of Aurdino nano

• MICRO CONTROLLER : ATmega328


• ARCHITECTURE : AVR
• OPERATING VOLTAGE : 5V
• FLASH MEMORY : 32KB
• SRAM : 2KB
• CLOCK SPEED : 16MHz
• ANALOG IN PINS : 8
• EEPROM : 1KB
• DC CURRENT PER I/O PINS : 40mA
• INPUT VOLTAGE : 7-12V
• DIGITAL I/O PINS : 14
• PWM OUTPUT : 6
• POWER CONSMPUTION : 19mA
• PCB SIZE : 18x45 mm
• WEIGHT : 7g
•CLOCK SPEED
•16 MHz
•ANALOG IN PINS
•8
•EEPROM
•1 KB
•DC CURRENT PER I/O PINS
•40 mA (I/O Pins)
•INPUT VOLTAGE
•7-12V
•DIGITAL I/O PINS
•14 (6 of which are PWM)
•PWM OUTPUT
•6
•POWER CONSUMPTION
•19 mA
•PCB SIZE
•18 x 45 mm
•WEIGHT
•7 g
Relay
• Relay is also a switch that connects or
disconnects two circuits. But instead of manual
operation a relay is applied with electrical signal,
which in turn connects or disconnects another
circuit. Relays can be of different types like
electromechanical, solid state.
Electromechanical relays are frequently used
Buzzer
• A piezo buzzer works by applying an alternating voltage to the piezoelectric ceramic material. The
introduction of such an input signal causes the piezoceramic to vibrate rapidly, resulting in the
generation of sound waves.
LED’s

• A light-emitting diode (LED) is


a semiconductor light source that emits
light when current flows through
it. Electrons in the semiconductor
recombine with electron holes, releasing
energy in the form of photons. The color
of the light (corresponding to the energy
of the photons) is determined by the
energy required for electrons to cross
the band gap of the semiconductor.
White light is obtained by using multiple
semiconductors or a layer of light-
emitting phosphor on the semiconductor
device.
Webcam

• A webcam is a digital camera that captures video and


audio data and transmits it in real-time over the internet. It
is commonly used for video conferencing, live streaming,
online meetings, and recording videos. Webcams are
typically connected to computers or laptops via universal
serial bus (USB) ports and are often built into devices such
as laptops or external monitors.
Arduino IDE

• The Arduino Integrated Development Environment -


or Arduino Software (IDE) - contains a text editor
for writing code, a message area, a text console, a
toolbar with buttons for common functions and a
series of menus. It connects to the Arduino hardware
to upload programs and communicate with them
Anaconda IDE
• Anaconda Distribution equips individuals to
easily search and install thousands of
Python/R packages and access a vast library
of community content and support.
• Anaconda comes with several IDEs already
installed and each provides different features.
People have different preferences, but I find
most people use either Jupyter Notebook or
Spyder.
Python

• Python is a computer programming language often used to build websites and software, automate
tasks, and conduct data analysis. Python is a general-purpose language, meaning it can be used to
create a variety of different programs and isn't specialized
• There are four main Python coding styles: imperative, functional, object-oriented, and procedural.any
specific problems.
• Python has a simple syntax similar to the English language. Python has syntax that allows developers
to write programs with fewer lines than some other programming languages. Python runs on an
interpreter system, meaning that code can be executed as soon as it is written. This means that
prototyping can be very quick.
OpenCV

• OpenCV (Open Source Computer Vision Library) is an open


source computer vision and machine learning software library.
OpenCV was built to provide a common infrastructure for
computer vision applications and to accelerate the use of
machine perception in the commercial products.
• OpenCV is the huge open-source library for the computer vision,
machine learning, and image processing and now it plays a major
role in real-time operation which is very important in today's
systems. By using it, one can process images and videos to
identify objects, faces, or even handwriting of a human .
Numpy

• NumPy is a library for the Python programming language, adding


support for large, multi-dimensional arrays and matrices, along
with a large collection of high-level mathematical functions to
operate on these arrays.
WORKING PRINCIPLE

• Face Detection : Haar features detect the face.


• Canny and Hugo transforms localize iris edges and circular regions.
• Distance Calculation: Centroid of the iris is computed, and Pythagoras theorem is applied using
similarity of triangles for accurate distance measurement.
• Device Control : Based on the calculated distance, an Arduino controller triggers the TV, LEDs, and
buzzer for eye safety.
FLOW DIAGRAM
start

Initialize
camera ,screen
brightness
Capture image

Detect face using Haar algorithm

Calculate distance

YES If NO
distance
is high
Increase brightness Decrease brightness

Stop
ADVANTAGES & APPLICATIONS

ADVANTAGES

• Child Eye Safety: This system can promote healthy viewing habits for children by
encouraging proper viewing distances.
• Educational Settings: Schools and daycare centers can utilize this system to ensure
children take screen breaks and maintain safe viewing distances.
• Home Use: Parents can use this system at home to manage children's screen time and
viewing habits.
APPLICATIONS
• Child Safety: Protects children from prolonged screen exposure at unsafe distances.
• Health Monitoring: Enhances safety in screen-based learning environments.
• Interactive Systems: Facilitates safer human-computer interactions in public spaces or
personal use.
• Robotics and Security: Provides real-time facial distance detection for advanced automation.
Thank You
25

You might also like