Ask Your Question

OpenCV C verses Python difference

asked 2013-04-13 01:43:12 -0500

Hello, I am a Objective-C developer and recently, I have a need of using OpenCV for Facial Recognition (not just detection). I had to switch to Ubuntu Linux, a environment which I am not so familiar with and I am very new to OpenCV. I saw that there is a class called faceRecognizer which can recognize faces right? Since I have not officially learned C++ or Python before, I have two different languages in front of me that I need to choose. My questions are:

1) Is the faceRecognizer class only for C++ or is it available with Python or even Java?

2) If only given 1 week of learning time, would learning C++ or Python be more fast to get to the facial recognition stage of my project (my project is just to recognise faces of a certain person). I have programmed in Objective-C, Actionscript, Processing before and I really need recommendations from you all who have had more experience than I do?

3) What IDE would you all recommend to develop for C++ or Java?

4) Can I write my code in Windows first then import it to Ubuntu Linux?

Thank you all! I have spent more that 24 hours of researching and can't come up with any idea how this works! -- Max

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2013-04-13 02:52:02 -0500

berak gravatar image
  1. yes, facerecognizer is available for c++ , python ( and hopefully java, too ; it wasn't some weeks ago, but that was a bug, and someone is working on that)
  2. to get a quick start, you could try the c++ sample for that or the same in python
  3. no idea, very personal matter of taste ..
  4. yes. the code is fully portable
edit flag offensive delete link more


I would go for C++ since it basically has similar structures like Objective-C and start from the samples given. Read through them and also look at comments inside the code and you will quickly get the grasp of it. Loops and such won't be that new for you, so you will get the basic hang of it in more like a day or so. If this doesn't help you enough, try doing some tutorials : They give you C++ and OpenCV experience at once. As for the evironment, if programming on Windows is your thing, I would say, go Visual Studio. You can fully port the code afterwards. Only keep in mind that OS specific C functionality (which can be called in C++) will not work after you port it. You will need the OS specific for ubuntu then.

StevenPuttemans gravatar imageStevenPuttemans ( 2013-04-13 04:48:15 -0500 )edit

Thanks, then what IDE do you use? Do you recommend Eclipse? So you are saying that I don't need to relearn C++ again right?

maxwelltsai1987 gravatar imagemaxwelltsai1987 ( 2013-04-13 08:58:29 -0500 )edit
Login/Signup to Answer

Question Tools

1 follower


Asked: 2013-04-13 01:43:12 -0500

Seen: 138 times

Last updated: Apr 13 '13