Add object detection, tracking, mobile notifications, and search to any security camera.
dont delete weights
rorycleara9188309b604
diff --git a/clearcam/ViewController.m b/clearcam/ViewController.mindex ac01667..8b60744 100644--- a/clearcam/ViewController.m+++ b/clearcam/ViewController.m@@ -60,27 +60,28 @@ NSMutableDictionary *classColorMap;NSFileManager *fileManager = [NSFileManager defaultManager];NSURL *documentsURL = [[[NSFileManager defaultManager] URLsForDirectory:NSDocumentDirectory inDomains:NSUserDomainMask] firstObject];NSString *documentsPath = [documentsURL path];-+NSError *error;NSArray *contents = [fileManager contentsOfDirectoryAtPath:documentsPath error:&error];-+if (error) {NSLog(@"Failed to get contents of Documents directory: %@", error.localizedDescription);return;}-- // Loop through and delete each item+for (NSString *file in contents) {+ if ([file hasPrefix:@"batch_req"]) continue;+NSString *filePath = [documentsPath stringByAppendingPathComponent:file];BOOL success = [fileManager removeItemAtPath:filePath error:&error];-+if (!success) {NSLog(@"Failed to delete %@: %@", file, error.localizedDescription);} else {NSLog(@"Deleted: %@", file);}}-+///TODOself.ciContext = [CIContext context];