r/MachineVisionSystems • • May 18 '26

Marlin2B: a tiny video language model to extract structured information from videos

4 Upvotes

Hi all!

Shubham and Aryan here, putting out our first open source video language model release.

Story time: we were building video editing agents for social-media content and were using Gemini-2.5-Flash to analyse IG reels and find events in them. It works, but at around a thousand clips/day the cost adds up, and we kept hitting the content-policy on perfectly fine social media clips at our scale

We had a couple of H100s sitting around, so we put them on solving this as a side project. We kept the scope deliberately narrow: not a general VLM you can chat with, just two operations we needed in production. We're releasing it because it seems generally useful for anyone building structured-video pipelines.

The interesting work wasn't the training loop, it was the data curation. We expected to ride the public video-annotated corpora (Tarsier-Recap, ActivityNet, Charades-Ego, LSMDC, etc.) but were disappointed. In practice most of them have one-line captions and rough timestamps, and aren't really annotated event-by-event at second-level precision.

So we wrote a teacher + pooling + human-review pipeline with Gemini-3-Flash in thinking mode and re-annotated ~400K clips from publicly available dataset mixes with fine-grained temporal captions. We then ran SFT + SimPO post-training to make the model really good at dense captioning and temporal grounding. Honestly, most of the project was making sure this data pipeline was high-quality and free of hallucinations.

The result: Marlin is a 2B video VLM tuned for the two questions developers actually want to ask of their videos: what is happening, and when? It produces structured Scene + Event captions with second-precise timestamps, and resolves natural-language queries to span-grounded (start, end) ranges in the video. At 2B params, it's the strongest open model in its weight class on dense captioning (DREAM-1K, CaReBench) and natural-language temporal grounding (TimeLens-Bench), and competitive with Gemini-2.5 at a fraction of the cost. We'll also release our training recipe and a new benchmark for video captioning and grounding soon.

Marlin-2B is open-sourced and comes with vLLM inference and two modes:

  • marlin.caption() gives a structured output of scene description and time-grounded events from a video.

  • marlin.find() gives (start, end) timestamps for a natural-language query over a video.

Weights are open and free to use on HF. If you find it useful, or have ideas on what capabilities we should improve next for real-world use cases, we would love to hear them!!

We want to make more such specific small video language models to enable more open ended video analytics use cases


r/MachineVisionSystems • • Oct 15 '26

Reducing alignment uncertainty in 45/0 multispectral reflectance imaging (mono-converted A7R V)

2 Upvotes

I'm building a full-frame multispectral reflectance measurement capability for technical imaging consulting (background in automotive machine vision). I'm currently validating the setup.

Setup:

Sony A7R V, Bayer CFA and UV/IR filter removed; mechanical shutter, uncompressed 14-bit ARW

Nikon UV-Nikkor 105mm f/4.5, at 0.1x for validation

Coligh 10nm narrowband filters (365–940nm), Askar M54 filter drawer

4× Godox AD600 Pro II with BFP projectors (150mm lens), 45/0 geometry

Copy stand with built-in light trap (measured stray light: 0.12 DN)

Labsphere Spectralon standards (99/75/50/2%), linear-fit calibration

Uncertainty Targets (k=2): ≤1% relative uncertainty from 99–50% R, and ≤10% from 49–2% R.

Current results at 530nm (GUM budget): about 5% from 99–50% R, peaking at about 40% at 2% R.

Strobe angles drifted significantly from 45° until I started aligning them with a Leica Disto X3. A PTFE in-frame dose monitor is on order to track flash-to-flash variation.

Questions:

What methods do you use to hold fine angular positioning of the camera, stage, and strobes, ideally better than ±0.5°?

What else would you check to reduce systematic uncertainty, particularly at low reflectance?

Thanks in advance!


r/MachineVisionSystems • • Oct 28 '26

Need advice on camera and lighting setup for computer vision project

Post image
2 Upvotes

Hey everyone, I am building a computer vision system to check for debris stuck inside glass ampoules after they are made. I know some CV but the hardware side, like cameras, lenses and lighting, is pretty new to me, so any advice on both hardware and approach would really help.

The ampoules come in sizes from 1 to 20 ml, both clear and amber, and they lie flat on a slow conveyor at about 70 to 85 per minute with a camera above them. I have attached a photo of how they look from above. I want to catch glass shards that can stay in the wide part but cannot get out through the narrow opening, and insects like flies and mosquitoes that get stuck inside. Clear shards are almost invisible, amber glass blocks most visible light, the curved glass causes a lot of glare, the ampoules do not rotate so the far side is partly hidden, and the belt is most likely solid.

Nothing is final yet. I was thinking of a 5 MP mono global shutter camera with a C mount lens and strobed lighting, but I am open to being told I am wrong. What camera, lens and lighting would you go for? Would darkfield from above or red or NIR backlight work better? On the software side, which models or approaches would you use, since we may not have many real defect samples? And has anyone worked on something similar?

Attached below are how the ampoules look and their 2 colours: