展示HN:获取任何食谱的营养标签(YouTube、网站、文本、图片)
大家好,
我喜欢在YouTube上观看烹饪视频,有一天我突然想到:我能否立即获取这个食谱的营养价值?
问题是:优秀的食谱随处可见,但要弄清楚实际的营养成分却是一项繁琐的工作。
我们大多数追踪卡路里或宏量营养素的人都需要:
* 手动获取每种成分的营养信息。
* 为计算而与电子表格斗争。
* 或者干脆放弃,吃掉那份千层面。
说实话,没人喜欢这样,尤其是当你只想做饭和享受美食的时候。
因此,我创建了Recp.ai。这是一个免费的工具,可以为你提取营养数据。只需提供一个YouTube链接、一个网站上的食谱、一张食谱书页面的照片,甚至只是粘贴的文本。它会识别成分和数量,与美国农业部数据库进行匹配,并为你提供完整的营养标签。
最初这是一个脚本,用于从YouTube的转录文本中提取成分,使用的是Gemini。然后我变得痴迷。为什么不支持任何网站呢?于是我添加了一个抓取工具。那如果是任何成分列表呢?我增加了文本解析功能。那食谱书呢?现在它使用Google Cloud Vision,你只需上传或拍摄食谱的照片。
我想构建一个轻量级、快速且简单的工具,真正能被你使用。没有注册,没有广告,隐私优先。
我满意的是?它可以处理各种来源。我给它提供了一张我旧版Escoffier食谱书的照片,结果它成功了。
接下来呢?我计划使用Google Cloud Vision来识别菜肴,比如“牛肉河粉”,然后它会找出其典型成分,并生成一个估算的营养标签。接着会询问用户确认菜肴,以确保结果尽可能准确。如果你觉得这是正确的方向,欢迎提出建议。
期待听到你的想法,如果这对你的餐前准备有帮助的话。只是想分享我所构建的东西,因为我希望它能存在并解决一个问题。
查看原文
Heya HN,<p>I love watching cooking videos on YouTube, and one day an idea sparked: Can I instantly get the nutritional values for this recipe?<p>The problem: Great recipes are everywhere, but figuring out the actual nutrition is a chore.<p>Most of us who track calories or macros have to:<p>* Manually get nutritional info for every ingredient.<p>* Wrestle with spreadsheets for calculation.<p>* Or just give up and eat that lasagna.<p>Let’s be real: no one enjoys that, especially when you just want to cook and eat your food.<p>So I built Recp.ai. It’s a free tool that pulls the nutrition data for you. Just give it a YouTube link, a recipe from a website, a photo of a cookbook page, or even just pasted text. It identifies the ingredients and quantities, matches them against the USDA database, and gives you a full nutrition label.<p>It started as a script to pull ingredients from YouTube transcripts using Gemini. Then I got obsessed. Why not any website? So I added a scraper. What about any list of ingredients? Added text parsing. How about a cookbook? Now it uses Google Cloud Vision so you can just upload or snap a photo of the recipe.<p>I wanted to build something lightweight, fast, and simple that you'd actually use. No sign-ups. No ads. Privacy-first.<p>What I’m happy with? It works on a huge variety of sources. I fed it a photo of my old Escoffier cookbook recipe and voila - it works.<p>What's next? I'm planning to use Google Cloud Vision to identify the dish, say "Beef Pho", it'd figure out its typical ingredients, and generate an estimated nutrition label. It would then ask users to confirm the dish, so the result is as accurate as possible. Any suggestions here if this would be the right way?<p>Would love to hear your thoughts, and if this feels like something that would with your meal prep. Just sharing something I built because I wanted it to exist and solve a problem.