Skip to content

Commit 6a6e482

Browse files
committed
temp flag to force opencv on linux
1 parent 01be161 commit 6a6e482

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

init.lua

+5-4
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,14 @@ require 'xlua'
88
----------------------------------
99
-- load camera driver based on OS
1010
----------------------------------
11-
if sys.OS == 'linux' then
11+
if useOpenCV then
1212
if not xlua.require 'camopencv' then
1313
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
1714
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
1819
elseif sys.OS == 'macos' then
1920
if not xlua.require 'camopencv' then
2021
xlua.error('failed to load camopencv wrapper: verify that camopencv is installed')

0 commit comments

Comments
 (0)