Applications / Production

Visual inspection and image records.

Store a camera picture with every measurement, so a unit's record shows what it looked like on the bench. Then let an AI model check the picture: is the LED lit, is the connector seated, is the label on.

In short
CamerasUSB webcams, ONVIF IP cameras (pan, tilt, zoom)
Per unitA JPEG snapshot next to the measurements
Per runVideo recording to MP4
AI checkai(prompt, image), up to 8 images per call
In developmentVision engine for fast detection
Plan
01 · The setup

A camera over the fixture, the same script as the meters.

Line drawing of an inspection cell with numbered callouts: 1 camera with ring light, 2 monitor, 3 unit under test, 4 barcode scanner, 5 programmable supply, 6 fixture plate.123456
  1. 1Camera with ring light above the fixture: a snapshot per unit, live video on the dashboard.Webcam
  2. 2Monitor with the dashboard: the live picture next to the readings.dashboard
  3. 3Unit under test in the fixture. Its serial number names the picture and the CSV row.—
  4. 4Barcode scanner. In serial mode every scan is an event for the script.LineText
  5. 5Programmable supply powers the unit for the check.Scpi
  6. 6Fixture plate with the harness to the unit.—
02 · The record

One folder per run: numbers and pictures together.

A script takes a snapshot when the unit is in the fixture and saves it with the serial number in the file name. The same script appends the measurements to a CSV file, so every row has a picture that belongs to it.

For a longer process, record video: cam.record(30) writes 30 seconds to data/recordings/, or start and stop it around the test.

Dashboards show the live picture next to the readings, so an operator sees the unit while it's tested.

A Muxit dashboard with a live video tile, a temperature gauge, a threshold knob and status indicators.
03 · The check

Ask the model what the picture shows.

EX  Snapshot, store, checkMaker+
runs inside Muxitruns on your computer · pip install muxit
scripts/inspect.js
// inspect.js: a picture and an AI check for every unit
const cam = connector("webcam");
const dmm = connector("dmm");
const files = connector("fileaccess");
const csv = files.openText("runs/inspection.csv");

const serial = waitFor("connector:scanner.scan");
const vout = dmm.voltage;

const img = cam.snapshot();                    // base64 JPEG
files.openBinary(`images/${serial}.jpg`).write(img);

const answer = ai(
  "Is the green status LED lit and is the connector fully seated? " +
  "Answer PASS or FAIL, then one sentence.", img);

csv.append([timestamp(), serial, vout, answer]);
inspect_unit.py
# inspect_unit.py: a picture and an AI check for every unit
import csv, os
from datetime import datetime, timezone
import muxit

m = muxit.connect()
cam = m.connector("webcam")
dmm = m.connector("dmm")

serial = m.events.wait("connector:scanner.scan")
vout = dmm.voltage

img = muxit.Frame(cam.snapshot())              # base64 JPEG
os.makedirs("images", exist_ok=True)
img.save(f"images/{serial}.jpg")

answer = m.ai(
    "Is the green status LED lit and is the connector fully seated? "
    "Answer PASS or FAIL, then one sentence.", img)

now = datetime.now(timezone.utc).isoformat()
with open("inspection.csv", "a", newline="") as f:
    csv.writer(f).writerow([now, serial, vout, answer])

What happens

  1. The scan gives the serial number; the DMM gives the measurement.
  2. cam.snapshot() returns a JPEG as base64, and openBinary writes it to data/images/.
  3. ai(prompt, img) sends the picture to the model and returns its answer as text.
  4. One CSV row holds the time, serial, measurement and the model's answer.

To compare against a known-good unit, pass several images: ai(prompt, [ref, img]), up to eight per call. The answer is text, so ask for a fixed word such as PASS or FAIL and check for it.

04 · Cameras

What a camera can do in Muxit.

FeatureWebcamONVIFPlan
Live picture on a dashboard✓✓FREE
Snapshot from a script (base64 JPEG)✓✓FREE
Digital zoom—✓FREE
Pan, tilt, zoom and presets—✓FREE
Video recording to MP4✓✓
AI image check from a script✓✓
Vision engine: detection, teach-by-examplein developmentLATER

An alert can carry the picture: a webhook to ntfy shows the snapshot inline on your phone.

05 · What you need

Instruments and plan.

PartHow Muxit reaches it
USB webcam or ONVIF IP cameraWebcam / Onvif (built in)
Instruments for the measurementScpi · LAN / USB-TMC / serial
Barcode scanner for the serialLineText (serial mode) or Input widget
A vision-capable AI modelMuxit AI, or your own provider in Settings › AI Services

Snapshots and live video work on every plan. Video recording and AI image checks (ai with an image) need Maker; a whole production station with operator mode needs Pro. Pricing →

Every instrument here needs a remote interface (LAN, USB-TMC or serial). Handheld meters and supplies with only knobs can't take part in an automated test.

06 · Limits

What it doesn't do (yet).

  • The AI check is a second opinion, not a calibrated vision system. Keep a measured pass/fail as the deciding test and use the picture as evidence.
  • Muxit doesn't draw the measurement into the picture; it goes in the file name and the CSV row.
  • Video recording is not available on macOS, and not for ONVIF cameras on a Raspberry Pi.
  • The Vision engine (colour and contour detection at camera speed, teach-by-example) is in development and not yet available.