-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.ini
302 lines (264 loc) · 7.3 KB
/
config.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
# License for the Code.
#
# Copyright Owner: Yoshitsugu Kesamaru
# Please refer to the separate license file for the license of the code.
# -------------------------------------------------------
# This config.ini file is *ONLY FOR FACE01 v1.4.10* or later.
# -------------------------------------------------------
########################################################
# About config.ini
# 'config.ini' is the configuration file of FACE01 using
# Python ConfigParser module.
#
# The [DEFAULT] section specifies standard default values.
# Each section inherits from the [DEFAULT] section.
# Therefore, specify only items & values that override [DEFAULT]
# in each section.
# Before modifying config.ini, you should be familiar with the
# ConfigParser module.
# To refere ConfigParser module, see bellow.
# https://docs.python.org/3/library/configparser.html
# Document is bellow.
# https://github.com/yKesamaru/FACE01_SAMPLE/blob/master/docs/config_ini.md#about-configini-file
# Note:
# `number_of_people` and `same_time_recognize` in config.ini are disabled
# when using `mp_face_detection_func`.
########################################################
[DEFAULT]
# [DEFAULT] section is for simple example.
# This [DEFAULT] setting for only use CUI mode.
# Also, This setting is for user who's PC is not installed Nvidia GPU card.
# [DEFAULT] section is the inheritor of all sections.
headless = True
deep_learning_model = 1
anti_spoof = False
output_debug_log = False
number_of_crops = 0
log_level = info
set_width = 750
# dlib model: 99%以上が本人
; similar_percentage = 99.1
# JAPANESE_FACE_V1 model: 90%以上が本人
similar_percentage = 90
jitters = 0
preset_face_images_jitters = 10
upsampling = 0
mode = cnn
frame_skip = 5
number_of_people = 3
use_pipe = False
model_selection = 0
min_detection_confidence = 0.6
person_frame_face_encoding = False
same_time_recognize = 3
set_area = NONE
movie = assets/test.mp4
user =
passwd =
rectangle = False
target_rectangle = False
draw_telop_and_logo = False
default_face_image_draw = False
show_overlay = False
alpha = 0.3
show_percentage = False
show_name = False
crop_face_image = True
frequency_crop_image = 3
crop_with_multithreading = False
Python_version =
cpu_freq = 2.5
cpu_count = 4
memory = 4
gpu_check = True
calculate_time = False
show_video = False
RootDir = '.'
detect_eye_blinks = False
number_of_blinks = 2
# 目が閉じていると判断する閾値
EAR_THRESHOLD_CLOSE = 1.4
# 目が開いていると判断する閾値
EAR_THRESHOLD_OPEN = 1.2
[CUDA]
# This [CUDA] setting is example which for use not only CUI mode but also GUI mode.
# [CUDA] section inherits from the [DEFAULT] section.
# Also, This setting is for user who's PC is installed Nvidia GPU card and
# assuming Nvidia's proprietary driver is properly installed.
preset_face_images_jitters = 100
mode = cnn
[DISPLAY_GUI]
# [DISPLAY_GUI] section is example for display window.
# [DISPLAY_GUI] section inherits from the [DEFAULT] section.
headless = False
; deep_learning_model = 1
; similar_percentage = 90
preset_face_images_jitters = 100
mode = cnn
use_pipe = False
same_time_recognize = 3
movie = ../FACE01_DEV/assets/some_people.mp4
target_rectangle = True
show_overlay = True
show_percentage = True
show_name = True
[bug_DISPLAY_GUI]
# [DISPLAY_GUI] section is example for display window.
# [DISPLAY_GUI] section inherits from the [DEFAULT] section.
headless = False
deep_learning_model = 1
mode = cnn
; use_pipe = False
; same_time_recognize = 3
; movie = ../FACE01_DEV/assets/some_people.mp4
movie = ../FACE01_DEV/assets/some_people_2.mp4
; movie = ../FACE01_DEV/assets/test_video_including_faceless_section.mp4
target_rectangle = True
show_overlay = True
show_percentage = True
show_name = True
frame_skip = 1
; similar_percentage = 50.0
similar_percentage = 90.0
; deep_learning_model = 1
default_face_image_draw = True
[USB_CAMERA]
# [USB_CAMERA] section is example for using USB camera.
# [USB_CAMERA] section inherits from the [DEFAULT] section.
headless = False
preset_face_images_jitters = 100
mode = cnn
use_pipe = False
same_time_recognize = 3
movie = USB
target_rectangle = True
show_overlay = True
show_percentage = True
show_name = True
[HLS]
# [HLS] section is example for to use HTL (HTTP LIVE STREAMING).
# [HLS] section inherits from the [DEFAULT] section.
# User must define value (URL) to movie = '', otherwise the application will exit.
headless = False
preset_face_images_jitters = 100
mode = cnn
use_pipe = False
same_time_recognize = 3
movie =
target_rectangle = True
show_overlay = True
show_percentage = True
show_name = True
[RTSP]
# [RTSP] section is example for to use RTSP (RAPID SPANNING TREE PROTOCOL).
# [RTSP] section inherits from the [DEFAULT] section.
# User must define values (URL, username, password) to movie = '', user = '',
# and passwd = '' otherwise the application will exit.
headless = False
preset_face_images_jitters = 100
mode = cnn
use_pipe = False
same_time_recognize = 3
movie =
user =
passwd =
target_rectangle = True
show_overlay = True
show_percentage = True
show_name = True
[FACE-COORDINATE]
headless = True
deep_learning_model = 0
anti_spoof = False
output_debug_log = False
log_level = info
set_width = 750
similar_percentage = 99.1
jitters = 0
preset_face_images_jitters = 100
upsampling = 0
frame_skip = 5
use_pipe = False
number_of_people = 10
model_selection = 0
min_detection_confidence = 0.4
person_frame_face_encoding = False
same_time_recognize = 10
set_area = NONE
movie = assets/test.mp4
crop_face_image = True
frequency_crop_image = 5
crop_with_multithreading = False
number_of_crops = 0
show_overlay = True
[MAKE_QR_CODE]
headless = True
mode = cnn
movie = ../FACE01_DEV/assets/test.mp4
frame_skip = 0
same_time_recognize = 1
; movie = USB
target_rectangle = True
default_face_image_draw = True
show_overlay = True
alpha = 0.3
crop_face_image = False
show_percentage = True
show_name = True
[LIGHTWEIGHT_GUI]
# [LIGHTWEIGHT_GUI] section is example for to make LIGHTWEIGHT GUI application.
# [LIGHTWEIGHT_GUI] section inherits from the [DEFAULT] section.
headless = False
; deep_learning_model = 0
; similar_percentage = 99
deep_learning_model = 1
similar_percentage = 90
mode = cnn
use_pipe = False
same_time_recognize = 3
target_rectangle = True
show_overlay = True
show_percentage = True
show_name = True
[JAPANESE_FACE_V1_MODEL]
deep_learning_model = 1
similar_percentage = 90.0
[JAPANESE_FACE_V1_MODEL_GUI]
headless = False
frame_skip = 0
movie = assets/some_people.mp4
mode = cnn
deep_learning_model = 1
similar_percentage = 90.0
target_rectangle = True
draw_telop_and_logo = True
default_face_image_draw = True
show_overlay = True
alpha = 0.3
show_percentage = True
show_name = True
crop_face_image = True
[DETECT_EYE_BLINKS]
headless = False
frame_skip = 2
movie = ../FACE01_DEV/assets/test.mp4
; movie = ../FACE01_DEV/assets/test_video_including_faceless_section.mp4
; movie = ../FACE01_DEV/assets/金正恩_ひとり.mp4
deep_learning_model = 1
similar_percentage = 90.0
target_rectangle = True
draw_telop_and_logo = True
default_face_image_draw = True
show_overlay = True
alpha = 0.3
show_percentage = True
show_name = True
detect_eye_blinks = True
[DISTORT_BARREL]
headless = False
frame_skip = 2
deep_learning_model = 1
RootDir = 'assets/data'
[USER_SETTING]
# [USER_SETTING] section is for you're original section, and
# which inherits from the [DEFAULT] section.