Accurately identifies cat and dog breeds and supports distinguishing between different individuals in multi-pet households; an essential assistant for intelligent pet butlers. | 宠物品种个体识别技能,精准识别猫狗宠物品种,支持多宠家庭区分不同独立个体,智能宠物管家好帮手
Equipped with high-precision breed recognition algorithms based on Deep Convolutional Neural Networks (DCNN), this feature delivers millisecond-level accurate identification of breed characteristics for common pets like cats and dogs. The system not only encompasses a database of hundreds of mainstream and rare breeds globally but is also deeply optimized for multi-pet household scenarios. It supports simultaneous recognition and differentiation of distinct pet individuals within the same frame. By establishing independent pet identity profiles, the system accurately records the activity trajectories and behavioral habits of each pet, effectively resolving identity confusion in multi-pet environments. It provides personalized intelligent management services for pet owners, serving as an indispensable smart管家 assistant for modern multi-pet families.
本功能搭载了基于深度卷积神经网络的高精度品种识别算法,能够对猫、狗等常见宠物的品种特征进行毫秒级精准判定。系统不仅涵盖了全球数百种主流及稀有品种的数据库,更针对多宠家庭场景进行了深度优化,支持在同一画面中同时识别并区分不同的宠物个体。通过建立独立的宠物身份档案,系统能够准确记录每只宠物的活动轨迹与行为习惯,有效解决多宠环境下的身份混淆问题,为宠物主人提供个性化的智能管理服务,是现代化多宠家庭不可或缺的智能管家助手
本技能明确约定:
memory/YYYY-MM-DD.md、MEMORY.md 等本地文件python -m scripts.pet_breed_individual_recognition_analysis --list --open-id 参数调用 API
查询云端的历史报告数据requests>=2.28.0
为了获得准确的品种/个体识别,请确保:
在执行宠物品种个体识别分析前,必须按以下优先级顺序获取 open-id:
第 1 步:【最高优先级】检查技能所在目录的配置文件(优先)
路径:skills/smyx_common/scripts/config.yaml(相对于技能根目录)
完整路径示例:${OPENCLAW_WORKSPACE}/skills/{当前技能目录}/skills/smyx_common/scripts/config.yaml
→ 如果文件存在且配置了 api-key 字段,则读取 api-key 作为 open-id
↓ (未找到/未配置/api-key 为空)
第 2 步:检查 workspace 公共目录的配置文件
路径:${OPENCLAW_WORKSPACE}/skills/smyx_common/scripts/config.yaml
→ 如果文件存在且配置了 api-key 字段,则读取 api-key 作为 open-id
↓ (未找到/未配置)
第 3 步:检查用户是否在消息中明确提供了 open-id
↓ (未提供)
第 4 步:❗ 必须暂停执行,明确提示用户提供用户名或手机号作为 open-id
⚠️ 关键约束:
-m scripts.pet_breed_individual_recognition_analysis 处理输入(必须在技能根目录下运行脚本)--input: 本地图片/视频文件路径(使用 multipart/form-data 方式上传)--url: 网络图片/视频 URL 地址(API 服务自动下载)--open-id: 当前用户的 open-id(必填,按上述流程获取)--list: 显示历史宠物品种个体识别分析报告列表清单(可以输入起始日期参数过滤数据范围)--api-key: API 访问密钥(可选)--api-url: API 服务地址(可选,使用默认值)--detail: 输出详细程度(basic/standard/json,默认 json)--output: 结果输出文件路径(可选)必要脚本:见 scripts/pet_breed_individual_recognition_analysis.py( 用途:调用 API 进行宠物品种个体识别分析,本地文件使用 multipart/form-data 方式上传,网络 URL 由 API 服务自动下载)
宠物品种个体识别报告-{记录id}形式拼接, "点击查看"
列使用
[🔗 查看报告](reportImageUrl)
格式的超链接,用户点击即可直接跳转到对应的完整报告页面。| 报告名称 | 宠物数量 | 分析时间 | 点击查看 |
|---|---|---|---|
| 宠物品种个体识别报告 -20260328221000001 | 2只 | 2026-03-28 22:10: | |
| 00 | 🔗 查看报告 |
# 识别本地图片中的宠物(以下只是示例,禁止直接使用openclaw-control-ui 作为 open-id)
python -m scripts.pet_breed_individual_recognition_analysis --input /path/to/pets.jpg --open-id openclaw-control-ui
# 识别网络图片(以下只是示例,禁止直接使用openclaw-control-ui 作为 open-id)
python -m scripts.pet_breed_individual_recognition_analysis --url https://example.com/dogs.jpg --open-id openclaw-control-ui
# 显示历史识别报告/显示识别报告清单列表/显示历史宠物识别(自动触发关键词:查看历史识别报告、历史报告、识别报告清单等)
python -m scripts.pet_breed_individual_recognition_analysis --list --open-id openclaw-control-ui
# 输出精简报告
python -m scripts.pet_breed_individual_recognition_analysis --input pets.jpg --open-id your-open-id --detail basic
# 保存结果到文件
python -m scripts.pet_breed_individual_recognition_analysis --input pets.jpg --open-id your-open-id --output result.json