返回顶部
a

appearance-score

>-

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
66
下载量
0
收藏
概述
安装方式
版本历史

appearance-score

# Appearance scoring (predict) ## Endpoint - **Method**: `POST` - **URL**: `https://synerunify.com/api/process/appearance/predict` - **Content-Type**: `multipart/form-data` - **Field**: `image` (required; image file; use a real image MIME such as `image/jpeg`) - **Query**: Omit; server defaults apply. ## Response JSON Top level: - `code`: `200` means success - `message`: human-readable status text - `data`: present on success; may be incomplete on failure Inside `data`: - `count`: number of scored faces - `size`: `{ "width", "height" }` of the original image in pixels - `faces`: array of items with: - `region`: `{ x1, y1, x2, y2, width, height }` in original-image pixels - `score`: float; you may `round` for display On errors or no faces, read `message`; `data.faces` may be empty. ## Examples **curl** ```bash curl -sS -X POST "https://synerunify.com/api/process/appearance/predict" \ -F "image=@/path/to/photo.jpg" ``` **Python** ```python import requests url = "https://synerunify.com/api/process/appearance/predict" with open("photo.jpg", "rb") as f: r = requests.post(url, files={"image": ("photo.jpg", f, "image/jpeg")}, timeout=120) r.raise_for_status() payload = r.json() if payload.get("code") != 200: raise RuntimeError(payload.get("message", "API error")) faces = payload["data"]["faces"] scores = [round(f["score"]) for f in sorted(faces, key=lambda x: x["region"]["x1"])] ``` ## Agent rules 1. Upload only via multipart field **`image`**; do not append query params; do not switch to JSON/Base64 unless the API docs explicitly say so. 2. When multiple faces are present, sort by `region.x1` (left-to-right) before reporting scores. 3. On failure, surface `message` and the HTTP status first.

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 appearance-score-1776003483 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 appearance-score-1776003483 技能

通过命令行安装

skillhub install appearance-score-1776003483

下载 Zip 包

⬇ 下载 appearance-score v1.0.0

文件大小: 1.8 KB | 发布时间: 2026-4-13 09:22

v1.0.0 最新 2026-4-13 09:22
Initial release: Multi-face appearance scoring via Synerunify API.

- Supports POSTing images using multipart/form-data for face attractiveness/appearance scoring.
- Handles user requests in English or Chinese for face scoring.
- Returns detailed response including face regions, scores, and image size.
- Sorts multiple face scores left-to-right for reporting.
- On failure, surfaces error message and HTTP status.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部