← 返回
未分类 中文

Photo Calorie Tracker

Photo Calorie Tracker - Recognizes food photos, logs daily calorie intake, and analyzes any date range. Use when: the user sends food images or asks about ca...
照片卡路里追踪器 - 识别食物照片,记录每日卡路里摄入,并可在任意日期范围内进行分析。使用时机:用户发送食物图片或查询卡路里相关信息。
bobo23456 bobo23456 来源
未分类 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 618
下载
💾 0
安装
1
版本
#latest

概述

🔥 Photo Calorie Tracker (image-calorie-tracker)

Recognizes food photos, logs daily calorie intake, and generates reports.

When to Run

  • The user sends food images
  • The user asks about calories over the past X days (X is any number)

Workflow

Log Meals

  1. Copy images to /root/.openclaw/workspace/temp_qqdata/YYYY-MM-DD-meal.jpg
  2. Use the image tool to recognize food
  3. Estimate calories for each food item
  4. Update /root/.openclaw/workspace/memory/YYYY-MM-DD.md

Generate Report

  1. Read records for the target dates from /root/.openclaw/workspace/memory/
  2. Read the target calories from /root/.openclaw/workspace/skills/image-calorie-tracker/config/target_calorie.txt
  3. Output the report in the required format

Output Format

📊 Calorie Tracking | Target:{target}

【MM-DD】{status}
  {Breakfast if any}: {calories}
  {Lunch if any}: {calories}
  {Dinner if any}: {calories}
  {Snack if any}: {calories}

Status Rules

  • Incomplete: lunch or dinner is missing (breakfast does not count)
  • {percent}%: difference between total calories and target; positive means over, negative means under

Meal Display Rules

  • Show only lunch, dinner, and snack (breakfast not counted)
  • Omit meals that are not recorded
  • Calorie unit: kcal

Meal Definitions

  • Lunch: around 12:00, about 300-800 kcal
  • Dinner: around 18:00, about 400-1000 kcal
  • Snack: snacks/desserts between lunch and dinner

Food Calorie Reference

CategoryFoodCalories (per 100g)
--------------------------
StaplesRice130 kcal
StaplesMixed grain rice120 kcal
MeatFried chicken cutlet280 kcal
MeatStir-fried pork slices180 kcal
VegetablesGreen pepper with pork150 kcal
VegetablesShredded potatoes120 kcal
BakeryBread/Cake250-350 kcal

File Paths

  • Temp images: /root/.openclaw/workspace/temp_qqdata/
  • Daily records: /root/.openclaw/workspace/memory/YYYY-MM-DD.md
  • Target calories: /root/.openclaw/workspace/skills/image-calorie-tracker/config/target_calorie.txt

Example Output

📊 Calorie Tracking | Target:2100

【03-16】+7%
  Lunch: 1115

【03-17】Incomplete
  Lunch: 820
  Snack: 280

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-02 06:03 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

life-service

Sonoscli

steipete
控制Sonos音箱(发现/状态/播放/音量/分组)
★ 56 📥 85,221
life-service

Weather

steipete
获取当前天气和预报(无需API密钥)
★ 457 📥 229,338
life-service

Caldav Calendar

asleep123
使用 vdirsyncer + khal 同步并查询 CalDAV 日历(iCloud、Google、Fastmail、Nextcloud 等)。适用于 Linux。
★ 244 📥 30,676