Repository navigation
Releases
opticmix-vision 0.0.11
pip install --upgrade opticmix-vision — Windows x64 and Linux x86_64 (on Linux: capture and reading the numeric controls' ranges and defaults supported on one verified setup, control writes not supported).
What is new, in short — the full list is in python/CHANGELOG.md:
Changed:
- Rust:
Recorder::create_with_queue(and the Rustrecord_videoexample) encodes the queued frames on several encoding threads (one less than the processors, 1 to 4), and one writing thread appends them to the files in the orderwritetook them — the files are thosecreatewrites from the same frames (the crate's tests, without a camera). Before, one writing thread encoded and wrote. The Rust recording figures measured with the camera on Windows were measured with the single encoding thread before this change; not re-measured with the camera yet. The PythonRecorderis unchanged. - Camera control writes are now spaced at least 50 ms apart by default (was 12 ms):
VENDOR_MIN_COMMAND_GAP_S,GROUP_MIN_INTERVAL_S["exposure"]andGLOBAL_MIN_GAP_Sare0.050in Python, and the Rustspec::VENDOR_MIN_COMMAND_GAP_Sis0.050. The camera vendor's stated minimum between exposure commands is 12 ms; 50 ms leaves margin and is used for every control. Names are unchanged. Not run with the camera.
Added:
- Viewer:
--read-only(python -m opticmix_vision.viewer;ViewerState(read_only=True)) writes no camera control. Onlyq/Esc,s,v,n,p,c,hand the playback keys act; every other key —l/L,e/E,g/G,a,P, and any key added later — is refused in one check before a control is touched, withread-only: <key> not writtenon screen and in the console.--presetis refused (exit code 2, before the camera is opened). The top line showsREAD-ONLY. On Linux the viewer is always read-only (writing camera controls is not supported there); Windows is unchanged unless--read-onlyis given. Run without a camera only (simulated controls); not run with the camera yet. - Rust:
Controls::load_preset(path, force, include_mono, timeout)applies a preset — Python'sControls.load_preset: the whole preset is checked first (the errors ofplan_preset, nothing written), then oneset_manyof what differs and up totimeoutseconds for the results. It returnspresets::PresetLoad(resultswith read-back andkept(),unchanged,left_out,skipped_mono,ok()). On a preset file either SDK saved and the same simulated controls it writes the same controls in the same order with the same values as the Python package (an internal test of the crate runs both); Rust writes in the camera's control order, Python in the file's. The Rust examplepresetsgains-- --load FILE. Loading writes several controls at once — write once at startup. Run without a camera only (simulated controls); writing presets with the Rust crate has not been run with the camera. - Example
lerobot_record.py: both eyes into a LeRobot dataset (format v3.0; checked with lerobot 0.7.0), one episode, through the officiallerobotpackage (needslerobot). Not run with the camera yet: checked only by converting recordings (generated recordings in the tests, with lerobot 0.7.0). Whether it keeps up with the camera's 90 fps has not been checked; to keep every frame, record withrecord_video.pyfirst and convert the recording with--recording. - Linux: the README section "Linux permissions" (opening the camera without
sudo) and the udev rule filelinux/99-opticmix-weevia.rules, which gives the Weevia S1 only (the USB IDs1d6b:0200together with a V4L2 name containingWN Dual Camera) the groupvideoand mode 0660. The rule was checked without the camera:udevadm test(systemd 259, Ubuntu 26.04.1) on a made-up sysfs tree laid out like the camera's applied its group and mode, and did not apply them when the V4L2 name or the USB product ID differed. - ROS 2 package (still experimental,
ros2/in the repository):docker/Dockerfile.jazzyanddocker/Dockerfile.humble, and the README sections "Linux permissions" and "Docker". The nodes pass image data as anarray.array(on Humble, replaying generated frames reached about 8 messages/s before this change). Without the camera both images built and passedcolcon test; not run with the camera: these two images.
The C and C++ library is attached as a preview (opticmix_vision-c-0.0.11-windows-x86_64.zip): not a supported part of the SDK; what has been checked with the camera, function by function, is in its README.
Rust: cargo add opticmix-vision (0.0.11 on crates.io).
opticmix-vision 0.0.10
pip install --upgrade opticmix-vision — Windows x64 and Linux x86_64 (on Linux: capture and reading the numeric controls' ranges and defaults supported on one verified setup, control writes not supported).
What is new, in short — the full list is in python/CHANGELOG.md:
Changed:
- Rust, Windows:
Device::read()no longer waits without a limit. It waits at mostDEFAULT_READ_TIMEOUT(2 s) and then gives the newSdkError::Timeout; the device stays open, and the sample it asked for, if it comes late, is the next read's (itshost_nsis the time that read took it out, not the time it arrived).read_raw()waits as long. Code that caught onlySdkError::Deviceon a read must handleSdkError::Timeouttoo (read again, or close and reopen if it goes on). Linux (V4L2) is unchanged: no frame for 2 s is stillSdkError::Device, and the device must be reopened. Thehandle_stallexample reopens onSdkError::Timeoutas onSdkError::Device. With the camera on Windows (one Weevia S1 unit, Windows 11, one PC, two-level USB hub, two USB re-insert cycles, 2026-11-26 and 2026-11-29, from this release's source before release):read_timeout(1 ms)gaveSdkError::Timeoutin 4 of 4 tries and the next open read normally. In the same series of runs, two reads with the default limit ended withSdkError::Timeoutafter frames had been arriving (once after 231 frames on the first open after a re-insert, once after the controls were opened while streaming); each run completed when repeated after a USB re-insert. A count only: cause not established. Reading again after a timeout: not run with the camera. Not run with the camera on Linux. - Rust, Windows: each camera is opened and read on a thread the crate starts (Media Foundation and COM there); the COM state of your threads is not changed, so a UI (single-threaded, STA) thread may open a camera. With the camera on Windows (one Weevia S1 unit, Windows 11, one PC, two-level USB hub, four USB re-insert cycles, 2026-11-26 and 2026-11-29, from this release's source before release): 16 opens each gave the first frame within 309.4 ms of the open returning (no read limit). Opening from a UI thread: not run with the camera.
- Rust, Linux:
DeviceSelector::Index(n)with no/dev/videoNgivesSdkError::NoMatch(as on Windows), notSdkError::Device. Not run with the camera. - Linux x86_64 is no longer labelled experimental. Supported on Linux: capture (1600x800 MJPG, 90 fps negotiated), and reading the 10 numeric controls' ranges and defaults (Python and Rust). Not supported: writing camera controls and the illuminator (not verified). "Supported" means verified, on one setup only: one Weevia S1 unit, Ubuntu 26.04.1 (kernel 7.0.0-44), x86_64, USB connected directly, the published 0.0.9 wheel and crate, two USB re-insert cycles (2026-11-28); the control values matched what the camera sent, before and while streaming. Finding the camera by name (
DeviceConfig.weevia_s1()withoutdevice=) ran in the same two cycles with one camera connected; refusing two cameras of the same name has not been run. Not verified: a second unit, other distributions or kernels, a USB hub, ARM (e.g. Jetson). The README section "Linux (experimental)" is now "Linux", and the Rust crate's Linux controls note (Controls::backend_note()) reads "Linux V4L2 controls (reads: ranges and defaults; writes not supported)" (was "Linux V4L2 controls (experimental)"). The ROS 2 package is still experimental.
Added:
- Rust
Device::read_timeout(d)(waits at mostd; Windows applies it, Linux keeps its fixed 2 s),DEFAULT_READ_TIMEOUT,SdkError::Timeout(Python sees it asDeviceError), andCapture::read_sample_timeoutfor your own capture backends (the default callsread_samplewith no limit).read_timeoutwith the camera on Windows: as said under Changed;Capture::read_sample_timeoutin a backend of your own: run without a camera only.
Fixed:
- The documentation said
estimated_missed_framesincludesdropped_frames(do not add them). That did not hold with the camera: one Weevia S1 unit, Windows 11, one PC, two-level USB hub, 2026-11-26, Rustrecord_videogave dropped 8 and 25, estimated missed 6 and 21.dropped_framesis an exact count;estimated_missed_framesis estimated from the frame times and can be lower. Read them separately (Python and Rust documentation). - The line of
examples/record_video.pyand the Rustrecord_videoexample that gives the counts now readsestimated missed N; dropped by the write queue M(wasestimated missed N (of which dropped by the write queue M), which read as a part of N). - The frame statistics (
late_frames,estimated_missed_frames,actual_fps, Recorder's counts) now say what was run with the camera: in Python and Rust they equalled a recount of the same run in separate USB re-insert cycles (one Weevia S1 unit, Windows 11, one PC, two-level USB hub, 2026-11-26). Not verified: Linux, a second unit, a direct USB connection.
Rust: cargo add opticmix-vision (0.0.10 on crates.io).
opticmix-vision 0.0.9
pip install --upgrade opticmix-vision — Windows x64 and Linux x86_64 (experimental).
What is new, in short — the full list is in python/CHANGELOG.md:
- Rust
measure_fps -- --csv FILE(off by default) also writes one row per frameread()returned, the first one too (index,host_ns,left_same,right_same,left_max,right_max: each eye byte-identical to the frame before, 0 on the first row, and its largest pixel value), and prints the negotiated fps andactual_fpsin full. When no sample was skipped as undecodable (the example prints how many did not decode), theDevicestatistics can be counted again from the file: theDevicealso counts the times of skipped samples, which have no row. Run with the camera in two USB re-insert cycles (one PC, one camera, 2026-11-26), from this release's source before release.
Changed:
- Documentation: what was run with the camera after 0.0.8 is said, with its scope. Verified with the published 0.0.7 wheel (Rust: the crates.io 0.0.7 source) on one Weevia S1 unit, Windows 11, one PC, two-level USB hub, two USB re-insertions, read-only: 2D export (left/right PNG pairs from
save_stereo_pairs.pyand the viewer'sskey, an.npzfromcapture_dataset_npz.py, PNG pairs from MJPG and FFV1 camera recordings withexport_recording.py, PGM pairs from an MJPG camera recording with the Rustexport_recording), and finding the camera by name (in the Rust core since 0.0.3) with one camera of that name connected. Run with the camera in two USB re-insert cycles (one Weevia S1 unit, Windows 11, one PC, two-level USB hub, 2026-11-25; the published 0.0.7 wheel, Rust: the crates.io 0.0.7 source):examples/list_devices.py --backend msmf, its--verboseand the doctor's Media Foundation list, the Rustlist_devices -- --backend msmf, reading the USB IDs and the link speed intoDeviceInfo(not opened), and the PythonDeviceframe statistics. The published 0.0.8 wheel, installed from PyPI into a new environment (its sha256 checked against PyPI's), has been run with the camera once (one Weevia S1 unit, Windows 11, one PC, two-level USB hub, 2026-11-26, after one USB re-insertion, read-only). The Rust examplesquickstart,brightness_stats,capture_datasetandpresets(saving, and--plan): run with the camera once (one PC, one camera, 2026-11-26, from the 0.0.8 source); a preset load that changes values: not run. Not verified: Linux, a second unit, a direct USB connection. The 0.0.9 wheel itself has not been run with the camera. - Documentation: the left/right sentence of
export_recording(Python and Rust) says which way left and right are seen: "covering one lens at a time (left and right as seen from behind the camera, looking where it looks) removed the scene from the SDK eye of the same name" (0.0.8: "… from the eye of that name"). The Media Foundation listing anddoctor --jsonsentences no longer call the runs of 2026-11-24 and 2026-11-25 "one camera": one camera was connected in each run, not known to be the same unit in all of them. TheDevicestatistics sentence no longer says Python and Rust use "the same rule" without saying they count different inputs. - Documentation: pages that said less than others about the same run now say the same — Rust recording and playback (
API.md, tutorial 04: "have been run with the camera once", as the README said), the doctor's paragraph inAPI.md(thedoctor --openscope of the README),export_recordingon a Windows camera recording (Python and Rust), the Media Foundation name lookup (resolve_by_name(backend="msmf")), the Rust examples' footnote, and the camera controls line ofexamples/README.md; the CHANGELOG's 0.0.8 entry gives the number of Rust examples as seventeen (it said sixteen). - README, "One eye goes black or stops moving": a second short recording that ended without an error is described (2026-11-26, the published 0.0.8 wheel, the third open after a USB re-insertion: 11 frames about one a second, both eyes 0 in every pixel from the second frame); look at both eyes and the arrival rate of a recording before relying on it.
Fixed:
THIRD_PARTY_NOTICES.txtcovers the Linux wheel's build as well as the Windows wheel's; a crate in one of the two builds only is marked "(Windows wheel only)". Up to 0.0.8 the file was generated for the Windows build only — its first paragraph named_core.pydandx86_64-pc-windows-msvc— and the Linux wheels of 0.0.4 to 0.0.8 carried it as it was: it listed Windows-only crates (windowsand the crates it is built from) that their extension does not contain. No crate those Linux extensions link was missing from it: they are built without the crate'scapturefeature, sov4landv4l2-sys-mitare not in them.
Rust: cargo add opticmix-vision (0.0.9 on crates.io).
opticmix-vision 0.0.8
pip install --upgrade opticmix-vision — Windows x64 and Linux x86_64 (experimental).
What is new, in short — the full list is in python/CHANGELOG.md:
- Rust examples
quickstart,brightness_statsandcapture_dataset:quickstartdoes the steps ofquickstart.pywithout its window (a window needs a GUI crate, which the crate does not depend on): it opens the camera by name, prints the negotiated mode, reads 100 frames and prints the rate they came at, saves the last frame's two eyes asleft_000099.pgmandright_000099.pgm, and closes the camera.brightness_statswrites the CSV columns ofbrightness_stats.pyand prints its summary.capture_datasetiscapture_dataset_npz.pywithout the.npz(writing one needs a zip crate): it keeps N frames in memory, then writes left/right 8-bit PGM pairs,pairs.csv(index,host_ns,left,right) andcapture_info.jsoninto a new or empty folder. Run without a camera only (generated frames); not run with the camera. - Rust presets (module
presets):Controls::save_presetsaves every readable control to a preset file,presets::read_presetandlist_presetsread the files and the preset folder (store_dir(),preset_path()), andControls::plan_presetchecks a preset against the camera and gives what loading it would change, what it would leave out (a value whose mode the preset puts in auto, controls with no effect on the mono sensor) and what is already set — the Python package's file format, folder and messages. The Rust examplepresets(seventeen Rust examples) saves,--plans and--lists. Applying a preset to the camera is not in the Rust crate yet (Python:presets load). Run without a camera only (simulated controls, preset files written by the Python package); not run with the camera. - Rust
capture_info(&mut device)andwrite_capture_info(path, &mut device, extra)(modulerecording, also at the crate root): the capture info the Python package'scapture_infoandwrite_capture_infogive — the same field names and meanings (a test of the crate compares them with the Python function's),createdin UTC, the calibration file listnull. The Rustsave_stereo_pairsexample now writescapture_info.jsonbeside its pairs, as the Python example does. Run without a camera only (generated frames); not run with the camera. - Rust
host_now_ns(): now, on the clock ofStereoFrame::host_ns, to compare a frame's time with other events of the same process. Run without a camera only. - The explorer on Linux: the device list is V4L2's (
devices.list_devices(), the default there), the camera is opened withbackend="v4l2"at/dev/videoNby its number, and, as on Windows, a camera with a USB location (the USB device's sysfs name) is found again there at every open (not there: it is not opened) and two of one name are listed with their locations. The Settings window is read only on Linux: every control shows its value, range and default but is disabled, and so are Reset to defaults… and Load preset… (Save preset… reads only); the window says why (camera controls on Linux are not verified and not supported). 0.0.7 listed no cameras there. Run without a camera only (made-up sysfs trees, fake widgets); not run with the camera on Linux, and not run with a display on Linux. examples/list_devices.py --synthetic --backend v4l2and the Rustlist_devices -- --synthetic --backend v4l2: the same made-up devices as V4L2 lists them (made-up/dev/videoNnumbers and sysfs names). The Rustlist_devicestakes--backend v4l2(the default on Linux, as in Python). Run without a camera only (made-up device lists).
Changed:
- Documentation: what has been verified on the camera is said so, with its scope — verified on one Weevia S1 unit, Windows 11, one PC, two-level USB hub, two USB re-insertions, read-only, with the published 0.0.7 wheel (and, where named, the Rust crate 0.0.7):
python -m opticmix_vision.doctor --open; recording (Recorder,examples/record_video.py) and reading a recording back, seeking and looping (examples/play_recording.py); reading the camera controls, with the ranges and defaults the camera reports (examples/list_controls.py, and the Rustlist_controlsof crate 0.0.7); Media Foundation driver time stamps on every frame, through the Python package (backend="msmf") and the Rust crate 0.0.7, with their intervals and the first value printed (examples/measure_fps.py --backend msmf, the Rustmeasure_fps) — not the accuracy of the times. Not verified: writing the controls and the illuminator with the current implementation (measured with the earlier Python implementation), the--speedfactor of playback, pausing, the viewer's recording (v), Linux, a second unit, a direct USB connection, that both eyes show the scene in every recording (one eye was all zero in two short recordings, once; see the README). The 0.0.8 wheel itself has not been run with the camera. - The explorer's note when it does not read the mode list ends at "opening 1600×800 MJPG" (0.0.7: "…, the mode verified on the Weevia S1").
- The
--usb-locationhelp of the viewer, the explorer,doctor --open,presets saveandloadandcalib checkends "This option: run without a camera only (made-up device lists); not run with a camera, and not run with two cameras". - The explorer's
--usb-locationis no longer refused on Linux (0.0.7: exit code 2): it takes the USB device's sysfs name, e.g.1-4.2; no Weevia S1 there, or an empty one, is exit code 2 before the window opens, as on Windows. - Documentation: corrected the 0.0.7 entries and the pages the 0.0.7 claims audit named.
Fixed:
examples/list_devices.py --backend v4l2off Linux printed an empty V4L2 list and "Linux does not see it either"; it now says the V4L2 list is Linux's and which lists Windows has. The Rustlist_devicessays the same. Run without a camera only.examples/play_recording.py: its last line,frames read 0..53: late …, estimated missed …, read as if the late and missed counts were over frames 0 to 53; they are over every frame read, which with--loopis not that range (150 frames in tutorial 04). It now saysover the 150 frames read (first frame 0, last frame 53): late …, estimated missed ….
Rust: cargo add opticmix-vision (0.0.8 on crates.io).
opticmix-vision 0.0.7
pip install --upgrade opticmix-vision — Windows x64 and Linux x86_64 (experimental).
What is new, in short — the full list is in python/CHANGELOG.md:
- New example
export_recording(Python and Rust): writes the frames of a recording as left/right image pairs into a new or empty folder, withpairs.csv(index,host_ns,driver_ns,driver_clock,left,right, the times recorded in the recording's CSV) and a copy of the recording's JSON ascapture_info.json;--start,--everyand--countpick the frames. Python writes PNG and with--npzalsoframes.npz; Rust writes 8-bit PGM and plays MJPG.avirecordings only. From an MJPG recording the images hold what it decodes to, not the camera's pixel values. Run with generated recordings; the Python example also with a camera recording once on Linux, from source before release. Not run with a camera recording on Windows, and the Rust example not with a camera recording. DeviceInfohas the USB IDs and link speed of a listed device (Python and Rust):vid,pidandbcd_device(the USB vendor ID, product ID and device revision, from the USB device's hardware IDs in the Windows device tree) andlink_speed("Low","Full","High","Super"or"Super+", as the USB hub driver reports the port), read without opening the device;Nonewhen they cannot be read. Linux: seelist_devices(backend="v4l2")below.examples/list_devices.py --verboseand the Rustlist_devices -- --verboseprint one line for each.bcd_deviceis the USB device revision, not a firmware version; the camera reports no USB serial number, no firmware version and no temperature, so there are no fields for them. Run without a camera only (made-up device lists); not run with the camera.- Linux: the camera controls report each control's range and default —
Controls.describe()givesminimum,maximum,stepanddefaultfor the controls the driver reports, as on Windows (the OpenCV path that Linux uses now also asks the V4L2 driver withVIDIOC_QUERYCTRL, on a second, read-only handle to the device node). New read-onlyControls.driver_namesandControls.writes_defaults(Falseon Linux).reset_to_defaults()still writes nothing on Linux: the driver's defaults are shown, not written. Run without a camera (a made-up driver, and on Linux a real ioctl on a file that is not a camera), and run with the camera on Linux once (one PC, one camera, 2026-11-25, from source before release): the driver answered on the read-only handle, also while streaming. Camera controls on Linux remain not verified and not supported. - Linux:
devices.list_devices(backend="v4l2")lists the cameras — oneDeviceInfoper video capture node in/sys/class/video4linux, in/dev/videoNorder:indexis the N (whatDeviceConfig(device=N, backend="v4l2")opens),namethe node's name,usb_locationthe USB device's sysfs name (e.g.2-1), andvid,pid,bcd_deviceandlink_speeditsidVendor,idProduct,bcdDeviceandspeed;Nonefor what cannot be read. Reads sysfs only, opens no device. Linux:devices.list_devices()with nobackendlists the V4L2 capture nodes (backend="v4l2"); 0.0.6 gave an empty list there. Rust:devices::list_v4l2_devices()(featurecapture) gives the same entries. Run without a camera only (made-up sysfs trees); not run with the camera on Linux. --usb-location LOCATIONin the tools —python -m opticmix_vision.viewer,python -m opticmix_vision.explorer,python -m opticmix_vision.doctor --open,python -m opticmix_vision.presets saveandload, andpython -m opticmix_vision.calib check: opens the Weevia S1 at that USB location, to choose between two that share a name, and the camera controls it reads and writes are those of the same camera. The explorer takes--usb-locationon Windows only. No Weevia S1 at that location or an empty or blank location: exit code 2, before anything is opened. A USB location is not a serial number: it names the port the camera is plugged into, and it changes when the camera is plugged into another port. Using two cameras at the same time is not supported. Run without a camera only (made-up device lists); not run with a camera, and not run with two cameras.tutorials/: every page ends with a Rust section — for each step that has a Rust example, thecargo runcommand and its output with--synthetic(generated frames), and for each step that has none, a line saying so. Of the Rust example files,list_devicesandmeasure_fpshave been run with the camera once (one PC, one camera, 2026-11-24), andopen_by_usb_location,record_videoandplay_recordingonce (one PC, one camera, 2026-11-25); on Linux,measure_fps,record_video,play_recordingandlist_controlsonce (one PC, one camera, 2026-11-25, crate 0.0.6); the others not yet.
Changed:
- The explorer with two cameras that share a name: the device list shows each one's USB location, and the one chosen in the list is the one opened and written to by the Settings window. 0.0.6 chose by name, so it always opened, and wrote to, the first of the two. Run without a camera only (made-up device lists); not run with a camera, and not run with two cameras.
- Linux:
Controls.set()/set_many()raiseValueError, andload_preset()raisesPresetError, for a value outside a range the V4L2 driver reports, before anything is written; 0.0.6 passed such a value to OpenCV. Linux: the explorer's Reset to defaults,python -m opticmix_vision.presets load defaultsand the viewer'sp/Pon the defaults say that the camera's defaults are shown, not written;presets load defaults(also with--dry-run) then exits with status 1 (0.0.6: 0). Run without a camera only (a made-up driver, simulated controls); not run with the camera on Linux. - Rust on Linux:
Controls::reset_to_defaults()no longer writes the defaults andControls::plan_reset()is empty (0.0.6 wrote them through V4L2), as in the Python package; new read-onlyControls::writes_defaults(). Windows unchanged. Run without a camera only; not run with the camera on Linux. - Documentation: what 0.0.6 said had not been run with the camera and has since been run once on Windows (one PC, one camera, 2026-11-25), with the 0.0.6 code, before the 0.0.7 changes to the device lists — picking a camera by USB location: with one camera connected, the list showed its USB location, and given that location it opened at 1600x800 MJPG and read one frame; a location no device has was refused; not run with two cameras. Rust recording and playback:
record_video10 s, 881 frames, estimated missed 5, dropped by the write queue 0; Rust and Python played the same file back as 881 frames. - Documentation, Linux (experimental; once, one PC, one camera, 2026-11-25): the 0.0.6 manylinux wheel has been run with the camera — open, frames, recording and playback, read-only; finding the camera by name, and picking it by USB location (opened at its location; a location with no camera refused; not run with two cameras); the examples
measure_fps.py,record_video.py,play_recording.py,save_stereo_pairs.py,list_controls.pyandopen_by_usb_location.py. The Rust crate 0.0.6:measure_fps,record_video,play_recordingand reading the controls (list_controls); writing not run. Camera controls on Linux remain not verified and not supported.
Fixed:
- Linux:
examples/open_by_usb_location.pywithout--usb-locationlists each Weevia S1 and its USB location from V4L2's list (devices.list_devices()), as it does from DirectShow's on Windows; 0.0.6 printed no device lines there (seen once with the camera on Linux, 2026-11-25). The new listing: run without a camera only (a made-up sysfs tree); not run with the camera. - Rust on Linux: the
open_by_usb_locationexample without--usb-locationlists each Weevia S1 and its USB location from the V4L2 list (devices::list_v4l2_devices()), as the Python example does; 0.0.6 printed no device lines there. Its test uses an empty sysfs; not run with the camera on Linux. - Rust on Linux: the
list_devicesexample lists the V4L2 capture nodes (devices::list_v4l2_devices(), with the defaultcapturefeature;--verboseadds the USB IDs and link speed) instead of saying the listing is for Windows;DeviceSelector::Index(n)opens the/dev/videoNit shows. Its tests use made-up sysfs trees; not run with the camera on Linux.
Rust: cargo add opticmix-vision (0.0.7 on crates.io).
opticmix-vision 0.0.6
pip install --upgrade opticmix-vision — Windows x64 and Linux x86_64 (experimental).
What is new, in short — the full list is in python/CHANGELOG.md:
- Picking one of two cameras that share a name by USB location (Python and Rust):
DeviceConfig.weevia_s1(usb_location=...),DeviceSelector::UsbLocation, and thelist_devicesexamples end each line with the device's USB location when it can be read. A USB location is not a serial number: it names the port the camera is plugged into, and it changes when the camera is plugged into another port. Using two cameras at the same time is not supported. Picking a camera by USB location has been run without a camera only (made-up device lists); it has not been run with a camera, and not run with two cameras. python -m opticmix_vision.calib show: what a calibration file holds — per eye the model, size, fx fy cx cy and distortion; between the eyes the baseline, t and R; the file's sha256; and whetherDevice.calibrationuses it. Reads the file only. Run without a camera only (made-up calibration files); not run with the camera.- Rust: recording and playback in the Python package's file format —
Recorderwrites the MJPG.avi, the.csvand the.json;Device::open_recordingplays one through the sameread()as a camera, andDevice::playback()seeks, loops and paces. A recording the Rust crate wrote plays in Python, and a Python MJPG recording plays in Rust. Not in Rust: FFV1 (.mkv). Run without a camera only (generated frames, and files the Python package wrote from generated frames with opencv-python 4.14 on Windows); not run with the camera. - Rust: the installed calibration file and KB4 points —
calib::resolve()andDevice::calibration()by the rules of the Python package, andIntrinsics::project/unprojectup to 92.5° from the optical axis. No rectification or depth. Run without a camera only (made-up calibration files); not run with the camera. - Repeated frames:
Device.repeated_frames(Python) andDevice::repeated_frames()(Rust). Through OpenCV's Media Foundation backend (backend="msmf"),read()warns once peropen()when more than 5 % of the last 300 frames repeated. The warning and the count inexamples/measure_fps.pyhave been run with the camera once through each backend (one PC, one camera, 2026-11-25; the example's output does not record the OpenCV version): throughmsmfthe warning came once and 271 of 900 frames repeated in both eyes; through DirectShow 0 of 900, no warning. Cause not established. - The viewer's
vencodes on a writing thread: a frame that finds the queue full is not recorded and is counted (dropped_frames). The viewer'svmay still not keep up with 90 fps. Run on generated frames only; not run with the camera. - Needs
opencv-python>=4.14(before:>=4.8), because FFV1 writing failed now and then with the 4.12 and 4.13 wheels (one Windows PC, generated grayscale frames; not with 4.14 or 5.1).pip install -U opencv-pythonifpipreports a conflict. Recording has not been run on Linux. - Rust:
SdkError,DeviceSelectoranddevices::DeviceInfoare now#[non_exhaustive]— add a wildcard arm, and build aDeviceInfowithDeviceInfo::new(index, name, usb_location).
Rust: cargo add opticmix-vision (0.0.6 on crates.io).
opticmix-vision 0.0.5
pip install --upgrade opticmix-vision — Windows x64 and Linux x86_64 (experimental).
What is new, in short — the full list is in python/CHANGELOG.md:
- Tutorials. Eight numbered tutorials built on the examples, and a page on the viewer and the explorer; the output they show is from
--synthetic(generated frames). - Recording and playback. The viewer's
vkey andexamples/record_video.pywrite a video, a CSV of frame times and a.jsonof the mode and control values;Device.playbackseeks, changes speed, loops and pauses. An MJPG recording (443 frames) and reading it back have been run with the camera once (one PC, one camera, 2026-11-24); seeking, speed, looping, pausing and the lossless file's pixel values: generated frames only, not run with the camera. Lossless recording, and the viewer'sveven with MJPG, may not keep up with 90 fps. - Viewer: controls are read once when it opens, not on every frame. Run with the camera (one camera, one session, through a USB hub, 2026-11-24): the viewer with this change showed 2700 frames on each of three opens and 1686 frames on a fourth, with no stall error. The earlier version was not run in that session, so whether this change is what prevents the stall is not established.
python -m opticmix_vision.doctorprints what to paste into an issue;--openalso opens the camera and writes no control.--openhas been run with the camera once (one PC, one camera, 2026-11-24); without--open,--jsonand Linux: run without a camera only.- Driver time stamps and frame statistics (
StereoFrame.driver_ns,Device.late_frames,estimated_missed_frames,actual_fps; Python and Rust). Run with the camera once (one PC, one camera, 2026-11-24): through OpenCV's Media Foundation backend 276 of 900 frames per eye repeated the previous image while the driver-time intervals were 11.11 ms (mean, min and max), so theredriver_nsdoes not show whether a new image arrived; cause not established. Use differences between frames, not the absolute value. - Media Foundation device list (Windows):
devices.list_devices(backend="msmf"). The DirectShow and Media Foundation lists can be in a different order (seen once on one PC with one camera), so an index goes only with the backend whose list it came from. - Control presets and
calib check, and eight Rust examples. Presets andcalib checkhave been run without a camera only; of the Rust examples,list_devicesandmeasure_fpshave been run with the camera once (one PC, one camera, 2026-11-24), the others not yet.
Rust: cargo add opticmix-vision (0.0.5 on crates.io).
opticmix-vision 0.0.4
pip install --upgrade opticmix-vision — Windows x64 and, new in this release, Linux x86_64 (experimental).
What is new, in short — the full list is in python/CHANGELOG.md:
- Per-unit calibration files (preview).
python -m opticmix_vision.calib add <file>installs the file for your camera andDevice.calibrationreturns it. Run on Windows with two cameras, once each; installing by label (download) is not available yet. - A Linux x86_64 wheel on PyPI (
manylinux2014_x86_64, glibc 2.17 or newer). Experimental — not a supported platform; no manylinux wheel has been run with the camera. - Rust crate
opticmix-vision0.0.4 on crates.io (preview). Run on Windows 11 on one camera; not run on Linux. - Fifteen examples beside
quickstart.py; the six added in this release have been run without a camera only. - A recording can be read back through
Device(DeviceConfig.recording(path)); run on generated recordings only. API.md, a reference for every public name of the package.- More answers to common problems in the README, by the message you see.
- Error messages, printed output, command-line help and the docstrings of the public modules are in English.
Files:
opticmix_vision-0.0.4-cp310-abi3-win_amd64.whl— Windows x64, Python 3.10 and newer (the same file as on PyPI)opticmix_vision-0.0.4-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl— Linux x86_64, glibc 2.17 or newer, Python 3.10 and newer; experimental (the same file as on PyPI)opticmix_vision-0.0.4.tar.gz— source; building it needs Rust 1.88 or newer
opticmix-vision 0.0.3.post1
First release on PyPI: pip install opticmix-vision.
The code is the same as 0.0.3; only the package description changed — install from PyPI, where to get help, and how to open the camera on Linux. See python/CHANGELOG.md.
opticmix_vision-0.0.3.post1-cp310-abi3-win_amd64.whl— Windows x64, Python 3.10 and newer (the same file as on PyPI)opticmix_vision-0.0.3.post1.tar.gz— source; building it needs Rust 1.88 or newer- Linux x86_64 (experimental): use the source, or the Linux wheel attached to v0.0.3.
opticmix-vision 0.0.3
opticmix-vision 0.0.3
The package now runs on a Rust core: camera controls and device listing are compiled into the extension opticmix_vision._core. See python/CHANGELOG.md for the full list of changes and how to upgrade from 0.0.2.
Files
opticmix_vision-0.0.3-cp310-abi3-win_amd64.whl— Windows x64, Python 3.10 and newer. This is the supported install:pip install opticmix_vision-0.0.3-cp310-abi3-win_amd64.whlopticmix_vision-0.0.3-cp310-abi3-linux_x86_64.whl— Linux x86_64, experimental, not a supported platform. Capture has been run on one Ubuntu 26.04 machine with one camera; camera controls on Linux have not been verified and are not supported.opticmix_vision-0.0.3.tar.gz— source archive. Building it needs a Rust toolchain, 1.88 or newer.
ROS 2 (experimental)
ros2/ holds weevia_ros, an experimental package — not a supported feature — that publishes the Weevia S1 to ROS 2 as left and right image streams. How to install, build and run it: ros2/README.md.
The Rust implementation in 0.0.3 has not yet been verified against the camera on Windows; statements about camera controls were measured with the earlier Python implementation.