https://github.com/netromdk/mocam
Interaction with video capturing devices coupled with facial recognition.
https://github.com/netromdk/mocam
cmake cpp face snapshot video-device
Last synced: 4 months ago
JSON representation
Interaction with video capturing devices coupled with facial recognition.
- Host: GitHub
- URL: https://github.com/netromdk/mocam
- Owner: netromdk
- Created: 2014-03-08T09:51:00.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2014-05-13T10:59:31.000Z (almost 12 years ago)
- Last Synced: 2025-01-19T06:44:16.159Z (about 1 year ago)
- Topics: cmake, cpp, face, snapshot, video-device
- Language: C++
- Homepage:
- Size: 853 KB
- Stars: 3
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
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.
```
Usage: ./bin/snapshot ()
The format of the snapshot is dictated by the extension of .
Supported extensions: jpg, jpeg, and png.
Options:
--help | -h Shows this message.
--list | -l List all available video devices on the system.
--device | -d The device to take a snapshot from.
--quality | -q Quality of the snapshot in percentage (1-100).
--scale | -s Scales to the defined size given 'WidthxHeight'
in pixels. Or scale keeping the size-ratio by
'Xw' or 'Xh', where 'X' is the size to scale to
in width or height respectively.
```
faces
=====
This utility is used to analyse for faces on one or several images.
```
Detects faces and eyes in an image.
Usage: ./bin/faces ()
and must to be cascade files in XML that
are either LBP or HAAR types.
Options:
--help | -h Shows this message.
--overlay | -o Write image with overlays to file.
--no-faces | -nf Don't draw faces to overlay.
--no-eyes | -ne Don't draw eyes to overlay.
--out-data | -od Write faces to an XML file.
```