Cube Pilot is a Python project that leverages OpenCV, NumPy, and the Cozmo SDK to enable the Cozmo robot to detect the color of a cube and navigate towards it, stopping within a specified distance for interaction..
- Color detection: Utilizes OpenCV for real-time color detection of green and yellow cubes.
- Precise stopping: Stops the robot within a given distance from the cube for interaction.
- Autonomous navigation: Cozmo robot autonomously navigates towards the detected cube.
- Capture image & remove noise: The program captures an image from the Cozmo robot's camera in the RGB color space. Image smoothing techniques are applied to remove noise and improve the quality of the image.
- Convert to HSV color space: The RGB image is converted to the HSV (Hue, Saturation, Value) color space, which is more suitable for color-based image processing.
- Filter by color & detect blobs: Color filtering is applied to isolate regions in the image that match the specified color ranges for green and yellow cubes. Blob detection algorithms are used to identify and locate the detected colored regions (blobs) in the image.

