Dies ist eine alte Version des Dokuments!
Quelle1)
You will need the C++ Compiler 'g++' to make
(Or on AMD 64: cp Linux_i686.cfg.vision2.1 Linux_x86_64.cfg )
../../../torch3make *.cc
So now we have a working set of face-detection programmes. The command line interface isn’t too friendly, so they take a little playing around. For starters, the binaries on my Ubuntu system don’t read JPEG images (although the code seems to be there, the build system is non-standard and didn’t automatically pick up my jpeg libraries. So, I needed to convert my images to PPM format, which is one of those image formats that no-one uses but somehow is the lowest common denominator for image processing command line apps. I use the program ‘jpegtopnm’ from package ‘netpbm’.
jpegtopnm andy.jpg > andy.ppm
Of the three facial detection programs available, I found ‘mlpcascadescan’ to be the most effective and quickest, although they all have similar interfaces so this will basically be the same for all of them. We need to pass the source image and the model file, and we tell it to write the face position and to save a drawing with the face detected:
mlpcascadescan andy.ppm -savepos -draw \ -model ~/temp/models/mlp-cascade19×19-20-2-110
This command takes about 20s to run on my creaky old laptop, and creates two files.