CtrlK
BlogDocsLog inGet started
Tessl Logo

jbaruch/vision-pipeline-foundations-kotlin

Hygiene for JavaCV + DJL vision pipelines on Kotlin/JVM: camera discovery and probing, frame-skip policy for heavy inference, downscale-before-detection. Replaces the Python jbaruch/vision-pipeline-foundations tile.

94

1.86x
Quality

93%

Does it follow best practices?

Impact

99%

1.86x

Average score across 3 eval scenarios

SecuritybySnyk

Passed

No known issues

Overview
Quality
Evals
Security
Files

vision-pipeline-foundations-kotlin

A Tessl plugin encoding hygiene for JavaCV + DJL vision pipelines on Kotlin/JVM — the Kotlin equivalent of jbaruch/vision-pipeline-foundations, which targets Python OpenCV.

What this plugin provides

KindNamePurpose
Skillcamera-setup-javacvOpen and warm up OpenCVFrameGrabber reliably. Probe pattern that skips virtual cameras (Insta360, Snap, OBS, Continuity) that hijack low indices on macOS. Includes brightness-based detection of "open succeeded but frames are black".
Skillframe-skip-policy-kotlinRun heavy inference (Haar, DJL face_feature, ViT emotion) at a fraction of capture rate. Every 3rd frame for face recognition, every 30th for emotion. Includes the 4× downscale pattern that makes Haar both faster AND less false-positive-prone.
Rulevision-pipeline-foundations-kotlin-rulesCamera setup, frame skip, coroutine architecture, anti-patterns.

Why it exists

OpenCVFrameGrabber(0) on macOS frequently opens a virtual camera (Insta360 Link, Continuity Camera) instead of the physical webcam. The grabber succeeds, frames flow, detection runs against… nothing. The probe pattern in this plugin avoids that.

And: running face detection at full 30 fps + emotion classification at 30 fps wastes 3–10× CPU for zero perceptible improvement. The frame-skip policy here puts detection at ~10 Hz and emotion at ~1 Hz — matched to how fast those signals actually change in the real world.

Install

tessl install jbaruch/vision-pipeline-foundations-kotlin

License

MIT — see LICENSE.

Workspace
jbaruch
Visibility
Public
Created
Last updated
Publish Source
CLI
Badge
jbaruch/vision-pipeline-foundations-kotlin badge