[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6E6VWXJC00ZKQ3BD7PC81X2":3,"skill-same:01M6E6VWXJC00ZKQ3BD7PC81X2":86},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":32,"linkOnly":33,"markdownContent":34,"markdownBody":35,"frontMatter":36,"refName":41,"commitSha":42,"skillDirectory":43,"forksCount":44,"repositoryHtmlUrl":45,"repositoryHomepageUrl":46,"ownerHtmlUrl":47,"ownerBlogUrl":6,"ownerDescription":48,"updatedAt":49,"install":50,"resources":63},"01M6E6VWXJC00ZKQ3BD7PC81X2","axiom-vision-diag",null,"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","ComeOnOliver\u002Fskillshub","ComeOnOliver","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F43215937?v=4","01M6E5JNFECJAAVFE0W7SMWWD2","Haoran Shu","01M6E5JNNDQS7AJZDYFQ8TPZCK",67,"MIT","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002FCharlesWiltgen\u002FAxiom\u002Faxiom-vision-diag\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31],"vision","axiom vision diag","macos","performance","issues","ios","text","conversion","document","coordinate","scan","barcode","missing","2026-11-10 10:12:30",false,"---\nname: axiom-vision-diag\ndescription: 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\nlicense: MIT\ncompatibility: iOS 11+, iPadOS 11+, macOS 10.13+, tvOS 11+, axiom-visionOS 1+\nmetadata:\n  version: \"1.1.0\"\n  last-updated: \"2026-01-03\"\n---\n\n# Vision Framework Diagnostics\n\nSystematic 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.\n\n## Overview\n\n**Core Principle**: When Vision doesn't work, the problem is usually:\n1. **Environment** (lighting, occlusion, edge of frame) - 40%\n2. **Confidence threshold** (ignoring low confidence data) - 30%\n3. **Threading** (blocking main thread causes frozen UI) - 15%\n4. **Coordinates** (mixing lower-left and top-left origins) - 10%\n5. **API availability** (using iOS 17+ APIs on older devices) - 5%\n\n**Always check environment and confidence BEFORE debugging code.**\n\n## Red Flags\n\nSymptoms that indicate Vision-specific issues:\n\n| Symptom | Likely Cause |\n|---------|--------------|\n| Subject not detected at all | Edge of frame, poor lighting, very small subject |\n| Hand landmarks intermittently nil | Hand near edge, parallel to camera, glove\u002Focclusion |\n| Body pose skipped frames | Person bent over, upside down, flowing clothing |\n| UI freezes during processing | Running Vision on main thread |\n| Overlays in wrong position | Coordinate conversion (lower-left vs top-left) |\n| Crash on older devices | Using iOS 17+ APIs without `@available` check |\n| Person segmentation misses people | >4 people in scene (instance mask limit) |\n| Low FPS in camera feed | `maximumHandCount` too high, not dropping frames |\n| Text not recognized at all | Blurry image, stylized font, wrong recognition level |\n| Text misread (wrong characters) | Language correction disabled, missing custom words |\n| Barcode not detected | Wrong symbology, code too small, glare\u002Freflection |\n| DataScanner shows blank screen | Camera access denied, device not supported |\n| Document edges not detected | Low contrast, non-rectangular, glare |\n| Real-time scanning too slow | Processing every frame, region too large |\n\n## Mandatory First Steps\n\nBefore investigating code, run these diagnostics:\n\n### Step 1: Verify Detection with Diagnostic Code\n\n```swift\nlet request = VNGenerateForegroundInstanceMaskRequest()  \u002F\u002F Or hand\u002Fbody pose\nlet handler = VNImageRequestHandler(cgImage: testImage)\n\ndo {\n    try handler.perform([request])\n\n    if let results = request.results {\n        print(\"✅ Request succeeded\")\n        print(\"Result count: \\(results.count)\")\n\n        if let observation = results.first as? VNInstanceMaskObservation {\n            print(\"All instances: \\(observation.allInstances)\")\n            print(\"Instance count: \\(observation.allInstances.count)\")\n        }\n    } else {\n        print(\"⚠️ Request succeeded but no results\")\n    }\n} catch {\n    print(\"❌ Request failed: \\(error)\")\n}\n```\n\n**Expected output**:\n- ✅ Request succeeded, instance count > 0 → Detection working\n- ⚠️ Request succeeded, instance count = 0 → Nothing detected (see Decision Tree)\n- ❌ Request failed → API availability issue\n\n### Step 2: Check Confidence Scores\n\n```swift\n\u002F\u002F For hand\u002Fbody pose\nif let observation = request.results?.first as? VNHumanHandPoseObservation {\n    let allPoints = try observation.recognizedPoints(.all)\n\n    for (key, point) in allPoints {\n        print(\"\\(key): confidence \\(point.confidence)\")\n\n        if point.confidence \u003C 0.3 {\n            print(\"  ⚠️ LOW CONFIDENCE - unreliable\")\n        }\n    }\n}\n```\n\n**Expected output**:\n- Most landmarks > 0.5 confidence → Good detection\n- Many landmarks \u003C 0.3 → Poor lighting, occlusion, or edge of frame\n\n### Step 3: Verify Threading\n\n```swift\nprint(\"? Thread: \\(Thread.current)\")\n\nif Thread.isMainThread {\n    print(\"❌ Running on MAIN THREAD - will block UI!\")\n} else {\n    print(\"✅ Running on background thread\")\n}\n```\n\n**Expected output**:\n- ✅ Background thread → Correct\n- ❌ Main thread → Move to `DispatchQueue.global()`\n\n## Decision Tree\n\n```\nVision not working as expected?\n│\n├─ No results returned?\n│  ├─ Check Step 1 output\n│  │  ├─ \"Request failed\" → See Pattern 1a (API availability)\n│  │  ├─ \"No results\" → See Pattern 1b (nothing detected)\n│  │  └─ Results but count = 0 → See Pattern 1c (edge of frame)\n│\n├─ Landmarks have nil\u002Flow confidence?\n│  ├─ Hand pose → See Pattern 2 (hand detection issues)\n│  ├─ Body pose → See Pattern 3 (body detection issues)\n│  └─ Face detection → See Pattern 4 (face detection issues)\n│\n├─ UI freezing\u002Fslow?\n│  ├─ Check Step 3 (threading)\n│  │  ├─ Main thread → See Pattern 5a (move to background)\n│  │  └─ Background thread → See Pattern 5b (performance tuning)\n│\n├─ Overlays in wrong position?\n│  └─ See Pattern 6 (coordinate conversion)\n│\n├─ Person segmentation missing people?\n│  └─ See Pattern 7 (crowded scenes)\n│\n├─ VisionKit not working?\n│  └─ See Pattern 8 (VisionKit specific)\n│\n├─ Text recognition issues?\n│  ├─ No text detected → See Pattern 9a (image quality)\n│  ├─ Wrong characters → See Pattern 9b (language\u002Fcorrection)\n│  └─ Too slow → See Pattern 9c (recognition level)\n│\n├─ Barcode detection issues?\n│  ├─ Barcode not detected → See Pattern 10a (symbology\u002Fsize)\n│  └─ Wrong payload → See Pattern 10b (barcode quality)\n│\n├─ DataScannerViewController issues?\n│  ├─ Blank screen → See Pattern 11a (availability check)\n│  └─ Items not detected → See Pattern 11b (data types)\n│\n└─ Document scanning issues?\n   ├─ Edges not detected → See Pattern 12a (contrast\u002Fshape)\n   └─ Perspective wrong → See Pattern 12b (corner points)\n```\n\n## Diagnostic Patterns\n\n### Pattern 1a: Request Failed (API Availability)\n\n**Symptom**: `try handler.perform([request])` throws error\n\n**Common errors**:\n```\n\"VNGenerateForegroundInstanceMaskRequest is only available on iOS 17.0 or newer\"\n\"VNDetectHumanBodyPose3DRequest is only available on iOS 17.0 or newer\"\n```\n\n**Root cause**: Using iOS 17+ APIs on older deployment target\n\n**Fix**:\n\n```swift\nif #available(iOS 17.0, *) {\n    let request = VNGenerateForegroundInstanceMaskRequest()\n    \u002F\u002F ...\n} else {\n    \u002F\u002F Fallback for iOS 14-16\n    let request = VNGeneratePersonSegmentationRequest()\n    \u002F\u002F ...\n}\n```\n\n**Prevention**: Check API availability in `axiom-vision-ref` before implementing\n\n**Time to fix**: 10 min\n\n### Pattern 1b: No Results (Nothing Detected)\n\n**Symptom**: `request.results == nil` or `results.isEmpty`\n\n**Diagnostic**:\n\n```swift\n\u002F\u002F 1. Save debug image to Photos\nUIImageWriteToSavedPhotosAlbum(debugImage, nil, nil, nil)\n\n\u002F\u002F 2. Inspect visually\n\u002F\u002F - Is subject too small? (\u003C 10% of image)\n\u002F\u002F - Is subject blurry?\n\u002F\u002F - Poor contrast with background?\n```\n\n**Common causes**:\n- Subject too small (resize or crop closer)\n- Subject too blurry (increase lighting, stabilize camera)\n- Low contrast (subject same color as background)\n\n**Fix**:\n\n```swift\n\u002F\u002F Crop image to focus on region of interest\nlet croppedImage = cropImage(sourceImage, to: regionOfInterest)\nlet handler = VNImageRequestHandler(cgImage: croppedImage)\n```\n\n**Time to fix**: 30 min\n\n### Pattern 1c: Edge of Frame Issues\n\n**Symptom**: Subject detected intermittently as object moves across frame\n\n**Root cause**: Partial occlusion when subject touches image edges\n\n**Diagnostic**:\n\n```swift\n\u002F\u002F Check if subject is near edges\nif let observation = results.first as? VNInstanceMaskObservation {\n    let mask = try observation.createScaledMask(\n        for: observation.allInstances,\n        croppedToInstancesContent: true\n    )\n\n    let bounds = calculateMaskBounds(mask)\n\n    if bounds.minX \u003C 0.1 || bounds.maxX > 0.9 ||\n       bounds.minY \u003C 0.1 || bounds.maxY > 0.9 {\n        print(\"⚠️ Subject too close to edge\")\n    }\n}\n```\n\n**Fix**:\n\n```swift\n\u002F\u002F Add padding to capture area\nlet paddedRect = captureRect.insetBy(dx: -20, dy: -20)\n\n\u002F\u002F OR guide user with on-screen overlay\noverlayView.addSubview(guideBox)  \u002F\u002F Visual boundary\n```\n\n**Time to fix**: 20 min\n\n### Pattern 2: Hand Pose Issues\n\n**Symptom**: `VNDetectHumanHandPoseRequest` returns nil or low confidence landmarks\n\n**Diagnostic**:\n\n```swift\nif let observation = request.results?.first as? VNHumanHandPoseObservation {\n    let thumbTip = try? observation.recognizedPoint(.thumbTip)\n    let wrist = try? observation.recognizedPoint(.wrist)\n\n    print(\"Thumb confidence: \\(thumbTip?.confidence ?? 0)\")\n    print(\"Wrist confidence: \\(wrist?.confidence ?? 0)\")\n\n    \u002F\u002F Check hand orientation\n    if let thumb = thumbTip, let wristPoint = wrist {\n        let angle = atan2(\n            thumb.location.y - wristPoint.location.y,\n            thumb.location.x - wristPoint.location.x\n        )\n        print(\"Hand angle: \\(angle * 180 \u002F .pi) degrees\")\n\n        if abs(angle) > 80 && abs(angle) \u003C 100 {\n            print(\"⚠️ Hand parallel to camera (hard to detect)\")\n        }\n    }\n}\n```\n\n**Common causes**:\n| Cause | Confidence Pattern | Fix |\n|-------|-------------------|-----|\n| Hand near edge | Tips have low confidence | Adjust framing |\n| Hand parallel to camera | All landmarks low | Prompt user to rotate hand |\n| Gloves\u002Focclusion | Fingers low, wrist high | Remove gloves or change lighting |\n| Feet detected as hands | Unexpected hand detected | Add `chirality` check or ignore |\n\n**Fix for parallel hand**:\n\n```swift\n\u002F\u002F Detect and warn user\nif avgConfidence \u003C 0.4 {\n    showWarning(\"Rotate your hand toward the camera\")\n}\n```\n\n**Time to fix**: 45 min\n\n### Pattern 3: Body Pose Issues\n\n**Symptom**: `VNDetectHumanBodyPoseRequest` skips frames or returns low confidence\n\n**Diagnostic**:\n\n```swift\nif let observation = request.results?.first as? VNHumanBodyPoseObservation {\n    let nose = try? observation.recognizedPoint(.nose)\n    let root = try? observation.recognizedPoint(.root)\n\n    if let nosePoint = nose, let rootPoint = root {\n        let bodyAngle = atan2(\n            nosePoint.location.y - rootPoint.location.y,\n            nosePoint.location.x - rootPoint.location.x\n        )\n\n        let angleFromVertical = abs(bodyAngle - .pi \u002F 2)\n\n        if angleFromVertical > .pi \u002F 4 {\n            print(\"⚠️ Person bent over or upside down\")\n        }\n    }\n}\n```\n\n**Common causes**:\n| Cause | Solution |\n|-------|----------|\n| Person bent over | Prompt user to stand upright |\n| Upside down (handstand) | Use ARKit instead (better for dynamic poses) |\n| Flowing clothing | Increase contrast or use tighter clothing |\n| Multiple people overlapping | Use person instance segmentation |\n\n**Time to fix**: 1 hour\n\n### Pattern 4: Face Detection Issues\n\n**Symptom**: `VNDetectFaceRectanglesRequest` misses faces or returns wrong count\n\n**Diagnostic**:\n\n```swift\nif let faces = request.results as? [VNFaceObservation] {\n    print(\"Detected \\(faces.count) faces\")\n\n    for face in faces {\n        print(\"Face bounds: \\(face.boundingBox)\")\n        print(\"Confidence: \\(face.confidence)\")\n\n        if face.boundingBox.width \u003C 0.1 {\n            print(\"⚠️ Face too small\")\n        }\n    }\n}\n```\n\n**Common causes**:\n- Face \u003C 10% of image (crop closer)\n- Profile view (use face landmarks request instead)\n- Poor lighting (increase exposure)\n\n**Time to fix**: 30 min\n\n### Pattern 5a: UI Freezing (Main Thread)\n\n**Symptom**: App freezes when performing Vision request\n\n**Diagnostic** (Step 3 above confirms main thread)\n\n**Fix**:\n\n```swift\n\u002F\u002F BEFORE (wrong)\nlet request = VNGenerateForegroundInstanceMaskRequest()\ntry handler.perform([request])  \u002F\u002F Blocks UI\n\n\u002F\u002F AFTER (correct)\nDispatchQueue.global(qos: .userInitiated).async {\n    let request = VNGenerateForegroundInstanceMaskRequest()\n    try? handler.perform([request])\n\n    DispatchQueue.main.async {\n        \u002F\u002F Update UI\n    }\n}\n```\n\n**Time to fix**: 15 min\n\n### Pattern 5b: Performance Issues (Background Thread)\n\n**Symptom**: Already on background thread but still slow \u002F dropping frames\n\n**Diagnostic**:\n\n```swift\nlet start = CFAbsoluteTimeGetCurrent()\n\ntry handler.perform([request])\n\nlet elapsed = CFAbsoluteTimeGetCurrent() - start\nprint(\"Request took \\(elapsed * 1000)ms\")\n\nif elapsed > 0.2 {  \u002F\u002F 200ms = too slow for real-time\n    print(\"⚠️ Request too slow for real-time processing\")\n}\n```\n\n**Common causes & fixes**:\n\n| Cause | Fix | Time Saved |\n|-------|-----|------------|\n| `maximumHandCount` = 10 | Set to actual need (e.g., 2) | 50-70% |\n| Processing every frame | Skip frames (process every 3rd) | 66% |\n| Full-res images | Downscale to 1280x720 | 40-60% |\n| Multiple requests per frame | Batch or alternate requests | 30-50% |\n\n**Fix for real-time camera**:\n\n```swift\n\u002F\u002F Skip frames\nframeCount += 1\nguard frameCount % 3 == 0 else { return }\n\n\u002F\u002F OR downscale\nlet scaledImage = resizeImage(sourceImage, to: CGSize(width: 1280, height: 720))\n\n\u002F\u002F OR set lower hand count\nrequest.maximumHandCount = 2  \u002F\u002F Instead of default\n```\n\n**Time to fix**: 1 hour\n\n### Pattern 6: Coordinate Conversion\n\n**Symptom**: UI overlays appear in wrong position\n\n**Diagnostic**:\n\n```swift\n\u002F\u002F Vision point (lower-left origin, normalized)\nlet visionPoint = recognizedPoint.location\nprint(\"Vision point: \\(visionPoint)\")  \u002F\u002F e.g., (0.5, 0.8)\n\n\u002F\u002F Convert to UIKit\nlet uiX = visionPoint.x * imageWidth\nlet uiY = (1 - visionPoint.y) * imageHeight  \u002F\u002F FLIP Y\nprint(\"UIKit point: (\\(uiX), \\(uiY))\")\n\n\u002F\u002F Verify overlay\noverlayView.center = CGPoint(x: uiX, y: uiY)\n```\n\n**Common mistakes**:\n\n```swift\n\u002F\u002F ❌ WRONG (no Y flip)\nlet uiPoint = CGPoint(\n    x: axiom-visionPoint.x * width,\n    y: axiom-visionPoint.y * height\n)\n\n\u002F\u002F ❌ WRONG (forgot to scale from normalized)\nlet uiPoint = CGPoint(\n    x: axiom-visionPoint.x,\n    y: 1 - visionPoint.y\n)\n\n\u002F\u002F ✅ CORRECT\nlet uiPoint = CGPoint(\n    x: axiom-visionPoint.x * width,\n    y: (1 - visionPoint.y) * height\n)\n```\n\n**Time to fix**: 20 min\n\n### Pattern 7: Crowded Scenes (>4 People)\n\n**Symptom**: `VNGeneratePersonInstanceMaskRequest` misses people or combines them\n\n**Diagnostic**:\n\n```swift\n\u002F\u002F Count faces\nlet faceRequest = VNDetectFaceRectanglesRequest()\ntry handler.perform([faceRequest])\n\nlet faceCount = faceRequest.results?.count ?? 0\nprint(\"Detected \\(faceCount) faces\")\n\n\u002F\u002F Person instance segmentation\nlet personRequest = VNGeneratePersonInstanceMaskRequest()\ntry handler.perform([personRequest])\n\nlet personCount = (personRequest.results?.first as? VNInstanceMaskObservation)?.allInstances.count ?? 0\nprint(\"Detected \\(personCount) people\")\n\nif faceCount > 4 && personCount \u003C= 4 {\n    print(\"⚠️ Crowded scene - some people combined or missing\")\n}\n```\n\n**Fix**:\n\n```swift\nif faceCount > 4 {\n    \u002F\u002F Fallback: Use single mask for all people\n    let singleMaskRequest = VNGeneratePersonSegmentationRequest()\n    try handler.perform([singleMaskRequest])\n\n    \u002F\u002F OR guide user\n    showWarning(\"Please reduce number of people in frame (max 4)\")\n}\n```\n\n**Time to fix**: 30 min\n\n### Pattern 8: VisionKit Specific Issues\n\n**Symptom**: `ImageAnalysisInteraction` not showing subject lifting UI\n\n**Diagnostic**:\n\n```swift\n\u002F\u002F 1. Check interaction types\nprint(\"Interaction types: \\(interaction.preferredInteractionTypes)\")\n\n\u002F\u002F 2. Check if analysis is set\nprint(\"Analysis: \\(interaction.analysis != nil ? \"set\" : \"nil\")\")\n\n\u002F\u002F 3. Check if view supports interaction\nif let view = interaction.view {\n    print(\"View: \\(view)\")\n} else {\n    print(\"❌ View not set\")\n}\n```\n\n**Common causes**:\n\n| Symptom | Cause | Fix |\n|---------|-------|-----|\n| No UI appears | `analysis` not set | Call `analyzer.analyze()` and set result |\n| UI appears but no subject lifting | Wrong interaction type | Set `.imageSubject` or `.automatic` |\n| Crash on interaction | View removed before interaction | Keep view in memory |\n\n**Fix**:\n\n```swift\n\u002F\u002F Ensure analysis is set\nlet analyzer = ImageAnalyzer()\nlet analysis = try await analyzer.analyze(image, configuration: config)\n\ninteraction.analysis = analysis  \u002F\u002F Required!\ninteraction.preferredInteractionTypes = .imageSubject\n```\n\n**Time to fix**: 20 min\n\n### Pattern 9a: Text Not Detected (Image Quality)\n\n**Symptom**: `VNRecognizeTextRequest` returns no results or empty strings\n\n**Diagnostic**:\n\n```swift\nlet request = VNRecognizeTextRequest()\nrequest.recognitionLevel = .accurate\n\ntry handler.perform([request])\n\nif request.results?.isEmpty ?? true {\n    print(\"❌ No text detected\")\n\n    \u002F\u002F Check image quality\n    print(\"Image size: \\(image.size)\")\n    print(\"Minimum text height: \\(request.minimumTextHeight)\")\n}\n\nfor obs in request.results as? [VNRecognizedTextObservation] ?? [] {\n    let top = obs.topCandidates(3)\n    for candidate in top {\n        print(\"'\\(candidate.string)' confidence: \\(candidate.confidence)\")\n    }\n}\n```\n\n**Common causes**:\n\n| Cause | Symptom | Fix |\n|-------|---------|-----|\n| Blurry image | No results | Improve lighting, stabilize camera |\n| Text too small | No results | Lower `minimumTextHeight` or crop closer |\n| Stylized font | Misread or no results | Try `.accurate` recognition level |\n| Low contrast | Partial results | Improve lighting, increase image contrast |\n| Rotated text | No results with `.fast` | Use `.accurate` (handles rotation) |\n\n**Fix for small text**:\n\n```swift\n\u002F\u002F Lower minimum text height (default ignores very small text)\nrequest.minimumTextHeight = 0.02  \u002F\u002F 2% of image height\n```\n\n**Time to fix**: 30 min\n\n### Pattern 9b: Wrong Characters (Language\u002FCorrection)\n\n**Symptom**: Text is detected but characters are wrong (e.g., \"C001\" → \"COOL\")\n\n**Diagnostic**:\n\n```swift\n\u002F\u002F Check all candidates, not just first\nfor observation in results {\n    let candidates = observation.topCandidates(5)\n    for (i, candidate) in candidates.enumerated() {\n        print(\"Candidate \\(i): '\\(candidate.string)' (\\(candidate.confidence))\")\n    }\n}\n```\n\n**Common causes**:\n\n| Input Type | Problem | Fix |\n|------------|---------|-----|\n| Serial numbers | Language correction \"fixes\" them | Disable `usesLanguageCorrection` |\n| Technical codes | Misread as words | Add to `customWords` |\n| Non-English | Wrong ML model | Set correct `recognitionLanguages` |\n| House numbers | Stylized → misread | Check all candidates, not just top |\n\n**Fix for codes\u002Fserial numbers**:\n\n```swift\nlet request = VNRecognizeTextRequest()\nrequest.usesLanguageCorrection = false  \u002F\u002F Don't \"fix\" codes\n\n\u002F\u002F Post-process with domain knowledge\nfunc correctSerialNumber(_ text: String) -> String {\n    text.replacingOccurrences(of: \"O\", with: \"0\")\n        .replacingOccurrences(of: \"l\", with: \"1\")\n        .replacingOccurrences(of: \"S\", with: \"5\")\n}\n```\n\n**Time to fix**: 30 min\n\n### Pattern 9c: Text Recognition Too Slow\n\n**Symptom**: Text recognition takes >500ms, real-time camera drops frames\n\n**Diagnostic**:\n\n```swift\nlet start = CFAbsoluteTimeGetCurrent()\ntry handler.perform([request])\nlet elapsed = CFAbsoluteTimeGetCurrent() - start\n\nprint(\"Recognition took \\(elapsed * 1000)ms\")\nprint(\"Recognition level: \\(request.recognitionLevel == .fast ? \"fast\" : \"accurate\")\")\nprint(\"Language correction: \\(request.usesLanguageCorrection)\")\n```\n\n**Common causes & fixes**:\n\n| Cause | Fix | Speedup |\n|-------|-----|---------|\n| Using `.accurate` for real-time | Switch to `.fast` | 3-5x |\n| Language correction enabled | Disable for codes | 20-30% |\n| Full image processing | Use `regionOfInterest` | 2-4x |\n| Processing every frame | Skip frames | 50-70% |\n\n**Fix for real-time**:\n\n```swift\nrequest.recognitionLevel = .fast\nrequest.usesLanguageCorrection = false\nrequest.regionOfInterest = CGRect(x: 0.1, y: 0.3, width: 0.8, height: 0.4)\n\n\u002F\u002F Skip frames\nframeCount += 1\nguard frameCount % 3 == 0 else { return }\n```\n\n**Time to fix**: 30 min\n\n### Pattern 10a: Barcode Not Detected (Symbology\u002FSize)\n\n**Symptom**: `VNDetectBarcodesRequest` returns no results\n\n**Diagnostic**:\n\n```swift\nlet request = VNDetectBarcodesRequest()\n\u002F\u002F Don't specify symbologies to detect all types\ntry handler.perform([request])\n\nif let results = request.results as? [VNBarcodeObservation] {\n    print(\"Found \\(results.count) barcodes\")\n    for barcode in results {\n        print(\"Type: \\(barcode.symbology)\")\n        print(\"Payload: \\(barcode.payloadStringValue ?? \"nil\")\")\n        print(\"Bounds: \\(barcode.boundingBox)\")\n    }\n} else {\n    print(\"❌ No barcodes detected\")\n}\n```\n\n**Common causes**:\n\n| Cause | Symptom | Fix |\n|-------|---------|-----|\n| Wrong symbology | Not detected | Don't filter, or add correct type |\n| Barcode too small | Not detected | Move camera closer, crop image |\n| Glare\u002Freflection | Not detected | Change angle, improve lighting |\n| Damaged barcode | Partial\u002Fno detection | Clean barcode, improve image |\n| Using revision 1 | Only one code | Use revision 2+ for multiple |\n\n**Fix for small barcodes**:\n\n```swift\n\u002F\u002F Crop to barcode region for better detection\nlet croppedHandler = VNImageRequestHandler(\n    cgImage: croppedImage,\n    options: [:]\n)\n```\n\n**Time to fix**: 20 min\n\n### Pattern 10b: Wrong Barcode Payload\n\n**Symptom**: Barcode detected but `payloadStringValue` is wrong or nil\n\n**Diagnostic**:\n\n```swift\nif let barcode = results.first {\n    print(\"String payload: \\(barcode.payloadStringValue ?? \"nil\")\")\n    print(\"Raw payload: \\(barcode.payloadData ?? Data())\")\n    print(\"Symbology: \\(barcode.symbology)\")\n    print(\"Confidence: Implicit (always 1.0 for barcodes)\")\n}\n```\n\n**Common causes**:\n\n| Cause | Fix |\n|-------|-----|\n| Binary barcode (not string) | Use `payloadData` instead |\n| Damaged code | Re-scan or clean barcode |\n| Wrong symbology assumed | Check actual `symbology` value |\n\n**Time to fix**: 15 min\n\n### Pattern 11a: DataScanner Blank Screen\n\n**Symptom**: `DataScannerViewController` shows black\u002Fblank when presented\n\n**Diagnostic**:\n\n```swift\n\u002F\u002F Check support first\nprint(\"isSupported: \\(DataScannerViewController.isSupported)\")\nprint(\"isAvailable: \\(DataScannerViewController.isAvailable)\")\n\n\u002F\u002F Check camera permission\nlet status = AVCaptureDevice.authorizationStatus(for: .video)\nprint(\"Camera access: \\(status.rawValue)\")\n```\n\n**Common causes**:\n\n| Symptom | Cause | Fix |\n|---------|-------|-----|\n| `isSupported = false` | Device lacks camera\u002Fchip | Check before presenting |\n| `isAvailable = false` | Parental controls or access denied | Request camera permission |\n| Black screen | Camera in use by another app | Ensure exclusive access |\n| Crash on present | Missing entitlements | Add camera usage description |\n\n**Fix**:\n\n```swift\nguard DataScannerViewController.isSupported else {\n    showError(\"Scanning not supported on this device\")\n    return\n}\n\nguard DataScannerViewController.isAvailable else {\n    \u002F\u002F Request camera access\n    AVCaptureDevice.requestAccess(for: .video) { granted in\n        \u002F\u002F Retry after access granted\n    }\n    return\n}\n```\n\n**Time to fix**: 15 min\n\n### Pattern 11b: DataScanner Items Not Detected\n\n**Symptom**: DataScanner shows camera but doesn't recognize items\n\n**Diagnostic**:\n\n```swift\n\u002F\u002F Check recognized data types\nprint(\"Data types: \\(scanner.recognizedDataTypes)\")\n\n\u002F\u002F Add delegate to see what's happening\nfunc dataScanner(_ scanner: DataScannerViewController,\n                 didAdd items: [RecognizedItem],\n                 allItems: [RecognizedItem]) {\n    print(\"Added \\(items.count) items, total: \\(allItems.count)\")\n    for item in items {\n        switch item {\n        case .text(let text): print(\"Text: \\(text.transcript)\")\n        case .barcode(let barcode): print(\"Barcode: \\(barcode.payloadStringValue ?? \"\")\")\n        @unknown default: break\n        }\n    }\n}\n```\n\n**Common causes**:\n\n| Cause | Fix |\n|-------|-----|\n| Wrong data types | Add correct `.barcode(symbologies:)` or `.text()` |\n| Text content type filter | Remove filter or use correct type |\n| Camera too close\u002Ffar | Adjust distance |\n| Poor lighting | Improve lighting |\n\n**Time to fix**: 20 min\n\n### Pattern 12a: Document Edges Not Detected\n\n**Symptom**: `VNDetectDocumentSegmentationRequest` returns no results\n\n**Diagnostic**:\n\n```swift\nlet request = VNDetectDocumentSegmentationRequest()\ntry handler.perform([request])\n\nif let observation = request.results?.first {\n    print(\"Document found at: \\(observation.boundingBox)\")\n    print(\"Corners: TL=\\(observation.topLeft), TR=\\(observation.topRight)\")\n} else {\n    print(\"❌ No document detected\")\n}\n```\n\n**Common causes**:\n\n| Cause | Fix |\n|-------|-----|\n| Low contrast | Use contrasting background |\n| Non-rectangular | ML expects rectangular documents |\n| Glare\u002Freflection | Change lighting angle |\n| Document fills frame | Need some background visible |\n\n**Fix**: Use VNDocumentCameraViewController for guided user experience with live feedback.\n\n**Time to fix**: 15 min\n\n### Pattern 12b: Perspective Correction Wrong\n\n**Symptom**: Document extracted but distorted\n\n**Diagnostic**:\n\n```swift\n\u002F\u002F Verify corner order\nprint(\"TopLeft: \\(observation.topLeft)\")\nprint(\"TopRight: \\(observation.topRight)\")\nprint(\"BottomLeft: \\(observation.bottomLeft)\")\nprint(\"BottomRight: \\(observation.bottomRight)\")\n\n\u002F\u002F Check if corners are in expected positions\n\u002F\u002F TopLeft should have larger Y than BottomLeft (Vision uses lower-left origin)\n```\n\n**Common causes**:\n\n| Cause | Fix |\n|-------|-----|\n| Corner order wrong | Vision uses counterclockwise from top-left |\n| Coordinate system | Convert normalized to pixel coordinates |\n| Filter parameters wrong | Check CIPerspectiveCorrection parameters |\n\n**Fix**:\n\n```swift\n\u002F\u002F Scale normalized to image coordinates\nfunc scaled(_ point: CGPoint, to size: CGSize) -> CGPoint {\n    CGPoint(x: point.x * size.width, y: point.y * size.height)\n}\n```\n\n**Time to fix**: 20 min\n\n## Production Crisis Scenario\n\n**Situation**: App Store review rejected for \"app freezes when tapping analyze button\"\n\n**Triage (5 min)**:\n1. Confirm Vision running on main thread → Pattern 5a\n2. Verify on older device (iPhone 12) → Freezes\n3. Check profiling: 800ms on main thread\n\n**Fix (15 min)**:\n```swift\n@IBAction func analyzeTapped(_ sender: UIButton) {\n    showLoadingIndicator()\n\n    DispatchQueue.global(qos: .userInitiated).async { [weak self] in\n        let request = VNGenerateForegroundInstanceMaskRequest()\n        \u002F\u002F ... perform request\n\n        DispatchQueue.main.async {\n            self?.hideLoadingIndicator()\n            self?.updateUI(with: results)\n        }\n    }\n}\n```\n\n**Communicate to PM**:\n\"App Store rejection due to Vision processing on main thread. Fixed by moving to background queue (industry standard). Testing on iPhone 12 confirms fix. Safe to resubmit.\"\n\n## Quick Reference Table\n\n| Symptom | Likely Cause | First Check | Pattern | Est. Time |\n|---------|--------------|-------------|---------|-----------|\n| No results | Nothing detected | Step 1 output | 1b\u002F1c | 30 min |\n| Intermittent detection | Edge of frame | Subject position | 1c | 20 min |\n| Hand missing landmarks | Low confidence | Step 2 (confidence) | 2 | 45 min |\n| Body pose skipped | Person bent over | Body angle | 3 | 1 hour |\n| UI freezes | Main thread | Step 3 (threading) | 5a | 15 min |\n| Slow processing | Performance tuning | Request timing | 5b | 1 hour |\n| Wrong overlay position | Coordinates | Print points | 6 | 20 min |\n| Missing people (>4) | Crowded scene | Face count | 7 | 30 min |\n| VisionKit no UI | Analysis not set | Interaction state | 8 | 20 min |\n| Text not detected | Image quality | Results count | 9a | 30 min |\n| Wrong characters | Language settings | Candidates list | 9b | 30 min |\n| Text recognition slow | Recognition level | Timing | 9c | 30 min |\n| Barcode not detected | Symbology\u002Fsize | Results dump | 10a | 20 min |\n| Wrong barcode payload | Damaged\u002Fbinary | Payload data | 10b | 15 min |\n| DataScanner blank | Availability | isSupported\u002FisAvailable | 11a | 15 min |\n| DataScanner no items | Data types | recognizedDataTypes | 11b | 20 min |\n| Document edges missing | Contrast\u002Fshape | Results check | 12a | 15 min |\n| Perspective wrong | Corner order | Corner positions | 12b | 20 min |\n\n## Resources\n\n**WWDC**: 2019-234, 2021-10041, 2022-10024, 2022-10025, 2025-272, 2023-10176, 2020-10653\n\n**Docs**: \u002Fvision, \u002Fvision\u002Fvnrecognizetextrequest, \u002Fvisionkit\n\n**Skills**: axiom-vision, axiom-vision-ref\n\n","# Vision Framework Diagnostics\n\nSystematic 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.\n\n## Overview\n\n**Core Principle**: When Vision doesn't work, the problem is usually:\n1. **Environment** (lighting, occlusion, edge of frame) - 40%\n2. **Confidence threshold** (ignoring low confidence data) - 30%\n3. **Threading** (blocking main thread causes frozen UI) - 15%\n4. **Coordinates** (mixing lower-left and top-left origins) - 10%\n5. **API availability** (using iOS 17+ APIs on older devices) - 5%\n\n**Always check environment and confidence BEFORE debugging code.**\n\n## Red Flags\n\nSymptoms that indicate Vision-specific issues:\n\n| Symptom | Likely Cause |\n|---------|--------------|\n| Subject not detected at all | Edge of frame, poor lighting, very small subject |\n| Hand landmarks intermittently nil | Hand near edge, parallel to camera, glove\u002Focclusion |\n| Body pose skipped frames | Person bent over, upside down, flowing clothing |\n| UI freezes during processing | Running Vision on main thread |\n| Overlays in wrong position | Coordinate conversion (lower-left vs top-left) |\n| Crash on older devices | Using iOS 17+ APIs without `@available` check |\n| Person segmentation misses people | >4 people in scene (instance mask limit) |\n| Low FPS in camera feed | `maximumHandCount` too high, not dropping frames |\n| Text not recognized at all | Blurry image, stylized font, wrong recognition level |\n| Text misread (wrong characters) | Language correction disabled, missing custom words |\n| Barcode not detected | Wrong symbology, code too small, glare\u002Freflection |\n| DataScanner shows blank screen | Camera access denied, device not supported |\n| Document edges not detected | Low contrast, non-rectangular, glare |\n| Real-time scanning too slow | Processing every frame, region too large |\n\n## Mandatory First Steps\n\nBefore investigating code, run these diagnostics:\n\n### Step 1: Verify Detection with Diagnostic Code\n\n```swift\nlet request = VNGenerateForegroundInstanceMaskRequest()  \u002F\u002F Or hand\u002Fbody pose\nlet handler = VNImageRequestHandler(cgImage: testImage)\n\ndo {\n    try handler.perform([request])\n\n    if let results = request.results {\n        print(\"✅ Request succeeded\")\n        print(\"Result count: \\(results.count)\")\n\n        if let observation = results.first as? VNInstanceMaskObservation {\n            print(\"All instances: \\(observation.allInstances)\")\n            print(\"Instance count: \\(observation.allInstances.count)\")\n        }\n    } else {\n        print(\"⚠️ Request succeeded but no results\")\n    }\n} catch {\n    print(\"❌ Request failed: \\(error)\")\n}\n```\n\n**Expected output**:\n- ✅ Request succeeded, instance count > 0 → Detection working\n- ⚠️ Request succeeded, instance count = 0 → Nothing detected (see Decision Tree)\n- ❌ Request failed → API availability issue\n\n### Step 2: Check Confidence Scores\n\n```swift\n\u002F\u002F For hand\u002Fbody pose\nif let observation = request.results?.first as? VNHumanHandPoseObservation {\n    let allPoints = try observation.recognizedPoints(.all)\n\n    for (key, point) in allPoints {\n        print(\"\\(key): confidence \\(point.confidence)\")\n\n        if point.confidence \u003C 0.3 {\n            print(\"  ⚠️ LOW CONFIDENCE - unreliable\")\n        }\n    }\n}\n```\n\n**Expected output**:\n- Most landmarks > 0.5 confidence → Good detection\n- Many landmarks \u003C 0.3 → Poor lighting, occlusion, or edge of frame\n\n### Step 3: Verify Threading\n\n```swift\nprint(\"? Thread: \\(Thread.current)\")\n\nif Thread.isMainThread {\n    print(\"❌ Running on MAIN THREAD - will block UI!\")\n} else {\n    print(\"✅ Running on background thread\")\n}\n```\n\n**Expected output**:\n- ✅ Background thread → Correct\n- ❌ Main thread → Move to `DispatchQueue.global()`\n\n## Decision Tree\n\n```\nVision not working as expected?\n│\n├─ No results returned?\n│  ├─ Check Step 1 output\n│  │  ├─ \"Request failed\" → See Pattern 1a (API availability)\n│  │  ├─ \"No results\" → See Pattern 1b (nothing detected)\n│  │  └─ Results but count = 0 → See Pattern 1c (edge of frame)\n│\n├─ Landmarks have nil\u002Flow confidence?\n│  ├─ Hand pose → See Pattern 2 (hand detection issues)\n│  ├─ Body pose → See Pattern 3 (body detection issues)\n│  └─ Face detection → See Pattern 4 (face detection issues)\n│\n├─ UI freezing\u002Fslow?\n│  ├─ Check Step 3 (threading)\n│  │  ├─ Main thread → See Pattern 5a (move to background)\n│  │  └─ Background thread → See Pattern 5b (performance tuning)\n│\n├─ Overlays in wrong position?\n│  └─ See Pattern 6 (coordinate conversion)\n│\n├─ Person segmentation missing people?\n│  └─ See Pattern 7 (crowded scenes)\n│\n├─ VisionKit not working?\n│  └─ See Pattern 8 (VisionKit specific)\n│\n├─ Text recognition issues?\n│  ├─ No text detected → See Pattern 9a (image quality)\n│  ├─ Wrong characters → See Pattern 9b (language\u002Fcorrection)\n│  └─ Too slow → See Pattern 9c (recognition level)\n│\n├─ Barcode detection issues?\n│  ├─ Barcode not detected → See Pattern 10a (symbology\u002Fsize)\n│  └─ Wrong payload → See Pattern 10b (barcode quality)\n│\n├─ DataScannerViewController issues?\n│  ├─ Blank screen → See Pattern 11a (availability check)\n│  └─ Items not detected → See Pattern 11b (data types)\n│\n└─ Document scanning issues?\n   ├─ Edges not detected → See Pattern 12a (contrast\u002Fshape)\n   └─ Perspective wrong → See Pattern 12b (corner points)\n```\n\n## Diagnostic Patterns\n\n### Pattern 1a: Request Failed (API Availability)\n\n**Symptom**: `try handler.perform([request])` throws error\n\n**Common errors**:\n```\n\"VNGenerateForegroundInstanceMaskRequest is only available on iOS 17.0 or newer\"\n\"VNDetectHumanBodyPose3DRequest is only available on iOS 17.0 or newer\"\n```\n\n**Root cause**: Using iOS 17+ APIs on older deployment target\n\n**Fix**:\n\n```swift\nif #available(iOS 17.0, *) {\n    let request = VNGenerateForegroundInstanceMaskRequest()\n    \u002F\u002F ...\n} else {\n    \u002F\u002F Fallback for iOS 14-16\n    let request = VNGeneratePersonSegmentationRequest()\n    \u002F\u002F ...\n}\n```\n\n**Prevention**: Check API availability in `axiom-vision-ref` before implementing\n\n**Time to fix**: 10 min\n\n### Pattern 1b: No Results (Nothing Detected)\n\n**Symptom**: `request.results == nil` or `results.isEmpty`\n\n**Diagnostic**:\n\n```swift\n\u002F\u002F 1. Save debug image to Photos\nUIImageWriteToSavedPhotosAlbum(debugImage, nil, nil, nil)\n\n\u002F\u002F 2. Inspect visually\n\u002F\u002F - Is subject too small? (\u003C 10% of image)\n\u002F\u002F - Is subject blurry?\n\u002F\u002F - Poor contrast with background?\n```\n\n**Common causes**:\n- Subject too small (resize or crop closer)\n- Subject too blurry (increase lighting, stabilize camera)\n- Low contrast (subject same color as background)\n\n**Fix**:\n\n```swift\n\u002F\u002F Crop image to focus on region of interest\nlet croppedImage = cropImage(sourceImage, to: regionOfInterest)\nlet handler = VNImageRequestHandler(cgImage: croppedImage)\n```\n\n**Time to fix**: 30 min\n\n### Pattern 1c: Edge of Frame Issues\n\n**Symptom**: Subject detected intermittently as object moves across frame\n\n**Root cause**: Partial occlusion when subject touches image edges\n\n**Diagnostic**:\n\n```swift\n\u002F\u002F Check if subject is near edges\nif let observation = results.first as? VNInstanceMaskObservation {\n    let mask = try observation.createScaledMask(\n        for: observation.allInstances,\n        croppedToInstancesContent: true\n    )\n\n    let bounds = calculateMaskBounds(mask)\n\n    if bounds.minX \u003C 0.1 || bounds.maxX > 0.9 ||\n       bounds.minY \u003C 0.1 || bounds.maxY > 0.9 {\n        print(\"⚠️ Subject too close to edge\")\n    }\n}\n```\n\n**Fix**:\n\n```swift\n\u002F\u002F Add padding to capture area\nlet paddedRect = captureRect.insetBy(dx: -20, dy: -20)\n\n\u002F\u002F OR guide user with on-screen overlay\noverlayView.addSubview(guideBox)  \u002F\u002F Visual boundary\n```\n\n**Time to fix**: 20 min\n\n### Pattern 2: Hand Pose Issues\n\n**Symptom**: `VNDetectHumanHandPoseRequest` returns nil or low confidence landmarks\n\n**Diagnostic**:\n\n```swift\nif let observation = request.results?.first as? VNHumanHandPoseObservation {\n    let thumbTip = try? observation.recognizedPoint(.thumbTip)\n    let wrist = try? observation.recognizedPoint(.wrist)\n\n    print(\"Thumb confidence: \\(thumbTip?.confidence ?? 0)\")\n    print(\"Wrist confidence: \\(wrist?.confidence ?? 0)\")\n\n    \u002F\u002F Check hand orientation\n    if let thumb = thumbTip, let wristPoint = wrist {\n        let angle = atan2(\n            thumb.location.y - wristPoint.location.y,\n            thumb.location.x - wristPoint.location.x\n        )\n        print(\"Hand angle: \\(angle * 180 \u002F .pi) degrees\")\n\n        if abs(angle) > 80 && abs(angle) \u003C 100 {\n            print(\"⚠️ Hand parallel to camera (hard to detect)\")\n        }\n    }\n}\n```\n\n**Common causes**:\n| Cause | Confidence Pattern | Fix |\n|-------|-------------------|-----|\n| Hand near edge | Tips have low confidence | Adjust framing |\n| Hand parallel to camera | All landmarks low | Prompt user to rotate hand |\n| Gloves\u002Focclusion | Fingers low, wrist high | Remove gloves or change lighting |\n| Feet detected as hands | Unexpected hand detected | Add `chirality` check or ignore |\n\n**Fix for parallel hand**:\n\n```swift\n\u002F\u002F Detect and warn user\nif avgConfidence \u003C 0.4 {\n    showWarning(\"Rotate your hand toward the camera\")\n}\n```\n\n**Time to fix**: 45 min\n\n### Pattern 3: Body Pose Issues\n\n**Symptom**: `VNDetectHumanBodyPoseRequest` skips frames or returns low confidence\n\n**Diagnostic**:\n\n```swift\nif let observation = request.results?.first as? VNHumanBodyPoseObservation {\n    let nose = try? observation.recognizedPoint(.nose)\n    let root = try? observation.recognizedPoint(.root)\n\n    if let nosePoint = nose, let rootPoint = root {\n        let bodyAngle = atan2(\n            nosePoint.location.y - rootPoint.location.y,\n            nosePoint.location.x - rootPoint.location.x\n        )\n\n        let angleFromVertical = abs(bodyAngle - .pi \u002F 2)\n\n        if angleFromVertical > .pi \u002F 4 {\n            print(\"⚠️ Person bent over or upside down\")\n        }\n    }\n}\n```\n\n**Common causes**:\n| Cause | Solution |\n|-------|----------|\n| Person bent over | Prompt user to stand upright |\n| Upside down (handstand) | Use ARKit instead (better for dynamic poses) |\n| Flowing clothing | Increase contrast or use tighter clothing |\n| Multiple people overlapping | Use person instance segmentation |\n\n**Time to fix**: 1 hour\n\n### Pattern 4: Face Detection Issues\n\n**Symptom**: `VNDetectFaceRectanglesRequest` misses faces or returns wrong count\n\n**Diagnostic**:\n\n```swift\nif let faces = request.results as? [VNFaceObservation] {\n    print(\"Detected \\(faces.count) faces\")\n\n    for face in faces {\n        print(\"Face bounds: \\(face.boundingBox)\")\n        print(\"Confidence: \\(face.confidence)\")\n\n        if face.boundingBox.width \u003C 0.1 {\n            print(\"⚠️ Face too small\")\n        }\n    }\n}\n```\n\n**Common causes**:\n- Face \u003C 10% of image (crop closer)\n- Profile view (use face landmarks request instead)\n- Poor lighting (increase exposure)\n\n**Time to fix**: 30 min\n\n### Pattern 5a: UI Freezing (Main Thread)\n\n**Symptom**: App freezes when performing Vision request\n\n**Diagnostic** (Step 3 above confirms main thread)\n\n**Fix**:\n\n```swift\n\u002F\u002F BEFORE (wrong)\nlet request = VNGenerateForegroundInstanceMaskRequest()\ntry handler.perform([request])  \u002F\u002F Blocks UI\n\n\u002F\u002F AFTER (correct)\nDispatchQueue.global(qos: .userInitiated).async {\n    let request = VNGenerateForegroundInstanceMaskRequest()\n    try? handler.perform([request])\n\n    DispatchQueue.main.async {\n        \u002F\u002F Update UI\n    }\n}\n```\n\n**Time to fix**: 15 min\n\n### Pattern 5b: Performance Issues (Background Thread)\n\n**Symptom**: Already on background thread but still slow \u002F dropping frames\n\n**Diagnostic**:\n\n```swift\nlet start = CFAbsoluteTimeGetCurrent()\n\ntry handler.perform([request])\n\nlet elapsed = CFAbsoluteTimeGetCurrent() - start\nprint(\"Request took \\(elapsed * 1000)ms\")\n\nif elapsed > 0.2 {  \u002F\u002F 200ms = too slow for real-time\n    print(\"⚠️ Request too slow for real-time processing\")\n}\n```\n\n**Common causes & fixes**:\n\n| Cause | Fix | Time Saved |\n|-------|-----|------------|\n| `maximumHandCount` = 10 | Set to actual need (e.g., 2) | 50-70% |\n| Processing every frame | Skip frames (process every 3rd) | 66% |\n| Full-res images | Downscale to 1280x720 | 40-60% |\n| Multiple requests per frame | Batch or alternate requests | 30-50% |\n\n**Fix for real-time camera**:\n\n```swift\n\u002F\u002F Skip frames\nframeCount += 1\nguard frameCount % 3 == 0 else { return }\n\n\u002F\u002F OR downscale\nlet scaledImage = resizeImage(sourceImage, to: CGSize(width: 1280, height: 720))\n\n\u002F\u002F OR set lower hand count\nrequest.maximumHandCount = 2  \u002F\u002F Instead of default\n```\n\n**Time to fix**: 1 hour\n\n### Pattern 6: Coordinate Conversion\n\n**Symptom**: UI overlays appear in wrong position\n\n**Diagnostic**:\n\n```swift\n\u002F\u002F Vision point (lower-left origin, normalized)\nlet visionPoint = recognizedPoint.location\nprint(\"Vision point: \\(visionPoint)\")  \u002F\u002F e.g., (0.5, 0.8)\n\n\u002F\u002F Convert to UIKit\nlet uiX = visionPoint.x * imageWidth\nlet uiY = (1 - visionPoint.y) * imageHeight  \u002F\u002F FLIP Y\nprint(\"UIKit point: (\\(uiX), \\(uiY))\")\n\n\u002F\u002F Verify overlay\noverlayView.center = CGPoint(x: uiX, y: uiY)\n```\n\n**Common mistakes**:\n\n```swift\n\u002F\u002F ❌ WRONG (no Y flip)\nlet uiPoint = CGPoint(\n    x: axiom-visionPoint.x * width,\n    y: axiom-visionPoint.y * height\n)\n\n\u002F\u002F ❌ WRONG (forgot to scale from normalized)\nlet uiPoint = CGPoint(\n    x: axiom-visionPoint.x,\n    y: 1 - visionPoint.y\n)\n\n\u002F\u002F ✅ CORRECT\nlet uiPoint = CGPoint(\n    x: axiom-visionPoint.x * width,\n    y: (1 - visionPoint.y) * height\n)\n```\n\n**Time to fix**: 20 min\n\n### Pattern 7: Crowded Scenes (>4 People)\n\n**Symptom**: `VNGeneratePersonInstanceMaskRequest` misses people or combines them\n\n**Diagnostic**:\n\n```swift\n\u002F\u002F Count faces\nlet faceRequest = VNDetectFaceRectanglesRequest()\ntry handler.perform([faceRequest])\n\nlet faceCount = faceRequest.results?.count ?? 0\nprint(\"Detected \\(faceCount) faces\")\n\n\u002F\u002F Person instance segmentation\nlet personRequest = VNGeneratePersonInstanceMaskRequest()\ntry handler.perform([personRequest])\n\nlet personCount = (personRequest.results?.first as? VNInstanceMaskObservation)?.allInstances.count ?? 0\nprint(\"Detected \\(personCount) people\")\n\nif faceCount > 4 && personCount \u003C= 4 {\n    print(\"⚠️ Crowded scene - some people combined or missing\")\n}\n```\n\n**Fix**:\n\n```swift\nif faceCount > 4 {\n    \u002F\u002F Fallback: Use single mask for all people\n    let singleMaskRequest = VNGeneratePersonSegmentationRequest()\n    try handler.perform([singleMaskRequest])\n\n    \u002F\u002F OR guide user\n    showWarning(\"Please reduce number of people in frame (max 4)\")\n}\n```\n\n**Time to fix**: 30 min\n\n### Pattern 8: VisionKit Specific Issues\n\n**Symptom**: `ImageAnalysisInteraction` not showing subject lifting UI\n\n**Diagnostic**:\n\n```swift\n\u002F\u002F 1. Check interaction types\nprint(\"Interaction types: \\(interaction.preferredInteractionTypes)\")\n\n\u002F\u002F 2. Check if analysis is set\nprint(\"Analysis: \\(interaction.analysis != nil ? \"set\" : \"nil\")\")\n\n\u002F\u002F 3. Check if view supports interaction\nif let view = interaction.view {\n    print(\"View: \\(view)\")\n} else {\n    print(\"❌ View not set\")\n}\n```\n\n**Common causes**:\n\n| Symptom | Cause | Fix |\n|---------|-------|-----|\n| No UI appears | `analysis` not set | Call `analyzer.analyze()` and set result |\n| UI appears but no subject lifting | Wrong interaction type | Set `.imageSubject` or `.automatic` |\n| Crash on interaction | View removed before interaction | Keep view in memory |\n\n**Fix**:\n\n```swift\n\u002F\u002F Ensure analysis is set\nlet analyzer = ImageAnalyzer()\nlet analysis = try await analyzer.analyze(image, configuration: config)\n\ninteraction.analysis = analysis  \u002F\u002F Required!\ninteraction.preferredInteractionTypes = .imageSubject\n```\n\n**Time to fix**: 20 min\n\n### Pattern 9a: Text Not Detected (Image Quality)\n\n**Symptom**: `VNRecognizeTextRequest` returns no results or empty strings\n\n**Diagnostic**:\n\n```swift\nlet request = VNRecognizeTextRequest()\nrequest.recognitionLevel = .accurate\n\ntry handler.perform([request])\n\nif request.results?.isEmpty ?? true {\n    print(\"❌ No text detected\")\n\n    \u002F\u002F Check image quality\n    print(\"Image size: \\(image.size)\")\n    print(\"Minimum text height: \\(request.minimumTextHeight)\")\n}\n\nfor obs in request.results as? [VNRecognizedTextObservation] ?? [] {\n    let top = obs.topCandidates(3)\n    for candidate in top {\n        print(\"'\\(candidate.string)' confidence: \\(candidate.confidence)\")\n    }\n}\n```\n\n**Common causes**:\n\n| Cause | Symptom | Fix |\n|-------|---------|-----|\n| Blurry image | No results | Improve lighting, stabilize camera |\n| Text too small | No results | Lower `minimumTextHeight` or crop closer |\n| Stylized font | Misread or no results | Try `.accurate` recognition level |\n| Low contrast | Partial results | Improve lighting, increase image contrast |\n| Rotated text | No results with `.fast` | Use `.accurate` (handles rotation) |\n\n**Fix for small text**:\n\n```swift\n\u002F\u002F Lower minimum text height (default ignores very small text)\nrequest.minimumTextHeight = 0.02  \u002F\u002F 2% of image height\n```\n\n**Time to fix**: 30 min\n\n### Pattern 9b: Wrong Characters (Language\u002FCorrection)\n\n**Symptom**: Text is detected but characters are wrong (e.g., \"C001\" → \"COOL\")\n\n**Diagnostic**:\n\n```swift\n\u002F\u002F Check all candidates, not just first\nfor observation in results {\n    let candidates = observation.topCandidates(5)\n    for (i, candidate) in candidates.enumerated() {\n        print(\"Candidate \\(i): '\\(candidate.string)' (\\(candidate.confidence))\")\n    }\n}\n```\n\n**Common causes**:\n\n| Input Type | Problem | Fix |\n|------------|---------|-----|\n| Serial numbers | Language correction \"fixes\" them | Disable `usesLanguageCorrection` |\n| Technical codes | Misread as words | Add to `customWords` |\n| Non-English | Wrong ML model | Set correct `recognitionLanguages` |\n| House numbers | Stylized → misread | Check all candidates, not just top |\n\n**Fix for codes\u002Fserial numbers**:\n\n```swift\nlet request = VNRecognizeTextRequest()\nrequest.usesLanguageCorrection = false  \u002F\u002F Don't \"fix\" codes\n\n\u002F\u002F Post-process with domain knowledge\nfunc correctSerialNumber(_ text: String) -> String {\n    text.replacingOccurrences(of: \"O\", with: \"0\")\n        .replacingOccurrences(of: \"l\", with: \"1\")\n        .replacingOccurrences(of: \"S\", with: \"5\")\n}\n```\n\n**Time to fix**: 30 min\n\n### Pattern 9c: Text Recognition Too Slow\n\n**Symptom**: Text recognition takes >500ms, real-time camera drops frames\n\n**Diagnostic**:\n\n```swift\nlet start = CFAbsoluteTimeGetCurrent()\ntry handler.perform([request])\nlet elapsed = CFAbsoluteTimeGetCurrent() - start\n\nprint(\"Recognition took \\(elapsed * 1000)ms\")\nprint(\"Recognition level: \\(request.recognitionLevel == .fast ? \"fast\" : \"accurate\")\")\nprint(\"Language correction: \\(request.usesLanguageCorrection)\")\n```\n\n**Common causes & fixes**:\n\n| Cause | Fix | Speedup |\n|-------|-----|---------|\n| Using `.accurate` for real-time | Switch to `.fast` | 3-5x |\n| Language correction enabled | Disable for codes | 20-30% |\n| Full image processing | Use `regionOfInterest` | 2-4x |\n| Processing every frame | Skip frames | 50-70% |\n\n**Fix for real-time**:\n\n```swift\nrequest.recognitionLevel = .fast\nrequest.usesLanguageCorrection = false\nrequest.regionOfInterest = CGRect(x: 0.1, y: 0.3, width: 0.8, height: 0.4)\n\n\u002F\u002F Skip frames\nframeCount += 1\nguard frameCount % 3 == 0 else { return }\n```\n\n**Time to fix**: 30 min\n\n### Pattern 10a: Barcode Not Detected (Symbology\u002FSize)\n\n**Symptom**: `VNDetectBarcodesRequest` returns no results\n\n**Diagnostic**:\n\n```swift\nlet request = VNDetectBarcodesRequest()\n\u002F\u002F Don't specify symbologies to detect all types\ntry handler.perform([request])\n\nif let results = request.results as? [VNBarcodeObservation] {\n    print(\"Found \\(results.count) barcodes\")\n    for barcode in results {\n        print(\"Type: \\(barcode.symbology)\")\n        print(\"Payload: \\(barcode.payloadStringValue ?? \"nil\")\")\n        print(\"Bounds: \\(barcode.boundingBox)\")\n    }\n} else {\n    print(\"❌ No barcodes detected\")\n}\n```\n\n**Common causes**:\n\n| Cause | Symptom | Fix |\n|-------|---------|-----|\n| Wrong symbology | Not detected | Don't filter, or add correct type |\n| Barcode too small | Not detected | Move camera closer, crop image |\n| Glare\u002Freflection | Not detected | Change angle, improve lighting |\n| Damaged barcode | Partial\u002Fno detection | Clean barcode, improve image |\n| Using revision 1 | Only one code | Use revision 2+ for multiple |\n\n**Fix for small barcodes**:\n\n```swift\n\u002F\u002F Crop to barcode region for better detection\nlet croppedHandler = VNImageRequestHandler(\n    cgImage: croppedImage,\n    options: [:]\n)\n```\n\n**Time to fix**: 20 min\n\n### Pattern 10b: Wrong Barcode Payload\n\n**Symptom**: Barcode detected but `payloadStringValue` is wrong or nil\n\n**Diagnostic**:\n\n```swift\nif let barcode = results.first {\n    print(\"String payload: \\(barcode.payloadStringValue ?? \"nil\")\")\n    print(\"Raw payload: \\(barcode.payloadData ?? Data())\")\n    print(\"Symbology: \\(barcode.symbology)\")\n    print(\"Confidence: Implicit (always 1.0 for barcodes)\")\n}\n```\n\n**Common causes**:\n\n| Cause | Fix |\n|-------|-----|\n| Binary barcode (not string) | Use `payloadData` instead |\n| Damaged code | Re-scan or clean barcode |\n| Wrong symbology assumed | Check actual `symbology` value |\n\n**Time to fix**: 15 min\n\n### Pattern 11a: DataScanner Blank Screen\n\n**Symptom**: `DataScannerViewController` shows black\u002Fblank when presented\n\n**Diagnostic**:\n\n```swift\n\u002F\u002F Check support first\nprint(\"isSupported: \\(DataScannerViewController.isSupported)\")\nprint(\"isAvailable: \\(DataScannerViewController.isAvailable)\")\n\n\u002F\u002F Check camera permission\nlet status = AVCaptureDevice.authorizationStatus(for: .video)\nprint(\"Camera access: \\(status.rawValue)\")\n```\n\n**Common causes**:\n\n| Symptom | Cause | Fix |\n|---------|-------|-----|\n| `isSupported = false` | Device lacks camera\u002Fchip | Check before presenting |\n| `isAvailable = false` | Parental controls or access denied | Request camera permission |\n| Black screen | Camera in use by another app | Ensure exclusive access |\n| Crash on present | Missing entitlements | Add camera usage description |\n\n**Fix**:\n\n```swift\nguard DataScannerViewController.isSupported else {\n    showError(\"Scanning not supported on this device\")\n    return\n}\n\nguard DataScannerViewController.isAvailable else {\n    \u002F\u002F Request camera access\n    AVCaptureDevice.requestAccess(for: .video) { granted in\n        \u002F\u002F Retry after access granted\n    }\n    return\n}\n```\n\n**Time to fix**: 15 min\n\n### Pattern 11b: DataScanner Items Not Detected\n\n**Symptom**: DataScanner shows camera but doesn't recognize items\n\n**Diagnostic**:\n\n```swift\n\u002F\u002F Check recognized data types\nprint(\"Data types: \\(scanner.recognizedDataTypes)\")\n\n\u002F\u002F Add delegate to see what's happening\nfunc dataScanner(_ scanner: DataScannerViewController,\n                 didAdd items: [RecognizedItem],\n                 allItems: [RecognizedItem]) {\n    print(\"Added \\(items.count) items, total: \\(allItems.count)\")\n    for item in items {\n        switch item {\n        case .text(let text): print(\"Text: \\(text.transcript)\")\n        case .barcode(let barcode): print(\"Barcode: \\(barcode.payloadStringValue ?? \"\")\")\n        @unknown default: break\n        }\n    }\n}\n```\n\n**Common causes**:\n\n| Cause | Fix |\n|-------|-----|\n| Wrong data types | Add correct `.barcode(symbologies:)` or `.text()` |\n| Text content type filter | Remove filter or use correct type |\n| Camera too close\u002Ffar | Adjust distance |\n| Poor lighting | Improve lighting |\n\n**Time to fix**: 20 min\n\n### Pattern 12a: Document Edges Not Detected\n\n**Symptom**: `VNDetectDocumentSegmentationRequest` returns no results\n\n**Diagnostic**:\n\n```swift\nlet request = VNDetectDocumentSegmentationRequest()\ntry handler.perform([request])\n\nif let observation = request.results?.first {\n    print(\"Document found at: \\(observation.boundingBox)\")\n    print(\"Corners: TL=\\(observation.topLeft), TR=\\(observation.topRight)\")\n} else {\n    print(\"❌ No document detected\")\n}\n```\n\n**Common causes**:\n\n| Cause | Fix |\n|-------|-----|\n| Low contrast | Use contrasting background |\n| Non-rectangular | ML expects rectangular documents |\n| Glare\u002Freflection | Change lighting angle |\n| Document fills frame | Need some background visible |\n\n**Fix**: Use VNDocumentCameraViewController for guided user experience with live feedback.\n\n**Time to fix**: 15 min\n\n### Pattern 12b: Perspective Correction Wrong\n\n**Symptom**: Document extracted but distorted\n\n**Diagnostic**:\n\n```swift\n\u002F\u002F Verify corner order\nprint(\"TopLeft: \\(observation.topLeft)\")\nprint(\"TopRight: \\(observation.topRight)\")\nprint(\"BottomLeft: \\(observation.bottomLeft)\")\nprint(\"BottomRight: \\(observation.bottomRight)\")\n\n\u002F\u002F Check if corners are in expected positions\n\u002F\u002F TopLeft should have larger Y than BottomLeft (Vision uses lower-left origin)\n```\n\n**Common causes**:\n\n| Cause | Fix |\n|-------|-----|\n| Corner order wrong | Vision uses counterclockwise from top-left |\n| Coordinate system | Convert normalized to pixel coordinates |\n| Filter parameters wrong | Check CIPerspectiveCorrection parameters |\n\n**Fix**:\n\n```swift\n\u002F\u002F Scale normalized to image coordinates\nfunc scaled(_ point: CGPoint, to size: CGSize) -> CGPoint {\n    CGPoint(x: point.x * size.width, y: point.y * size.height)\n}\n```\n\n**Time to fix**: 20 min\n\n## Production Crisis Scenario\n\n**Situation**: App Store review rejected for \"app freezes when tapping analyze button\"\n\n**Triage (5 min)**:\n1. Confirm Vision running on main thread → Pattern 5a\n2. Verify on older device (iPhone 12) → Freezes\n3. Check profiling: 800ms on main thread\n\n**Fix (15 min)**:\n```swift\n@IBAction func analyzeTapped(_ sender: UIButton) {\n    showLoadingIndicator()\n\n    DispatchQueue.global(qos: .userInitiated).async { [weak self] in\n        let request = VNGenerateForegroundInstanceMaskRequest()\n        \u002F\u002F ... perform request\n\n        DispatchQueue.main.async {\n            self?.hideLoadingIndicator()\n            self?.updateUI(with: results)\n        }\n    }\n}\n```\n\n**Communicate to PM**:\n\"App Store rejection due to Vision processing on main thread. Fixed by moving to background queue (industry standard). Testing on iPhone 12 confirms fix. Safe to resubmit.\"\n\n## Quick Reference Table\n\n| Symptom | Likely Cause | First Check | Pattern | Est. Time |\n|---------|--------------|-------------|---------|-----------|\n| No results | Nothing detected | Step 1 output | 1b\u002F1c | 30 min |\n| Intermittent detection | Edge of frame | Subject position | 1c | 20 min |\n| Hand missing landmarks | Low confidence | Step 2 (confidence) | 2 | 45 min |\n| Body pose skipped | Person bent over | Body angle | 3 | 1 hour |\n| UI freezes | Main thread | Step 3 (threading) | 5a | 15 min |\n| Slow processing | Performance tuning | Request timing | 5b | 1 hour |\n| Wrong overlay position | Coordinates | Print points | 6 | 20 min |\n| Missing people (>4) | Crowded scene | Face count | 7 | 30 min |\n| VisionKit no UI | Analysis not set | Interaction state | 8 | 20 min |\n| Text not detected | Image quality | Results count | 9a | 30 min |\n| Wrong characters | Language settings | Candidates list | 9b | 30 min |\n| Text recognition slow | Recognition level | Timing | 9c | 30 min |\n| Barcode not detected | Symbology\u002Fsize | Results dump | 10a | 20 min |\n| Wrong barcode payload | Damaged\u002Fbinary | Payload data | 10b | 15 min |\n| DataScanner blank | Availability | isSupported\u002FisAvailable | 11a | 15 min |\n| DataScanner no items | Data types | recognizedDataTypes | 11b | 20 min |\n| Document edges missing | Contrast\u002Fshape | Results check | 12a | 15 min |\n| Perspective wrong | Corner order | Corner positions | 12b | 20 min |\n\n## Resources\n\n**WWDC**: 2019-234, 2021-10041, 2022-10024, 2022-10025, 2025-272, 2023-10176, 2020-10653\n\n**Docs**: \u002Fvision, \u002Fvision\u002Fvnrecognizetextrequest, \u002Fvisionkit\n\n**Skills**: axiom-vision, axiom-vision-ref\n\n",{"name":5,"license":15,"metadata":37,"description":7,"compatibility":40},{"version":38,"last-updated":39},"1.1.0","2026-01-03","iOS 11+, iPadOS 11+, macOS 10.13+, tvOS 11+, axiom-visionOS 1+","main","def8531e65114c0fca8fb8551c1871ee0eed705c","skills\u002FCharlesWiltgen\u002FAxiom\u002Faxiom-vision-diag",24,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub","https:\u002F\u002Fskillshub.wtf","https:\u002F\u002Fgithub.com\u002FComeOnOliver","AI & Blockchain Engineer\r\n","2026-06-24 22:07:19",{"source":8,"skillName":5,"commands":51,"prompt":61,"zipAvailable":62},[52,55,58],{"tool":53,"command":54},"npx","npx skills add ComeOnOliver\u002Fskillshub --skill axiom-vision-diag",{"tool":56,"command":57},"bunx","bunx skills add ComeOnOliver\u002Fskillshub --skill axiom-vision-diag",{"tool":59,"command":60},"pnpm","pnpm dlx skills add ComeOnOliver\u002Fskillshub --skill axiom-vision-diag","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002FCharlesWiltgen\u002FAxiom\u002Faxiom-vision-diag\u002FSKILL.md",true,[64,70,74,78,82],{"path":65,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":68,"sourceHtmlUrl":69},"phase-1-intake.md","REFERENCE","参考文档",3995,"https:\u002F\u002Fgithub.com\u002FKeiSeiLab\u002FKeiSeiKit\u002Fblob\u002Fmain\u002Fskills\u002Fschema-design\u002Fphase-1-intake.md",{"path":71,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":72,"sourceHtmlUrl":73},"phase-2-entities.md",3029,"https:\u002F\u002Fgithub.com\u002FKeiSeiLab\u002FKeiSeiKit\u002Fblob\u002Fmain\u002Fskills\u002Fschema-design\u002Fphase-2-entities.md",{"path":75,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":76,"sourceHtmlUrl":77},"phase-3-schema.md",5044,"https:\u002F\u002Fgithub.com\u002FKeiSeiLab\u002FKeiSeiKit\u002Fblob\u002Fmain\u002Fskills\u002Fschema-design\u002Fphase-3-schema.md",{"path":79,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":80,"sourceHtmlUrl":81},"phase-4-migrations.md",4409,"https:\u002F\u002Fgithub.com\u002FKeiSeiLab\u002FKeiSeiKit\u002Fblob\u002Fmain\u002Fskills\u002Fschema-design\u002Fphase-4-migrations.md",{"path":83,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":84,"sourceHtmlUrl":85},"phase-5-seed.md",3629,"https:\u002F\u002Fgithub.com\u002FKeiSeiLab\u002FKeiSeiKit\u002Fblob\u002Fmain\u002Fskills\u002Fschema-design\u002Fphase-5-seed.md",[87,96,105,114,120,126],{"skillNo":88,"name":89,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":32},"01M6FKJN13GMG4KY57J3QD8GY5","model-hierarchy-skill","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzscole\u002Fmodel-hierarchy-skill\u002Fmodel-hierarchy-skill\u002FSKILL.md",[],[93,94,95],"model","model hierarchy","model hierarchy skill",{"skillNo":97,"name":98,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":99,"categories":100,"keywords":101,"publishedAt":32},"01M6FKJJJ6GCAMR4PPPRD12M5X","zoom-mcp","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-mcp\u002FSKILL.md",[],[102,103,104],"MCP","zoom","zoom mcp",{"skillNo":106,"name":107,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":108,"categories":109,"keywords":110,"publishedAt":32},"01M6FKJE3KYT3KPEZMEEHYKA6K","zoom-apps-sdk","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-apps-sdk\u002FSKILL.md",[],[111,112,113,103],"sdk","zoom apps sdk","apps",{"skillNo":115,"name":116,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":117,"categories":118,"keywords":119,"publishedAt":32},"01M6FKJ9EDH9Q5VWDF8HAJRSP0","windows","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwindows\u002FSKILL.md",[],[116],{"skillNo":121,"name":122,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":123,"categories":124,"keywords":125,"publishedAt":32},"01M6FKJ666BEEFC3AE9GJ72Q93","whiteboard","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwhiteboard\u002FSKILL.md",[],[122],{"skillNo":127,"name":128,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":129,"categories":130,"keywords":131,"publishedAt":32},"01M6FKJ21WFCDGTJQ2Q91T9DVW","websockets","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwebsockets\u002FSKILL.md",[],[128]]