r/computervision • • 4d ago

Showcase Follow-up post. New design for 2-axis gimbal: laser range-finder.

31 Upvotes

Following up on my last post, where I showed the gimbal moving next to a see-through copy of itself. Since then I've redesigned it to carry a laser rangefinder, for the jobs that don't need thermal. Here's the same kind of clip with the new version, from a few more angles.

For some jobs it's more useful to know how far away the thing in the picture is. There's no room in a 67 mm ball for the rangefinder next to two cameras, so this is a second version of the ball: the rangefinder takes the thermal camera's place, and the thermal version stays.

The redesign is all inside the ball: a new seat for the module, a pocket for it in the front half, and a reworked board so the distance readings travel down the same USB line as the camera video. Nothing outside the ball changed, not even the flex PCB from my last post.

One thing I have no experience with is calibration. The rangefinder sits about 3 cm below the camera and won't be perfectly parallel to it after assembly, and one degree of error is almost 2 m at 100 m.

The setup:

  • Rangefinder: L22A module, 905 nm laser, listed for up to 1000 m, about 20 €
  • Camera: the same 5 MP visible camera
  • Same travel: ±100° in roll and from 25° up to 95° down in tilt
  • The part that tilts is about 15 g lighter than the thermal version

It's still the CAD model, and the range is the seller's number until I've measured it.

The Google Form for updates is still open: https://forms.gle/2kaUHfGA5ie8oEbu6


r/computervision • • 4d ago

Help: Project Any recommendations on datasets for benchmarking VLMs on standard cv tasks?

Thumbnail reddit.com
1 Upvotes

r/computervision • • 4d ago

Showcase Uncanny eyes portrait: Person and face tracking on an ESP32-S3

Post image
9 Upvotes

Hi all,

I built an "uncanny eyes" painting whose eyes follow people around the room. Everything runs on a XIAO ESP32-S3 Sense (OV3660, 120° lens).

Running ESP-DL face detection on its own only got me about 2.5 fps, and it worked poorly at a distance and when people were moving. So I put a simple pre-processing pipeline in front of it (see diagram):

  1. Raw grayscale frame, 320×240. I skip JPEG entirely to save decoding time.
  2. Downsample with 4×4 averaging to 80×60. This gives 16× fewer values and less noise.
  3. Background model learns the empty room and subtracts it. Anything that stays still slowly fades into the background.
  4. Blob detection: big blobs are people, small blobs are noise. This gives a person count, positions, and a rough head estimate.
  5. Face detection: I crop the original 320×240 frame around the head estimate, scale it to 160×160, boost the contrast, and run ESP-DL face detection on it. This returns whether there's a face, plus its position and size.

This brings it to around 5 fps and works much better at a distance and with movement. Of course it's nowhere near a proper camera and computer, but it's plenty for a painting that follows you with its eyes. The work is split across both cores with FreeRTOS, and an on-device web app streams the debug view.

The output drives two servos that move printed eyes behind the painting.

Video: https://youtu.be/vSbphjCgu3U
Code: https://github.com/fluxfur/uncannyeyes

(I used Claude Opus 5.5 for help with coding and debugging. The web interface was fully vibe-coded.)

Let me know what you think. It is impressive what small ESP32 boards can deliver (i am someone coming from 8bit arduino)


r/computervision • • 4d ago

Discussion Golf green rebuilt from smartphone video only (no LiDAR) – "before" lighting fix, will post the same camera path after

0 Upvotes

This is the current "before" state of my golf-green reconstruction viewer

(smartphone video only, no LiDAR). I'm fixing the lighting next, so the

slopes are still hard to read from above, and the edge is still rough.

I'll post the same camera path again after the fix. If you have a minute:

can you tell which way the slopes run? Anything that looks unnatural?


r/computervision • • 4d ago

Discussion my 36M model just broke down a 17-minute video on a laptop cpu in about a minute, so any local LLM can "watch" it

0 Upvotes

hey, i built tiny-vision as a learning project (v0.1 here). people gave really good feedback so i worked on all of it and v1.0 is out. v0.1 is close to 100 downloads on huggingface and v1.0 got 70+ in 2 days, which honestly shocked me lol. its free, apache-2.0, no paid version or anything.

what it does: most LLMs cant open a video file. tiny-vision runs locally next to your LLM, splits the video into scenes, captions them, and hands your LLM a text breakdown with timestamps. then your LLM does the reasoning: "what happens in this video", "find the part where people are on the beach". nothing gets uploaded anywhere.

this is what your LLM actually gets:

video: trip.mp4 · 00:09 long · 3 scenes (3 shots) · avg scene 3s
recurring: dogs (2 scenes)

scene 1 [00:00–00:03] (3s)
  seen: a group of dogs running in a field. | three dogs running in a field with a bench in the background.
  keywords: dogs, running, field, bench
...

try it:

  • in your browser, no install (free colab): https://colab.research.google.com/github/amar683/tiny-vision/blob/main/notebooks/demo.ipynb
  • as an MCP server, one line in your config, no cloning: {"command": "uvx", "args": ["--from", "git+https://github.com/amar683/tiny-vision", "tiny-vision-mcp"]} tested in claude desktop + claude code. its standard local MCP so it should work in lm studio, cursor etc (havent tested those yet, tell me if it breaks). lm studio + a local model = fully offline
  • no MCP? tiny-vision clip.mp4 --summary prints plain text, so you can pipe it into ollama or anything: tiny-vision clip.mp4 --summary | ollama run qwen2.5 "Summarize this video:"

long videos: any length works. tested on a 17.5 min cricket video: it covered the whole thing in ~50 sec on my macbook (M5), about a minute on cpu only, and condensed it to 100 scenes so it doesnt flood your context. the MCP tool also sends progress updates so your app doesnt give up waiting.

how it works:

  • frames are picked on scene changes (hard cuts + slow camera moves), not one every N seconds, so the timestamps land on the real cuts and a static shot costs one caption. only ~5 frames/sec get decoded, so high-fps phone video stays cheap
  • each shot gets captioned, similar shots get grouped into scenes, and long videos get condensed by merging similar neighbouring scenes
  • captioner: meta's DINOv2-small as a frozen image encoder (not fine-tuned) + my own adapter and caption decoder (14M params) trained on COCO. 36M total

numbers (same 1000 COCO test images, same scorer, M5; cpu = one image at a time, greedy):

  • v0.1 → v1.0: COCO CIDEr 0.061 → 1.145 (same setup) 💀➡️😅
  • vs florence-2-base (231M): ~89% of its caption score, 6x smaller, 8x faster on gpu, 75x faster on cpu (54ms per image vs 4 sec)
  • full 5k COCO Karpathy test: CIDEr 1.163 with beam 3

not saying its better than florence, its not. it just does a lot with very little. benchmark scripts are in the repo.

honest stuff:

  • it only knows COCO's everyday stuff. that cricket video? it called it "baseball" and "frisbee" lol. and a video of earth from space became "an elephant" 💀
  • no audio yet, it describes what it sees, not what is said. whisper is next
  • it captions frames, it doesnt understand motion
  • no OCR, no names, no precise counting
  • like last time, i took a lot of help from claude to build this, so its not entirely mine

code: https://github.com/amar683/tiny-vision
model: https://huggingface.co/amartomar683/tiny-vision
glama: https://glama.ai/mcp/servers/amar683/tiny-vision

what should i try next? still learning so all feedback welcome

last post - https://www.reddit.com/r/LLMDevs/s/uoRboZfP94


r/computervision • • 3d ago

Help: Project Digital image processing and computer vision

0 Upvotes

Hey guys please suggest me some unique ideas that combines these two domain.


r/computervision • • 4d ago

Help: Project One YOLO model for sports broadcast graphics across many leagues, or several models?

0 Upvotes

Hi all, I'd like some high-level advice from people who have built detectors for broadcast video.

The task: detect on-screen graphics in sports broadcasts. Different match events are shown as graphics on screen, for example the score and other in-match events.

The difficulty: every league and broadcaster has its own graphics design. The position, size, colours, fonts and layout all change. The same kind of graphic can be a big panel in one broadcast and a thin strip in another. New leagues with new designs keep coming in.

My questions:

  1. Can a single detector (for example YOLOv8 or YOLO11) realistically cover many different broadcast designs, or does accuracy drop as the number of styles grows?
  2. Is it better to have one model with one class per graphic type, or separate models per graphic type?
  3. When a new league with a new design arrives, what's the usual approach: retrain the whole model each time, fine-tune on the new data only, or something else? How do you avoid the model getting worse on the older designs?
  4. Roughly how many labelled frames per new design are usually enough? Do synthetic overlays (pasting graphics onto match frames) help?
  5. At a high level, is a trained detector the right approach here, or would you look at open-vocabulary detectors or vision-language models instead, given how often new designs appear?

Any experience, papers or pointers would be really appreciated. Thanks!


r/computervision • • 4d ago

Discussion CVPR 2027 Desk Rejection – Reciprocal Reviewer Quota Error?

11 Upvotes

My CVPR 2027 paper was desk rejected for exceeding the reciprocal-reviewer quota, but I don't understand why.

I have 2 submissions:
- Paper A has an eligible reciprocal reviewer.
- Paper B has no eligible reviewer and was desk rejected.

Paper B has 3 authors. Two of us are also on Paper A, and the third author is only on Paper B. None of us has any other CVPR 2027 submissions.

According to the policy, each author can be on at most one paper without an eligible reviewer, so we should be within the quota.

Has anyone experienced the same issue? Could this be a mistake?


r/computervision • • 4d ago

Showcase Alcyone-W: a self-supervised JEPA that predicts topology instead of embeddings (open-source, collapse resistant , on Hugging Face + GitHub)

0 Upvotes

Sharing a small open-source project I've been building, Alcyone-W — a self-supervised model (JEPA-style) that predicts the topology of a masked region instead of a learned embedding. Feedback very welcome, including the parts that don't work yet.
The idea. Standard JEPAs predict a learned latent for a hidden patch — powerful but opaque, and the target drifts with the encoder. Alcyone-W instead predicts an explicit, exactly-computed topological target: turn the input into a scalar terrain, flood it with a union-find watershed, and predict how many basins form in a hidden window, how long each persists, and how much each holds. The ground truth is computed, not learned — no EMA teacher, no collapse.
Setup. ~5.9M-param conv encoder + watershed head. Trained on CMS Open Data (particle-physics events, ~4M). A frozen Galactica-6.7B turns captions into fixed "land" channels (no LLM training).
What works:
Basin-count accuracy 0.945 on held-out events vs 0.572 for a majority-class baseline — the topological task it's built for, it does well.
What doesn't (reporting it openly):
I pre-registered three target metrics and only hit 1 of 3. On borrowed downstream tasks (jet multiplicity, dimuon mass) a plain kinematics MLP beats it. Topological pretraining didn't transfer to pointwise regression.
Extras for the curious: the core hydraulics are formally verified in Lean 4 (no sorry) with Haskell/QuickCheck mirrors, so the targets are provably correct.
Links:
Model + card: huggingface.co/teerthsharma/Alcyone-W
GitHub ; https://github.com/teerthsharma/Alcyone-W
Logs and stuff available trained on 2rtx6000
Genuinely after feedback: (1) is "predict an exact topological invariant" a direction worth pushing for SSL, or a known dead end? (2) better downstream tasks where shape/connectivity should beat kinematics?


r/computervision • • 4d ago

Discussion Looking for thoughts and discussions

0 Upvotes

Big Cyberpunk 2077 fan here. I've been thinking about an idea I can't shake: living your everyday life as if you were inside a fictional universe.

You walk through your real city, but through a video passthrough headset it looks like Night City. Real buildings, shops and streets restyled with a cyberpunk aesthetic, while you still interact with real objects and real people. On top of that: an AI companion inspired by characters like Johnny Silverhand that sees and hears your surroundings and reacts to them, an adaptive soundtrack, and spatial audio blending real sounds with artificial ones. The universe is just my inspiration, the core idea is a generic "diegetic AR" layer that could support any world.

I know full real-time transformation isn't realistic on a standalone headset today, so I'm trying to figure out how close we can actually get. My current thinking:
Static elements (buildings, home, office, regular routes) would be scanned beforehand and restyled offline (for example LiDAR or photogrammetry, Gaussian Splatting, then AI-based texture restyling). At runtime the headset would only need to relocalize in the known map and render the prepared version.

Dynamic elements (people, cars, moved objects) would be handled live by a portable PC carried in a backpack (for example real-time segmentation plus pose estimation to "dress" people with 3D overlays rather than regenerating pixels), while the headset handles head pose reprojection locally to keep motion-to-photon latency low.
A realistic first prototype could be a single room at home, prepared offline and displayed on a Quest 3 in passthrough, with hands and people left untouched.

My questions for people with experience in XR, SLAM, rendering or wearables:

Is this static offline / dynamic live split viable, or is there a better architecture? How tight can relocalization realistically get indoors and outdoors? Is it possible today to stylize dynamic objects in real time without heavy flickering? Which headset gives usable access to raw camera feeds? And what do you see as the biggest blocker I'm missing?

I'm also aware of the privacy question (processing video of strangers in public) and would love to hear how others approach it.

About me: background in electronics, computer engineering and embedded systems, mostly system architecture and hardware/software integration. Many parts of this are outside my expertise, which is exactly why I'm asking. Any existing projects, papers or open-source work on even one piece of this would be super helpful. Not looking for collaborators right now, but definitely open to it later if the idea resonates with someone.

Thanks for reading!


r/computervision • • 4d ago

Showcase Built a local video surveillance application with real-time computer vision and AI detection

5 Upvotes

r/computervision • • 5d ago

Help: Project I made a tutorial covering some really cool Computer Vision architectures

Thumbnail
youtu.be
36 Upvotes

Video covers:

  1. Photo library search, text removal, label generation
  2. Document layout detection models and RT-DETR (D-Fine) architectures
  3. Tennis ball, player, courtmap tracking system with CenterMap-style heatmap prediction
  4. And my favourite: World Models/Neural Computers with VQ-VAE + Spatio-temporal Transformers

Project repo: https://github.com/avbiswas/computer_vision_recipes

Video: https://youtu.be/mPmdI-0ISx4


r/computervision • • 6d ago Bravo

Commercial I indexed 90M movie & TV frames into a 768-d vector database so you can identify any scene via a single REST call

198 Upvotes

Hey everyone,

Over the past months, I’ve been building a frame-level cinema & TV scene recognition engine (**Visual DNA API**). The goal was to make an API that works like Shazam, but for single movie/TV screenshots—including cropped, mirrored, or subtitled frames.

**What it does:**

- `POST /v1/identify`: Send any frame (PNG/JPG/WEBP) → get back the movie/series title, release year, episode code, `tmdb_id`, and confidence score in JSON.

- `POST /v1/search`: Describe a scene in plain English (e.g., *"rainy neon cyberpunk street at night"*) → retrieve matching titles.

**Privacy & stack highlights:**

- 90M+ 768-d CLIP vectors indexed in Qdrant on EU servers.

- Volatile RAM processing: uploaded frames are vectorized in memory and immediately discarded (zero disk storage, zero biometric recognition).

**Try it without signing up:**

I’ll drop the live scanner (5 free daily scans + raw JSON output) and the open-source quickstart repo (Python, Node.js, Telegram & Discord bots) in the comments below.

If you test it with a tricky screenshot and it misses, drop the movie name here—edge cases help me tune the indexing pipeline!

**Update:** A few people asked about plugging this directly into local AI agents/IDEs without writing custom API scripts. I just wrapped the engine into a small MIT-licensed Python MCP server (`karanfillabs-mcp`), so Claude Desktop, Cursor, and Windsurf can identify local screenshots or run text-to-scene queries over stdio (`uvx karanfillabs-mcp`):

GitHub (MCP Server): https://github.com/karanfillabs/karanfillabs-mcp


r/computervision • • 5d ago

Help: Project How can I improve vehicle detection FPS on an old Intel CPU without sacrificing detection accuracy?

3 Upvotes

How can I improve vehicle detection FPS on an old Intel CPU without sacrificing detection accuracy?

Hi everyone! I’m working on an undergraduate thesis involving vehicle detection using two RTSP cameras connected to a single laptop.

Hardware and setup:

  • Intel i5-7200U (2 cores, 4 threads), 8 GB RAM, Windows 10
  • 2× Tapo C200C RTSP cameras
  • OpenVINO CPU inference, ByteTrack, Flask

We need to detect eight vehicle classes: car, motorcycle, truck, bus, bicycle, EVs like golfcar which is commonly called ebike in philippines, philippine jeepney, and philippine tricycle.

Our current approach
We’re using two object detection models:

  • YOLO26n (COCO pretrained): Detects standard vehicle classes.
  • Custom YOLOv8n: Detects Philippine-specific vehicles (e-bikes, jeepneys, and tricycles).

We use two models because COCO-pretrained YOLO doesn’t include dedicated classes for these Philippine vehicles.

Both models are quantized to INT8. However, since both cameras share one CPU and run both detectors, we’re only achieving around 1.5–2.4 detection FPS per camera during live RTSP testing.

The main problem
We also trained a single unified YOLO26n model covering standard and Philippine vehicles.
It ran significantly faster, but missed more vehicles during our tests, making it less reliable for our use case.
So we’re stuck with a trade-off:

  • One model: Faster inference, but more missed detections.
  • Two models: Covers the required vehicle classes, but inference is too slow on our CPU.

Hardware upgrades aren’t an option because of our limited thesis budget.

My questions:

What would be the best way to reliably detect all eight vehicle classes using only one lightweight model on this hardware?

Should we improve our unified YOLO training
approach, try a different lightweight architecture, or optimize OpenVINO inference differently?

We’re aiming for around 10 detection FPS per camera, although we understand that might be unrealistic for an i5-7200U.

I’d really appreciate recommendations from anyone who has worked with CPU-only vehicle detection or similar low-resource setups.

Help is so much appreciated Thank you!


r/computervision • • 4d ago

Help: Project Help a researcher out: judge AI-generated videos in a few minutes, no signup

1 Upvotes

Hey all,

I'm working on controllable video generation and need human ratings for my evals. If you have a few minutes, I'd really appreciate your help.

You can use keyboard shortcuts, so it goes pretty fast.

Link: https://3dcompat-dataset.s3.us-west-1.amazonaws.com/humaneval/index.html

Thanks in advance, every response helps! 🙏


r/computervision • • 5d ago

Showcase Full Visual SLAM & 3D Hand Tracking on a DIY AR mask: MediaPipe plus triangulation in C++, driving a full desktop UI

51 Upvotes

This is my solo-built system, VIOX. VIOX is the computer you wear. It's an AR personal computer that renders its own entire computer setup in an AR mask. VIOX doesn't use an external phone or laptop connection, because it isn't made to extend another computer's display, it IS the computer, with a hip-mounted LattePanda Sigma computing module.


r/computervision • • 4d ago

Help: Project Glance: ask a vision model 32 questions about one image and get typed answers in 49 ms

1 Upvotes

Hello everyone,

Happy to introduce Glance, a 4B vision model that makes decisions instead of writing text. Ask it many questions about one image, such as where is the giraffe on the right?, is this outdoors? or how many are there?. It answers all of them in one forward pass: a box, yes/no, a choice, or "not there", each as a calibrated probability.

The model (Qwen3.5-4B + LoRA and readout heads; weights CC BY-NC 4.0, non-commercial):

https://huggingface.co/Vision-Decision/Glance-4B-preview

The GPU inference engine I built to serve it (Apache-2.0), with a Python API and an HTTP server:

https://github.com/Vision-Decision/Glance-Engine

The grounding data, with hard negatives, multi-target and Chinese requests; boxes come from COCO annotations (CC BY-NC-SA 4.0):

https://huggingface.co/datasets/Vision-Decision/Glance-COCO

The approach that makes it fast: the image is read once as a shared prefix, and every question becomes a short block that branches from it. All of them run in one packed forward pass, and heads read the answers off the last hidden state, with no token-by-token decoding. The backbone mixes Gated DeltaNet and attention layers. So the question kernels continue many branches from one read-only recurrent state, instead of copying it per question. Cached image prefixes form a "bank", so one question can scan hundreds of images without re-encoding them.

On one RTX PRO 6000, against Qwen3.5-4B served by vLLM on the same pixels and questions:

  • 32 box questions about one image: 48.9 ms vs 334.0 ms (vLLM BF16), 229.2 ms (vLLM FP8 + speculative decoding)
  • one question over 256 cached images: 96.7 ms vs 3,151.6 ms
  • the one case it loses: a 4,096-token screenshot with a single question (277.9 vs 262.4 ms), where almost all the time is prefill

Would you recommend a different approach for that prefill-bound case, or for keeping the cached image state smaller (about 73 MB per image today)?

Feedback and suggestions on how to improve it are welcome.

The code and every benchmark command are open. If you try it, I'm curious what you use it for.


r/computervision • • 4d ago

Help: Project Best approach to instance segmentation of thousands of hand-drawn tattoo flash sheets? Classical CV vs. fine-tuning SAM or YOLO

Thumbnail
gallery
0 Upvotes

I'm a professional tattoo artist, rather than a computer vision engineer, and I've been working on a personal project to digitize and organize many years' worth of my original artwork.

I've already identified over 4,000 unique Procreate documents across several storage devices, with another 90 GB of artwork still on my iPad.

Many of these canvases contain anywhere from one to 40 individual tattoo designs. My goal is to automatically isolate each design, preserve its original pixels, generate accurate segmentation masks, and build a searchable library of individual designs.

What makes this challenging:

  • Individual designs often contain disconnected linework, dots, sparkles and shading.
  • Adjacent designs can be extremely close together or physically overlapping.
  • Some sheets contain titles, handwritten notes, decorative borders and reference images.
  • The archive contains everything from rough sketches and fine line drawings to fully rendered color paintings.

What I've tried so far:

  1. Classical image processing: Using Python, NumPy, SciPy and Pillow, I've developed an AI-assisted implementation using thresholding, connected components, morphological operations, distance transforms and Voronoi-based mask partitioning. This has performed surprisingly well, particularly on clean flash sheets.
  2. Vision-language models: I've experimented with agents that visually analyze individual canvases, generate segmentation coordinates and independently verify the results. A recent 300-canvas run produced 690 candidate designs. The results were generally excellent, but processing time and model usage limits make scaling expensive.
  3. SAM and Grounding SAM: I've experimented with automatic and manually prompted segmentation using X-AnyLabeling. The results have been inconsistent on drawings, particularly when disconnected strokes belong to the same design.
  4. Human verification: I've also built a desktop application, with AI coding assistance, to review segmentation results, correct masks, compare duplicates and organize different versions of the same artwork.

I'm currently considering a hybrid pipeline where classical CV handles straightforward images, with more difficult cases routed to a specialized segmentation model.

I'd really appreciate some advice from people with experience in computer vision:

  • Are there established approaches or research papers specifically addressing instance segmentation of hand-drawn illustrations or line art?
  • How would you approach grouping disconnected strokes that semantically belong to one illustration?
  • Would fine-tuning SAM or training a YOLO segmentation model on a carefully annotated dataset be worthwhile for this particular domain?
  • Are there other architectures or classical CV techniques that might be better suited to this problem?

My priority is segmentation accuracy and preservation of the original artwork, rather than image generation.

I'm happy to invest time into creating a high-quality annotated dataset if it would significantly improve the results.

Any suggestions, criticism, research references or alternative approaches would be greatly appreciated.


r/computervision • • 5d ago

Discussion i built a free 36M-param tool that lets LLMs “watch” videos locally (MCP server, runs on laptop cpu, apache-2.0)

Thumbnail reddit.com
0 Upvotes

r/computervision • • 5d ago

Showcase tamserve update: track anything you name on live cameras, at 95% of SAM 3's accuracy and 2.5x less GPU time (open source)

7 Upvotes

Last week I shared tamserve, an open-source serving engine for SAM 2-class video trackers. One copy of the model tracks every object on every camera, so a GPU handles far more cameras and memory stays flat. Since then more than 3,000 people have visited the repo and over 260 have starred it. Thank you.

The project has grown with more support this past week:

  • Track by name. Give each camera phrases such as "dog" or "the red mug". SAM 3 looks every few frames to find matches, and a small tracker follows them in between. On Meta's own SAM 3 benchmark it scores 56.3 HOTA against 59.4 for SAM 3's own tracker, in 41 ms of GPU time a frame against 101 on an RTX 4090.
  • People. A tracker tuned for people scores 89.6 HOTA against 87.8 on 116 home videos, in 8.9 ms a frame against 126.
  • Several GPUs and machines. A router spreads cameras over GPUs and keeps going when a camera or a machine drops. Two RTX 4090s tracked 476 frames a second from 32 cameras.
  • A look rate per camera. Suggested in the comments last time: a quiet camera can be looked at less often, which frees budget for a busy one.
  • Apple silicon. It runs on M-series Macs, with part of the model on the Neural Engine while the GPU does the rest. That is about twice as fast as the models' own code on the same Mac, and it keeps up with a live 30 fps camera.

What it is not good at:

  • In a crowd it only matches SAM 3's own tracker if it looks at every frame, which costs more.
  • Tracking by name tops out at about 30 frames a second in total on one RTX 4090, however many cameras share it.
  • A Mac is about a fifth of an RTX 4090, and I have only measured an M4 Max.
  • SAM 3's weights are gated by Meta, so you accept their licence to track by name.

Code, and every measurement with the command that reproduces it: https://github.com/aryamandarda/tamserve

If you run the Mac benchmark on a different chip, I would like to see the numbers.


r/computervision • • 5d ago

Help: Project How do you actually investigate the synthetic-to-real gap in CV, beyond tuning by intuition? Looking for practitioners' experience

5 Upvotes

I'd like to hear from people who have worked with synthetic or cross-domain training data in practice: How do you investigate what's actually wrong with your data, instead of tweaking it on intuition until the numbers improve?

Most advice I find stops at "close the domain gap" or "use domain randomization." It rarely explains how people found out which factors mattered for their problem. I'm after the real workflow: what you checked first, which analyses told you something useful, which were a waste of time, and what surprised you.

My case, as a concrete example

I'm working on UAV detection (fixed-wing vs. quadcopter) in MWIR thermal imagery. The general question isn't specific to this, but it helps to have something concrete.

  • Model: YOLO26m
  • Target data: small annotated MWIR set, split into K folds by video (no frames from one video in both train and test)
  • Public-data baseline: trained on MMFW-UAV + Anti-UAV-300 (LWIR, 5k images per class), evaluated on the MWIR held-out folds
  • In-domain baseline: trained on the MWIR training folds, evaluated on the same held-out folds

The public-data model is much worse. A large public LWIR dataset loses to a small amount of in-domain data.

My target domain doesn't exist publicly, so the plan is to generate synthetic MWIR data, either physics/3D-rendered or learning-based (image translation, diffusion). I can list the obvious suspects: waveband, sensor noise, UAV models, backgrounds. What I don't have is a systematic way to tell which of them, or which unknown factors, actually drive the gap, or to check whether a change to the generator fixed the right thing.

What I'd like to hear about, from your experience on any CV task

  1. Locating the gap. How do you work out which factors cause the drop between training data (synthetic or another domain) and real target data? Did any metrics, controlled ablations or experiment designs actually give you an answer?
  2. Seeing what the model learned. What do you use in practice to understand what a model relies on and where it behaves differently across domains? For example, feature-space comparisons, attribution maps, error breakdowns by size/contrast/background, or probing individual factors. Which of these led you to a real fix?
  3. Turning findings into better data. How do you feed those findings back into the data or generator so each iteration is driven by evidence? What did that loop look like on your project?

r/computervision • • 5d ago

Discussion 24 AI Camera Streams on 1* RTX 5090: Zero Dropped Frames, but Still Missing Deadlines

6 Upvotes

Imagine you're building an AI monitoring system for a warehouse with dozens of cameras. You need to detect people, track their movements, and process incoming video without falling behind.

How many cameras can you assign to a single GPU before you need another?

If your object detector processes 300 frames per second and each camera needs 10 FPS, supporting 30 cameras sounds reasonable. But that calculation doesn't account for video decoding, object tracking, or delays between receiving a frame and finishing its processing.

I tested this on an RTX 5090 using YOLO11n and ByteTrack. At 24 simulated cameras, the pipeline sustained 240 FPS without skipping any scheduled frames during repeated 60-second tests. However, some batches still finished after their deadlines.

Offline demonstration of 24 simulated streams using time-offset segments from one source video, with YOLO detections and ByteTrack IDs.

Building the experiment

Rather than loading a separate detection model for each camera, I grouped frames into batches and processed them through a shared YOLO11n model. Each stream maintained its own ByteTrack instance.

ComponentConfiguration
GPURTX 5090, 32 GB
CPU / RAM allocation25 core equivalents / 90 GiB
DetectionYOLO11n, FP16
TrackingIndependent ByteTrack instances
Video processingOpenCV, CPU decoding
Target10 FPS per camera

I created the simulated streams using multiple readers of the same local 768 × 576 video. There were no physical cameras or RTSP connections involved.

The benchmark included decoding, detection, and tracking, but excluded network transport, rendering, and output video encoding.

From model inference to video processing

I started by benchmarking YOLO11n with preloaded frames. At a batch size of eight, it reached approximately 404 FPS.

Based on that number, processing 32 streams at 10 FPS each seemed feasible. Once I added video readers and ByteTrack, however, the available processing margin became much smaller.

The initial 24-camera tracking test skipped 11.5% of scheduled frames, even though processing times at lower camera counts suggested the pipeline should have been able to keep up.

I suspected that initialization overhead was affecting the results. After moving detector and tracker warm-up outside the timed window, the 24-camera test processed every scheduled frame.

I kept this warm-up procedure for the remaining steady-state benchmarks.

Finding the camera limit

I increased the camera count and extended the tests to 60 seconds per configuration.

CamerasAchieved FPSSkipped framesP95 latency
242400%92.98 ms
262600%108.74 ms
28274.871.83%191.09 ms
Camera capacity and latency graph

At 24 cameras, the pipeline processed all 14,400 scheduled frames with a P95 completion latency of 92.98 ms.

Adding just two more cameras pushed P95 latency above 100 ms, even though no frames were skipped. At 28 cameras, scheduler skips appeared and P95 latency nearly doubled relative to the frame interval.

Since each stream was targeting 10 FPS, a new synchronized batch was scheduled every 100 ms. A batch could finish late without necessarily causing the scheduler to skip subsequent frames.

I added a deadline-miss counter and repeated the 24-camera test three times. All 43,200 scheduled frames were processed, but 77 of the 1,800 batches finished after their 100 ms deadline (4.28%).

An individual 60-second RTX 5090 benchmark showing 14,400 processed frames, zero skipped frames, and a 2.33% late-batch rate. Across three separate trials, the late-batch rate was 4.28%.

An individual 60-second benchmark with 14,400 processed frames, zero skipped frames, and a 2.33% late-batch rate. The separate three-trial deadline test recorded a combined rate of 4.28%.

An application doing periodic video analytics might tolerate these occasional delays. For a monitoring system that needs consistently timely detections, I'd want to account for them when deciding how many streams to assign to each GPU.

What happened when I parallelized decoding

Video decoding was taking up a noticeable part of the processing interval, so I tried distributing frame reading across multiple CPU threads.

In an initial 28-camera test, four decoder workers reduced mean decoding time from 24.40 ms to 14.84 ms.

To check whether this improved the entire pipeline, I ran nine 60-second trials at 24 cameras, with three runs each for sequential decoding, two workers, and four workers.

MetricSequential2 workers4 workers
Aggregate FPS240210.53240
Skipped frames0%12.28%0%
Late batches4.00%95.28%18.17%
Mean P95 latency99.02 ms213.22 ms111.89 ms
Decoder comparison chart

With four workers, mean decoding time decreased from 22.77 ms to 13.05 ms. However, detection time increased from 49.91 ms to 57.88 ms, and tracking time increased from 16.39 ms to 20.34 ms.

The time saved during decoding was lost in the subsequent stages. The four-worker configuration maintained 240 FPS but completed considerably more batches late.

The two-worker configuration performed poorly across all three trials, skipping an average of 12.28% of scheduled frames.

I haven't isolated the cause of these regressions. Thread contention, CPU scheduling, and interactions between OpenCV and the inference pipeline are possible contributors. I'd need more detailed profiling to determine what's happening.

For this implementation, I'd stick with sequential decoding.

Would I deploy 24 cameras on one GPU?

Under the conditions I tested, 24 simulated streams at 10 FPS were manageable, although the deadline misses suggest limited processing headroom.

For a real monitoring system, I wouldn't assign 24 live cameras to a GPU based on these results alone. Independent RTSP feeds, different codecs, varying scene complexity, and output encoding could all change the workload. I'd also need longer-duration tests and measurements of detection and tracking quality.

The experiment doesn't establish whether an RTX 5090 is necessary, either. I only tested one GPU. Running the same pipeline on an RTX 4080 or a less expensive GPU would help determine whether the additional hardware investment is justified.

I'd also like to try asynchronous frame ingestion and per-camera buffering. The current implementation processes synchronized batches sequentially, which may be contributing to the latency behavior.

For someone planning a multi-camera system, I'd benchmark the complete application before deciding how much GPU capacity to rent or purchase. The 240 FPS figure alone would have missed a problem that became visible as soon as I started counting late batches.

For those running multi-camera CV systems, how do you determine the number of streams to assign to each GPU? Do you work with a latency target, a deadline-miss threshold, or leave a fixed amount of processing headroom?


r/computervision • • 5d ago

Help: Project Replacing expensive polarized dome lighting with real-time Fresnel specular separation in PyTorch — is metallic glare still a major bottleneck on your lines?

0 Upvotes

I'm a computational optics researcher building lightweight wave-optics/Fresnel inverse solvers (ShivInterferentia) to strip specular glare from shiny metal parts and PCBs using a single standard camera at 35+ FPS.

Before I optimize this into a deployable C++/TensorRT SDK, I want to sanity-check with folks running real factory or robotics vision pipelines:

  1. How much time/budget do you currently lose fighting specular glare or bad lighting on shiny surfaces?
  2. What edge hardware (Jetson, x86 CPU, industrial smart camera) would this need to run on to actually be useful in production?

If anyone has a tricky, glare-ruined test dataset they want me to run through our solver for free as a benchmark, drop a comment or DM—happy to share the restored output and benchmark metrics.


r/computervision • • 6d ago

Discussion 80 downloads on my tiny vision model so i made v1.0, now it lets claude “watch” videos (36M params, runs on laptop cpu)

3 Upvotes

so few days back i posted my tiny vision model that i built just for learning (v0.1), and 80 people downloaded it on huggingface which honestly shocked me lol. people in comments gave really good feedback so i actually worked on all of it, and now v1.0 is out.

main thing: claude (and many other assistants) can look at images but cant open a video file. so tiny-vision runs locally next to it, breaks the video into scenes and gives the assistant a scene by scene breakdown. then you just ask “what happens in this video” and it actually answers. nothing gets uploaded, all on your machine. i tested it with a 10-15 min youtube video and it still works fine.

works through MCP so it runs in claude desktop and claude code (tested both), and should work in cursor, vs code, lm studio etc (havent tested those yet). if your app dont have MCP you can just pipe the text into ollama or paste it anywhere.

what changed from v0.1 (thanks to the comments):

  • someone said the “a man in a blue shirt” thing is probably the encoder not the decoder. i tested it and yaar they were right. my from-scratch encoder only saw 29k images, so i switched to a frozen pretrained DINOv2-small (meta’s) and trained the adapter + decoder myself (14M params) on COCO
  • it picks frames on scene changes now instead of one every 2 sec, like someone suggested. so the timestamps land on the actual cuts
  • real benchmarks this time, not vibes

numbers (COCO test):

  • v0.1: CIDEr 0.06 💀
  • v1.0: CIDEr 1.16

vs florence-2-base (231M) on the same 1000 images:

  • ~89% of its caption score
  • 6x smaller
  • 8x faster on gpu
  • 75x faster on cpu (54ms per image vs 4 sec)

not saying its better than florence, its not. it just does a lot with very little.

honest stuff:

  • encoder isnt mine anymore, its DINOv2. i tried my own and it just cant compete without millions of images
  • no audio yet, so it describes what it sees, not what is said. speech is coming next
  • captions are COCO style, so no OCR, no names, no counting
  • and like last time, i took a lot of help from claude to build this, so its not entirely mine

previous post: https://www.reddit.com/r/computervision/comments/1xyuaia/built_a_tiny_vision_model_from_scratch_just_for/
code: https://github.com/amar683/tiny-vision
model: https://huggingface.co/amartomar683/tiny-vision

anything you want me to try next? still learning so all feedback welcome