[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7FFFY0QEM14SKWPDYGMXM2P":3,"skill-same:01M7FFFY0QEM14SKWPDYGMXM2P":62},{"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":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":27,"commitSha":28,"skillDirectory":29,"forksCount":30,"repositoryHtmlUrl":31,"repositoryHomepageUrl":6,"ownerHtmlUrl":32,"ownerBlogUrl":6,"ownerDescription":33,"updatedAt":34,"install":35,"resources":47},"01M7FFFY0QEM14SKWPDYGMXM2P","python-api",null,"Programmatic Object-Detection-Metrics API guidance for BoundingBox, BoundingBoxes, Evaluator, enums, coordinate conversion, AP\u002FmAP semantics, and source-style import diagnostics.","lza6\u002FArmor-piercing-system-prompts","lza6","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F128880206?v=4","01M7EB3K7WPX5T28EJ2NVHE6EG","Chinese-tingfeng","01M7EB3K97E1KQ16QWKJMFNGX8",11,"MIT","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002Fsub-skills\u002Fpython-api\u002FSKILL.md",[],[],"2026-11-16 10:05:34",false,"---\nname: python-api\ndescription: \"Programmatic Object-Detection-Metrics API guidance for\n  BoundingBox, BoundingBoxes, Evaluator, enums, coordinate conversion, AP\u002FmAP\n  semantics, and source-style import diagnostics.\"\ndisable-model-invocation: true\nmetadata:\n  disco-role: operating\nlicense: MIT\n---\n\n# Python API sub-skill\n\nUse this sub-skill when the task needs direct, in-memory use of the legacy Object-Detection-Metrics classes instead of a text-folder CLI workflow.\n\n## Best-fit triggers\n\n- Construct `BoundingBox` \u002F `BoundingBoxes` objects directly from Python data.\n- Compute AP or mAP from in-memory detections and ground truths with `Evaluator.GetPascalVOCMetrics`.\n- Select `EveryPointInterpolation` versus `ElevenPointInterpolation`.\n- Convert relative YOLO-style center coordinates into the repository's absolute box representation.\n- Diagnose source-style imports, OpenCV import failures, or headless plotting\u002Fdrawing caveats.\n\n## Route away\n\n- For end-to-end evaluation from ground-truth and detection text folders, use `..\u002Ffile-evaluation\u002FSKILL.md`; that path owns safe folder parsing and the self-contained CLI helper.\n- For COCO metrics, the newer successor toolkit, model training, inference, or benchmark-paper analysis, do not use this legacy PASCAL VOC API skill.\n\n## Operating checklist\n\n1. Prepare a Python process that can import from a user-provided checkout or copied `lib\u002F` directory. The repo is source-style, so add the `lib` directory itself to `sys.path`; do not expect a pip package import.\n2. Read `references\u002Fapi-reference.md` for verified signatures, enums, class responsibilities, and in-memory usage patterns.\n3. Read `references\u002Fmetric-behavior.md` before interpreting AP, TP\u002FFP, duplicate detections, relative coordinates, or IoU edge cases.\n4. Use `scripts\u002Fapi_metric_smoke.py --repo-root PATH` or `--lib-dir PATH` to verify a user-provided checkout\u002Fcopy before relying on it.\n5. If import, plotting, drawing, or coordinate errors occur, use `references\u002Ftroubleshooting.md`.\n\n## Minimal in-memory pattern\n\n```python\nimport sys\nfrom pathlib import Path\n\nlib_dir = Path(\"\u002Fpath\u002Fto\u002Fcopied-or-checked-out\u002Flib\")\nsys.path.insert(0, str(lib_dir))\n\nfrom BoundingBox import BoundingBox\nfrom BoundingBoxes import BoundingBoxes\nfrom Evaluator import Evaluator\nfrom utils import BBFormat, BBType, CoordinatesType, MethodAveragePrecision\n\nboxes = BoundingBoxes()\nboxes.addBoundingBox(BoundingBox(\"img-1\", \"person\", 10, 10, 50, 50,\n                                 CoordinatesType.Absolute, bbType=BBType.GroundTruth,\n                                 format=BBFormat.XYX2Y2))\nboxes.addBoundingBox(BoundingBox(\"img-1\", \"person\", 10, 10, 50, 50,\n                                 CoordinatesType.Absolute, bbType=BBType.Detected,\n                                 classConfidence=0.99, format=BBFormat.XYX2Y2))\nmetrics = Evaluator().GetPascalVOCMetrics(\n    boxes,\n    IOUThreshold=0.5,\n    method=MethodAveragePrecision.EveryPointInterpolation,\n)\n```\n\nThis should produce one `person` result with AP `1.0`, total positives `1`, total TP `1`, and total FP `0`.\n\n## Distilled evidence\n\nThis sub-skill distills the repository's `lib\u002FBoundingBox.py`, `lib\u002FBoundingBoxes.py`, `lib\u002FEvaluator.py`, `lib\u002Futils.py`, and the programmatic examples under `samples\u002Fsample_1\u002F` and `samples\u002Fsample_2\u002F`. Those paths are evidence for the guidance here; runtime use should rely on the bundled references and script above.\n","# Python API sub-skill\n\nUse this sub-skill when the task needs direct, in-memory use of the legacy Object-Detection-Metrics classes instead of a text-folder CLI workflow.\n\n## Best-fit triggers\n\n- Construct `BoundingBox` \u002F `BoundingBoxes` objects directly from Python data.\n- Compute AP or mAP from in-memory detections and ground truths with `Evaluator.GetPascalVOCMetrics`.\n- Select `EveryPointInterpolation` versus `ElevenPointInterpolation`.\n- Convert relative YOLO-style center coordinates into the repository's absolute box representation.\n- Diagnose source-style imports, OpenCV import failures, or headless plotting\u002Fdrawing caveats.\n\n## Route away\n\n- For end-to-end evaluation from ground-truth and detection text folders, use `..\u002Ffile-evaluation\u002FSKILL.md`; that path owns safe folder parsing and the self-contained CLI helper.\n- For COCO metrics, the newer successor toolkit, model training, inference, or benchmark-paper analysis, do not use this legacy PASCAL VOC API skill.\n\n## Operating checklist\n\n1. Prepare a Python process that can import from a user-provided checkout or copied `lib\u002F` directory. The repo is source-style, so add the `lib` directory itself to `sys.path`; do not expect a pip package import.\n2. Read `references\u002Fapi-reference.md` for verified signatures, enums, class responsibilities, and in-memory usage patterns.\n3. Read `references\u002Fmetric-behavior.md` before interpreting AP, TP\u002FFP, duplicate detections, relative coordinates, or IoU edge cases.\n4. Use `scripts\u002Fapi_metric_smoke.py --repo-root PATH` or `--lib-dir PATH` to verify a user-provided checkout\u002Fcopy before relying on it.\n5. If import, plotting, drawing, or coordinate errors occur, use `references\u002Ftroubleshooting.md`.\n\n## Minimal in-memory pattern\n\n```python\nimport sys\nfrom pathlib import Path\n\nlib_dir = Path(\"\u002Fpath\u002Fto\u002Fcopied-or-checked-out\u002Flib\")\nsys.path.insert(0, str(lib_dir))\n\nfrom BoundingBox import BoundingBox\nfrom BoundingBoxes import BoundingBoxes\nfrom Evaluator import Evaluator\nfrom utils import BBFormat, BBType, CoordinatesType, MethodAveragePrecision\n\nboxes = BoundingBoxes()\nboxes.addBoundingBox(BoundingBox(\"img-1\", \"person\", 10, 10, 50, 50,\n                                 CoordinatesType.Absolute, bbType=BBType.GroundTruth,\n                                 format=BBFormat.XYX2Y2))\nboxes.addBoundingBox(BoundingBox(\"img-1\", \"person\", 10, 10, 50, 50,\n                                 CoordinatesType.Absolute, bbType=BBType.Detected,\n                                 classConfidence=0.99, format=BBFormat.XYX2Y2))\nmetrics = Evaluator().GetPascalVOCMetrics(\n    boxes,\n    IOUThreshold=0.5,\n    method=MethodAveragePrecision.EveryPointInterpolation,\n)\n```\n\nThis should produce one `person` result with AP `1.0`, total positives `1`, total TP `1`, and total FP `0`.\n\n## Distilled evidence\n\nThis sub-skill distills the repository's `lib\u002FBoundingBox.py`, `lib\u002FBoundingBoxes.py`, `lib\u002FEvaluator.py`, `lib\u002Futils.py`, and the programmatic examples under `samples\u002Fsample_1\u002F` and `samples\u002Fsample_2\u002F`. Those paths are evidence for the guidance here; runtime use should rely on the bundled references and script above.\n",{"name":5,"license":15,"metadata":24,"description":7,"disable-model-invocation":26},{"disco-role":25},"operating",true,"main","d69096e239f2a89aabc2cd078c47664a9d3b1e11","07-后端与架构\u002Fobject-detection-metrics\u002Fsub-skills\u002Fpython-api",3,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts","https:\u002F\u002Fgithub.com\u002Flza6","个人vx：Tf00798\r\n个人✈：@TFGY999","2026-10-08 14:29:22",{"source":8,"skillName":5,"commands":36,"prompt":46,"zipAvailable":26},[37,40,43],{"tool":38,"command":39},"npx","npx skills add lza6\u002FArmor-piercing-system-prompts --skill python-api",{"tool":41,"command":42},"bunx","bunx skills add lza6\u002FArmor-piercing-system-prompts --skill python-api",{"tool":44,"command":45},"pnpm","pnpm dlx skills add lza6\u002FArmor-piercing-system-prompts --skill python-api","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002Fsub-skills\u002Fpython-api\u002FSKILL.md",[48,54,58],{"path":49,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":52,"sourceHtmlUrl":53},"references\u002Fapi-reference.md","REFERENCE","参考文档",8289,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002Fsub-skills\u002Fpython-api\u002Freferences\u002Fapi-reference.md",{"path":55,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":56,"sourceHtmlUrl":57},"references\u002Fmetric-behavior.md",4951,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002Fsub-skills\u002Fpython-api\u002Freferences\u002Fmetric-behavior.md",{"path":59,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":60,"sourceHtmlUrl":61},"references\u002Ftroubleshooting.md",3964,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002Fsub-skills\u002Fpython-api\u002Freferences\u002Ftroubleshooting.md",[63,70,75,82,89,96],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":19},"01M7FFG485KY83TD6HSC4YPCMC","obsidian-clipper-template-creator","Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobsidian-clipper-template-creator\u002FSKILL.md",[],[],{"skillNo":71,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":19},"01M7FFG0T6AZ0STEJPSB3CX84K","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobsidian-clipper-template-creator-antigravity-awesome-skills-main\u002FSKILL.md",[],[],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":19},"01M7FFFVZQZ2GJ0C0TGP7JHD20","file-evaluation","Folder-based PASCAL VOC AP\u002FmAP evaluation from ground-truth and detection text files.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002Fsub-skills\u002Ffile-evaluation\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":19},"01M7FFFSFNYSE77SJ6PE1CK2DA","object-detection-metrics","Guides legacy Object-Detection-Metrics PASCAL VOC AP\u002FmAP evaluation from detection text folders and direct Python API classes.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002FSKILL.md",[],[],{"skillNo":90,"name":91,"nameZh":6,"description":92,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":19},"01M7FFFP0GCK1RVXBCPQ8APBMT","nx-workspace-patterns","Configure and optimize Nx monorepo workspaces. Use when setting up Nx, configuring project boundaries, optimizing build caching, or implementing affected commands.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fnx-workspace-patterns\u002FSKILL.md",[],[],{"skillNo":97,"name":91,"nameZh":6,"description":92,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":19},"01M7FFFJBWP8P1E18AET8X31X0","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fnx-workspace-patterns-antigravity-awesome-skills-main\u002FSKILL.md",[],[]]