 Hello everyone! Welcome back to our channel. I hope you all are safe and sound. Art is in the air. I mean really. How? With Pictoblocks human body detection ability. You can draw your favourite pictures in the air using the tip of your fingers and the blocks in the human body detection extension in Pictoblocks and trace it on the computer screen. Pre-requisites are a laptop or a computer with camera, the latest version of Pictoblocks downloaded and a good internet connection. You can download the all new Pictoblocks from the link given in the description box below. Let's begin by adding the human body detection in the pen extensions. Open Pictoblocks. Now to work with the AI and ML extensions, you must sign in or login into Pictoblocks from here. Click on board and select a file. Now click on the add extension button. To work with the AI and ML extensions, you need to connect your computer to the internet. Click on human body detection extension and wait for a little while till the models get loaded. Now to draw on the screen, we need to add the pen extension. Click on the add extension button again and choose pen extension. You may see that the human body detection in the pen blocks are added into the block valid. Now let's begin by adding a pencil sprite. Click on choose a sprite button and select pencil sprite from the library. Right click on Toby and choose delete from the drop down to delete Toby sprite. To make a few changes in the costume of the pencil sprite. Thus click on the costume palette to edit the costume. Drag and drop the pencil into the costume area such that the tip of the pencil should be on the center dot. Next, we need to make three additional sprites. First, pen up to stop drawing on the screen. Second, pen down to draw on the screen. And third, erase all to clear the screen. Click on choose a sprite button and select the paint option. Use the rectangle tool to draw the background and text tool to write the message. Similarly, make the additive sprites which are pen down and erase all. Once these sprites are made, let's arrange them onto the stage so that we can get sufficient space to draw. To align them in the straight line, you can keep the value of the Y coordinate be safe. Let's begin to write the script. Select the pencil sprite. Drag and drop a when flag clicked hat block into the scripting area to execute the program whenever the green flag is clicked. As we will be drawing in the air and the drawings will be traced on the screen, we need to turn the camera on. Thus, snap a turn on video on stage with 0% transparency block from the human body detection palette. Add a forever block from the control palette to run the script continuously. Now, as we need the details of the hand and jewel time, we will be using analyze image for hand from camera block from the human body detection palette. Next, we need to check whether our hand is detected or not. Thus, place an if block from the control palette. Place the if hand detected reporter block into the hexagonal space. If the hand is located, we need to move the pencil onto the location accordingly. We will be using the tip of the index finger to draw. Thus, we need the tip of the pencil to follow the tip of our index finger. We will use the go to XY block from the motion palette. Next, place the X position off top of thumb block from the human body detection palette into the X input of the go to XY block. From the last drop down, select index finger. Duplicate this block and place it into the Y input and select Y from the first drop down. With this, the script to trace our finger is completed. Next, we need to write the scripts to activate the buttons that we have created that is to start drawing, stop drawing and erase the drawing one by one. Choose the pen down sprite. Every time this button aka the sprite is clicked, we need to broadcast a message that the pen should be down. Thus, drag and drop when this sprite click HUD block from the events palette. Next, place a broadcast message block from the events palette and write pen down into the message. Next, we need to perform some actions according to the buttons clicked that is the pencil should start drawing. Thus, let's go back to the pencil sprite. Place when I receive HUD block from the events palette and select pen down from the drop down. Now to make the pencil draw, drag and drop the pen down block from the pen palette below it. Thus, we have assigned actions to one button. Similarly, we'll be assigning actions to the other two buttons. Click on pen down sprite. To duplicate the script and place it into the pen up and erase all sprite, select the script and drag and drop it into the respective sprites one by one. You may notice that the sprites icon to which you have copied might shake a bit. Go to the pen up sprite. Enter the broadcast message write pen up. Next, into the erase all sprite, write erase all into the broadcast message block. The messages are now broadcasted. Now we need to assign actions to the remaining two. Go back to the pencil sprite. Duplicate the when I receive and the pen down block twice. Now to stop the drawing, select pen up from the second I receive message block and replace the pen down block with the pen up block from the pen palette. Finally, to erase the drawings, select erase all from the third when I receive block and replace the pen down block with the erase all block. Thus, the script is complete. Green flag and start drawing. You can even play airpictionary using this extension. Don't forget to share your art with us in our Pictoblox community on Facebook. If you like this video, give it a thumbs up and subscribe to STEMpedia and follow us on Facebook, Instagram and Twitter. Bye bye, stay safe.