Leçon 1,
Chapitre 1
En cours
Pictoblox – Clown maker python
The example demonstrates how to use human body detection to track the nose and make someone clown.
Code
sprite = Sprite('Ball')
pose = Posenet()
pose.video("on", 0)
pose.enablebox()
while True:
pose.analysestage()
if (pose.isdetected(0, 1)):
sprite.setx(pose.x(0, 1))
sprite.sety(pose.y(0, 1))
sprite.show()
else:
sprite.hide()
Output
