项目作者: netromdk

项目描述 :
Interaction with video capturing devices coupled with facial recognition.
高级语言: C++
项目地址: git://github.com/netromdk/mocam.git
创建时间: 2014-03-08T09:51:00Z
项目社区:https://github.com/netromdk/mocam

开源协议:

下载


mocam

The intention of this project is to interact and stream frames from
video devices and do facial analysis on them.

Requirements

A C++11 compliant compiler (GCC 4.8+, Clang 3.3+ etc.), CMake 2.8.8+,
Qt 5.2+ and OpenCV 2.4+.

Compilation

To compile the source code and link the binaries do the following:

  1. Extract source and go into the diretory.
  2. mkdir build
  3. cd build
  4. cmake ..
  5. make

This produces two binaries in the bin folder: snapshot and faces

snapshot

snapshot is used to snap an image from a video device and save it to
disk.

  1. Usage: ./bin/snapshot (<options>) <output filename>
  2. The format of the snapshot is dictated by the extension of <output filename>.
  3. Supported extensions: jpg, jpeg, and png.
  4. Options:
  5. --help | -h Shows this message.
  6. --list | -l List all available video devices on the system.
  7. --device | -d <str> The device to take a snapshot from.
  8. --quality | -q <n> Quality of the snapshot in percentage (1-100).
  9. --scale | -s <str> Scales to the defined size given 'WidthxHeight'
  10. in pixels. Or scale keeping the size-ratio by
  11. 'Xw' or 'Xh', where 'X' is the size to scale to
  12. in width or height respectively.

faces

This utility is used to analyse for faces on one or several images.

  1. Detects faces and eyes in an image.
  2. Usage: ./bin/faces (<options>) <face file> <eyes file> <image file>
  3. <face file> and <eyes file> must to be cascade files in XML that
  4. are either LBP or HAAR types.
  5. Options:
  6. --help | -h Shows this message.
  7. --overlay | -o <file> Write image with overlays to file.
  8. --no-faces | -nf Don't draw faces to overlay.
  9. --no-eyes | -ne Don't draw eyes to overlay.
  10. --out-data | -od <file> Write faces to an XML file.