Skip to content

Releases

opticmix-vision 0.0.11

Choose a tag to compare

@rjsgml5698 rjsgml5698 released this 02 Dec 11:05

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 Rust record_video example) 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 order write took them — the files are those create writes 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 Python Recorder is 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"] and GLOBAL_MIN_GAP_S are 0.050 in Python, and the Rust spec::VENDOR_MIN_COMMAND_GAP_S is 0.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. Only q/Esc, s, v, n, p, c, h and 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, with read-only: <key> not written on screen and in the console. --preset is refused (exit code 2, before the camera is opened). The top line shows READ-ONLY. On Linux the viewer is always read-only (writing camera controls is not supported there); Windows is unchanged unless --read-only is 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's Controls.load_preset: the whole preset is checked first (the errors of plan_preset, nothing written), then one set_many of what differs and up to timeout seconds for the results. It returns presets::PresetLoad (results with read-back and kept(), 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 example presets gains -- --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 official lerobot package (needs lerobot). 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 with record_video.py first and convert the recording with --recording.
  • Linux: the README section "Linux permissions" (opening the camera without sudo) and the udev rule file linux/99-opticmix-weevia.rules, which gives the Weevia S1 only (the USB IDs 1d6b:0200 together with a V4L2 name containing WN Dual Camera) the group video and 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.jazzy and docker/Dockerfile.humble, and the README sections "Linux permissions" and "Docker". The nodes pass image data as an array.array (on Humble, replaying generated frames reached about 8 messages/s before this change). Without the camera both images built and passed colcon 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

Choose a tag to compare

@rjsgml5698 rjsgml5698 released this 01 Dec 08:25

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 most DEFAULT_READ_TIMEOUT (2 s) and then gives the new SdkError::Timeout; the device stays open, and the sample it asked for, if it comes late, is the next read's (its host_ns is the time that read took it out, not the time it arrived). read_raw() waits as long. Code that caught only SdkError::Device on a read must handle SdkError::Timeout too (read again, or close and reopen if it goes on). Linux (V4L2) is unchanged: no frame for 2 s is still SdkError::Device, and the device must be reopened. The handle_stall example reopens on SdkError::Timeout as on SdkError::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) gave SdkError::Timeout in 4 of 4 tries and the next open read normally. In the same series of runs, two reads with the default limit ended with SdkError::Timeout after 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/videoN gives SdkError::NoMatch (as on Windows), not SdkError::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() without device=) 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 most d; Windows applies it, Linux keeps its fixed 2 s), DEFAULT_READ_TIMEOUT, SdkError::Timeout (Python sees it as DeviceError), and Capture::read_sample_timeout for your own capture backends (the default calls read_sample with no limit). read_timeout with the camera on Windows: as said under Changed; Capture::read_sample_timeout in a backend of your own: run without a camera only.

Fixed:

  • The documentation said estimated_missed_frames includes dropped_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, Rust record_video gave dropped 8 and 25, estimated missed 6 and 21. dropped_frames is an exact count; estimated_missed_frames is estimated from the frame times and can be lower. Read them separately (Python and Rust documentation).
  • The line of examples/record_video.py and the Rust record_video example that gives the counts now reads estimated missed N; dropped by the write queue M (was estimated 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

Choose a tag to compare

@rjsgml5698 rjsgml5698 released this 26 Nov 05:44

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 frame read() 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 and actual_fps in full. When no sample was skipped as undecodable (the example prints how many did not decode), the Device statistics can be counted again from the file: the Device also 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.py and the viewer's s key, an .npz from capture_dataset_npz.py, PNG pairs from MJPG and FFV1 camera recordings with export_recording.py, PGM pairs from an MJPG camera recording with the Rust export_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 --verbose and the doctor's Media Foundation list, the Rust list_devices -- --backend msmf, reading the USB IDs and the link speed into DeviceInfo (not opened), and the Python Device frame 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 examples quickstart, brightness_stats, capture_dataset and presets (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 and doctor --json sentences 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. The Device statistics 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 in API.md (the doctor --open scope of the README), export_recording on 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 of examples/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.txt covers 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.pyd and x86_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 (windows and 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's capture feature, so v4l and v4l2-sys-mit are not in them.

Rust: cargo add opticmix-vision (0.0.9 on crates.io).

opticmix-vision 0.0.8

Choose a tag to compare

@rjsgml5698 rjsgml5698 released this 25 Nov 13:38

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_stats and capture_dataset: quickstart does the steps of quickstart.py without 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 as left_000099.pgm and right_000099.pgm, and closes the camera. brightness_stats writes the CSV columns of brightness_stats.py and prints its summary. capture_dataset is capture_dataset_npz.py without 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) and capture_info.json into a new or empty folder. Run without a camera only (generated frames); not run with the camera.
  • Rust presets (module presets): Controls::save_preset saves every readable control to a preset file, presets::read_preset and list_presets read the files and the preset folder (store_dir(), preset_path()), and Controls::plan_preset checks 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 example presets (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) and write_capture_info(path, &mut device, extra) (module recording, also at the crate root): the capture info the Python package's capture_info and write_capture_info give — the same field names and meanings (a test of the crate compares them with the Python function's), created in UTC, the calibration file list null. The Rust save_stereo_pairs example now writes capture_info.json beside 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 of StereoFrame::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 with backend="v4l2" at /dev/videoN by 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 v4l2 and the Rust list_devices -- --synthetic --backend v4l2: the same made-up devices as V4L2 lists them (made-up /dev/videoN numbers and sysfs names). The Rust list_devices takes --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 Rust list_controls of 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 Rust measure_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 --speed factor 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-location help of the viewer, the explorer, doctor --open, presets save and load and calib check ends "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-location is 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 v4l2 off 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 Rust list_devices says 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 --loop is not that range (150 frames in tutorial 04). It now says over 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

Choose a tag to compare

@rjsgml5698 rjsgml5698 released this 25 Nov 06:55

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, with pairs.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 as capture_info.json; --start, --every and --count pick the frames. Python writes PNG and with --npz also frames.npz; Rust writes 8-bit PGM and plays MJPG .avi recordings 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.
  • DeviceInfo has the USB IDs and link speed of a listed device (Python and Rust): vid, pid and bcd_device (the USB vendor ID, product ID and device revision, from the USB device's hardware IDs in the Windows device tree) and link_speed ("Low", "Full", "High", "Super" or "Super+", as the USB hub driver reports the port), read without opening the device; None when they cannot be read. Linux: see list_devices(backend="v4l2") below. examples/list_devices.py --verbose and the Rust list_devices -- --verbose print one line for each. bcd_device is 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() gives minimum, maximum, step and default for the controls the driver reports, as on Windows (the OpenCV path that Linux uses now also asks the V4L2 driver with VIDIOC_QUERYCTRL, on a second, read-only handle to the device node). New read-only Controls.driver_names and Controls.writes_defaults (False on 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 — one DeviceInfo per video capture node in /sys/class/video4linux, in /dev/videoN order: index is the N (what DeviceConfig(device=N, backend="v4l2") opens), name the node's name, usb_location the USB device's sysfs name (e.g. 2-1), and vid, pid, bcd_device and link_speed its idVendor, idProduct, bcdDevice and speed; None for what cannot be read. Reads sysfs only, opens no device. Linux: devices.list_devices() with no backend lists the V4L2 capture nodes (backend="v4l2"); 0.0.6 gave an empty list there. Rust: devices::list_v4l2_devices() (feature capture) gives the same entries. Run without a camera only (made-up sysfs trees); not run with the camera on Linux.
  • --usb-location LOCATION in the tools — python -m opticmix_vision.viewer, python -m opticmix_vision.explorer, python -m opticmix_vision.doctor --open, python -m opticmix_vision.presets save and load, and python -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-location on 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, the cargo run command and its output with --synthetic (generated frames), and for each step that has none, a line saying so. Of the Rust example files, list_devices and measure_fps have been run with the camera once (one PC, one camera, 2026-11-24), and open_by_usb_location, record_video and play_recording once (one PC, one camera, 2026-11-25); on Linux, measure_fps, record_video, play_recording and list_controls once (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() raise ValueError, and load_preset() raises PresetError, 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 defaults and the viewer's p/P on 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 and Controls::plan_reset() is empty (0.0.6 wrote them through V4L2), as in the Python package; new read-only Controls::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_video 10 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.py and open_by_usb_location.py. The Rust crate 0.0.6: measure_fps, record_video, play_recording and 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.py without --usb-location lists 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_location example without --usb-location lists 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_devices example lists the V4L2 capture nodes (devices::list_v4l2_devices(), with the default capture feature; --verbose adds the USB IDs and link speed) instead of saying the listing is for Windows; DeviceSelector::Index(n) opens the /dev/videoN it 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

Choose a tag to compare

@rjsgml5698 rjsgml5698 released this 25 Nov 00:58

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 the list_devices examples 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 whether Device.calibration uses 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 — Recorder writes the MJPG .avi, the .csv and the .json; Device::open_recording plays one through the same read() as a camera, and Device::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() and Device::calibration() by the rules of the Python package, and Intrinsics::project / unproject up 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) and Device::repeated_frames() (Rust). Through OpenCV's Media Foundation backend (backend="msmf"), read() warns once per open() when more than 5 % of the last 300 frames repeated. The warning and the count in examples/measure_fps.py have 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): through msmf the 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 v encodes on a writing thread: a frame that finds the queue full is not recorded and is counted (dropped_frames). The viewer's v may 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-python if pip reports a conflict. Recording has not been run on Linux.
  • Rust: SdkError, DeviceSelector and devices::DeviceInfo are now #[non_exhaustive] — add a wildcard arm, and build a DeviceInfo with DeviceInfo::new(index, name, usb_location).

Rust: cargo add opticmix-vision (0.0.6 on crates.io).

opticmix-vision 0.0.5

Choose a tag to compare

@rjsgml5698 rjsgml5698 released this 24 Nov 10:33

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 v key and examples/record_video.py write a video, a CSV of frame times and a .json of the mode and control values; Device.playback seeks, 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's v even 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.doctor prints what to paste into an issue; --open also opens the camera and writes no control. --open has been run with the camera once (one PC, one camera, 2026-11-24); without --open, --json and 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 there driver_ns does 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 and calib check have been run without a camera only; of the Rust examples, list_devices and measure_fps have 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

Choose a tag to compare

@rjsgml5698 rjsgml5698 released this 23 Nov 14:40

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 and Device.calibration returns 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-vision 0.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

Choose a tag to compare

@rjsgml5698 rjsgml5698 released this 23 Nov 05:39

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

Choose a tag to compare

@rjsgml5698 rjsgml5698 released this 22 Nov 13:16

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.whl
  • opticmix_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.