Solutions
Questions
-
Answer: The switch_algorithm(“face”) command changes the HUSKYLENS to face-recognition mode.
-
Answer: Model 1 contains previously trained faces saved on the SD card; loading it recalls those faces.
-
Answer: Buttons A and B cycle through which face ID the cyber#bot is tracking.
Exercises
-
Answer: Use a loop that alternates
display.show(Image.YES)anddisplay.clear()to flash the display quickly. -
Answer: Add a counter or Boolean flag that prevents repeated turning until a button press resets it.
Projects
-
Answer: Combine
motion.maneuver(50, 50, 1000),display.show(Image.HEART), andmusic.play(music.POWER_UP)inside the detection block. -
Answer: Use a timer to call
motion.maneuver(75, -75, 1500)when no faces are detected, then return to scanning.