Commit e080d123 authored by klorydryk's avatar klorydryk
Browse files

Merge branch 'fixes' into 'multiple_camera'

Fixes

See merge request !1
parents d074f121 0f708651
......@@ -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
......@@ -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
)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment