DeveloperGet started
Developer
Python SDK and documentation for the Weevia S1 stereo-IR camera: open the device, split both eyes out of one frame, pin the exposure, and drive the IR flood illuminator.
PreviewSDK 0.0.x, an early release.
What the SDK does today
opticmix_vision is a thin Python layer over the camera’s UVC interface: OpenCV captures the frames, and a compiled extension inside the package handles camera controls and device listing. Everything in this list is implemented. Where a capability has been confirmed on the camera and where it has not is called out on the page it belongs to.
New here? Start with the first run, in six steps, on Quickstart.
No guessed defaults
The camera exposes no USB serial number, and its stereo packing is not self-describing. So the SDK refuses to guess: the frame layout and the left/right order must be given explicitly. Leaving them out is an error. For the Weevia S1 itself, DeviceConfig.weevia_s1() supplies the values measured on it. The SDK cannot detect a wrong order, so check it once by eye.
One frame, two eyes
Both eyes arrive inside a single UVC frame. The SDK splits it into a left and a right image carrying one host timestamp and a frame index, and raises on a failed read rather than returning an empty frame (code behaviour; no camera run recorded for that case).
Camera controls over UVC
Camera properties go through the standard UVC path. Exposure is settable and reaches the image; focus, zoom, pan and tilt read back -1, because this camera does not implement them. The auto-exposure mode can be read and switched; OpenCV on its own reports it as -1. Measured with the earlier Python implementation. With the Rust implementation (the published 0.0.11 wheel; one unit, Windows 11, 2026-12-03), exposure, gain and the illuminator were written and read back as written; of these, only the illuminator's effect on the image was measured again (once).
IR flood illuminator
The built-in 850 nm illuminator is driven through a standard UVC control, so the scene is lit without an external lamp. (Measured with the earlier Python implementation. With the Rust implementation (the published 0.0.11 wheel; one unit, Windows 11, one open, 2026-12-03): 24, 16 and 0 read back as written, 24 lit part of the scene and 16 next to none; 96 written over 0 read back 96 but the image did not change in that open (a later open was lit).)
Runs without hardware
The package imports with no camera attached, and a synthetic source (--synthetic) drives the viewer, so you can try the window, keys and saving without a camera; its frames are generated, so they say nothing about the camera, and the camera's own capture path is not run. Of the 21 Python examples in the repository, all but quickstart.py also run with no camera (see Code samples).
Calibration file (preview)
Install the calibration file for your camera once with python -m opticmix_vision.calib add <file>, and cam.calibration returns it. Run on Windows with two cameras, once each. Downloading a file by the label under the camera is not available yet, and the SDK cannot check that a file belongs to the camera you opened — see Install.
Verified on camera: works on one Weevia S1 unit on Windows. Works without a camera: runs with no camera attached. Items without a mark were checked within the scope given in their text.
In verification
These parts are in development and are not in the Python package. Each one is published once it is verified on real hardware.
Making a fisheye calibration
Coming soonChessboard capture and a fisheye model for the wide-angle lenses.
Rectification and depth
Coming soonRectified stereo pairs.
camera_info from a calibration
Coming soonWriting ROS camera_info files from a calibration. The ROS 2 driver is a separate, experimental package — see Downloads.
Hand tracking
Coming soonIn development. Not in the published package.
Scope
Python, and a Rust preview
Python is the main binding. A Rust crate is published as a preview (see API languages). C and C++: a preview for Windows x64 only, attached to the GitHub release v0.0.11 — not a supported part of the SDK. C#: a preview binding over the C library, not released (no package to install). Reading from the camera — listing, opening, frames, the frame callback, control reads, frame statistics — verified on one setup (one unit, Windows 11, two-level USB hub, 2026-12-02); control writes: not run with the camera. No engine plugins.
Windows
Windows is the platform the SDK targets today — bring-up and day-to-day use both happen there. 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.
What this SDK is not
Weevia S1 is a close-range stereo-IR camera, not a general perception platform. No inertial sensor is exposed to the host, so there is no visual-inertial odometry, no SLAM and no global localization. There is no on-board depth engine, no object or body detection, no spatial mapping and no multi-camera fusion. That is a deliberate scope, not a gap.
