Skill Registration and Usage
🎯 What This Tool Does
visual understanding platform. This tool enables you to:
- - Register Skills - Register detection skills from platform locally
- Invoke Skills - Call registered skills with images or video frames
- Visualize Results - Draw bounding boxes, generate grid references, preview ROI/Tripwire
- Define Detection Areas - Use interactive workflows to define ROI (electronic fencing) or Tripwire (detection lines)
Supported Detection Types: Person detection, pedestrian counting, vehicle recognition, OCR, pose estimation, object tracking, etc.
🔧 Prerequisites
Get API Key
- 1. Activate trial package
📚 Usage Guide
Basic Workflow
CODEBLOCK0
Or register a skill first then use it:
CODEBLOCK1
Define Detection Areas
Need to define regions of interest (ROI) or detection lines (Tripwire)?
Both workflows include complete interactive steps and example dialogs.
View Complete Documentation
💡 Common Tasks
Register a Skill
After obtaining an ep-id:
Invoke a Skill
CODEBLOCK2
With ROI:
CODEBLOCK3
With Tripwire:
CODEBLOCK4
Preview ROI/Tripwire
Preview on image before invoking:
CODEBLOCK5
Generate Grid
Help users specify point locations using grid coordinates:
CODEBLOCK6
技能注册与使用
🎯 工具功能
视觉理解平台。该工具可让您:
- - 注册技能 - 从平台本地注册检测技能
- 调用技能 - 使用图像或视频帧调用已注册的技能
- 可视化结果 - 绘制边界框、生成网格参考、预览ROI/绊网
- 定义检测区域 - 使用交互式工作流定义ROI(电子围栏)或绊网(检测线)
支持的检测类型: 人员检测、行人计数、车辆识别、OCR、姿态估计、目标跟踪等。
🔧 前置条件
获取API密钥
- 1. 激活试用包
📚 使用指南
基本工作流
bash
1. 列出可用技能(预设和已注册)
node scripts/invoke.mjs --list
2. 调用技能
echo {input0:{image:photo.jpg}} | node scripts/invoke.mjs ep-xxxx-yyyy
3. 可视化或显示结果(可选)
node scripts/visualize.mjs photo.jpg
或先注册技能再使用:
bash
然后调用
echo {input0:{image:photo.jpg}} | node scripts/invoke.mjs ep-xxxx-yyyy
定义检测区域
需要定义感兴趣区域(ROI)或检测线(绊网)?
两个工作流均包含完整的交互步骤和示例对话。
查看完整文档
💡 常见任务
注册技能
获取ep-id后:
调用技能
bash
echo {input0:{image:photo.jpg}} | node scripts/invoke.mjs
带ROI:
bash
echo {input0:{image:photo.jpg,roi:{...}}} | node scripts/invoke.mjs
带绊网:
bash
echo {input0:{image:photo.jpg,tripwire:{...}}} | node scripts/invoke.mjs
预览ROI/绊网
在调用前在图像上预览:
bash
node scripts/visualize.mjs photo.jpg [] preview.png \
--overlays [{kind:ROI,name:zone,points:[...]}]
生成网格
帮助用户使用网格坐标指定点位置:
bash
node scripts/show-grid.mjs photo.jpg grid.png