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
4dd27170
Commit
4dd27170
authored
Apr 26, 2021
by
Salamandar
Browse files
Set a lower log level when list cameras
parent
2074579b
Changes
1
Hide whitespace changes
Inline
Side-by-side
trackmultiplefaces.py
View file @
4dd27170
...
...
@@ -59,6 +59,9 @@ SUSPICIOUS_THRESHOLD = 2
# Get the number of cameras available
def
list_available_cameras
():
loglevel
=
cv2
.
getLogLevel
()
cv2
.
setLogLevel
(
2
)
cameras
=
[]
for
i
in
range
(
10
):
temp_camera
=
cv2
.
VideoCapture
(
i
)
...
...
@@ -66,6 +69,7 @@ def list_available_cameras():
temp_camera
.
release
()
cameras
.
append
(
i
)
cv2
.
setLogLevel
(
loglevel
)
print
(
"Found cameras:"
,
cameras
)
return
cameras
...
...
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