title: Cube detection using C++ and openCV
body: <p>I am currently working on a robotic project: a robot must grab an cube using a Kinect camera that process cube detection and calculate coordinates.</p>
  
  <p>I am new in computer vision. I first worked on static image of square in order to get a basic understanding. Using C++ and openCV, I managed to get the corners (and their x y pixel coordinates) of the square using smoothing (remove noise), edge detection (canny function), lines detection (Hough transform) and lines intersection (mathematical calculation) on an simplified picture (uniform background).</p>
  
  <p>By adjusting some threshold I can achieve corners detection assuming that I have only one square and no line feature in the background.</p>
  
  <p>Now is my question: do you have any direction/recommendation/advice/literature about cube recognition algorithm ?</p>
  
  <p>What I have found so far involves shape detection combined with texture detection and/or learning sequence. Moreover, in their applications, they often use GPU/parallellisation computing, which I don't have...</p>
  
  <p>The Kinect also provided a depth camera which gives distance of the pixel from the camera. Maybe I can use this to bypass "complicated" image processing ?</p>
  
  <p>Thanks in advance.</p>