360 Secure SkillHub
360 安全技能中心

WiseDiag-Calories

该工具借助AI识别图片中的各类食物,估算每份的热量及关键营养成分,结果自动保存为Markdown文件,助力健康饮食与体重管理。使用需配置WiseDiag API密钥,输入公开食物图片URL,可附加问题、指定输出文件名。图片URL将发送至WiseDiag云端处理,内容不永久存储。

wisediag
wisediag
热度 16.03
最近更新 2026-05-21 15:30:52
分类:生活依赖:代码执行 / 第三方 API / 读写文件应用场景:健康

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add wisediag-calories
Metadata
name
wisediag-calories
description
Food Calorie Estimator — Identify food items and estimate calories from an image URL via WiseDiag AI. Usage: Provide a food image URL and say Use WiseDiag Calories to analyze this.
registry
{"homepage":"https://github.com/wisediag/WiseDiag-Calories","author":"wisediag","credentials":{"required":true,"env_vars":["WISEDIAG_API_KEY"]}}

⚠️ Privacy Notice

Please read before installing:

This tool transmits image URLs to WiseDiag cloud servers for recognition and processing.

Do not upload images containing sensitive or private content unless:

  • You trust WiseDiag's data handling policy
  • You accept that the image content will be transmitted to and processed remotely

WiseDiag Food Calorie Estimator (OpenClaw Skill)

Automatically identify food items in images using AI, estimate calories and nutritional content per serving, and support healthy eating and weight management.

License Python

Features

  • Identify food types in images (meals, snacks, beverages, etc.)
  • Estimate calories (kcal) and key nutritional content per serving
  • Results are automatically saved as a Markdown file

Installation

pip install -r requirements.txt

🔑 API Key Configuration (Required)

Get your API Key: 👉 https://console.wisediag.com/apiKeyManage

# Temporary (current terminal session only)
export WISEDIAG_API_KEY=your_api_key_here

# Permanent (add to ~/.zshrc or ~/.bashrc)
echo 'export WISEDIAG_API_KEY=your_api_key_here' >> ~/.zshrc
source ~/.zshrc

Usage (Step-by-Step)

Do not call any API or HTTP endpoints directly — use only the script below.

Step 1: Set your API Key (if not already set):

export WISEDIAG_API_KEY=your_api_key_here

Step 2: Run the script with a food image URL:

cd scripts

# Basic usage: pass an image URL
python3 calories.py --image "https://example.com/food.jpg"

# Specify a question
python3 calories.py --image "https://example.com/food.jpg" --question "Roughly how many calories are in this meal?"

# Specify output filename
python3 calories.py --image "https://example.com/food.jpg" -n "lunch_20260324"

Results are automatically saved to ~/.openclaw/workspace/WiseDiag-Calories/{name}.md — no manual saving needed.

Parameters

Parameter Description
--image Public URL of the food image (required)
--question Question to ask (default: How many calories are in the food shown in this image?)
-n, --name Output filename (without extension)
-o, --output Output directory (default: ~/.openclaw/workspace/WiseDiag-Calories)

FAQ

"WISEDIAG_API_KEY is not set" error: Verify the environment variable is set correctly by running echo $WISEDIAG_API_KEY.

"Authentication failed" error: Your API Key may be invalid or expired. Visit console.wisediag.com to check or regenerate it.

Image not recognized: Ensure the image URL is publicly accessible and in JPG, JPEG, or PNG format.

Data Privacy

Image URLs are sent to the WiseDiag API for analysis. Image content is not permanently stored, and results are returned directly to you.

License

MIT