用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/cxcscmu/SkillLearnBench --skill run2-object-counting命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Handles reading, populating, and saving .docx files using the python-docx library. Use this skill for any tasks involving template filling or modifying Word documents.
Perform various data analysis on SEC 13-F and obtain some insights of fund activities such as number of holdings, AUM, and change of holdings between two quarters.
This skill includes search capability in 13F, such as fuzzy search a fund information using possibly inaccurate name, or fuzzy search a stock cusip info using its name.
基于 SOC 职业分类
正在显示 SKILL.md
| name | run2_object-counting |
| description | Count the number of object occurrences in an image using OpenCV template matching in Python. |
Count the number of objects in an image using computer vision, specifically Normalized Cross-Correlation (Template Matching).
The count_objects.py script provided in the environment performs template matching and outputs the number of matches found.
python3 /root/.agents/skills/object_counter/scripts/count_objects.py \
--tool count \
--input_image <image_file> \
--object_image <object_template_file> \
--threshold <threshold_value> \
--dedup_min_dist <distance>
Arguments Explained:
--input_image: The target image where objects should be counted.--object_image: The template image of the object you are searching for.--threshold: The matching confidence threshold (e.g., 0.9 for high fidelity).--dedup_min_dist: Minimum pixel distance to deduplicate overlapping matches (e.g., 3).python3 /root/.agents/skills/object_counter/scripts/count_objects.py \
--tool count \
--input_image frame_001.png \
--object_image coin.png \
--threshold 0.9 \
--dedup_min_dist 3
The script prints the result in the following format to standard output:
There are X objects (\<template_path>`) in file: `<image_path>``
You can parse this programmatically using regular expressions in a Python wrapper script:
import re, subprocess
result = subprocess.run(cmd, stdout=subprocess.PIPE, text=True)
match = re.search(r'There are (\d+) objects', result.stdout)
if match:
count = int(match.group(1))