智能烹饪小助手的设计与实现

2021-12-19 20:23:45李绪远陈云贵何敏卢颖彬
电脑知识与技术 2021年32期

李绪远 陈云贵 何敏 卢颖彬

摘要:针对当前基于微信小程序的美食服务平台还相对匮乏,功能参差不齐等问题;且基于WEB端的美食服务平台存在使用不便利等原因,设计了一个基于微信小程序的智能烹饪小助手。按照前后端分离架构的要求,系统分为客户端和服务端。客户端为微信小程序,采用官方提供的原生UI组件库构建项目的前端页面;服务端包括服务器和数据库,项目选择MySQL数据库存储数据,并采用SpringBoot框架开发项目接口。客户端即微信小程序通过向服务器端发送HTTP/HTTPS请求获取服務数据。项目实现了美食识别、应季食物推荐、热门美食搜索、菜谱收藏等功能。性能测试结果表明,小程序运行稳定可靠,数据安全能够得到有效保障。

关键词:微信小程序;美食推荐平台;图片识别;菜谱管理;小程序设计

中图分类号:TP311      文献标识码:A

文章编号:1009-3044(2021)32-0081-03

Design and Implementation of Intelligent Cooking Assistant

LI Xu-yuan, CHEN Yun-gui, HE Min, LU Ying-bin

(Guangdong University of Science and Technology, Dongguan 523083, China)

Abstract: In view of the current food service platform based on wechat applet is still relatively scarce and its functions are uneven; Moreover, the existing WEB-based food service platform is inconvenient to use, We designed an intelligent cooking assistant based on wechat applet. According to the requirements of the front-end and back-end separation architecture, the system is divided into client and server. The client is a WeChat applet, which uses the official native UI component library to build the front-end page of the project; The server includes a server and a database, we select the MySQL database to store data, and use the SpringBoot framework to develop the project interface. The client obtains service data by sending HTTP/ HTTPS requests to the server. The project realizes the functions of food identification, seasonal food recommendation, popular food search, menu collection and so on. The performance test shows that the applet runs stably and reliably, and the data security can be effectively guaranteed.

Key words: WeChat mini program; food recommendation platform; picture recognition; recipe management; mini program design

1 背景

传统的美食烹饪方法往往是通过口口相传或者书籍传承的方式实现。随着互联网的迅猛发展,通过网络获取美食烹饪的方式越来越受到年轻人的喜爱,因此基于WEB端的美食网站或者基于移动端的网络菜谱App应运而生。另一方面,因为小程序拥有“无需下载”“无需安装”“触手可及”和“用完即走”的特性[1],加之小程序和微信的无缝对接特点,使得很多服务类目的App产品都在“小程序化”。本文针对当前互联网发展趋势以及满足广大用户对美食文化向往的需求,设计实现一种基于移动端的、能够有效传承美食文化的小程序应用。……

登录APP查看全文