Skip to content
Egor Burkov edited this page Apr 24, 2016 · 12 revisions

First, install OpenCV 3.1 and Torch 7. Then:

luarocks install cv

If CMake fails to find OpenCV 3.1, help it by providing the dir:

OpenCV_DIR="<path to OpenCV 3.1 build>" luarocks install cv

Optionally, you can build from local source manually:

git clone https://github.com/VisionLabs/torch-opencv.git
cd torch-opencv
luarocks make cv-scm-1.rockspec

Now try running demos from project root, for example,

th demo/videocap.lua
th demo/flann.lua
th demo/SVM.lua
th demo/trackbar.lua
Clone this wiki locally