Page 146 - CG_v2.1_flipBooks_class_6
P. 146
Artificial Intelligence is the process of 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 of AI (Artificial Intelligence) is to improve 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
Learning category).
Step 2 Attach if-do block from Logic category. This Block is used as the conditional block. If, if
condition is satisfied it gives the output as mentioned in the do part, otherwise it gives the
output mentioned in else part.
Step 3 Attach "==" 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 block ("0" block) from Input category to the right end of “==”
block.
(If the person is wearing a mask, then his/her nose will not be displayed so, the nose count
will be 0, otherwise the person is not wearing the mask.)
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.
144 Computer Genius (V2.1)-VI

