Skip to content

Releases

electric-eye 0.3.2: Real-Time Image Enhancement and Low-Latency Video Transport for Remotely Operated Underwater Vehicles

Choose a tag to compare

@hogib hogib released this 09 Nov 14:21

electric-eye is realtime camera software for a remotely operated underwater vehicle: eeye enhances the camera's frames through a chain of effects and publishes them on a shared-memory frame bus; hellion carries the video across the tether as H.264 over RTP, feeds QGroundControl, records MP4 and serves the browser control page.

This release makes electric-eye citable, adds hellion bench, and puts the test suites under continuous integration. Image processing and video transport are unchanged from v0.3.1: the same output, byte for byte.

New

  • hellion bench [seconds] measures what electric-eye costs while it runs. Once a second it prints CPU per program (the ffmpeg and rpicam-vid each one started included), resident memory, temperature, clock, frame rate and network rate, then a summary. It reads only /proc and /sys and never touches the processes it watches, so it can run on the ROV over SSH during a dive (docs/hellion.md, "hellion bench"). hellion's and eeye's threads are now named (hl/preview, …), so top -H and the benchmark can tell them apart.

  • Citation. CITATION.cff and a "Citing electric-eye" section in the README. This release is archived on Zenodo with a DOI.

  • Continuous integration on every push:

    • every suite with gcc and clang (OpenMP on), and with gcc and OpenMP off, on x86-64;
    • every suite natively on arm64, which runs the NEON paths;
    • a minute of libFuzzer on hellion's HTTP parsers.

    ffmpeg is installed, so hellion's video tests run rather than skip.

Fixed (tests)

CI ran the suites against Ubuntu 24.04's libraries for the first time and found two tests that only passed with newer ones:

  • test_jpeg_decode: libjpeg-turbo 2.1 (Debian, Ubuntu 24.04, Pi OS) classifies a junk JPEG as a format mismatch, and 3.x as a transient failure. Both drop the frame, and the test now accepts either on 2.1. The release binaries link 3.x.
  • test_hellion (test_recorder): with ffmpeg 6.1, a recording stopped while no video arrives waits out the grace period and is killed rather than stopped. The test now keeps the camera running through the stop, as on a vehicle; hellion's own handling is unchanged.

Binaries

This release has no new binaries. Use v0.3.1's, which are the same image processing and video transport; they lack only hellion bench. To get hellion bench, build from source (make BUILD=release; "Building by hand" in the README).

Citing

H. Oğuz Bolat (Department of Geomatics Engineering, Yıldız Technical University) and Hakan Ersoy (Department of Electronics and Communications Engineering, Yıldız Technical University). electric-eye: Real-Time Image Enhancement and Low-Latency Video Transport for Remotely Operated Underwater Vehicles, version 0.3.2, 2026. CITATION.cff has the full record.

v0.3.1

Choose a tag to compare

@hogib hogib released this 01 Nov 20:37

Faster across the board, same output. A performance pass over every module: less CPU on the ROV's Pi, cheaper effects, and a shared preview encoder. Every change was checked against the previous code — where the output shouldn't change, it is byte-identical, on x86 and on arm64 and armv7 (NEON) under qemu. Prebuilt, fully static binaries for the same targets as before.

File For
eeye-v0.3.1-linux-arm64, hellion-v0.3.1-linux-arm64 Raspberry Pi 3/4/5 (and Zero 2 W) on a 64-bit OS
eeye-v0.3.1-linux-armv7, hellion-v0.3.1-linux-armv7 Raspberry Pi 2/3/4/5 on a 32-bit OS (needs ARMv7 + NEON; not Pi 1 / Zero)
eeye-v0.3.1-linux-amd64, hellion-v0.3.1-linux-amd64 x86-64 Linux (a topside laptop)

Upgrading: git pull && sudo ./install.sh on both machines — it remembers your setup and restarts the services. No config changes needed.

eeye

Before After Measured
Auto visibility 1.49 ms 0.55 ms per 720p frame, 4 x86 threads (4.68 → 2.09 ms on one)
Blur, strength 4 and up 56–69% fewer instructions arm64/armv7, counted under qemu: NEON for the half-resolution resampling
Blur, strengths 8–20 1.06–2.11 ms 0.84–1.56 ms 4 x86 threads: half the thread barriers between passes
Blur, x86 (topside in placement A) 0.75 ms 0.18 ms default strength, 4 threads: the scalar path now vectorises
Canny 4–19% faster 4 x86 threads, real photos: the serial work around hysteresis is parallel now
Frame bus publish after an edge filter 34.9 µs 17.2 µs per 720p frame: chroma that is all 128 isn't re-copied

Also: chroma that a later stage replaces anyway (say, tint before sobel) is no longer computed or copied, and the per-frame image statistics run only when auto visibility or the health file needs them.

hellion

  • One shared preview encoder per stream: four open pages used to cost four JPEG encodes per frame. Measured on x86: 4 viewers 13% → 4% of a core (the same as one). Previews are encoded 4:2:0, 18% smaller.
  • No fan-out copy on the ROV: the last sink of each frame gets the frame itself rather than a copy; the ROV's pipeline has one sink, so its 1.84 MB-per-frame copy is gone.

Also

  • Placement A topside no longer republishes the camera stream as a duplicate raw (new installs, or sudo ./install.sh --reset-config).
  • The frame bus writer keeps its own copy of the stream layout, so a damaged shared header can't steer its copies.

Build

Built from v0.3.1 with GCC 15.3 (Bootlin 2026.08 toolchains), glibc, statically linked: -O3, OpenMP on, libjpeg-turbo 3.2.0 with its SIMD code, NEON on armv7 (-march=armv7-a -mfpu=neon-vfpv4). Runs on Linux 3.2+ (amd64, armv7) / 3.7+ (arm64). hellion needs ffmpeg at runtime.

Testing

All 17 C test suites pass on each binary as shipped (built with the same toolchain): natively for amd64, under qemu-user for armv7 and arm64. New tests cover the neutral-chroma frame bus path (mixed frames over several laps of the slots, with deliberately wrong chroma in the neutral ones), the chain's neutral flag, and chroma skipping never changing output. Every optimisation that should not change output was checked byte-identical against the previous code over hundreds of cases — real 720p photos and edge-case frame sizes, every strength and threshold, 1 to 7 threads, x86 and both ARM NEON builds. The shared preview encoder survived 160 viewers joining and leaving under AddressSanitizer with no findings. The static amd64 release binaries ran the whole chain — camera → eeye (blur + sobel, auto visibility on) → hellion → H.264/RTP → hellion → frame bus, plus a browser preview — at 30 fps with no packet loss.

Not yet verified

  • Nothing here has run on the Pi or the vehicle. ARM gains are instruction counts under qemu, not timings on hardware.

v0.3.0

Choose a tag to compare

@hogib hogib released this 01 Nov 19:54

Plug and play: the two ends of the tether now find each other on the network. Install both machines and they connect — no addresses to type. Prebuilt, fully static binaries for the same targets as before.

File For
eeye-v0.3.0-linux-arm64, hellion-v0.3.0-linux-arm64 Raspberry Pi 3/4/5 (and Zero 2 W) on a 64-bit OS
eeye-v0.3.0-linux-armv7, hellion-v0.3.0-linux-armv7 Raspberry Pi 2/3/4/5 on a 32-bit OS (needs ARMv7 + NEON; not Pi 1 / Zero)
eeye-v0.3.0-linux-amd64, hellion-v0.3.0-linux-amd64 x86-64 Linux (a topside laptop)

Installing

sudo ./install.sh --role rov --placement b        # the machine with the camera
sudo ./install.sh --role topside --placement b    # the pilot's laptop

That's all, on a BlueROV's tether or on any LAN. Several vehicles on one network: give each its own pairing name on both of its ends, --pair rov-2. Across a router, where discovery can't reach, pin the addresses as before with --topside-ip/--rov-ip.

Upgrading from 0.2.x: your installs kept the addresses they were given. To switch them to finding each other, on both machines:

git pull && sudo ./install.sh --topside-ip auto --rov-ip auto

Or just git pull && sudo ./install.sh to upgrade and stay pinned — that keeps working.

How it works

  • Every hellion announces itself once a second on UDP 5612, over IPv4 broadcast and IPv6 link-local multicast: its role, name, pairing name, placement and ports.
  • "peer": "auto" on the topside and an rtp:auto:5610 sink on the ROV follow whatever answers, and switch over live. The ROV stops sending 5 s after its topside goes quiet, and resumes when it is back.
  • Only the opposite role with the same pairing name is chosen; a placement mismatch is refused with the reason. If two candidates answer, hellion refuses to guess and says so in hellion top, hellion check and /api/status.
  • Fixed addresses still work exactly as before, and still announce, so the other end can stay on auto.

Discovery trusts the local network. Anyone on it could announce themselves as your topside and receive the video; there is no authentication anywhere in hellion (the control page never had any either), and a pairing name separates vehicles but is not a password. Keep it on the tether or a network you trust.

Also

  • install.sh --help prints its full help again (the end was cut off).

Build

Built from v0.3.0 with GCC 15.3 (Bootlin 2026.08 toolchains), glibc, statically linked: -O3, OpenMP on, libjpeg-turbo 3.2.0 with its SIMD code, NEON on armv7 (-march=armv7-a -mfpu=neon-vfpv4). Runs on Linux 3.2+ (amd64, armv7) / 3.7+ (arm64). hellion needs ffmpeg at runtime. Pinned addresses must be IP addresses (a static binary cannot look up hostnames); discovery needs none.

Testing

All 17 C test suites pass on each binary as shipped (built with the same toolchain): natively for amd64, under qemu-user for armv7 and arm64 — including new ones for the beacon parser (malformed, oversize, wrong version, its own beacons), the choice rules (one candidate, two refused, stale, wrong pair or placement, IPv4 vs IPv6), and two processes finding each other. The static amd64 release binaries were run between two real machines on a LAN, a laptop's webcam as the ROV and nothing configured but the roles: each found the other within about a second, and 1280×720 ran at 30 fps, ~4 Mbit/s, with no packet loss; with the development build, the ROV stopped sending 5 s after the topside went away and logged why. install.sh was tested in a sandbox for the automatic default, --pair, pinning, and un-pinning an upgraded install with auto.

Not yet verified

  • Nothing here has run on the Pi, its camera, BlueOS, or the Fathom-X tether.
  • A bare cable with only IPv6 link-local addresses (no IPv4) — beacons were seen arriving over IPv6, but video over that path is untested.
  • Three or more machines producing the "two candidates" case for real; it is unit-tested.
  • A firewall dropping UDP 5612 (the README's troubleshooting covers what you would see).

v0.2.1

Choose a tag to compare

@hogib hogib released this 01 Nov 19:22

Bug fixes from a module-by-module review, tether latency down ~20×, and cheaper encoding on the ROV. Same programs and targets as v0.2.0; prebuilt, fully static binaries.

File For
eeye-v0.2.1-linux-arm64, hellion-v0.2.1-linux-arm64 Raspberry Pi 3/4/5 (and Zero 2 W) on a 64-bit OS
eeye-v0.2.1-linux-armv7, hellion-v0.2.1-linux-armv7 Raspberry Pi 2/3/4/5 on a 32-bit OS (needs ARMv7 + NEON; not Pi 1 / Zero)
eeye-v0.2.1-linux-amd64, hellion-v0.2.1-linux-amd64 x86-64 Linux (a topside laptop)

Upgrading: git pull && sudo ./install.sh on both machines — it remembers your choices and restarts the services. Or replace the two binaries in /usr/local/bin and sudo systemctl restart hellion eeye. Configs are unchanged. Installing for the first time: see the README's Installing — two machines on a LAN now need just --topside-ip and --rov-ip, no JSON editing.

Latency

Frame bus to frame bus through both hellions (encode, RTP, relay, decode), on an idle x86 laptop:

v0.2.0 v0.2.1
640×480, 30 fps 70.4 ms 3.8 ms
640×480, 60 fps 37.0 ms 3.7 ms
1280×720, 30 fps 74.8 ms 8.3 ms

The topside decoder held two frames: one in ffmpeg's H.264 parser (waiting for the next frame to know the current one had ended) and one in the frame-threaded rawvideo output. hellion now marks the end of each frame for its own decoder, and the decoder's output uses slice threading. QGroundControl and recordings get the stream exactly as before. The last frames of a stream are no longer lost either. Camera, tether and the Pi's encode add to these numbers on the vehicle — not measured yet.

Fixes

  • The page's picture reconnects by itself. If its stream dropped (a topside restart), the picture used to freeze on its last frame — and once the link recovered, it looked live. It now reconnects within a second of the stream being back, and greys out with PICTURE NOT UPDATING meanwhile. Hidden tabs stop streaming.
  • Preview slots no longer leak during an outage (each page reload used one; the fifth viewer was refused).
  • /health answers at once — it took 3 s per poll with the ROV unreachable, delaying the stale-picture warning by as much.
  • Pi camera: every control change leaked a frame from eeye's pool; the eighth froze the video until a restart.
  • Packet-loss counting froze for up to a minute after a long cable pull, showing 0% while packets were being lost.
  • A stale picture can't persist: eeye decodes only the newest frame the camera has ready, instead of working through a backlog the driver keeps.
  • SD-card writes can't stall the picture: the health file is written off the pilot's thread.
  • Two pages applying settings at the same moment are serialized.
  • 32-bit ARM builds from source get NEON — it was silently compiled out, so every effect did 3.5–6× the work. (The release binaries always had it.) make NEON=0 for a Pi 1 / Zero.
  • install.sh --tether checks the interface exists before changing anything (a wrong name used to stop the install halfway).

Cheaper on the ROV

The encoder now gets frames already converted to the format and colour range H.264 needs (done in C, ~0.2 ms at 720p) instead of through an ffmpeg filter: 29% less encoder CPU at 720p30 on x86, and 25% fewer bytes through the pipe.

Build

Built from v0.2.1 with GCC 15.3 (Bootlin 2026.08 toolchains), glibc, statically linked: -O3, OpenMP on, libjpeg-turbo 3.2.0 with its SIMD code, NEON on armv7 (-march=armv7-a -mfpu=neon-vfpv4). Runs on Linux 3.2+ (amd64, armv7) / 3.7+ (arm64). hellion needs ffmpeg at runtime; use IP addresses in its config (a static binary cannot look up hostnames).

Testing

All 17 C test suites pass on each binary as shipped (built with the same toolchain): natively for amd64, under qemu-user for armv7 and arm64, which exercises the NEON paths — including new tests for the end-of-frame markers, the loss counter after a long outage, and the auto visibility and camera-control paths. The static amd64 hellion was measured through two instances on an idle laptop (the latency table above: 3.6 ms at 640×480 30 fps, 7.8 ms at 720p). The page's reconnecting preview was tested by running its reader against a real hellion while restarting hellion and the stream's source; the preview slot leak, /health timing and the encoder CPU saving were each measured before and after. These binaries have not yet been run on real Pi hardware with a camera attached.

Not yet verified

  • Nothing here has run on the Pi, its camera, or the Fathom-X tether — tested on x86 machines, including both placements end to end with a webcam on a laptop.
  • install.sh has been run on real machines only partly (one topside install, which found the --tether and address problems fixed here); the new address options are tested in a sandbox.
  • Auto visibility is tuned on simulated underwater frames and a webcam, not real footage.

v0.2.0

Choose a tag to compare

@hogib hogib released this 01 Nov 18:04

electric-eye is now two programs: eeye, the vision layer (camera → effects → the frame bus), and hellion, everything on the tether (H.264 over RTP from the ROV, QGroundControl, MP4 recording, the browser page, hellion top over SSH). No Python left. Prebuilt, fully static binaries — no libturbojpeg or other libraries needed on the target.

File For
eeye-v0.2.0-linux-arm64, hellion-v0.2.0-linux-arm64 Raspberry Pi 3/4/5 (and Zero 2 W) on a 64-bit OS
eeye-v0.2.0-linux-armv7, hellion-v0.2.0-linux-armv7 Raspberry Pi 2/3/4/5 on a 32-bit OS (needs ARMv7 + NEON; not Pi 1 / Zero)
eeye-v0.2.0-linux-amd64, hellion-v0.2.0-linux-amd64 x86-64 Linux (a topside laptop)

Which machine needs which depends on where the effects run — see Where eeye runs. In short: placement b (effects on the ROV) puts both on the ROV and hellion topside; placement a puts hellion on the ROV and both topside.

Install on the target:

chmod +x eeye-v0.2.0-linux-arm64 hellion-v0.2.0-linux-arm64
sha256sum -c SHA256SUMS --ignore-missing
sudo install -m 0755 eeye-v0.2.0-linux-arm64 /usr/local/bin/eeye
sudo install -m 0755 hellion-v0.2.0-linux-arm64 /usr/local/bin/hellion

Then the config and services from the repository: hellion/examples/ has a hellion.json for each role and placement, and eeye.service / hellion/hellion.service say how to install them by hand. sudo ./install.sh --role rov|topside --placement a|b from a checkout does all of it (building from source) and remains the recommended route.

At runtime hellion needs ffmpeg (sudo apt install ffmpeg), and the topside wants v4l2loopback for its webcam device (sudo apt install v4l2loopback-dkms); rpicam-vid for the Pi camera module. Use IP addresses in hellion.json (as the examples do): a statically linked binary cannot look up hostnames.

What's new

  • Auto visibility — one big toggle on the page, off by default. On, it continuously corrects the water's colour cast, the brightness range and haze on the pilot's picture, following the light as the ROV descends, with nothing to adjust. The page also shows the camera's own picture as a histogram with notes in words ("strong blue-green cast", "12% blown out").
  • hellion — the ROV sends its own video (never BlueOS's) as H.264/RTP; topside relays the packets unchanged to QGroundControl on UDP 5600, records them to MP4 without re-encoding (pausing across a pulled cable and continuing in -part2.mp4), decodes them for the page and a v4l2loopback webcam, and carries eeye's config across the tether. Per-link bitrate and packet loss in hellion top, a pre-dive hellion check, and each end sees what the other reports.
  • The frame bus — eeye publishes the pilot's picture and the untouched camera frame as shared-memory streams (/dev/shm/eeye.*) with capture timestamps, for hellion and for future autonomy code; the layout is documented for readers in any language.
  • Two placements — the effects on the ROV or topside, chosen at install; camera controls reach the camera in both.
  • install.sh --role --placement — systemd services for both programs under one service user, binaries in /usr/local/bin; re-running updates and remembers the choices. --tether IFACE gives a topside interface the BlueROV address.
  • camera.keep_framerate (default on) — stops a webcam's auto exposure from dropping the frame rate in dim light (30 → 17 fps on the test webcam).

Breaking

  • The Python tools (topside/, pi/, tools/) are gone; hellion replaces them.
  • eeye's own JPEG preview server is gone; hellion serves the preview. Old configs still load — stream_frame_interval, stream_quality, stream_raw are ignored, with one log line.
  • install.sh needs --role and --placement (remembered after the first run); the installed effects config is /var/lib/eeye/effects.json.

Build

Built from v0.2.0 with GCC 15.3 (Bootlin 2026.08 toolchains), glibc, statically linked: -O3, OpenMP on, libjpeg-turbo 3.2.0 with its SIMD code, and NEON enabled on armv7 (-march=armv7-a -mfpu=neon-vfpv4). Runs on Linux 3.2+ (amd64, armv7) / 3.7+ (arm64). The same toolchains, library and flags as v0.1.0.

Testing

All 17 C test suites pass on each binary as shipped (built with the same toolchain): natively for amd64, under qemu-user for armv7 and arm64, which exercises the NEON code paths. That includes hellion's RTP round trip through ffmpeg, the frame bus across processes, and auto visibility on synthetic underwater frames. The static amd64 binaries were also run as a whole placement-B chain on one machine — camera → eeye (auto visibility on) → hellion → H.264/RTP → hellion → frame bus — at 30 fps with no packet loss. These binaries have not yet been run on real Pi hardware with a camera attached.

Not yet verified

  • Nothing here has run on the Pi, its camera, or the Fathom-X tether. Placements A and B were tested end to end on x86 machines, with a USB webcam on a laptop as the ROV, across a LAN (cable pulls included).
  • install.sh has only been run in a sandbox (system directories replaced, system commands stubbed), not on a real machine.
  • Auto visibility is tuned on simulated underwater frames and a webcam, not real footage.
  • About two frames (~70 ms at 30 fps) of the glass-to-topside latency is ffmpeg holding frames; which stages hold them is not yet established.

v0.1.0

Choose a tag to compare

@hogib hogib released this 26 Oct 21:32

First release. Prebuilt, fully static binaries — no libturbojpeg or other libraries needed on the target.

File For
eeye-v0.1.0-linux-arm64 Raspberry Pi 3/4/5 (and Zero 2 W) on a 64-bit OS
eeye-v0.1.0-linux-armv7 Raspberry Pi 2/3/4/5 on a 32-bit OS (needs ARMv7 + NEON; not Pi 1 / Zero)
eeye-v0.1.0-linux-amd64 x86-64 Linux

Install on the target:

chmod +x eeye-v0.1.0-linux-arm64
sha256sum -c SHA256SUMS --ignore-missing
sudo ./eeye-v0.1.0-linux-arm64 eeye_config.json

The binary still needs v4l2loopback installed (sudo apt install v4l2loopback-dkms), and rpicam-vid for the Pi camera module backend. eeye_config.json and eeye.service are in the repository; install.sh remains the from-source route and sets up the module, service and tether networking.

Build

Built from deb-stable with GCC 15.3 (Bootlin 2026.08 toolchains), glibc, statically linked: -O3, OpenMP on, libjpeg-turbo 3.2.0 with its SIMD code, and NEON enabled on armv7 (-march=armv7-a -mfpu=neon-vfpv4). Runs on Linux 3.2+ (amd64, armv7) / 3.7+ (arm64).

What's in this version

  • Builds with GNU make and C99 (-std=gnu99), so it also compiles from source on old distros: GCC 4.7+ or clang, glibc 2.13+, libjpeg-turbo 1.4+ — Debian 7 onward. Meson is gone; make, make check.

Testing

All 12 C test suites pass on each binary as shipped (built with the same toolchain): natively for amd64, under qemu-user for armv7 and arm64, which exercises the NEON code paths. These binaries have not yet been run on real Pi hardware with a camera attached.