 Hello everyone! In this video we are going to learn how to make a mask identifier in Pictoblox using the machine learning extension that detects the face using the camera and reports whether the person is wearing a mask or not. You can download the all new Pictoblox from the link given in the description box below. Let's begin by training the models. Visit the Teachable Machine website on Google. Click the Get Started button. A new page will open up. Click on the image project tile. Let's begin by adding the first class. As we will be adding our sample image using webcam, click on the webcam button to start the camera. We will first make the class to recognize where the mask is off. Capture the images of yourself without the mask. Similarly, we will be creating the other class to recognize when the mask is on. Again, capture your images with the mask on. Now that we have included the sample images, we need to train the model accordingly. Thus, click the train model button and wait for the model to get trained. You can have a look or test the trained model. Now that the model is perfect, let's export the model. Click on the export model button. A popup will open. Click the upload my model button. A shareable link will appear. Copy it. Now that the models are loaded, let's begin by writing the script. Open Pictoblox. We will first add the machine learning extension. To work with the all new AI and ML extensions, you need to keep two things in mind. First, that you must sign in or login into Pictoblox from here. Second, your computer must be connected to Internet. Click on the add extension button and select the machine learning extension from the list. Click on the load model button. A popup will open. Paste the link that you copied from the teachable machine and click the load model button. The relevant blocks will appear in the machine learning palette when the model is successfully loaded. Now let's begin to write the script. To run the code, whenever the green flag is clicked, place when flag clicked hard block from the events palette into the scripting area. We will set Toby's position on the stage. Thus, place go to XY block from the motion palette and write minus 180 and minus 100 in X and Y spaces respectively. Now let's switch the camera feed on. Place turn on video on stage with 0% transparency block from the machine learning palette. Place the forever block to run the script continuously. To check whether the person is wearing a mask or not, place an if block from the controls palette. Drag and drop is identified class from web camera is mask on block and choose stage from the first drop down and off from the second. If the mask is off, we want Toby to warn user to place the mask on. Thus, drop a save block from the looks palette and write please wear a mask to protect yourself in the space given. Duplicate the above two blocks to check if the user has the mask on. Choose on from the second drop down and write thank you for wearing the mask in the space given. With this, your script is ready. Bye bye, stay safe.