3

For a project, I have to detect a cube with a webcam. I think that OpenCV could be a good solution to find out where is it (real-time). I'm new in the computer vision domain, and I wonder which algo can I use ? Hough ? I've seen this video (quite impressive!): http://www.youtube.com/watch?v=ytvO2dijZ7A Do you know how he was able to do it ?

Thank you a lot for your help

KeyMaker00
  • 4,589
  • 43
  • 44

1 Answers1

4

To get the result as in the video, you have given, you can use squares.cpp that comes with OpenCV samples. (It is for images. Hope you can do it for videos.)

Other useful SO on this topic are:

1) OpenCV C++/Obj-C: Detecting a sheet of paper / Square Detection

2) Square detection doesn't find squares

Community
  • 1
  • 1
Abid Rahman K
  • 48,289
  • 27
  • 140
  • 153
  • 1
    I've tried squares.c, but it isn't working as well as I excpeted :s, actually, when my cube is not correcly aligned, it doesn't work. I've seen some 3d markless video but looks quite hard to implement. My dream is to implement the object detection at this page : http://cvlab.epfl.ch/~lepetit/. It s written there is some source but I didn't find any. – KeyMaker00 Feb 17 '12 at 17:25
  • @tomylab: well, you could add more details, what is problem while using squares.c? what you expected really? May be you could add a link to picture you are working on. Difficult to explain further without more details. – Abid Rahman K Feb 17 '12 at 17:29
  • 1
    @karlphillip: that saves me a lot of time from explaining already explained things. And also, let questioner do a little work of his own. I am on the opinion that we should not destroy a questioner's quest to find the answers. – Abid Rahman K Feb 17 '12 at 17:33
  • @tomylab : can you be a little more specific? Your link contain a lot of things and papers. Which one do you want to implement? There is one real time object detection topic in it, but it also contain link to its source code. – Abid Rahman K Feb 17 '12 at 17:41
  • I think he is talking about the work on **Real-Time Object Detection**. @tomylab Have you read the papers? – karlphillip Feb 17 '12 at 18:22
  • @karlphillip: Do you have a gmail account? I would like to have a chat with you. Mail me on arkiazm@gmail.com when you are free. – Abid Rahman K Feb 17 '12 at 18:42
  • @arkiaz did u find the source code? My ultimate dream is to detect the cube with a webcam. But I'm not sure that the square.c is enough efficient. What do u think ? – KeyMaker00 Feb 17 '12 at 21:24
  • @karlphillip Yes, Real-Time Object Detection. Just a few lines. I've seen that they work with Matlab. Is there an other way to detect object without mathlab ? – KeyMaker00 Feb 17 '12 at 21:27
  • try this link for source code: http://campar.in.tum.de/personal/hinterst/index/downloads.html – Abid Rahman K Feb 18 '12 at 04:39
  • Thank you! But do you know the difference between DOT - Version/ GEPARD - Version/LEOPAR - Version? – KeyMaker00 Feb 20 '12 at 16:46
  • Leopard and Gepard are there the version of the apple'os and dot the dot net? – KeyMaker00 Feb 20 '12 at 16:47
  • Ohhh no! I've understood ! Thank u so much :D – KeyMaker00 Feb 20 '12 at 16:48