Ask Your Question
0

Can anyone compile this very simple OpenCV C++ script?

asked 2014-04-17 22:46:28 -0600

I am playing with face detection in OpenCV. I found this very simple Windows command line program someone coded:

http://www.semanticmetadata.net/2012/03/13/face-detection-convenience-command-line-utility-for-windows/

You just run a command like "facedetect.exe myimage.jpg" and it spits out the coordinates and dimensions of every found face.

The executable works fine, but I have been unable to get the source code to compile. I'd like to be able to adjust which Haar Cascade XML files it looks at.

As I said, it's a very simple script -- just one CXX file. I would not be surprised if there was little trouble in compiling it. I would very much appreciate it if someone knows how to adjust the XMLs and compile it for me! (I have been unable to contact the author.)

Thanks a lot!

edit retag flag offensive close merge delete

Comments

1

First of all, if you want to do face detectionn and play with models, use the openCV examples, which compile just fine. As to the guys sourcecode, you cannot expect us to go dig in that code to find his programming mistake or the reason why you cannot build it ...

StevenPuttemans gravatar imageStevenPuttemans ( 2014-04-18 02:13:22 -0600 )edit
2

Thanks! I'll look at the examples.

ogrgkyle gravatar imageogrgkyle ( 2014-04-24 21:45:03 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
2

answered 2014-04-19 18:18:53 -0600

Witek gravatar image

The code compiles just fine. I have just checked it with OpenCV 2.4.8. It spits out a list of faces' coords and dimensions. It also does some superfluous stuff like loading an eye cascade and drawing ellipses around faces (and never showing the final image).

Anyways, IT WORKS. Make sure you have configured the OpenCV paths and libs correctly. What errors are you getting?

edit flag offensive delete link more

Question Tools

Stats

Asked: 2014-04-17 22:46:28 -0600

Seen: 348 times

Last updated: Apr 19 '14