|
|
@ -25,6 +25,7 @@ OUTPUT_DIR = 'images'
|
|
|
|
TIMEZONE = 'Australia/Sydney'
|
|
|
|
TIMEZONE = 'Australia/Sydney'
|
|
|
|
WAIT_TIME = 0.1
|
|
|
|
WAIT_TIME = 0.1
|
|
|
|
RECORDING_DURATION = 120
|
|
|
|
RECORDING_DURATION = 120
|
|
|
|
|
|
|
|
SILENT = True
|
|
|
|
username = ''
|
|
|
|
username = ''
|
|
|
|
password = ''
|
|
|
|
password = ''
|
|
|
|
|
|
|
|
|
|
|
@ -168,7 +169,7 @@ def get_next_image(driver, cookies):
|
|
|
|
# Count images collected
|
|
|
|
# Count images collected
|
|
|
|
n = len(t)
|
|
|
|
n = len(t)
|
|
|
|
|
|
|
|
|
|
|
|
if n > 2:
|
|
|
|
if (n > 2) and not SILENT:
|
|
|
|
# Get frames per second
|
|
|
|
# Get frames per second
|
|
|
|
fps = 1 / np.median(np.diff(t))
|
|
|
|
fps = 1 / np.median(np.diff(t))
|
|
|
|
|
|
|
|
|
|
|
|