Orders and payments are tests (nothing charged or shipped)

DeveloperDevelopment

Capture

How a frame gets from the sensor to a left and a right image — and which parts of that path the SDK refuses to guess.

No guessed defaults

Two things about this camera are not discoverable from the stream: which half is the left eye, and how the two eyes are packed into one frame. The SDK treats both as required inputs rather than defaults. It cannot detect a wrong order, so check it once by eye.

Frame layout

Side-by-side, top-and-bottom, or a two-channel packed buffer. Weevia S1 delivers side-by-side.

Left/right order

Whether the first half is the left eye or the right one. On Weevia S1 the first half is the right eye (measured on one unit). Confirm it by eye: see “Checking the left/right order” on Quickstart.

Checking the left/right order
python
from opticmix_vision import LAYOUTS, LR_ORDERS, split_stereo

print(LAYOUTS)     # ('sbs', 'tb', 'plane_pack')
print(LR_ORDERS)   # ('first_is_left', 'first_is_right')

# split_stereo is a pure function — it also works on a frame you
# captured yourself, without going through Device at all.
left, right = split_stereo(raw_frame, layout="sbs", lr_order="first_is_right")

The stream

Weevia S1 presents a single UVC video stream that carries both eyes. On this camera it is a 1600×800 mode that splits into two 800×800 images — one per eye. Resolution, frame rate and pixel format are requests: the driver may negotiate something else, so the SDK reports what it actually got and you should read it back rather than assume.

UVC FRAME 1600 × 800first halfsecond halfsplitframe.left800 × 800frame.right800 × 800

One timestamp per frame

Both eyes come out of the same frame and share a host timestamp taken right after the read. That is a host monotonic clock. It is not a camera timestamp. In a USB capture on one unit (Linux, 2026-12-03, one re-insert cycle), none of the camera's 1,020 frame-start headers carried a presentation timestamp (PTS).

Monochrome by design

These are infrared sensors. Frames are single-channel; there is no colour and no white balance to set.

Fixed focus

The lenses are mechanically fixed. There is no digital focus control to call — the camera reports none.

Errors are loud

A failed read raises. The SDK never hands back an empty or half-filled frame for your code to misinterpret.

Camera controls

Exposure, gain and the IR illuminator all travel the same standard UVC property path. You can set them when the device opens, or change them on a live camera. 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). Turning the illuminator on from 0 in an open camera was not shown: 96 written over 0 read back 96 and the image did not change in that open (a later open was lit).

Exposure

Set a fixed exposure value. This is the single most useful control on this camera. Read the value back after you set it. 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).

Gain

Gain reaches the image on both eyes. Some gain writes have not held — the value read back as 0 — and the cause is not known, so read it back after writing.

Values are driver-scale

Exposure and gain numbers follow the driver's own scale. We have not measured how they map to exposure time or to a gain factor, so the SDK passes them through untranslated.

python
# The OpenCV-style names work, and every write goes through one guard
cam.set_prop("CAP_PROP_EXPOSURE", -5)
print(cam.get_prop("CAP_PROP_EXPOSURE"))

# cam.controls reads what OpenCV alone does not: the auto-exposure mode,
# and each control's range and default as the camera reports them
print(cam.controls.get("auto_exposure"))     # 'manual' or 'auto'
print(cam.controls.describe("exposure"))

# FOCUS, AUTOFOCUS, ZOOM, PAN and TILT are not advertised by this camera:
# reading one returns -1, and set_prop raises DeviceError for anything that
# is not a camera control. Read a value back before relying on it.