Theory
9. Body part counter
Working of the program
- 🚩 When the green flag is clicked:
- 🎥 The video on the stage is turned on with 0% transparency, making it fully visible.
- 👀 “Detections” are set to be shown on the stage, likely indicating areas of interest or points of human pose detection.
- 🔁 Inside a forever loop, the program:
- 🕵️♂️ Analyses the image from the camera for human poses.
- 🧮 Sets a “Body Part” variable to 0.
- 🧮 Sets a “Body Part Count” variable to 0.
- 🔂 The program then repeats the following steps 21 times (likely for each potential body part):
- 🤔 Checks if a “Body Part” of person number 1 is detected.
- ➕ If a body part is detected, it increments the “Body Part Count” by 1.
- ➕ Changes the “Body Part” variable by 1 to check the next body part.
- 💬 After checking all body parts, it says the number of “Body Part Count” followed by “Parts Detected,” likely indicating how many body parts were identified in the human pose detection process.