Add object detection, tracking, mobile notifications, and search to any security camera.
fix time
roryclear2ff6bfcc6bd8
diff --git a/clearcam/ViewController.m b/clearcam/ViewController.mindex 74b5ec6..ea0c8ee 100644--- a/clearcam/ViewController.m+++ b/clearcam/ViewController.m@@ -480,9 +480,10 @@ NSMutableDictionary *classColorMap;NSCalendar *calendar = [NSCalendar currentCalendar];- NSDateComponents *components = [calendar components:NSCalendarUnitYear | NSCalendarUnitMonth | NSCalendarUnitDay fromDate:self.last_file_timestamp];+ NSDate *now = [NSDate date];+ NSDateComponents *components = [calendar components:NSCalendarUnitYear | NSCalendarUnitMonth | NSCalendarUnitDay fromDate:now];NSDate *midnight = [calendar dateFromComponents:components];- NSTimeInterval timeStamp = [self.last_file_timestamp timeIntervalSinceDate:midnight];+ NSTimeInterval timeStamp = [now timeIntervalSinceDate:midnight];frame[@"timeStamp"] = @(timeStamp);frame[@"res"] = @(self.yolo.yolo_res);