subject not detected, hand pose missing landmarks, low confidence observations, Vision performance, coordinate conversion, VisionKit errors, observation nil, text not recognized, barcode not detected, DataScannerViewController not working, document scan issues
View on GitHubSelect agents to install to:
npx add-skill https://github.com/CharlesWiltgen/Axiom/blob/main/.claude-plugin/plugins/axiom/skills/axiom-vision-diag/SKILL.md -a claude-code --skill axiom-vision-diagInstallation paths:
.claude/skills/axiom-vision-diag/# Vision Framework Diagnostics Systematic troubleshooting for Vision framework issues: subjects not detected, missing landmarks, low confidence, performance problems, coordinate mismatches, text recognition failures, barcode detection issues, and document scanning problems. ## Overview **Core Principle**: When Vision doesn't work, the problem is usually: 1. **Environment** (lighting, occlusion, edge of frame) - 40% 2. **Confidence threshold** (ignoring low confidence data) - 30% 3. **Threading** (blocking main thread causes frozen UI) - 15% 4. **Coordinates** (mixing lower-left and top-left origins) - 10% 5. **API availability** (using iOS 17+ APIs on older devices) - 5% **Always check environment and confidence BEFORE debugging code.** ## Red Flags Symptoms that indicate Vision-specific issues: | Symptom | Likely Cause | |---------|--------------| | Subject not detected at all | Edge of frame, poor lighting, very small subject | | Hand landmarks intermittently nil | Hand near edge, parallel to camera, glove/occlusion | | Body pose skipped frames | Person bent over, upside down, flowing clothing | | UI freezes during processing | Running Vision on main thread | | Overlays in wrong position | Coordinate conversion (lower-left vs top-left) | | Crash on older devices | Using iOS 17+ APIs without `@available` check | | Person segmentation misses people | >4 people in scene (instance mask limit) | | Low FPS in camera feed | `maximumHandCount` too high, not dropping frames | | Text not recognized at all | Blurry image, stylized font, wrong recognition level | | Text misread (wrong characters) | Language correction disabled, missing custom words | | Barcode not detected | Wrong symbology, code too small, glare/reflection | | DataScanner shows blank screen | Camera access denied, device not supported | | Document edges not detected | Low contrast, non-rectangular, glare | | Real-time scanning too slow | Processing every frame, region too large | ## Mandatory First S