Orders and payments are tests (nothing charged or shipped)

DeveloperGet started

Install

The camera is a standard UVC device, so there is no vendor driver to install and no GPU runtime to match. You need Python and two packages.

Requirements

Windows x64, Python 3.10 or newer

An abi3 wheel for Python 3.10 and newer; installed and tested on 3.10, 3.12 and 3.14 (no camera). It carries a compiled extension, so nothing is built on your machine. Linux x86_64 gets a wheel too (manylinux2014, glibc 2.17 or newer) — capture and reading the numeric controls' ranges and defaults supported on one verified setup, control writes not supported.

numpy and opencv-python

These are the only required dependencies; opencv-python 4.14 or newer is required (since 0.0.6). OpenCV opens the camera and does the image work. If pip reports a conflict: pip install -U opencv-python.

No driver, no CUDA

The camera enumerates on the operating system's own UVC driver. Nothing in the required install path needs a GPU.

Install the package

The SDK is on PyPI and on GitHub under Apache-2.0. On Windows x64, pip installs a wheel that carries the compiled extension, so nothing is built; numpy and opencv-python come from the package index too. On Linux x86_64 it installs a manylinux wheel — capture and reading the numeric controls' ranges and defaults supported on one verified setup, control writes not supported; see Linux on the Downloads page. On a minimal Linux system OpenCV also needs libGL.so.1 (Debian/Ubuntu: sudo apt install libgl1 libglib2.0-0). There is no wheel for macOS, and macOS has not been run. Elsewhere pip tries to build from source: Rust 1.88 or newer (on Windows also the Microsoft C++ Build Tools). A source install has been checked on Linux x86_64 only (Debian 12 container, Python 3.11, Rust 1.88.0, no camera).

shell
pip install opticmix-vision

# upgrade an earlier version
pip install --upgrade opticmix-vision

Or download the file first

The GitHub release v0.0.11 carries the same three files as PyPI — the Windows wheel, the Linux x86_64 wheel and the source archive — and the C/C++ preview zip (Windows x64, not on PyPI). Take this route when pip on the machine cannot reach PyPI, or when you want to keep the file. The wheel still needs numpy and opencv-python from a package index. For a machine with no internet, download those two wheels on another machine as well, carry all the files over in one folder, and install with pip install --no-index --find-links <folder> opticmix-vision.

shell
pip install opticmix_vision-0.0.11-cp310-abi3-win_amd64.whl
GitHub release v0.0.11

Or work from a checkout

Clone it if you want to read the source, run the test suite, or edit while you work. Installing from a checkout compiles the extension, so it needs a Rust toolchain, 1.88 or newer (built and tested with 1.88 and 1.99), and on Windows the Microsoft C++ Build Tools. The tests run with no camera attached; the ones that need hardware skip themselves.

shell
git clone https://github.com/Opticmix/opticmix-vision
cd opticmix-vision/python
pip install -e ".[dev]"
python -m pytest -q
github.com/Opticmix/opticmix-vision

Platform

Windows is the supported platform. Bring-up and day-to-day use both happen there, and the DirectShow backend is what you reach for when you need to pin a capture mode. Linux x86_64: capture and reading the numeric controls' ranges and defaults supported on one verified setup, control writes not supported. ROS 2 is experimental, not supported — see Downloads.

Preview

Calibration file (preview)

A calibration file belongs to one unit: a fisheye (Kannala-Brandt, cv2.fisheye) model per eye and the left-to-right rotation and translation (mm), in JSON. The camera does not report a serial number, so you install the file for your camera once with python -m opticmix_vision.calib add, and cam.calibration returns it. Downloading a file by the label under the camera is not available yet.

shell
python -m opticmix_vision.calib add D:/S1-NNNN.json   # install the file for your camera
python -m opticmix_vision.calib list                  # what is installed, and where
python
from opticmix_vision import Device, DeviceConfig

with Device(DeviceConfig.weevia_s1()) as cam:
    c = cam.calibration              # StereoCalibration
    print(c.left.K, c.left.D, c.extrinsics.R, c.extrinsics.t)
  • The SDK cannot check that a file belongs to the camera you opened — the camera does not send a USB serial number, so another unit's file loads without an error.
  • The file is checked before it is installed (format, and that it carries an S1-NNNN serial) and stored under that serial, in %APPDATA%\opticmix\calib\ on Windows.
  • cam.calibration uses the installed file when there is exactly one; with more than one it raises and lists them — keep only the file for the camera you use. Using two cameras at the same time is not supported.
  • The video does not need a calibration. Without one, only cam.calibration raises, and its message says what to do.
  • Run on Windows with two cameras, once each: installed with calib add <file> and read back through cam.calibration. Installing by label, Linux, and two cameras on one computer have not been run.