When finding cameras on linux systems, look at camera ID before path or video* (#476)

This commit is contained in:
martha-johnston
2023-03-07 15:58:22 -05:00
committed by GitHub
parent 62009a882b
commit 55881ddd41
2 changed files with 63 additions and 0 deletions
+1
View File
@@ -81,6 +81,7 @@ func init() {
// Initialize finds and registers camera devices. This is part of an experimental API.
func Initialize() {
discovered := make(map[string]struct{})
discover(discovered, "/dev/v4l/by-id/*")
discover(discovered, "/dev/v4l/by-path/*")
discover(discovered, "/dev/video*")
}