Real-time Gate Detection

Development of a real-time algorithm to detect landing boards and yellow and red gates, in addition to robot routing using C++ and OpenCV library. A robot’s mission is to cross the yellow gates from above and pass through the red gates robustly without any collisions to score corresponding points.

Step-by-Step solution

  • Capturing real-time frame stream by opening the camera
  • Applying preliminary filters to the stream (such as resizing to 320 x 240)
  • Processing each frame to check if the gates exist in the frame
  • Emitting direction signals based on the color of the detected gate.

Requirements

  • C++ Programming Language (version >=11)
  • OpenCV (version 2.4.13 is preferred)
  • QT Creator IDE

Description

There are some U-shaped gates on the ground. A drone robot is assigned to cross the yellow gates from above and pass through the red gates without any collisions to score the corresponding points.