Skip to content
GitLab
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
c4b53661
Commit
c4b53661
authored
Apr 26, 2021
by
klorydryk
Browse files
ajout __init__
parent
e080d123
Changes
1
Hide whitespace changes
Inline
Side-by-side
trackmultiplefaces.py
View file @
c4b53661
...
...
@@ -69,6 +69,11 @@ def count_cameras():
class
facetracker
:
camera_number
=
0
def
__init__
(
self
,
camera_nb
):
camera_number
=
camera_nb
#We are not doing really face recognition
def
doRecognizePerson
(
faceNames
,
fid
):
time
.
sleep
(
2
)
...
...
@@ -615,9 +620,8 @@ class facetracker:
if
__name__
==
'__main__'
:
for
value
in
count_cameras
():
detectAndTrackMultipleFaces
(
# Camera number
value
,
camera
=
facetracker
(
value
)
camera
.
detectAndTrackMultipleFaces
(
# 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.
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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