Page 138 - Computer Genius Class 06
P. 138
rtificial ntelligence is the process o simulating human
intelligence by machines. It is an approach to enable computers
or robots or any machine to think just like a human.
The main aim o rtificial ntelligence is to impro e a
computer’s functions that are related to human knowledge, for
example, reasoning, learning and problem solving.
AI and Facial Detection
Using AI, we can create programs that can identify the face of a person, or detect the person's facial
features such as nose, eyes, lips, etc. The real life example of this is the face mask detection robots
that are used during COVID-19 to detect whether a person is wearing the face mask or not.
In AI Connect also, we can create programs to detect whether a person is wearing the face mask or
not, or whether a person is wearing sunglasses or not, etc.
Face Mask Detection in AI Connect
To create a program to detect if the person in the image is wearing a face mask or not, create a
project in AI Connect. Create AI Coding activity in this project. Then, follow the given steps:
Step 1 Drag and drop Load Image block from Facial Features sub-category (mentioned under AI
earning category .
Step 2 Attach if-do block from Logic category. This Block is used as the conditional block. If, if
condition is satisfied it gi es the output as mentioned in the do part, otherwise it gives the
output mentioned in else part.
Step 3 Attack "==" block from Logic category inside the if-do block.
Step 4 Attach Get nose count block from Facial Features sub-category to the left end of "=="
block. This block is used to detect a person's nose.
Step 5 Similarly, attach numeric loc loc rom nput category to the right end o
block.
(If the person is wearing a mask, then his/her nose will not be displayed so, the nose count
ill e other ise the person is not earing the mas .
Notes
If, you click on the arrow of Get nose count block, the drop-down menu will appear
from where you can choose other facial parts as well, such as eyes, smile, face, etc. It
can be use to detect other part of face as well.
Step 6 Click on Setting button of if-do block and add else block to it.
136 Computer Genius-VI

