File tree 1 file changed +5
-4
lines changed
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -8,13 +8,14 @@ require 'xlua'
8
8
---- ------------------------------
9
9
-- load camera driver based on OS
10
10
---- ------------------------------
11
- if sys . OS == ' linux ' then
11
+ if useOpenCV then
12
12
if not xlua .require ' camopencv' then
13
13
xlua .error (' failed to load camopencv wrapper: verify that camopencv is installed' )
14
- if not xlua .require ' v4l' then
15
- xlua .error (' failed to load video4linux wrapper: verify that you have v4l2 libs' )
16
- end
17
14
end
15
+ elseif sys .OS == ' linux' then
16
+ if not xlua .require ' v4l' then
17
+ xlua .error (' failed to load video4linux wrapper: verify that you have v4l2 libs' )
18
+ end
18
19
elseif sys .OS == ' macos' then
19
20
if not xlua .require ' camopencv' then
20
21
xlua .error (' failed to load camopencv wrapper: verify that camopencv is installed' )
You can’t perform that action at this time.
0 commit comments