Working version with function for oneCycleFace detection
TODO
Not taking lastTimeDetectedInto account between locks
Removed unused return
Fixed issue with still recoding from camera when laptop not plugged in
Comment
Taking runWithDischargingbattery into account
TODO
updated frequency correctly and destroying window when not recording due to battery not being pulugged in
Destroy window does not work
Comment