Vision - sgvhak/airhockey-project GitHub Wiki

Goals:

  • Recreate original project capabilities
    • Sense location of puck and robot paddle
    • Predict location to intercept
  • Calibrate table shape on startup
    • Use Kinect depth field
  • Skew frames for rectangular table
  • Implement offensive play, give puck additional velocity from translating during intercept
  • Add mistakes to robot player
  • Calibrate robot paddle

Camera:

Tutorials:

Original Code:

NOTE: Original code uses older OpenCV v1.0 interface. Should use v2.0 interfaces from here onward.

Color Detection using cvInRangeS:

Figuring out HSV ranges to use: Image manipulation programs like gimp uses H = 0-360, S = 0-100 and V = 0-100. But OpenCV uses H: 0 - 180, S: 0 - 255, V: 0 - 255.

OpenCV color ranges info:

Contour Detection