Skip to content

Add object detection, tracking, mobile notifications, and search to any security camera.

fall back to local if no response / error

roryclear8afb1fc356bc
diff --git a/clearcam/Yolo.m b/clearcam/Yolo.m
index e3dc203..cb58574 100644
--- a/clearcam/Yolo.m
+++ b/clearcam/Yolo.m
@@ -219,7 +219,10 @@ UInt8 *rgbData;
CFRelease(rawData);
- if([[NSUserDefaults standardUserDefaults] boolForKey:@"useOwnInferenceServerEnabled"]) return [self sendYOLORequest];
+ if ([[NSUserDefaults standardUserDefaults] boolForKey:@"useOwnInferenceServerEnabled"]) {
+ NSArray *yoloResults = [self sendYOLORequest];
+ if (yoloResults.count > 0) return yoloResults;
+ }
id<MTLBuffer> buffer = self.buffers[self.input_buffer];
if (!buffer || !buffer.contents) return nil;