Commit 0f708651 authored by Salamandar's avatar Salamandar
Browse files

Use yield, add parentheses, fix indent

parent 5e6c769b
......@@ -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