Open codeAC29 opened 8 years ago
Thanks @mvitez, it worked but now when I try to use framecamera.lua
I get the following error:
/Users/abhi/torch/install/share/lua/5.1/xlua/init.lua:360: module 'camopencv' not found:
no field package.preload['camopencv']
no file '/Users/abhi/.luarocks/share/lua/5.1/camopencv.lua'
no file '/Users/abhi/.luarocks/share/lua/5.1/camopencv/init.lua'
no file '/Users/abhi/torch/install/share/lua/5.1/camopencv.lua'
no file '/Users/abhi/torch/install/share/lua/5.1/camopencv/init.lua'
no file './camopencv.lua'
no file '/Users/abhi/torch/install/share/luajit-2.1.0-beta1/camopencv.lua'
no file '/usr/local/share/lua/5.1/camopencv.lua'
no file '/usr/local/share/lua/5.1/camopencv/init.lua'
no file '/Users/abhi/torch/install/lib/camopencv.dylib'
no file '/Users/abhi/.luarocks/lib/lua/5.1/camopencv.so'
no file '/Users/abhi/torch/install/lib/lua/5.1/camopencv.so'
no file './camopencv.so'
no file '/usr/local/lib/lua/5.1/camopencv.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
warning: <camopencv> could not be loaded (is it installed?)
qlua: /Users/abhi/torch/install/share/lua/5.1/xlua/init.lua:321: failed to load camopencv wrapper: verify that camopencv is installed
stack traceback:
[C]: at 0x010cc57e90
[C]: in function 'error'
/Users/abhi/torch/install/share/lua/5.1/xlua/init.lua:321: in function 'error'
/Users/abhi/torch/install/share/lua/5.1/camera/init.lua:21: in main chunk
[C]: in function 'require'
./frame/framecamera.lua:7: in function 'prep_lua_camera'
./frame/framecamera.lua:61: in function 'init'
Btw when I do make install
, it tries to copy .so file at /usr/local/lib/lua/5.1
but since I have installed torch locally, I had to modify the path to $(TORCH)/lib/lua/5.1/
.
What are you testing? There is no reference to camopencv in demo-core and no reference to /usr/local in video-decoder. After a deeper check, I can see that lua-camera uses opencv. So you should install opencv.
In framecamera.lua require camera
statement is there. Somehow, from there it starts looking for camopencv
.
See this: https://github.com/teradeep/demo-apps/issues/3, I can see your comments there.
Yes thats what I thought, so I installed opencv as well as camera
package. May be I have opencv3
and not opencv
, which might be creating problem.
Probably, yes.
I am getting the following error on my mac while installing the libvideo-decoder. ffmpeg version is 3-1-2.