WHO Growth Charts
2026-04-01
新闻来源:网淘吧
围观:9
电脑广告
手机广告
生成带有百分位曲线和儿童数据叠加的WHO儿童生长标准图表。
功能
- 年龄别身高(0-19岁)
- 年龄别体重(0-10岁)
- 年龄别BMI(0-19岁)
- 支持男孩和女孩
- 按需下载WHO数据自 cdn.who.int(本地缓存)
- 叠加儿童实际测量数据并显示趋势线
示例
| 身高 | 体重 | BMI |
|---|---|---|
| <img src="examples/anna_height.png" width="250"> | <img src="examples/anna_weight.png" width="250"> | <img src="examples/anna_bmi.png" width="250"> |
前提条件
安装Python依赖项:

pip install pandas matplotlib scipy openpyxl
使用方法
基础图表生成
python3 ./scripts/growth_chart.py "Child Name" "DD.MM.YYYY" --sex F --type all
参数: 姓名
:儿童姓名(用于图表标题)出生日期:出生日期,格式为DD.MM.YYYY--sex/-s:F(女性)或M(男性)— 默认值:F--type/-t:身高、体重、身体质量指数或全部— 默认值:全部--data//-d:包含测量数据的JSON文件--output/-o:图表输出目录
使用测量数据
创建一个包含身高/体重测量数据的JSON文件(身高以米为单位,体重以千克为单位):
{
"heights": [ ["2024-01-15T10:00:00", 1.05] ],
"weights": [ ["2024-01-15T10:00:00", 17.5] ]
}
python3 ./scripts/growth_chart.py "Emma" "06.07.2016" --sex F --data emma_data.json --type all
与Withings集成
结合withings-family技能自动获取体重数据:
# Get Withings weight data (assuming withings-family skill is installed)
python3 ../withings-family/scripts/withings.py emma body > /tmp/withings.json
# Parse and generate charts
# (The growth chart script handles Withings JSON format if implemented, otherwise transform it)
输出
默认情况下,图表和缓存文件将写入:
<workspace>/who-growth-charts/<workspace>/who-growth-charts/cache/
其中<workspace>是包含您的skills/目录的文件夹(从当前工作目录或脚本位置自动检测)。
文章底部电脑广告
手机广告位-内容正文底部
上一篇:Ccsinfo
下一篇:Windows Remote


微信扫一扫,打赏作者吧~