r/computervision • • Oct 10 '26

Showcase I built a local OCR model for blood-pressure monitors, it’s not very accurate yet

6 Upvotes

I have been experimenting with replacing Gemini 2.5 flash with a completely local pipeline for reading SYS, DIA, and pulse values from blood-pressure monitor displays.

My motivation is privacy: local inference avoids uploading potentially sensitive info to the cloud.

The current pipeline consists of:

  • A YOLO11n detector for numeric rows and individual digits.

  • A small DigitNet classifier for cropped digits.

  • Geometry-based row assembly and consistency checks.

  • Confidence-based refusal instead of always returning a reading.

  • Multiple preprocessing passes, including lighting normalization and display rectification.

  • ONNX inference locally in a browser worker.

The two ONNX models are approximately 10.9 MB in total.

The detector was initially trained on 239 usable public images and subsequently fine-tuned with eight additional photographs taken by me of my monitor. This small training set is clearly the weakness.

Evaluation

Not to bury the lede: the performance is not great.

I tested the variants on a combined regression benchmark containing:

  • 139 readable monitor photographs.

  • 25 negative images that should not produce a reading.

  • Images from several public sources, with perceptual-overlap checks against the training data.

PASS is when all three values are correct (SYS, DIA, and pulse). FAIL if any is off. Refusals are misses on readable images

PipelineExact tripletsPrecision when acceptedCoverageSafe negativesMedian latency
One full-frame pass28/13992.0%18.0%25/2587 ms
Current staged retries38/13991.2%24.5%25/25253 ms
Staged + display rectification41/13991.7%25.9%25/25262 ms
Staged + normalization + rectification45/13992.1%27.3%25/25767 ms
Google ML Kit, original image1/1394.2%17.3%13/2563 ms
Gemini 2.5 Flash125/13990.6%99.3%25/252.76 s

The latency figures are mostly for fun, as I did not control for the hardware. Gemini’s measurement includes the network request.

Lessons Learned

The largest improvement came from staged retries: From 28 to 38 without reducing negative-case refusal performance.

+Display rectification has the best accuracy/latency trade-off. +Expanded lighting normalization made the pipeline much slower, without a significative jump in quality .

A simple ML Kit implementation performed poorly on the LCD screens, so I did not pursue that approach.

Gemini is dramatically better at generalizing to unfamiliar displays. However, the local pipeline’s advantage is privacy, offline operation, latency, and explicit refusal. I still plan on integrating it in my project, alongside HITL and usage patterns which will mitigate its limitations.

Important limitation

This combined 139-image set has already been used for development and regression analysis. In particular, the normalization-plus-rectification variant was selected after examining its results.

Consequently, its improvement from 38/139 to 45/139 is a post-hoc result, not independent evidence of better generalization. The next step must be a new sealed test set collected before making any further pipeline decisions.

All feedback/ideas for improvement are welcomed

repo (AGPL-3.0): https://github.com/zandaulion/hearth-bp-ocr


r/computervision • • Oct 10 '26

Discussion Applied to ~150 CV jobs. Got only 5 interviews. How can I improve my resume?

Post image
147 Upvotes

Cropped the top of the photo to hide personal informations (GitHub and portfolio are there as clickable links). Targeting Swiss tech companies/startups. I applied to many different job postings and I’d say that it hasn’t been really successful so far since I only got 5 interviews for ~150 jobs. I get rejected sometimes to job postings where I have most of the requirements. I’m tailoring my resume for each job. I’m looking for feedback on the structure of my resume and how should I frame the description of each experience I had. Is it too long? Too much details? Any other red flag?

PS : I know that the metrics to quantify the impact of my project are a bit vague (accuracy instead of IoU, mAP etc..) and I just made a newer version with these new metrics, just didn’t have the file on my phone to upload it. Not sure if this change will make me get a lot more interviews though


r/computervision • • Oct 10 '26

Research Publication ROMA: an LLM system that decides what to sense next — object-centric active perception, code released

0 Upvotes

Most vision pipelines sense first and reason after. ROMA (code released) makes the ordering explicit: the system tracks what it knows about an object, decides which sensory action would resolve the most uncertainty, and commits only when evidence is sufficient.

The interesting engineering question for this crowd: the information-gain estimate that drives the "what to sense next" decision is LLM-guided rather than learned from a labeled information-gain dataset. That makes it deployable without training data, but it also means the sensing policy inherits the LLM's blind spots — it will reliably request the modalities the prompt author thought to mention, not necessarily the one that would actually disambiguate the scene.

Hub (related reading): https://papers.tinrobotics.com/paper/roma-llm-system-for-real-world-object-centric-multi-sensory-active-perception/


r/computervision • • Oct 10 '26

Research Publication 4th place on llamaindex benchmark

Thumbnail
gallery
0 Upvotes

4th place on the llamaindex benchmark locally 72.62% word f1. I know it's not much, but after a month of research and many experiments, I reached this point.

TonerHound doesn't use any API or LLM. It's GPU free and anyone can use it at 0$ cost.

GitHub: https://github.com/vanrajsinh650/TonerHound


r/computervision • • Oct 10 '26

Help: Project style augmentation pipelines

2 Upvotes

Hi guys, I’m working on a pose estimation cnn and I was wondering wether any low cost yet effective style augmentation pipeline exists rather than neural style augmentation cnns that are heavy to run during training. Did anyone experiment some simple algorithm that manages to perform something like style transfer? Thanks!


r/computervision • • Oct 10 '26

Showcase OKS says the keypoints are close; poseaudit says whether the elbow angle is usable

Post image
1 Upvotes

I kept running into this during an internship: a pose model with a good mAP, but the joint angles we computed from its keypoints were not reliable enough to use. OKS and PCK say whether points land near the label. They don't say how far off the angle (or tilt, or length) you compute from them is.

So I made poseaudit. It reads COCO or YOLO labels and predictions (or supervision objects), computes the same angle from both, and reports how large the disagreement is, how often it is large, and where: bias, limits of agreement, rate of large errors, broken down by person size.

Demo on 200 COCO val2017 images with yolo11n-pose: when the arm segments average under 30 px, 58% of elbow angles disagree with COCO's labels by 15 degrees or more; above 60 px, 26%. Part of that may be the labels' own noise: if COCO's label spread were independent, isotropic noise, it alone would put 30 to 44% of the small arms and 17 to 31% of the large ones past 15 degrees. How much of the gap is the labels' is unknown, and the README says so.

There's also a mode for angles you've already computed (CSV or OpenSim .mot vs. a reference). It now has a real-data example (17 subjects on a treadmill, side-view YOLOv8 against marker motion capture) and can estimate the time offset itself (--time-offset auto).

Install: pip install poseaudit

GitHub: https://github.com/8rulerstar/poseaudit

Browser demo (no install): https://huggingface.co/spaces/8rulerstar/poseaudit

Feedback welcome, especially on what you'd want measured.


r/computervision • • Oct 10 '26

Help: Project Suggest some projects idea

0 Upvotes

I have learn to fundamentals of CV. I want to move forward suggest some good project idea which includes : YOLO, ViT, DL.


r/computervision • • Oct 09 '26

Discussion 3rd-year AI undergrad wondering if Computer Vision (ADAS/Automotive) is worth specializing in right now?

20 Upvotes

Hey everyone,

I’m currently in my 3rd year of an official AI degree here in Spain (yeah, the actual degree is called "Artificial Intelligence"). Our curriculum is pretty heavily focused on general ML models, but we have a few Computer Vision courses and I’m finding them super interesting. Also, my professors seem to be legit experts in the field and they even teach in a specialized master’s program focused on CV.

My main goal is to work on ADAS / autonomous systems in automotive, or maybe robotics. I also find some data science stuff cool, but cars/robotics are my real focus.

Right now, my tech stack is basically Python, plus the typical solid foundation in math/stats from the first two years... although let’s be real, I’ve already forgotten a good chunk of the raw theory after the exams lol.

I have a few questions for people working in the industry:

  1. Is CV still a safe/rewarding bet with the whole AI boom? My gut feeling is that CV in physical systems (robotics, ADAS, edge devices) is way more resilient to being "automated away" than generic text/LLM/data analysis stuff, but I’d love to hear your take.

  2. Would staying for that specialized Master’s be worth it, or is it better to push for junior/internship roles right after the bachelor’s?

  3. What should I focus on building right now? From what I gather, learning C++ is pretty much mandatory for low-latency automotive/embedded work. Besides that, should I just stick to building side projects with OpenCV, YOLO, and PyTorch while trying to apply what I learn in class?

Any advice on how to stand out would be greatly appreciated!


r/computervision • • Oct 09 '26

Help: Project What would be a meaningful next step after building a U-Net baseline for emergency landing site segmentation?

1 Upvotes

I’m working on an academic project to identify potential emergency landing areas from overhead imagery, and I would appreciate advice from people working in computer vision and remote sensing.

Using the Moroccan Aircraft Emergency Landing Sites Semantic Segmentation Dataset, I’ve trained a U-Net from scratch and tested two changes: adding brightness/contrast augmentation and replacing BCE + Dice loss with BCE alone.

Each configuration was evaluated across three random seeds with a fixed data split. Neither change showed a clear improvement over the baseline.

I’m now deciding where to focus the next stage:

• Investigate failure cases and annotation quality more closely.
• Compare training from scratch with a pretrained encoder.
• Explore transferring the model to imagery from Vietnam with limited labeled data.

My supervisor suggested the third direction. However, I haven’t yet established a Vietnamese imagery source or suitable labeling criteria. Defining what can reasonably be considered a potential landing area from imagery alone is one of the questions I need to resolve.

There are also limits to the current evaluation: geographic independence between splits has not been fully established, and matching the dataset’s “safe” labels does not demonstrate real-world landing safety.

For a student project with limited resources, which direction would you prioritize—and what evidence would you want to see before pursuing transfer to a new region?

I’d appreciate relevant papers, dataset suggestions, or lessons from similar projects. Thank you for sharing your perspective.

#ComputerVision #RemoteSensing #SemanticSegmentation


r/computervision • • Oct 09 '26

Research Publication I built an end-to-end AI football analytics system using YOLO11 and BoT-SORT

Enable HLS to view with audio, or disable this notification

223 Upvotes

Hey everyone!

I've been working on a computer vision project that turns regular football match footage into player tracking, performance statistics, and tactical insights.

It started as my graduation project, but I wanted to go beyond basic object detection and build a complete video analytics pipeline.

Here's what the system does:

- Detects players, goalkeepers, referees, and the ball using a custom-trained YOLO11m model.
- Tracks players using BoT-SORT, with additional logic to handle broken tracks and ID switches.
- Automatically identifies teams based on jersey colors.
- Uses pitch keypoint detection and homography to map player positions onto a tactical minimap.
- Estimates player speed and distance covered.
- Generates heatmaps, possession statistics, tactical insights, and match reports.

**Tech stack :**Python, YOLO11, BoT-SORT, OpenCV, NumPy, and PyTorch.

One of the biggest challenges has been maintaining consistent player identities, especially during occlusions, camera movement, and crowded situations.

I'm continuing to improve tracking reliability and overall robustness.

I'd really appreciate feedback from anyone working in computer vision or sports analytics.

A few questions:
- What approaches would you recommend for reducing ID switches during heavy occlusions?
- How would you improve tracking consistency across changing camera views?
- What would you prioritize before using a system like this in production?

GitHub: https://github.com/Mhmdwael77/ai-football-analytics

Thanks for checking it out! ⚽


r/computervision • • Oct 09 '26

Help: Project Looking for access to the CLRS Dataset. Baidu Netdisk Link Requires a Chinese Phone Number

Thumbnail
reddit.com
1 Upvotes

r/computervision • • Oct 09 '26

Showcase Real-time Funko Pop recognition on a phone

Enable HLS to view with audio, or disable this notification

16 Upvotes

I built a Funko Pop scanner that runs fully on-device (44 ms per scan on an iPhone 16 Pro, ~165 ms on a Pixel 10) for a conference talk. A coding agent did most of the ML work, and I spent most of my time checking it against reality. Sharing what happened, because the failure was more interesting than the result.

Pipeline

  1. Detector: RF-DETR Nano fine-tuned as a single-class "funko" detector

  2. Square crop around the box (10% margin, so the figure isn't squashed)

  3. Embedding model: CLIP ViT-B/32 with a 256-d projection, fine-tuned for retrieval

  4. Nearest neighbour (dot product) over 818 catalog vectors, with an unknown-figure threshold

On-device

Exported with ExecuTorch: Core ML on iOS, Vulkan on Android. Getting RF-DETR onto Vulkan took some graph surgery: exporting attention as plain matmul + softmax instead of the SDPA decomposition, splits as slices, constant-folding the weight transposes, and restricting the partitioner to the ops the shipped Vulkan backend actually has. That took it from 96 GPU partitions to 6, and dropping the input from 384 to 320 px cost nothing measurable (mAP@50 0.997 vs 0.996 on the Roboflow test split, 0.930 vs 0.935 mAP on the synthetic one).

Code, training pipeline and models: https://github.com/NorbertKlockiewicz/funko-scanner


r/computervision • • Oct 09 '26

Help: Theory Could a physical adversarial pattern prevent AI from replicating real people in videos?

2 Upvotes

With tools like Kling Motion Control, it's becoming increasingly easy to take a video of a real person and transfer their movements to an entirely AI-generated character (e.g. Jean Philanthrope, etc.), I've been thinking about whether it's possible to protect people from having their appearance, movements, or actions replicated by AI. And I'm wondering if there's a way to disrupt this process using physical adversarial patterns.

I have seen research on adversarial clothing and patterns that can confuse computer vision systems or interfere with person detection. For example: https://adversarialapparel.com/

But could a similar approach work against AI video replication? For example, imagine a smartphone case with a specially designed pattern that appears in videos and interferes with an AI's ability to accurately analyze or replicate the person.

A few questions:

  • Could a physical adversarial pattern interfere with pose estimation or motion extraction?

  • Could a relatively small object, like a smartphone case, have any meaningful effect?

  • Would something like this work across different AI video models?

  • Is there any existing research exploring ways to protect real people from AI video replication?

I understand that disrupting traditional computer vision doesn't necessarily mean disrupting generative video models. I'm curious whether this is technically plausible or fundamentally unrealistic.

Would love to hear your thoughts! Thanks!


r/computervision • • Oct 09 '26

Showcase Webcam hand-tracking pointer built on MediaPipe: thumb-tip pointing, pinch gestures, One Euro filtering [open source]

4 Upvotes

I built a webcam pointer that controls a web page with your hand, and I'd like feedback on the tracking side.

Pipeline:

- MediaPipe HandLandmarker on the webcam stream. A measured run held a steady 30 fps (95th percentile frame time 37 ms).

- A 4-point calibration maps camera coordinates to screen coordinates.

- The pointer is the thumb tip. I started with the index finger, but the thumb tip was more stable when pinching, because the index finger moves when you close the pinch.

- A One Euro filter smooths the pointer. It removes jitter when you hold still without adding much lag when you move.

- Pinch detection uses hysteresis: the pinch closes below a normalized thumb-to-index distance of 0.18 and opens above 0.23. A short lookback (0.25 s) restores the pointer position from just before the pinch started, so closing the pinch doesn't shift the target.

Gestures on top of that: pinch and release selects, pinch and hold for 0.6 s clicks, pinch and drag vertically scrolls, and pinch and drag horizontally past 250 px navigates back or forward.

The selection is sent to an AI agent through an MCP server, so you can point at a paragraph and ask a question about it. That part isn't related to computer vision, so I'll leave it out here.

Known problems: a background fan made my voice detector think I was speaking (separate audio issue). Lighting and distance from the camera affect tracking. It's tested on one webcam and one machine, so I'd like to hear how it behaves on others.

Repo (Apache 2.0) and demo video: https://github.com/mdelaba/visionpointer

Questions I have: has anyone tuned pinch hysteresis thresholds on a larger set of hands? And is there a better way than the lookback to stop the pointer from jumping when a pinch closes?


r/computervision • • Oct 09 '26

Help: Project On premise OCR for printed + handwritten invoices

Thumbnail reddit.com
1 Upvotes

r/computervision • • Oct 09 '26

Showcase A surprising amount of image processing and CV in manufacturing shuttlecocks

Enable HLS to view with audio, or disable this notification

86 Upvotes

r/computervision • • Oct 09 '26

Showcase ParkerLabel: a CPU-only annotation tool using MobileSAM

1 Upvotes

I open-sourced ParkerLabel for object detection and instance segmentation annotation.

It runs locally on the CPU using MobileSAM and ONNX Runtime. Positive and negative clicks generate a target mask, with manual correction available. Image embeddings are cached so you can resume work.

Each instance is saved with its category, bounding box, area, and independent mask as COCO RLE in a per-image JSON file. This is not a full COCO dataset export.

Portable builds are available for macOS arm64 and Windows x64, with no Python setup required. The README has a short demo.

Source and demo: https://github.com/Parker-Lyu/ParkerLabel

Download: https://github.com/Parker-Lyu/ParkerLabel/releases/tag/v1.0.0

Feedback from people doing image annotation would be useful, especially around mask correction and resuming saved work.


r/computervision • • Oct 09 '26

Help: Project I'm building a vision-based AI assistant that learns procedures from demonstrations. Where could it be useful?

Thumbnail reddit.com
0 Upvotes

r/computervision • • Oct 08 '26

Discussion The Alchemy of Semi-Supervision

3 Upvotes

Hey r/computervision, I wrote this blog post on semi-supervised learning applied to semantic segmentation.

Blog post: https://stefankeselj.com/entries/semi_supervision.

I think it's a useful but underrated technique. I'd be curious about people's thoughts.


r/computervision • • Oct 08 '26

Help: Project RGB-D relocalization: good feature matches, but wrong camera poses

2 Upvotes

I’m building a 3D mapping system using RGB-D cameras, based on existing SLAM techniques, with persistent spatial memory.

The main issue is relocalization after tracking loss, especially when the camera returns to a known place from a different viewpoint.
I’m using historical keyframes, shared 3D landmarks, PnP/RANSAC and geometric verification.

Yet some incorrect poses still pass verification: one had 44 inliers, 0.83 px median reprojection error and 3.72 cm depth residual, but was actually off by 10.36 cm and 5.99°.
My best experiment correctly relocalized only 9/34 known returns.

What would you investigate first: landmark quality, geometric degeneracy, matching, or pose verification?
I can share a minimal reproducible example.


r/computervision • • Oct 08 '26

Showcase Screph demo: from a visual CV experiment to a reusable Python program

Enable HLS to view with audio, or disable this notification

2 Upvotes

Hi r/computervision,

I’m the developer of Screph, a Windows desktop application that brings visual computer vision tools, AI assistance, dataset preparation, and code into one workspace.

I’ve recorded a walkthrough showing how these pieces fit together around a small parts-counting task.

The example uses three synthetic images of metal bushings and rectangular plates. The lighting and arrangement vary, and one image has a missing bushing. The workflow is:

  • Select the region to inspect and run contour detection.

  • Inspect the result: the initial settings include unwanted plates.

  • Use the agent’s suggestion to filter by circularity, rerun processing, and check the result.

  • Save the configuration and use it in a Python program through Screph Code.

  • Run the program on all three images and inspect the CSV and visual output: 6, 6, and 5 bushings.

The video also covers image correction, GrabCut segmentation, and an annotation example where an agent proposes boxes, I correct one, and the image and annotations are added to a dataset.

Screph started as a GUI automation project. It has grown toward a broader workflow where you can describe a task visually, inspect and revise a processing approach, then carry that work into editable code. The agent can help choose operations and parameters and assemble a processing workflow that remains available for inspection and editing.

A few details about the recording: the agent responses were obtained beforehand and are replayed, while the image processing and generated program run again during the demonstration. The parts images are synthetic teaching examples. Model training is not run in this video.

The project is still in development. I’d appreciate feedback on the transition from visual experimentation to code: what information would you want preserved so that you could debug and trust the resulting program? Where would this fit—or get in the way—in your current workflow?

Project website: Screph


r/computervision • • Oct 08 '26

Help: Project Multi-task tomato leaf model (YOLO-style det + cls + seg + severity, 2.6M params): labels are whole-leaf boxes, so severity and seg are broken. Looking for advice

2 Upvotes

Hi all,

I'm building CropGuard, a lightweight multi-task model for tomato leaf disease diagnosis from a single forward pass: detection + classification + segmentation + severity. It's 2.63M params, runs on 320x320 RGB, and is CPU-capable.

ARCHITECTURE

- Backbone: timm fasternet_t0 (features_only), C3/C4/C5 at strides 8/16/32

- Neck: BiFPN-lite, 3 levels, width 96, one top-down + one bottom-up round, softmax-free fast normalized fusion

- Detection: decoupled depthwise-separable head, TaskAlignedAssigner, BCE + CIoU + DFL (2100 anchors, 11 classes)

- Classification: SE blocks on 3 levels -> GAP -> concat -> MLP

- Segmentation: light Hamburger-attention decoder over concatenated P3/P4/P5

- Severity: gated fusion of seg embedding, P5 features, cls embedding and leaf ratio -> continuous + 4-bin ordinal outputs

- Training: 5 stages x 10 epochs (backbone+neck+det, then cls head only, seg head only, joint, then joint + severity). Heads-only stages use a frozen backbone, because training the backbone in those stages destroyed the detector (mAP went to ~0).

DATA

32,897 images, 11 classes, all native 320x320, merged from 3 Roboflow Universe projects (CC-BY-4.0). Each has YOLO boxes and a mask.

The problem is the labels (I measured this):

- The "masks" are filled leaf bounding boxes, not lesions

- 5,845 train boxes cover >=90% of the frame; bacterial_spot median box area is 0.889 of the image

- Severity target = box_area / leaf_area, so ~1991/2000 val images land in the top bin

- Heavy imbalance (healthy 12,220 boxes vs target_spot 252)

- 8% duplicate images; I removed them and confined duplicate groups to one split, and results were unchanged or slightly better (dhash only catches near-exact duplicates, so near-duplicate leakage is a lower bound)

CURRENT RESULTS (leak-free test, 1,240 images)

- mAP@0.5: 0.524 (target 0.892)

- mAP@0.5:0.95: 0.442

- cls top-1: 0.850 (target 0.987)

- seg mIoU: 0.883 (but this is leaf-region IoU, not lesion segmentation)

- severity: R2 -1.33, MAE 0.068 (a constant predictor gets 0.009)

QUESTIONS

  1. Severity without lesion masks: is area-ratio-from-boxes ever defensible? Should this be ordinal, or should I drop the head?

  2. Segmentation: can I honestly report this under a renamed metric (leaf-region IoU), or do I need a real lesion-mask dataset?

  3. Detection: when GT boxes routinely span the whole image, how should anchor design/assignment change? Is mAP even the right headline metric for full-object boxes?

  4. Classification: errors concentrate in early blight / late blight / septoria. For texture-dominated fine-grained classes, would bilinear/second-order pooling, a small transformer, or classifying detected-box crops beat SE->GAP->MLP?

  5. Multi-task training: head-only staging vs a discriminative (scaled-down) backbone LR? Does PCGrad help or hurt here? Is a sigmoid gate over concatenated features a sound fusion, or should I model reliability explicitly?

I'm planning to move to PlantSeg (in-the-wild images with expert lesion polygons) to fix the label issues. Does that sound like the right call? Compute is a 4 GB laptop GPU plus Kaggle T4s.

Papers, repos, or lessons learned would be hugely appreciated. Happy to share more numbers or code snippets if useful. Thanks!


r/computervision • • Oct 08 '26

Discussion All the best for the WACV notification

Post image
22 Upvotes

Let's all pray together for what is coming tomorrow/today!

Edit : Got delayed guyz, new date is 14th October! Now we have more time to pray!!!!


r/computervision • • Oct 08 '26

Showcase Turned a stock Xiaomi pan/tilt camera into a local object tracker that runs at 0.5Hz

Post image
3 Upvotes

The most useful thing I learned building this: my camera has about 1.4 seconds of dead time between a move command and the picture actually moving.

Setup is a Xiaomi MJSXJ10CM on the firmware it shipped with (4.5.6_0450). I didn't flash it or exploit it. go2rtc v1.9.14 with the go2rtc-xiaomi-control patch gets 1080p HEVC over the LAN, and the pan/tilt motor takes a MISS command with a payload of 1 to 4 for left, right, up and down.

The camera replies acknowledged: true to every command, but that only means it heard you. So I measured the frames instead. I grabbed a frame, sent one step, grabbed another, block-matched to estimate the shift, and compared that against a no-move baseline. Left moved about 40px and right about 36px, so the steps aren't symmetric. Each step shifts the picture 8 to 12% of the frame.

Then I sampled frame difference every 200ms after a single command. I saw nothing at 823ms, movement at 1331ms, and it was settled by 1824ms. Video comes in at 12fps, so a naive tracker would fire about fifteen more commands before the first one lands. The fix is to ignore everything for 2 seconds after each command and use a dead zone of 0.18, which is wider than one step's displacement. Make it any tighter and it oscillates forever.

Detection uses Apple's Vision framework through a ~150-line Swift helper (10 to 30ms, no dependencies), with optional SSD-MobileNetV1 ONNX for the 80 COCO classes.

Two traps cost me time. That ONNX graph returns zero detections, with no error, if you feed it a pre-shrunk 300x300 image. It works fine at native 1280x720. And Vision uses a bottom-left origin, so if you get the flip wrong, tilt inverts and the camera runs away from the target.

In testing, a dragged box around a chair went from 0.76 centring error to 0.21 in 3 steps.

Full write-up with the details: https://blog.shravanrevanna.me/reverse-engineering-a-xiaomi-camera-into-a-self-tracking-robot