A camera captures visual data for processing or recording. In a robot, it supplies live images that software can display, save, or analyze while motors reposition the camera or vehicle. section 8.0 section 10.1
A camera-based robot can:
- Display a live video stream and save timestamped snapshots when the user presses the spacebar. section 8.3
- Detect faces in images or live video and drive servo motors toward the detected face. section 9.0 section 9.1
- Inspect a live feed for a matching QR code and stop a moving robot when it reaches the code. section 10.1
Keyboard-controlled camera
A Python application uses OpenCV to show the camera feed, save a timestamped image on a spacebar press, display a confirmation message, and exit on Esc or Q. The camera can also be mounted between pan and tilt servos for keyboard-directed movement. section 8.0 section 8.3
Shows the hardware arrangement in which servo motors move an attached camera toward a detected face. section 9.1
Shows a side-mounted camera capturing live images for QR code detection as the robot travels along a track. section 10.1
