Add object detection, tracking, mobile notifications, and search to any security camera.
dont sleep
roryclearcffdf034e3ef
diff --git a/clearcam/ViewController.m b/clearcam/ViewController.mindex ea7855b..cc6438e 100644--- a/clearcam/ViewController.m+++ b/clearcam/ViewController.m@@ -112,6 +112,7 @@ NSMutableDictionary *classColorMap;- (void)viewWillAppear:(BOOL)animated {[super viewWillAppear:animated];+ [UIApplication sharedApplication].idleTimerDisabled = YES;dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{[self.captureSession startRunning];});@@ -549,6 +550,12 @@ NSMutableDictionary *classColorMap;self.previewLayer.frame = [self frameForCurrentOrientation];}+- (void)viewWillDisappear:(BOOL)animated {+ [super viewWillDisappear:animated];+ // Enable auto-locking (important!)+ [UIApplication sharedApplication].idleTimerDisabled = NO;+}+- (CGRect)frameForCurrentOrientation {CGFloat width = self.view.bounds.size.width;CGFloat height = self.view.bounds.size.height;