Theory
8. Clown maker
Create the program to detect the nose
Working of the program
- When the program is initiated (green flag clicked):
- 🎥 The video on the stage is turned on with full visibility (0% transparency).
- ❌ The “detections” feature is hidden.
- 🔁 The program then enters a continuous loop where it:
- 🧍♂️ Analyses the image from the camera to detect human poses.
- 🤔 If the number of people detected is greater than 0 and the nose of person 1 is detected:
- 📍 The sprite is moved to the x and y position corresponding to the nose of person 1.
- ✨ The sprite is then shown on stage at this position.
- 🙈 If the conditions are not met (no nose detected or no people detected):
- The sprite remains hidden.
The purpose of this script is to track the position of a person’s nose as detected by the camera and to visually indicate this position with a sprite on the stage.