opencv_lua

OpenCV bindings for lua

$ luarocks install opencv_lua

OpenCV bindings for luajit and lua 5.1/5.2/5.3/5.4/5.5.

Linux/Windows users:
I recommend you to try to install the prebuilt binary.

If you are not using luajit
luarocks install --server=https://github.com/smbape/luarocks-binaries/releases/download/v0.0.1 opencv_lua

Or to specify the target lua version with one of the following commands
luarocks install --server=https://github.com/smbape/luarocks-binaries/releases/download/v0.0.1 opencv_lua 4.13.0luajit2.1
luarocks install --server=https://github.com/smbape/luarocks-binaries/releases/download/v0.0.1 opencv_lua 4.13.0lua5.5
luarocks install --server=https://github.com/smbape/luarocks-binaries/releases/download/v0.0.1 opencv_lua 4.13.0lua5.4
luarocks install --server=https://github.com/smbape/luarocks-binaries/releases/download/v0.0.1 opencv_lua 4.13.0lua5.3
luarocks install --server=https://github.com/smbape/luarocks-binaries/releases/download/v0.0.1 opencv_lua 4.13.0lua5.2
luarocks install --server=https://github.com/smbape/luarocks-binaries/releases/download/v0.0.1 opencv_lua 4.13.0lua5.1

Those prebuilt binaries should work on windows and many linux distributions and have been tested on:
- Windows 11
- Ubuntu 22.04
- Ubuntu 24.04
- Ubuntu 26.04
- Debian 11
- Debian 12
- Debian 13
- Fedora 43
- Fedora 44
- Fedora 45
- Almalinux 8
- Almalinux 9
- Almalinux 10

If the prebuilt binary does not work or you want a custom build, then I recommend you to host your own binary rocks by following the instructions at
https://github.com/smbape/lua-opencv/tree/v0.3.0#hosting-you-own-binary-rocks

Otherwise, follow the instructions at https://github.com/smbape/lua-opencv/tree/v0.3.0#prerequisites-to-source-rock-install
before attempting to install the source rock with

luarocks install --server=https://github.com/smbape/luarocks-binaries/releases/download/v0.0.1 opencv_lua 4.13.0

Versions

4.13.0-11 day ago0 downloads
4.12.0-11 year ago90 downloads
4.11.0-11 year ago55 downloads
4.10.0-12 years ago237 downloads
4.9.0-22 years ago60 downloads
4.9.0-12 years ago36 downloads
4.8.0-22 years ago61 downloads
4.8.0-12 years ago32 downloads

Dependencies

lua >= 5.1

Dependency for

mediapipe_lua

Manifests