← 返回
未分类 Key

Imou Open Multimodal Analysis

对指定账号下设备通道的实时抓图地址进行AI智能场景分析。AI scene analysis for device channel snapshot URLs under an Imou account. 支持:人形检测、抽烟检测、玩手机检测、工装检测与离岗检测(需预先配置工装模板)、货架检测、垃圾检测、热力图数据...
对指定账号下设备通道的实时抓图地址进行AI智能场景分析。AI scene analysis for device channel snapshot URLs under an Imou account. 支持:人形检测、抽烟检测、玩手机检测、工装检测与离岗检测(需预先配置工装模板)、货架检测、垃圾检测、热力图数据...
imou-openplatform imou-openplatform 来源
未分类 clawhub v1.0.0 1 版本 99781.2 Key: 需要
★ 0
Stars
📥 456
下载
💾 0
安装
1
版本
#latest

概述

Imou Multimodal Analysis

AI scene analysis for device channel snapshot URLs (or any image URL) under an Imou account: human detection, smoking detection, phone-using detection, workwear and absence detection (with pre-configured workwear repository), shelf detection, trash detection, heatmap statistics, and face analysis. Also manage detect repositories and targets (create/list/delete repository; add/list/delete targets).

Quick Start

Install dependency:

pip install requests

Set environment variables (required):

export IMOU_APP_ID="your_app_id"
export IMOU_APP_SECRET="your_app_secret"
export IMOU_BASE_URL="your_base_url"

API Base URL (IMOU_BASE_URL) (required; no default—must be set explicitly):

| Region | Data Center | Base URL |

|----------------|-----------------|----------|

| Mainland China | — | https://openapi.lechange.cn |

| Overseas | East Asia | https://openapi-sg.easy4ip.com:443 |

| Overseas | Central Europe | https://openapi-fk.easy4ip.com:443 |

| Overseas | Western America | https://openapi-or.easy4ip.com:443 |

Note: AI APIs are value-added; apply for access via Imou if needed.

Run analysis on an image URL (e.g. device channel snapshot from live coverUrl or any accessible URL):

# Human detection
python3 {baseDir}/scripts/multimodal_analysis.py analyze HUMAN "https://example.com/snapshot.jpg"

# Smoking detection
python3 {baseDir}/scripts/multimodal_analysis.py analyze SMOKING "https://example.com/snapshot.jpg"

# Phone-using detection
python3 {baseDir}/scripts/multimodal_analysis.py analyze PHONE "https://example.com/snapshot.jpg"

# Workwear detection (optional repositoryId and threshold)
python3 {baseDir}/scripts/multimodal_analysis.py analyze WEAR "https://example.com/snapshot.jpg" [--repository-id REPO_ID] [--threshold 0.8]

# Absence detection (requires workwear repositoryId)
python3 {baseDir}/scripts/multimodal_analysis.py analyze ABSENCE "https://example.com/snapshot.jpg" --repository-id REPO_ID [--threshold 0.8]

# Shelf detection
python3 {baseDir}/scripts/multimodal_analysis.py analyze SHELF "https://example.com/snapshot.jpg"

# Trash detection
python3 {baseDir}/scripts/multimodal_analysis.py analyze TRASH "https://example.com/snapshot.jpg"

# Heatmap (threshold required; optional exclude repository IDs)
python3 {baseDir}/scripts/multimodal_analysis.py analyze HEATMAP "https://example.com/snapshot.jpg" --threshold 0.8 [--exclude-repos ID1,ID2]

# Face analysis
python3 {baseDir}/scripts/multimodal_analysis.py analyze FACE "https://example.com/snapshot.jpg"

Repository and target management:

# Create detect repository (face | human for workwear)
python3 {baseDir}/scripts/multimodal_analysis.py repo create "MyWorkwearLib" human

# List repositories (paginated)
python3 {baseDir}/scripts/multimodal_analysis.py repo list [--page 1] [--page-size 20]

# Delete repository
python3 {baseDir}/scripts/multimodal_analysis.py repo delete REPOSITORY_ID

# Add target to repository (image URL or base64 type)
python3 {baseDir}/scripts/multimodal_analysis.py target add REPOSITORY_ID "TargetName" "https://image.url" [--type url]
python3 {baseDir}/scripts/multimodal_analysis.py target add REPOSITORY_ID "TargetName" "BASE64_DATA" --type base64

# List targets in repository
python3 {baseDir}/scripts/multimodal_analysis.py target list REPOSITORY_ID [--page 1] [--page-size 20]

# Delete target from repository
python3 {baseDir}/scripts/multimodal_analysis.py target delete REPOSITORY_ID TARGET_ID

Capabilities

  1. Human detection: Detect whether the image contains human figure(s).
  2. Smoking detection: Detect whether someone is smoking in the image.
  3. Phone-using detection: Detect whether someone is using a phone.
  4. Workwear detection: Detect whether personnel are in compliance with workwear (optional workwear repository and threshold).
  5. Absence detection: Detect absence from post (requires pre-configured workwear repository).
  6. Shelf detection: Detect shelf status (e.g. empty/full).
  7. Trash detection: Detect trash overflow.
  8. Heatmap: Get heatmap statistics for regions (threshold required; optional exclude repository IDs to filter by workwear).
  9. Face analysis: Face detection/analysis.
  10. Detect repository: Create (face/human), list by page, delete.
  11. Target in repository: Add (URL or Base64), list by page, delete.

Request Header

All requests to Imou Open API must include the header Client-Type: OpenClaw for platform identification.

API References

| API | Doc |

|-----|-----|

| AI overview | https://open.imou.com/document/pages/f1b9a3/ |

| Dev spec | https://open.imou.com/document/pages/c20750/ |

| Get accessToken | https://open.imou.com/document/pages/fef620/ |

| humanDetect | https://open.imou.com/document/pages/93rflk/ |

| smokingDetect | https://open.imou.com/document/pages/kf70sq/ |

| phoneUsingDetect | https://open.imou.com/document/pages/jf78o9/ |

| workwearDetect | https://open.imou.com/document/pages/2jisd8/ |

| absenceDetect | https://open.imou.com/document/pages/29dicv/ |

| shelfStatusDetect | https://open.imou.com/document/pages/2oud87/ |

| trashOverflowDetect | https://open.imou.com/document/pages/cdmfd6/ |

| heatmapDetect | https://open.imou.com/document/pages/fdjfg9/ |

| faceAnalysis | https://open.imou.com/document/pages/28d7ug/ |

| createAiDetectRepository | https://open.imou.com/document/pages/34ff11/ |

| listAiDetectRepositoryByPage | https://open.imou.com/document/pages/5e8222/ |

| deleteAiDetectRepository | https://open.imou.com/document/pages/5esi8a/ |

| addAiDetectTarget | https://open.imou.com/document/pages/ikdf78/ |

| listAiDetectTarget | https://open.imou.com/document/pages/278dkj/ |

| deleteAiDetectTarget | https://open.imou.com/document/pages/odty82/ |

See references/imou-ai-api.md for request/response formats.

Tips

  • Token: Fetched automatically per run; valid 3 days. Do not cache across runs unless you implement expiry handling.
  • Image input: Use type "0" for image URL, "1" for Base64. Snapshot URL can be device channel live cover URL (e.g. from imou-open-device-video skill liveList / bindDeviceLive streams[].coverUrl) or any accessible image URL.
  • Workwear / Absence: Create a human-type repository first, add workwear target images, then pass repositoryId to workwearDetect and absenceDetect.
  • Heatmap: threshold in (0,1]. Use excludeRepositoryIds to exclude matched workwear persons (e.g. staff) and count only valid customers.
  • detectRegion: Optional; up to 3 regions, each 3–6 points (normalized 0–1). Omit to analyze full image.

Data Outflow

| Data | Sent to | Purpose |

|------|---------|--------|

| appId, appSecret | Imou Open API | Obtain accessToken |

| accessToken, image URL or Base64, repositoryId, threshold, etc. | Imou Open API | AI detection and repository/target management |

All requests go to the configured IMOU_BASE_URL. No other third parties.

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-30 21:28 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

Imou Open Device Video

imou-openplatform
imou / Imou / 乐橙 / lechange 设备视频与录像技能。支持实时预览 live HLS、本地/云录像片段查询、录像回放 HLS。 Imou/Lechange device video skill for live HLS
★ 0 📥 516

Imou Open Device Operate

imou-openplatform
imou / Imou / 乐橙 / lechange 设备操控技能。支持 PTZ 云台控制、snapshot 抓图与下载。 Imou/Lechange device operation for PTZ control, snapshot
★ 0 📥 578

Imou Open Device Manage

imou-openplatform
Imou/乐橙设备管理。支持查看账号设备列表、设备详情(序列号/型号/在离线/名称/通道)、按序列号查询、修改设备或通道名称。 Use for requests in any language (e.g. 中文/English) about
★ 0 📥 463