r/computervision • • 59m ago

Help: Theory CNN Generalisability Problems

Post image
3 Upvotes

Hi everyone!

So, I'm having a bit of difficulty with CNN generalisability.

My problem is that, given a camera image, we need to predict object pose e.g., rotation

A week ago, I was using a synthetic dataset. Using (unforseen) synthetic data, I get very low error. Using real data, however, it is a disaster. I though this might be a domain gap from sim-to-real.

So, I did some more data retrieval and now I have 2 distinct video feeds, so 2 real datasets. However, if I train on one, inference on the other is terrible. So, it is not sim-to-real, but a generalisation problem in general.

I do have a pre-processing, which I won't detail, but if you look at the image above what the CNN sees is quite similar to my scenario (just imagine they sre 64x64x3 images). Imagine really low errors on the left lamp (same training environment) and high on the right lamp (different camera/perspective etc).

Basically, one camera has a different FOV/lens/resolution, and the images might also have varying sizes (e.g. a lamp in one camera might be "chunkier" due to lens characteristics).

In teems of solutions, I have read that it is very healthy to augment your training data, especially for computer vision. This could be blur/brightness/contrast etc., that you can do natively in PyTorch.

Would this be a profitable direction? What are good steps to take to try to debug this? What are the standard practices in these situations? What are the features my CNN is learning that are so specific to one dataset?

I should mention, my CNN is almost certainly not the problem. I have another pipeline that uses a VAE, inspired from a paper that achieves very high accuracy not only for generalisability, but even for sim-to-real. This current architecture fails for my data.

Thanks for any response!


r/computervision • • 6h ago

Showcase I built an open-source annotation tool for Indian road data: boxes, SAM masks, pose and review, recorded on real Bengaluru traffic

5 Upvotes

Most public driving datasets come from Europe, the US or China. Indian roads have auto-rickshaws, goods carriers, cattle, mixed traffic and medians that are hedges, and off-the-shelf detectors handle them badly. So I built LabeloxAV, a self-hosted labelling tool and data engine for that kind of footage.

The video is a 2-minute cut of it working on my own dashcam drive through Bengaluru, plus a clip of cattle crossing a road in Delhi.

What it does

• Manual tools: boxes, polygons, polylines, 17-point pose, occlusion (amodal boxes), attributes

• AI assist: SAM masks from a click, a box or a magic wand, corrected with a brush

• Detectors propose labels, and people accept, reject or correct them: in the editor, in rapid review, or in a crop grid for bulk decisions

• Tracks: relabel once and every frame of the track is fixed

• Faces and number plates are blurred before anything is stored

• Two people can work on one frame without overwriting each other

• Exports COCO, YOLO, Parquet, OpenLABEL and nuScenes

• A 200-class ontology built for Indian roads

Things I learned building it

• My training data had gaps: frames weren't fully labelled, so unlabelled objects were taught as background. Fixing that took recall from 0.41 to 0.77 with no new labels.

• Zero-shot detectors are confidently wrong in ways that look plausible. About 69% of my "traffic sign" detections weren't signs; one was a bus. That's why every machine label goes through a person here.

• In auto-labelling, SAM takes about 95% of the time per frame, not the detector, so speeding up the detector buys almost nothing.

Limits: it runs on one GPU machine, and it's younger and less polished than CVAT or Label Studio. LiDAR support exists but is basic.

Stack: FastAPI, Next.js, Postgres, MinIO, YOLO11 / YOLO-World + SAM. The code is Apache-2.0; installed with its model libraries, the combination is AGPL-3.0.

I'd like feedback, especially from anyone labelling non-Western road data. What's the most painful part of your workflow?


r/computervision • • 1d ago

Showcase Built my first self-driving Raspberry Pi RC car (imitation learning + DAgger, runs fully on the Pi)

163 Upvotes

built a Raspberry Pi 5 RC car that drives itself with a small neural network, trained with imitation learning and DAgger. In the video it drives a track layout it never saw in training: 2 minutes without a takeover.

Setup

  • Keyestudio 4WD chassis, Raspberry Pi 5, one Pi camera, PlayStation controller
  • MobileNetV3-Small (~1M params) gets the last 3 frames + a route command (left/right/forward) and outputs steering and throttle at 20 Hz
  • Runs fully on the Pi's CPU with ONNX Runtime, ~9 ms per frame

Training I first trained it on my own driving, then improved it with DAgger: the car drives while I hold the controller, and moving the stick takes over instantly. Each takeover, plus the frames just before it when the model was already drifting, becomes training data for the next round.

Next: steering as bins on the car, and predicting action chunks instead of one step ahead. What else would you try?

Code + write-up: https://github.com/YvesMG1/keyecar-pi 
Full 2-min run: https://www.youtube.com/watch?v=Jv9juVpWOz4


r/computervision • • 4h ago

Showcase Turned PowerPoint into an AI annotation tool

Post image
2 Upvotes

I got tired of teaching non-tech teammates how to use complex labeling tools like CVAT or LabelImg just to annotate a few dozen images.

Everyone already knows how to use PowerPoint, so I built a local Windows app (OpenURLs App, Python + python-pptx) that turns slides into an annotation canvas:

  • Drop images into a deck (1 image per slide), draw standard rectangles or rotated shapes, and type the class label inside.
  • It reads the PPTX XML / EMU geometry and calculates exact pixel coordinates—accounting for image cropping, flipping, rotation, and EXIF orientation.
  • Exports YOLO (.txt), YOLO-OBB (oriented bounding boxes), COCO (.json), classification folders, and cropped object patches 100% locally with zero cloud uploads.

Curious to hear from people working in vision: Would this actually help bridge the gap when asking domain experts (factory/inspection staff, etc.) to label custom datasets, or are there edge cases where PowerPoint breaks down?

(I'm happy to share more technical details on the coordinate math or a link to test it if anyone is interested!)


r/computervision • • 1h ago

Help: Project MagniData: open-source explorer for image datasets, masks, and embeddings (brush one axis, everything follows; per-image hardness as a dataset axis)

1 Upvotes

We open-sourced the tool our team uses to look inside image datasets before and after training. Posting here because the interesting part is the dataset side, not the model side. The video is the whole idea: brush one axis, everything follows, and open the tile; the model gets it wrong.

What it is

- A React + Three.js dashboard: parallel coordinates, histograms, a table, image/mask/overlay previews, and a 3D embeddings view. Brush one axis and everything else follows; narrow the band and only the surviving tiles stay lit.

- A feature extractor: a folder of images (optionally with COCO-format masks) becomes one CSV of per-image metrics: sharpness (Laplacian, Tenengrad), noise, over/under-exposure, contrast, dynamic range, colorfulness, annotation coverage, instance counts, and class entropy. Optional embeddings (DINOv2 by default) go to a JSON sidecar.

- A Flask API that serves images, masks, and overlays and runs PCA / t-SNE / LLE projection and clustering over the embeddings.

Hardness as an axis (full stack only)

Train a segmentation model from the dashboard (reference U-Net/LR-ASPP presets, MLflow as the system of record). After each scored epoch, every image gets its loss per term, a percentile rank within its split, and a "hardness" score. Those are regular columns, so you can brush "hardness" and see what the hard images have in common on the photometric axes, open one to compare ground truth and prediction, save the selection as a new dataset (lineage recorded), and train again. Two runs on the same images can also be compared per image.

Try it.

- Browser demo, read-only, COCO128 and Agri Stress-500 (451 crop/weed field images with masks) preloaded: https://huggingface.co/spaces/precisionaiinc/magnidata

- Full stack: https://github.com/Precision-AI-Inc/magnidata, then docker compose up --build (API, dashboard, MLflow, trainer). Apache-2.0.

- Technical report (5 pages, PDF in the repo): four models on the same 875 tiles, compared tile by tile: https://github.com/Precision-AI-Inc/magnidata/blob/main/docs/paper/magnidata-technical-report.pdf

What it doesn't do (yet)

- The hardness / rank signals are heuristics for deciding what to inspect, not label-error proofs; we haven't published quantitative results on label-noise detection.

- The "complement" step picks unseen images by distance to a feature centroid, not a learned retrieval.

- Parallel coordinates get crowded past ~40 columns; axis grouping is on the list.

Would like to hear what metrics you'd want per image that aren't there and whether the CSV + embeddings JSON contract would work for your data.


r/computervision • • 1h ago

Discussion How was the review process for visapp affected by AI in the last years? [D]

Thumbnail reddit.com
1 Upvotes

r/computervision • • 4h ago

Discussion Exaggerating relief and lighting to make golf-green slopes readable (Gaussian Splatting)

Post image
1 Upvotes

I reconstructed a golf green from phone video using 3D Gaussian Splatting (MCMC) and built a small viewer on top of it.

After feedback that slopes were hard to read, I changed how it is shaded:

  • Height is exaggerated (about 1.7x here), so bumps stand out. It no longer matches the real shape exactly. This is for readability only.
  • The sun is fixed to the camera, so the lighting stays consistent as the model rotates. Ambient light is tinted differently for sky and ground.
  • A simple ambient-occlusion term from a height grid, and a switchable tone map.

The bottom image has a flag marker placed on the surface so I can point at spots while explaining a putt.

Video output is still to come. I'm still tuning the look of the viewer, so any feedback on readability is welcome.


r/computervision • • 6h ago

Discussion Autonomous driving sample dataset

Post image
1 Upvotes

Autonomous data collection is only as good as the footage behind it. Models need to see the moments that don't happen often: a dog stepping into the road, unfamiliar intersections, conditions that change from one country to the next.

Our first data sample brings together clips of real-world video data for training autonomous vehicles across geographies and edge case scenarios.

Every clip comes with:
- Deep metadata, so teams can find exactly the scenarios they need
- Certainty on rights, fully licensed for AI training

If you're building perception, planning or simulation models and need video data you can actually use, we'd love to talk.

Explore the sample: https://huggingface.co/datasets/Motion56poweredbynewsflare/autonomous-driving-videos?utm_source=hugging-face&utm_medium=social&utm_campaign=video-data-samples


r/computervision • • 7h ago

Research Publication Gemma-3-4B on standard vision tasks: strong caption scores, weak localization

Post image
1 Upvotes

Following up on my Qwen3-VL benchmarks, this time I tested Gemma 3 4B Instruct on the same seven vision tasks.

The setup: 100 samples per task, local Hugging Face Transformers on Apple MPS, bfloat16, greedy decoding, and a 4,096-token output cap. Structured JSON was requested through prompting, with no correction retries. Failed responses stay in the scoring denominators.

Here the summary of model performance on the tasks:

TaskDatasetMetricGemma 3 4B
ClassificationCIFAR-10Top-1 accuracy84%
DetectionCOCO128F1 @ IoU 0.52.09%
Box groundingRefCOCOgAccuracy @ IoU 0.53%
Point groundingRefCOCOgPoint inside target box30%
AttributesOVAD object cropsCategorical accuracy59.82%
Visual question answeringVQA v2VQA accuracy39%
CaptioningCOCO Captions 2017ROUGE-L0.4729

A few things stood out compared to previous benchmarks:

  • Captioning was the strongest result. Gemma 3 4B has the highest ROUGE-L in the current report, with CIDEr 0.8466 as well.
  • Localization was very weak. Detection precision was 4.67%, recall 1.35%, and box grounding mean IoU 10.84%.
  • Good at outputting structured output: Although model missed most of the boxes, still the Box grounding had zero response-validation failures. Making this model a good base for further fine tuning for tasks that required box output.

Code, runs, benchmarks all available at https://github.com/Tenkei/vlm-tasks

Previous model profiles and follow-ups:


r/computervision • • 23h ago

Showcase Built a tennis CV project that tracks ball bounces and maps them onto the court

17 Upvotes

Hey everyone!

Been working on a side project called RallyVision for a while. It started as a simple tennis ball tracker, but now it can detect bounces and map their estimated landing positions onto a 2D court.

The hardest part was definitely bounce detection. I tried trajectory-based methods, spent way too much time debugging, and eventually switched to a visual backbone + Temporal Transformer.

Still plenty to improve, but pretty happy with how it’s coming together!

Here’s a demo from an Alcaraz vs. Sinner match, along with the code and experiments:

https://github.com/rayzhao27/rallyvision

Would love to hear what you guys think!


r/computervision • • 1d ago

Showcase Custom 3D SLAM pipeline

57 Upvotes

Just thought I'd share my final-year CompE project here. Had to build a first principles 3D SLAM hand-held rig so no OpenCV, Eigen, no libraries at all allowed (except UI of course). Ended up beating out cuVSLAM and ORB-SLAM3 on accuracy while getting 4.3ms/frame average on the Jetson Orin Nano, roughly an order of magnitude faster than ORB-SLAM3, and about 4 times faster than cuVSLAM while being 3 times more accurate (roughly). Pretty proud. Unfortunately cant publish the full code though.


r/computervision • • 8h ago

Discussion Advancements in Computer Vision AI

0 Upvotes

Computer Vision enables machines to see, interpret and understand the visual world like humans. With advancements in Artificial Intelligence and Deep Learning, machines can now recognize objects, detect faces, analyze images and interpret videos. These technologies are transforming healthcare, robotics, autonomous vehicles, industrial automation and smart surveillance, creating new opportunities for ECE engineers.


r/computervision • • 1d ago

Discussion I built Vantage, an open-source tool for planning the sensor rig of an autonomous-driving data-collection car (cameras, lidar, radar, GNSS/IMU

6 Upvotes

I'm the author. Vantage lets you place cameras, lidars, radars, GNSS antennas and IMUs on a vehicle and see what the rig will actually record before any hardware is fitted:

• live coverage and blind spots

• perception range, timing and sync, power and recording budgets

• tolerance and optimiser studies

It then helps calibrate the real rig and check it against the plan.

• Drives the rig in CARLA with ground truth (detection quality, critical scenarios, campaigns)

• Exports calibration for nuScenes, KITTI and ROS 2

• Works with Claude Code over MCP; every change is an undo step you approve

• GPL-3.0, Linux (x86_64 and Jetson arm64)

Honest limits: it isn't validated on a real fitted rig yet (everything comes from models, simulation and synthetic captures; the validation suite passes 119/119 checks against independent references), and the library figures are datasheet values.

GitHub: https://github.com/Sherin-SEF-AI/Vantage

Feedback from anyone who has built a data-collection rig would be very welcome. What did you get wrong the first time?


r/computervision • • 1d ago

Showcase I trained two small 4x super-resolution models on CC0 photos only. They run entirely on Apple's Neural Engine (and a complete report!)

4 Upvotes

I made two small photo upscalers for LocalSR, my free open-source app: https://github.com/HerRei/local-upscale

- Photo S: 0.62M parameters, 188 ms per input megapixel on an M1 Pro's Neural Engine

- Photo M: 2.03M parameters, 485 ms

- Network: Philip Hofmann's PULSE layout (plain convolutions, so every op runs on the ANE)

- Training data: only CC0 photos (lucid-cc0-v2-hc)

- Weights CC BY 4.0, code MIT

**Results** on a sealed DIV2K hold-out, scored once, each file at its own operating point:

- Photo S beats the SPAN model it replaces on LPIPS (0.259 vs 0.276) and DISTS, at 1.4 dB higher PSNR.

- Photo M shows no clear difference to a 7.4M RealPLKSR model on LPIPS and DISTS, at 2.6 dB higher PSNR.

- Real-ESRGAN still has the lowest DISTS, and A-FINE prefers it everywhere.

**What I found most interesting:**

  1. Blur. The RealSR/DRealSR crops are blurrier (fitted sigma 1.95 / 2.50 HR px) than what my first models restored. Their LPIPS rose steeply from sigma 1. A lens-blur regime in the degradations improved RealSR A-FINE by about 5 points, in two seeds. Noisy soft input is still clearly weak.
  2. Frame-by-frame video.The GAN texture flickers 1.5-1.9x as much as the L1 parent, because it follows each frame's noise. A consistency fine-tune (two noisy, shifted copies of one crop, L1 between the aligned outputs) calms it, but trades about 0.0012-0.0015 LPIPS per percent of flicker under shake. Side by side, I could not see the difference by eye.
  3. Old hardware On a 2017 i7 laptop, Photo M takes 25 s per input megapixel, against 3.3 min for NomosWebPhoto and 4.5 min for Real-ESRGAN.

I also report the negative results, and one bug: my first blur test silently cropped 128 px out of 256 px tiles.

- Report (5 pages): https://github.com/HerRei/localsr-models/blob/master/report/localsr-models.pdf

- Weights: https://huggingface.co/HerRei/localsr-models

I'd like feedback on the evaluation side, mainly how you would settle A-FINE vs LPIPS/DISTS without a big rater study.


r/computervision • • 1d ago

Showcase fotonet v2: 37.5 COCO AP, 6.41 GFLOPs, 2.69M parameters.

Thumbnail
gallery
11 Upvotes

Hello, its me again².

I have been working on fotonet v2 (Hi Bird) for a long time.
It is a hybrid architecture. And because of that latency is not as good as a pure CNN model.
Gets 37.5% COCO AP, 2.65 lower than yolo26n (NMS-free accuracy)
fotonet2n is NMS-free like all the other fotonet versions i had developed.

This is the first time fotonet in terms of accuracy is "somewhat" competetive with other models. Although still lacks in some places, I think for a solo project? Its good.

Trained on a 4060, took 3 days with 300 epochs total for the final current release model.
Currently the model with the fotonet trainer converges really fast in the start then slows down;
For example, at epoch 10 fotonet2n was at 23~ COCO AP, at 35 it was around 30~ COCO AP.

You can get more details and locally try on your web browser trough fotonet.studio
And if youd like to, star fotonet on github.
Available today.

COCO AP= mAP@.50:.95 fotonet scored on COCO val2017 trough pycocotools.


r/computervision • • 8h ago

Help: Theory Vision Transformers: The Next Revolution in Computer Vision

0 Upvotes

Vision Transformers (ViT) are transforming computer vision by enabling machines to understand images using attention mechanisms. Unlike traditional CNNs, ViTs analyze relationships between different image regions to capture global visual information. They are driving advancements in object detection, medical imaging, facial recognition, autonomous vehicles and intelligent surveillance, opening new possibilities for AI-powered visual intelligence.


r/computervision • • 1d ago

Commercial 🎯 Building object detection end to end with no code in Perceora, a computer vision platform

4 Upvotes

🔩 The task: a tray should hold 2 bolts, 4 nuts, 4 washers and 2 wall plugs. Is the kit complete, and if not, what's missing? Here's the whole pipeline, built in Perceora, a no-code AI platform for images.

🧠 Four things that mattered more than which detector we picked:

1️⃣ Clean the data before labeling. Blurry shots and near-duplicate trays were flagged and removed first. If near-copies end up in both training and test images, the test score looks better than the model really is.

2️⃣ Label a few, then review suggestions. After a handful of hand-drawn boxes, the model suggests boxes for the rest, and reviewing is much faster than drawing every box.

3️⃣ Compare models on images they haven't seen, then read the mistakes. The overall score hides which class fails. Going through the wrong detections one by one showed what to fix.

4️⃣ A detector alone doesn't answer the question. "Is the kit complete?" needs a rule on top: count per class, then PASS ✅ or FAIL ❌. That rule is built in Studio, without code.

🔒 Everything runs on your own computer, so your images stay there.

🆓 Free to start. The video uses Pro features; Pro is a paid plan: https://perceora.ai/pricing

👉 Try it: https://perceora.ai

💬 How would you set up a check like this: one detector for all parts, or separate checks per part?

Disclosure: I work on Perceora. The trays in the video are synthetic images and the narration is a computer-generated voice.


r/computervision • • 1d ago

Help: Project Camera + lighting advice for imaging shiny surgical instruments on a flat mat (edge deployment, Jetson Orin)

3 Upvotes

Saw another thread here about cameras for surgical CV and it pushed me to ask about a related problem.
I'm building an instrument identification system for hospital sterile processing departments. Techs lay instruments on a mat and cameras above identify them. Instruments are static when captured, so this is stills, not video.

Setup:
Two cameras per station (an overview camera covering a roughly 400 x 300mm mat, and a second camera for reading small laser-etched part numbers in a smaller zone)

Both looking straight down. Mounting height isn't locked yet and will vary between stations, so somewhere in the 50 to 100cm range

Mostly polished and satin stainless, lots of visually similar instruments

Jetson Orin Nano per station, CSI preferred to keep each unit self-contained

No hood over the work area, and lights can't shine in the tech's eyes

Bright overhead room lighting that varies a lot between hospitals

Currently on a single IMX477 with a cheap CCTV lens and cross-polarized lighting. It works, but image quality is the bottleneck.

Questions:

For static stainless parts, is a good C-mount lens on the IMX477 enough, or do bigger pixels on something like an IMX264/265 make a real difference?

Cross-polarization vs a large diffuse panel vs angled side lighting for killing specular glare. What's worked for you?

Best camera, lens and lighting approach for reading shallow etched text on curved stainless?

With height varying by station, would you go fixed focal length and crop, or something like a liquid lens?

Any tricks for keeping image quality consistent across sites with different ambient light?

This will be deployed at every station, so I'm trying to be as frugal as possible while still getting good, consistent results. If a cheaper setup gets 90% of the way there, I'd rather know that than overspend. Thanks.


r/computervision • • 1d ago

Help: Project Camera recommendations for building a high-quality surgical computer vision dataset? Budget ~$1–5k, flexible

7 Upvotes

Hey everyone,

I'm a surgeon working on a computer-vision research project to track surgical instruments, hand movements, instrument exchanges, and workflow patterns during surgery.

We're building a dataset for YOLO-based object detection, tracking, and eventually video foundation models. I'd love some advice from people experienced with machine-vision cameras and multi-camera acquisition.

The setup:

  • Camera placement: Exocentric (NOT surgeon-worn), mounted on a surgical equipment tower and aimed toward the surgeon's hands and operative field.
  • Working distance: Approximately 2–5 feet.
  • Environment: Operating room, with bright lighting, reflective metal instruments, frequent occlusions, and relatively fast hand movements.
  • Recording duration: 2–5 hours continuously.
  • Resolution: Ideally 4K or 5MP+, with enough detail to distinguish visually similar instruments.
  • Frame rate: Ideally 60 fps, though I'm open to alternatives.
  • Configuration: Preferably two cameras with complementary views, but willing to start with one.
  • Budget: Ideally $1–3k initially, with flexibility up to ~$5k if the improvement is significant.

Considering Something based of Basler ace 2 vs Option Ba self recording blackmagic micro studio camera, orf a panasonic professional recorder.

Our pilot trial was done with cheap action cameras. like the Insta 360 go.

  1. What camera and lenso combo would you recommend?

Global shutter necessary over higher resolution, sensor size and easier recording.

if your budget was initially 2-4K what would you get???

Our longer term vision is research grade use to develop and validate our models and then deploy a much cheaper setup across multiple rooms for local inferrence on small edge CPUs.

thanks.


r/computervision • • 1d ago

Discussion Should I post my paper on arXiv before CVPR peer review?

6 Upvotes

Now that supplementary material dates are closing.

I’m struggling with whether to upload my paper to arXiv before submitting it to CVPR.
Not posting it means delaying visibility and potentially having to cite work published after mine, even though I completed my research earlier.
But I’m concerned about institutional prestige bias. CVPR allows arXiv preprints during double-blind review, so reviewers can sometimes identify authors and their affiliations.
I’m also concerned about whether LLM-assisted reviewing could amplify this bias by recognizing prestigious affiliations in the preprints.

My university is not as well positioned as other universities, but I’ve really invested a lot of time in this work.

For people who regularly submit to CVPR, ICCV, or similar conferences: would you recommend posting to arXiv before review? Have you noticed institutional prestige affecting how papers are perceived?


r/computervision • • 1d ago

Help: Project Partial hand labels for a grid of canals and drains. A U-Net returns patches. What setup returns continuous lines?

Thumbnail
gallery
1 Upvotes

A regular grid of main canals and drains is the target, and both must come out as continuous lines. I averaged 10 cm flights down to 1 m, and satellite fills the rest, where no flight covers the ground. Hand labels cover part of the site as thick strokes, and a vision model must learn from them and mark every canal and every drain. The output must follow the hand labels, but I get patches where those labels are straight lines.

I trained a U-Net on the 1 m imagery with those thick strokes as the target. The U-Net still draws dashes, because a cut at 0.5 and a skeleton punch holes in the soft mask. When I join the dashes, the fill paints ground that is no darker than both banks. A longer fine-tune with a row penalty filled the gaps between rows, so the 0.5 mask became a blob. I took the brightest pixel along each row of the mask, then the soft peak. Each row still broke into short pieces, because the peak dips for a few meters and the line stops.


r/computervision • • 1d ago

Discussion Top tier conferences LLM pre-review

Thumbnail reddit.com
1 Upvotes

r/computervision • • 1d ago

Help: Project Looking for a Robust Person Re-Identification (Re-ID) Model for CCTV-Based Unique Person Counting

2 Upvotes

Title: Looking for a Robust Person Re-Identification (Re-ID) Model for CCTV-Based Unique Person Counting

Hi everyone,

I'm currently working on a CCTV-based video analytics project where I need to identify and count unique individuals from a collection of person-detection image crops.

My requirement is to extract high-quality person embeddings from cropped images and use embedding similarity to identify whether two crops belong to the same individual.

I'm looking for a robust and accurate person re-identification (Person Re-ID) model that performs well under real-world CCTV conditions.

Challenges in my use case:

- Different camera angles and viewpoints.

- Changes in lighting and image quality.

- Partial occlusion and crowded environments.

- Different poses and walking directions.

- Similar clothing among different individuals.

- Low-resolution person crops.

- The same person appearing in multiple cameras.

What I'm looking for:

  1. Best pretrained Person Re-ID models for extracting discriminative embeddings.
  2. Models that provide good performance on CCTV footage.
  3. Recommended embedding dimensions and similarity metrics (Cosine Similarity / Euclidean Distance).
  4. Suggestions for suitable pretrained models or frameworks.
  5. Any recommended datasets for evaluation (Market-1501, MSMT17, DukeMTMC-ReID, etc.).

I've come across OSNet, FastReID, TransReID and other Re-ID approaches, but I'm not sure which would be the best choice for my use case.

My main objective: Given multiple person image crops from CCTV cameras, I want to extract embeddings and reliably determine whether they belong to the same individual, ultimately achieving accurate unique-person counting.

I would appreciate recommendations based on your practical experience, especially for real-world CCTV deployments.

Thanks in advance!


r/computervision • • 1d ago

Help: Project Vehicles collision analysis on Jaywalker - live testing

5 Upvotes

In our previous post we used a video from Youtube to be our input feed. This time we brought the device to the street and conducted live testing.

We noticed while the car was stationary alongside the road, the video detected the vehicles, and marked them all as 0 km/h. slightly annoying if you look at the video. Could have improved the script to not track the stationary vehicles.

Next, we also noticed that motobikes are not tracked as vehicles. A speeding motobike in theory can also pose collision risk to jaywalker and so our script should also be able to recognise motobike as a vehicle. Instead, a little bug there the script almost thought a moving motobike is yet another jaywalker.

The speed of the moving vehicle is half-accurate. During our live testing the vehicles are moving as fast as 30-50km/h but the screen only stated as 20km/h.

The hit score is ok though. 😄 We don't want to see hit score of 1.

What else could we have improved? Comments/directions welcome!

p/s: Use pedestrian bridge wherever possible, don't jaywalk!

related post :

part 1: https://www.reddit.com/r/computervision/comments/1xliui4/a_project_to_identify_jaywalker/

part 2: https://www.reddit.com/r/computervision/comments/1xnhuh9/testing_the_project_jaywalking_on_the_actual/

part 3:

https://www.reddit.com/r/computervision/comments/1xp2577/calculating_the_risk_of_vehicle_hitting_jaywalker/