-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
78 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |