Dies ist eine alte Version des Dokuments!


Torch3Vision

http://torch3vision.idiap.ch/

Quelle1)

You will need the C++ Compiler 'g++' to make

  • Download Torch3Vision and un-tar it: tar -zxf Torch3vision2.1.tgz
  • Build Torch3vision: cp Linux_i686.cfg.vision2.1 Linux_i686.cfg

(Or on AMD 64: cp Linux_i686.cfg.vision2.1 Linux_x86_64.cfg )

  • ./torch3make
  • Build the vison examples for face detection: cd vision2.1/examples/facedetect/

../../../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.

 
Nach oben
face_detection/torch3vision.1243335324.txt.gz · Zuletzt geändert: 2024/02/29 13:36 (Externe Bearbeitung)
chimeric.de = chi`s home Creative Commons License Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0
DFmW2CEce3htPL1uNQuHUVu4Tk6WXigFQp   Dogecoin Donations Accepted Here    DFmW2CEce3htPL1uNQuHUVu4Tk6WXigFQp  DFmW2CEce3htPL1uNQuHUVu4Tk6WXigFQp