Skip to content

Latest commit

 

History

15 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

Cube Pilot - Cube Detection and Navigation

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..

Features

  • 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.

Color Detection Procedure

  • 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.

Challenges

The color detection process is the most challenging aspect of this project due to variations in lighting conditions across different environments. Varying lighting conditions can impact the accuracy of color detection algorithms, requiring careful calibration and tuning for optimal performance.

Requirements

  • Python 3.5.1 or later
  • OpenCV
  • Cozmo SDK
  • Screenshots

    About

    A Python project using OpenCV and Cozmo SDK for color cube detection and autonomous navigation, stopping at a set distance for interaction.

    Resources

    Stars

    0 stars

    Watchers

    1 watching

    Forks

    Releases

    Packages

    Contributors

    Languages