# AgriculturalPestControl **Repository Path**: tang_world/AgriculturalPestControl ## Basic Information - **Project Name**: AgriculturalPestControl - **Description**: 植物病虫害项目 大创比赛项目 - **Primary Language**: Python - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2022-08-11 - **Last Updated**: 2025-03-06 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # AgriculturalPestControl ## 技术范围 * flask * SQLAlchemy * Sqlite3 * python 3.7 ## 参考资料 ### flask资料 * [flask官网guide](https://dormousehole.readthedocs.io/en/latest/) * [重点参考项目](https://dormousehole.readthedocs.io/en/latest/tutorial/index.html) ### SQLAlchemy * [SQLAlchemy官网guide](https://www.sqlalchemy.org/) * [重点参考:flask中使用SQLAlchemy](https://dormousehole.readthedocs.io/en/latest/patterns/sqlalchemy.html) * [重点参考:SQLAlchemy的简单使用](https://www.cnblogs.com/lsdb/p/9835894.html) ### Sqlite3 * [Sqlite3数据库简介](https://www.liaoxuefeng.com/wiki/897692888725344/926177394024864) ## 项目依赖 **必须在有模型运行的情况下才能正常使用** ### 依赖包 ``` Flask==1.1.1 Keras==2.3.1 scikit_image==0.16.2 Click==7.0 requests==2.22.0 SQLAlchemy==1.3.15 opencv_python==4.2.0.32 numpy==1.18.1 Werkzeug==0.16.1 skimage==0.0 ``` ### 安装 推荐使用pip,所有的依赖包都在requirements.txt中 ```shell pip install -r requirements.txt ``` ## 项目启动与关闭 ### window系统下 ``` python main.py ``` ### linux系统下 #### 执行**runapp.sh**启动web应用 以日志输出到shell中的方式运行 ``` ./runapp.sh -l false ``` 在后台启动并写入日志到文件,执行后会在当前目录下创建 applog.log 文件 ``` ./runapp.sh -l true ``` #### 执行**runapp.sh**关闭web应用 ```angular2html ./runapp.sh -l kill ```