Skip to content

Commit

Permalink
Added README
Browse files Browse the repository at this point in the history
  • Loading branch information
JeiKeiLim committed Dec 23, 2019
1 parent f152d41 commit 1d4bf21
Show file tree
Hide file tree
Showing 4 changed files with 78 additions and 0 deletions.
71 changes: 71 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
# Dee face detection
Finding faces from DNN and Haar face detection. <br />

<img src="intro01.gif" >


## Usage
usage: noone_video.py
[-h] [--file FILE] [--out OUT] [--proto_file PROTO_FILE]
[--model_file MODEL_FILE] [--haar_file HAAR_FILE]
[--vertical VERTICAL] [--show SHOW]
[--debug_rect DEBUG_RECT]
[--debug_fill_color DEBUG_FILL_COLOR]
[--debug_text DEBUG_TEXT]
[--detector_dnn_nocrop DETECTOR_DNN_NOCROP]
[--detector_dnn_crop DETECTOR_DNN_CROP]
[--detector_dnn_scan DETECTOR_DNN_SCAN]
[--detector_dnn_crop_scan DETECTOR_DNN_CROP_SCAN]
[--detector_haar DETECTOR_HAAR]
[--detector_combined DETECTOR_COMBINED]
[--blur_faces BLUR_FACES] [--reduce_scale REDUCE_SCALE]
[cam_number]


Blurring faces on videos
<img src="intro02.gif">


<b>Detailed arguments!<b/>

positional arguments:
cam_number Index number of the camera

optional arguments:
-h, --help show this help message and exit
--file FILE Video file path
--out OUT Output video path
--proto_file PROTO_FILE
DNN proto file path
--model_file MODEL_FILE
DNN model file path
--haar_file HAAR_FILE
Haar cascade xml file path
--vertical VERTICAL 0 : horizontal video(default), 1 : vertical video
--show SHOW 0 : Hide figure, 1 : show figure
--debug_rect DEBUG_RECT
Show rectangular around the detected faces. Default :
0
--debug_fill_color DEBUG_FILL_COLOR
Fill colors on the candidate area of the faces,
Default : 0
--debug_text DEBUG_TEXT
Show text information of the detectors, Default : 0
--detector_dnn_nocrop DETECTOR_DNN_NOCROP
Use DNN without crop. Default : 0
--detector_dnn_crop DETECTOR_DNN_CROP
Use DNN with crop. Default : 0
--detector_dnn_scan DETECTOR_DNN_SCAN
Use DNN while scanning the frame. Default : 0
--detector_dnn_crop_scan DETECTOR_DNN_CROP_SCAN
Use DNN while scanning the cropped frame. Default : 1
--detector_haar DETECTOR_HAAR
Use Haar detector. Default : 0
--detector_combined DETECTOR_COMBINED
Use combined detection result. Default : 0
--blur_faces BLUR_FACES
Blur detected faces
--reduce_scale REDUCE_SCALE
Reduce scale ratio. ex) 2 = half size of the input.
Default : 2

Binary file added intro01.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added intro02.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions model/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Model references

## DNN face detection model
- https://github.com/opencv/opencv_extra/tree/master/testdata/dnn

## Haar cascade model
- https://github.com/opencv/opencv/tree/master/data/haarcascades

0 comments on commit 1d4bf21

Please sign in to comment.