Skip to content

Commit

Permalink
Add camera props to attrs
Browse files Browse the repository at this point in the history
  • Loading branch information
seanavery committed Aug 13, 2024
1 parent 15dfd27 commit ac3aa96
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion cam/cam.go
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@ func newFilteredVideo(

fv.workers = rdkutils.NewStoppableWorkers(fv.processFrames, fv.processDetections, fv.deleter, fv.copier)

// Start fsnotify watcher to listen for new files created in the storage path.
err = watcher.Add(fv.seg.storagePath)
if err != nil {
return nil, err
Expand All @@ -220,11 +221,15 @@ func (cfg *Config) Validate(path string) ([]string, error) {
return nil, utils.NewConfigValidationFieldRequiredError(path, "camera")
}

// TODO(seanp): Re-enable this when vision service handler is implemented.
if cfg.Vision == "" {
return nil, utils.NewConfigValidationFieldRequiredError(path, "vision")
}

// TODO(seanp): Remove once camera properties are returned from camera component.
if cfg.Properties == (cameraProperties{}) {
return nil, utils.NewConfigValidationFieldRequiredError(path, "cam_props")
}

return []string{cfg.Camera, cfg.Vision}, nil
}

Expand Down

0 comments on commit ac3aa96

Please sign in to comment.