Complete the code to initialize the camera for color tracking.
camera = DroneCamera([1]=True)
The camera must be set to color_tracking mode to detect colors for tracking.
Complete the code to set the target color for tracking.
tracker.set_target_color([1])The target color must be a visible color like 'red' for the tracker to follow.
Fix the error in the code to correctly start the color tracking process.
drone.[1]()The correct method to start tracking is start_tracking().
Fill both blanks to create a dictionary that maps detected colors to drone commands.
commands = { [1]: 'move_left', [2]: 'move_right' }The dictionary maps 'red' to 'move_left' and 'blue' to 'move_right'.
Fill all three blanks to filter detected colors and execute commands only if confidence is high.
if detected_color == [1] and confidence [2] [3]: execute_command(commands[detected_color])
The code checks if the detected color is 'red' and confidence is greater than 0.8 before executing the command.