r/computervision • • 2h ago

Help: Project OpenCV Perspective Transform – ROI Alignment Issue

Thumbnail
gallery
2 Upvotes

Hi everyone,
I’m working on a machine vision project using OpenCV to detect ICs in a JEDEC tray.

My current process:
-Detect four circular fiducials near the tray corners.
-Use their centres to calculate a perspective transformation.
-Warp the image into a fixed rectangular image.
-Generate ROIs for the tray pockets.

I’m currently facing an alignment issue. After perspective warping, the ROI boxes do not seem to align consistently with the actual tray pockets. Some areas appear well aligned(on row and collum) as example top left pocket and bottom left pocket of the tray, while others have noticeable offsets. I’ve attached two images for comparison.

I’m not sure whether the issue is caused by:
-Inaccurate fiducial centre detection
-Incorrect fiducial reference points
-Perspective transformation
-Residual geometric distortion
-Other factors I may have overlooked

I’d appreciate any suggestions on how to identify the root cause and improve the alignment.
Has anyone experienced a similar issue with machine vision calibration or perspective transformation?
Thank you!

Ps : ive got the screenshot now thankyou guys hahahah


r/computervision • • 3h ago

Discussion Building a parasite dataset from scratch: Instagram hashtags, dancing memes, and ditching CVAT for a Flash 5-inspired tool [Build in Public #2]

Thumbnail
gallery
2 Upvotes

(Quick note upfront: English isn't my first language, so I use an LLM to help with editing and translation. The research, data collection, and experiments are my own*.)*

In Part 1, I shared how my v1 parasite egg detector got 97% accuracy on public benchmarks and completely fell apart on unseen microscope slides.

Since public datasets were mostly human parasites, poorly labeled, or tiny (30–40px), I decided to build a clean v2 dataset from scratch: standardized 640×640 tiles, grayscale + CLAHE, and a strict minimum size of 80px on the shortest side so morphological details actually survive.

Here is how I sourced the data, built my own labeling tools, and engineered a deterministic compositing pipeline to fill the data gap.

1. Where do you find parasite eggs when Kaggle fails you?

My goal was 500 samples per class across 13-14 veterinary species (Toxocara, Ancylostoma, Cystoisospora, Ascaris, Dipylidium, Hymenolepis, Taenia, Toxascaris, Trichuris, Capillaria, Opisthorchis, Giardia, Eimeria). Reality check: hitting ~150 real images per class was a massive win.

  • Academic papers & Reddit: Dead ends. Papers rarely share datasets, authors rarely reply, and asking on niche subreddits got me ~50 images and a couple of bans.
  • Google Images & YouTube: Mostly duplicates, low-res thumbnails, or talking-head videos. Plus, searching the open web for veterinary parasites means every 5th photo is literal (bloody)feces or worms coming out of a puppy - after a few weeks, cooking spaghetti started triggering weird flashbacks.
  • The unexpected goldmine - Instagram: Vet techs and parasitologists love posting microscope finds under Latin species hashtags, along with panning videos of slides. Scrubbing through slide-panning videos lets you grab dozens of unique, non-duplicate crops. Fun fact: ~25% of my Dipylidium packets came from a lab video with a dancing guy meme overlaid on top.

To speed this up, I wrote browser bookmarklets to pop full-res images into new tabs so I could quickly filter out anything below 80px.

Funny side effect of this grind: when I started, all parasite eggs looked identical to me - like looking at the night sky when someone points out planets and constellations, and all you see are random white dots. While scrolling through vet accounts, I kept running into "guess the parasite" quizzes posted by lab techs. At first, I had no clue. After staring at thousands of slides, I caught myself solving those quizzes just from tiny feed thumbnails without even opening the full image.

2. Harvesting clean negative tiles from large slides

To stop the detector from hallucinating eggs on yeast, pollen, fat droplets, and plant fibers, 15 - 20% of the training set needed to be pure negative 640×640 tiles. Since you can't search for "empty fecal smear," I harvested 5 - 6 clean 640×640 background tiles from the empty 80–90% space around labeled eggs in large frames (like Chula's 3000px images), enforcing a strict ≤15% overlap limit. This gave me both hard negative tiles and real microscopy canvases for synthetic compositing.

To make the negatives even tougher, I also pulled in a couple of public pollen grain microscopy datasets and mixed selected tiles into the negative pool - pollen is notorious in vet labs for mimicking the exact size, round shape, and wall thickness of real parasite eggs. Together, this gave me both hard negative tiles and real microscopy canvases for synthetic compositing.

3. Ditching CVAT for a custom Flash 5-style labeling tool

Generic tools like CVAT kill your rhythm when doing thousands of domain-specific actions. Since I come from web dev, I built my own keyboard-first UI:

  • Hotkeys for everything: One key drops a 640×640 positive crop, another drops a negative background crop, another zooms 200% and centers on tiny eggs.
  • MobileSAM/GrabCut + Catmull-Rom splines: Pulling Bezier control handles in standard tools drove me crazy. Inspired by my old Macromedia Flash 5 days, I initialized masks with MobileSAM/GrabCut and refined them using Catmull-Rom splines - you just drop points along the egg's shell, and the curve bends smoothly through them.

4. Deterministic compositing pipeline (bridging 150 → 500 samples)

To scale from ~150 real samples up to 500 per class without creating obvious "sticker" artifacts, I built a deterministic compositing pipeline with strict leakage controls:

  • Strict split isolation: Donors (cut-out eggs) and background canvases are split by original slide/video/source first. Synthetic images are generated strictly for the train set - donors never cross into val or test, and repeated pastes aren't treated as independent validation samples.
  • Pre- & post-mask processing: Raw masks go through manual refinement, followed by a 2px erosion (to strip away the donor's original background halo) and a 5×5 Gaussian alpha feathering so the model can't cheat by detecting sharp cut-out edges.
  • Local color/brightness matching + CLAHE: Before pasting, the donor's local luminance and color statistics are matched to the target background region, followed by random rotation/scaling and final grayscale + CLAHE normalization so the pasted egg shares the exact sensor noise and contrast profile of the host slide.
  • Simulating microscope Z-axis depth of field (DOF): Even though microscope photos are 2D, the physical sample is a 3D fluid layer between slides (or inside a McMaster/Mini-FLOTAC chamber). Because microscope objectives have a razor-thin depth of field, one egg floating near the coverslip can be tack-sharp while another suspended slightly deeper is out of focus. Applying selective defocus/Gaussian blur only to the masked egg cutout (while keeping the surrounding background sharp) lets me simulate real Z-axis focal plane shifts. (Note: To make sure the detector doesn't learn a shortcut like "blurry blob = egg," I'm also preparing an experiment to apply the same localized blur to confirmed hard negatives like pollen and debris).

Next up: moving into actual training on RunPod, running controlled ablations (real-only vs. real + synthetic), and seeing how the v2 model holds up on unseen camera setups.

For those who've used copy-paste synthesis in medical/microscopy CV: Did soft alpha feathering + local luminance matching prevent boundary overfitting for you, or did your models still find ways to cheat?


r/computervision • • 6h ago

Help: Project Best small local VLM for reading on-screen graphics in video frames? Already tried Qwen3.5, moondream and SmolVLM2

2 Upvotes

Hi Everybody,

I'm looking for a small vision-language model (VLM) that runs locally and reads on-screen text in video frames accurately. Ideally it would be smaller than the models I've tried (fewer parameters, smaller download) without losing accuracy.

The task

  • Input: frames from football match broadcasts.
  • What to read: only the on-screen graphics that matter for the match, such as the score. Ads, sponsor logos and other overlays should be ignored.
  • Hard parts: the text is often small, and some names aren't in English.

Constraints

  • Hardware: CPU only, no GPU.
  • Size: smaller is better, ideally under 3B parameters or under about 3 GB when quantized.
  • Speed: a 2-hour match produces thousands of frames, so time per frame matters.

Already tried

  • Qwen3.5 4B
  • Qwen3.5 2B
  • Qwen3.5 0.8B
  • moondream 1.8B
  • SmolVLM2 2.2B Instruct

"Qwen3.5 4B is accurate but slow on my machine; the smaller ones miss small text"

Questions

  1. Which other small VLMs would you suggest for this kind of text-heavy task that run well on CPU only?
  2. On CPU only, would a dedicated OCR model plus a small text model do better than a VLM at this size?
  3. On CPU only, what helped you most: cropping the graphic area first, a particular quantization level, the prompt format, or fine-tuning on a few hundred labelled frames?

Thanks!


r/computervision • • 3h ago

Discussion Is GPT actually looking at all my images?

Thumbnail
reddit.com
0 Upvotes

r/computervision • • 11h ago

Help: Project Help improving OCR accuracy in my free document reader app for blind users (Tesseract and ML Kit v2)

2 Upvotes

Hello friends,

My name is Genden Singh Negi. I am visually impaired, and I am building an Android app called Document Reader for the visually impaired community. The app is free, and I want to keep it free.

What already works: all the document formats read well, and text-based PDFs are read correctly.

Where I am stuck: scanned PDFs that need OCR. I cannot get the recognized text to come out accurately.

What I have tried:

  • Tesseract: the recognized text comes out inaccurate.
  • Google ML Kit Text Recognition v2: the results are much more accurate, but there are still some mistakes.

More about my situation:

  • The app supports 109 languages in total. For the languages that ML Kit covers, I have not found any way to train a custom model or build my own dictionaries to improve accuracy. If there is a way, please tell me.
  • I chose offline OCR models on purpose, so the app works without internet and costs nothing to run. But the offline results are inaccurate and I have not been able to fix that.
  • I am not working right now, so I cannot spend money on this. The app has to stay free for my community.

My questions:

  1. How can I improve the accuracy of offline OCR with Tesseract or ML Kit v2? Would things like image preprocessing or configuration changes help? Is there a better offline model I should look at? What should I do to fix inaccurate recognized text?
  2. Can I integrate an online OCR service instead? Which online OCR services can be used completely free, with no cost to me?
  3. I have seen many apps that offer online OCR for free. How do they manage that? How do developers offer it without paying?

Any help would mean a lot to me and to the community I am building this for. Thank you so much.


r/computervision • • 17h ago

Showcase Built an AI tutor that grades my work on paper using an RF-DETR model. Used Roboflow to train

5 Upvotes

Finished this up for finals season. A webcam watches me do practice questions on paper. I trained an RF-DETR model on Roboflow (369 frames from my own webcam video) to find each question, my circled answer, and my handwritten work. Each question gets cropped and sent to a VLM that grades it. Get one wrong and it projects a hint on the wall, never the answer.

It waits until you stop writing before it grades, and grading runs in the background so you can keep going.

https://x.com/007Aurick/status/2125635635260055810


r/computervision • • 16h ago

Showcase Parse PDFs with Nemotron 3.5 Parse, PP-OCRv6 at 16K output tokens/s

Thumbnail
reddit.com
4 Upvotes

r/computervision • • 22h ago

Help: Theory CNN Generalisability Problems

Post image
9 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 • • 1d ago

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

8 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 Turned PowerPoint into an AI annotation tool

Post image
6 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 • • 2d ago

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

193 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 • • 22h 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 • • 1d ago

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

Post image
3 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

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

Thumbnail reddit.com
0 Upvotes

r/computervision • • 1d ago

Research Publication [Article] EF2Net: Better Extracting, Fusing and Focusing Text Features for Scene Text Detection

1 Upvotes

doi: 10.1109/AINIT59027.2023.10212684

URL: https://ieeexplore.ieee.org/document/10212684

Kindly get me the PDF of this article. Thank you.


r/computervision • • 1d ago

Discussion Autonomous driving sample dataset

Post image
2 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 • • 1d 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 • • 1d ago

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

23 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 • • 2d ago

Showcase Custom 3D SLAM pipeline

64 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 • • 2d 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

7 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

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 • • 2d 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 • • 2d ago

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

5 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.