Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
klorydryk
FacialRecoTrackingScore
Commits
0f708651
Commit
0f708651
authored
Apr 26, 2021
by
Salamandar
Browse files
Use yield, add parentheses, fix indent
parent
5e6c769b
Changes
1
Hide whitespace changes
Inline
Side-by-side
trackmultiplefaces.py
View file @
0f708651
...
...
@@ -65,7 +65,7 @@ def count_cameras():
if
temp_camera
.
isOpened
():
temp_camera
.
release
()
continue
return
i
yield
i
class
facetracker
:
...
...
@@ -614,16 +614,16 @@ class facetracker:
return
color
if
__name__
==
'__main__'
:
for
value
in
count_cameras
:
for
value
in
count_cameras
()
:
detectAndTrackMultipleFaces
(
# Camera number
value
,
# False: Names are directly printed on screen, no new thread
start_thread
=
False
,
# Select only names with letters and whitespace. Any other value will select printable.
charset
=
"letters"
,
# If True, then rectangle color around people' face will turn red if dangerous
draw_person_dangerosity
=
True
,
# Add a warning message if dangerous
add_warning_message
=
True
)
# Camera number
value
,
# False: Names are directly printed on screen, no new thread
start_thread
=
False
,
# Select only names with letters and whitespace. Any other value will select printable.
charset
=
"letters"
,
# If True, then rectangle color around people' face will turn red if dangerous
draw_person_dangerosity
=
True
,
# Add a warning message if dangerous
add_warning_message
=
True
)
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment