Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VideoCapture{0} #200

Closed
warkekushal opened this issue Dec 3, 2017 · 1 comment
Closed

VideoCapture{0} #200

warkekushal opened this issue Dec 3, 2017 · 1 comment

Comments

@warkekushal
Copy link

I need to use this VideoCapture. I am using cap = cv.VideoCapture{0}
I am getting this error.
...e/kushal/torch/install/share/lua/5.2/cv/videoio/init.lua:52:`` NYI: call return type stack traceback: /home/kushal/torch/install/share/lua/5.2/trepl/init.lua:506: in function </home/kushal/torch/install/share/lua/5.2/trepl/init.lua:499> [C]: in function '__index' ...e/kushal/torch/install/share/lua/5.2/cv/videoio/init.lua:52: in function '__init' /home/kushal/torch/install/share/lua/5.2/torch/init.lua:91: in function </home/kushal/torch/install/share/lua/5.2/torch/init.lua:87> [C]: in function 'VideoCapture' [string "local cap = cv.VideoCapture{0}"]:1: in main chunk [C]: in function 'xpcall' /home/kushal/torch/install/share/lua/5.2/trepl/init.lua:679: in function 'repl' ...shal/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:204: in main chunk [C]: in ?
I am able to use cv2.VideoCapture(0) in python and its working fine. Is there any way to solve this?

@shrubb
Copy link
Contributor

shrubb commented Dec 5, 2017

Hi. This can happen if you compile Torch with Lua 5.x instead of LuaJIT. See #123, #143, #189.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants