mirror of
https://github.com/boltgolt/howdy.git
synced 2024-09-19 09:51:19 +02:00
more informative debug
This commit is contained in:
parent
02a9aee63a
commit
bedfa8020c
1 changed files with 4 additions and 4 deletions
|
@ -59,14 +59,13 @@ except FileNotFoundError:
|
||||||
if not encodings:
|
if not encodings:
|
||||||
sys.exit(10)
|
sys.exit(10)
|
||||||
|
|
||||||
|
# Add the time needed to start the script
|
||||||
timings['st'] = time.time() - timings['st']
|
timings['st'] = time.time() - timings['st']
|
||||||
|
|
||||||
video_capture = None
|
video_capture = None
|
||||||
|
|
||||||
def initialize_cam():
|
def initialize_cam():
|
||||||
global video_capture, timings
|
global video_capture, timings
|
||||||
|
|
||||||
# Add the time needed to start the script
|
|
||||||
timings['ic'] = time.time()
|
timings['ic'] = time.time()
|
||||||
|
|
||||||
# Start video capture on the IR camera
|
# Start video capture on the IR camera
|
||||||
|
@ -198,8 +197,9 @@ while True:
|
||||||
|
|
||||||
print("Time spent")
|
print("Time spent")
|
||||||
print_timing("Starting up", 'st')
|
print_timing("Starting up", 'st')
|
||||||
print_timing("Opening the camera", 'ic')
|
print(" Open cam + load libs: %dms" % (round(max(timings['ll'], timings['ic']) * 1000, )))
|
||||||
print_timing("Importing recognition libs", 'll')
|
print_timing(" Opening the camera", 'ic')
|
||||||
|
print_timing(" Importing recognition libs", 'll')
|
||||||
print_timing("Searching for known face", 'fr')
|
print_timing("Searching for known face", 'fr')
|
||||||
|
|
||||||
print("\nResolution")
|
print("\nResolution")
|
||||||
|
|
Loading…
Reference in a new issue