Developer Builds a Rokid AIUI Photo-Based Plant Recognition Agent
A developer documented a Rokid AIUI plant-recognition agent that captures a plant image, sends it to LanguageModel for identification, announces the result through speech, and saves it to local history. The three-page QuickJS implementation covers camera capture, structured JSON output, timeout handling, speech synthesis, and troubleshooting issues such as unsupported CSS pseudo-elements and the absence of AbortController. The supplied report does not provide measured recognition accuracy or independent runtime validation.
The report presents a reusable pure-front-end AIUI pattern that combines first-person camera input, a multimodal LanguageModel call, voice output, and local storage without a custom backend.
1. 项目简介
要解决的问题很单纯:走在路上、植物园里或自家阳台看到一株不认识的植物,想知道它叫什么,但为此掏手机、解锁、打开 App、对焦、等结果,这一串动作和「抬眼看一眼」的成本完全不成比例。眼镜的第一视角天然适合这件事——所见即所问,答案应该出现在眼前,而不是掌心的另一块屏幕上。
目标用户是戴 Rokid 眼镜、对身边植物有即时好奇心的人:户外散步与逛植物园的人、做自然观察的亲子用户、园艺爱好者。他们要的是一句话结论和几个关键鉴别特征,不是养护教程或百科长文。
这个智能体只做一件事:拍一帧 → 识别 → 报出名字 → 存下来。不需要账号、不需要后端、不需要联网服务(模型能力由 AIUI 运行时提供)。识别范围不限于开花植物,观叶、多肉、蕨类等同样在提示词范围内;辨认模糊时明确回答「没认出来」,而不编造物种。