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
e080d123
Commit
e080d123
authored
Apr 26, 2021
by
klorydryk
Browse files
Merge branch 'fixes' into 'multiple_camera'
Fixes See merge request
!1
parents
d074f121
0f708651
Changes
2
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
e080d123
...
...
@@ -4,7 +4,8 @@ From https://github.com/gdiepen/face-recognition / track multiple faces
Project to be shown in Marseille on the 30th of january, 2020, for the Technopolice project.
INSTALLATION:
## Installation
Need opencv, opencv-contrib, dlib, colour
```
...
...
@@ -13,3 +14,12 @@ pip install opencv-contrib-python
pip install dlib
pip install colour
```
### On Archlinux and derivatives :
yay -S python-opencv python-colour python-dlib
## Usage
./trackmultiplefaces.py
trackmultiplefaces.py
View file @
e080d123
...
...
@@ -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