Skip to content

niyongsheng/Classify

Repository files navigation

Classify

Issues

基于ResNet算法的垃圾分类项目
Garbage classification project based on ResNet

Demonstration:

Watch the video

Structure:

  • Classify_localtrain 本地训练代码
  • Classify_serverdeploy 服务部署代码
  • Classify_app_sever 树莓派服务代码
  • Classify_app_website 前端应用代码

训练数据集:https://developer.huaweicloud.com/hero/forum.php?mod=viewthread&tid=47550

Notes:

// 1、PyCharm下配置conda解释器python3.6导入框架依赖
// https://www.anaconda.com
pip install conda

// 2.安装tensorflow:机器学习框架
pip3 install tensorflow==1.13.1

// 3.keras:Python 编写的高级神经网络 API
pip3 install keras==2.3.1

// 4.图像处理框架(多用于视频流处理的时候)3.4.10.37 4.3.0.38 
// pip3 install opencv-contrib-python
pip3 install opencv-python

// 5.Python 图像处理库
pip3 install Pillow

// 6.安装框架flask:python下的Web应用服务程序框架
pip3 install Flask
pip3 install flask-cors

// 7.网络请求框架
pip3 install requests


// su下解决cv2报错缺失so文件
// libcblas.so.3: cannot open shared object file: No such file or directory
pip3 install opencv-python
sudo apt-get install libatlas-base-dev
sudo apt-get install libjasper-dev
sudo apt-get install libqtgui4
sudo apt-get install python3-pyqt5
sudo apt-get install libqt4-test

pip3 uninstall numpy
pip3 install numpy


// 上传app服务代码到树莓派
cd /tmp/pycharm_project_809
// 运行
python3 ./app_sever.py


// vue-electron启动
yarn install
// 调试
yarn dev
// 打包
yarn build:linux


// 解决服务端PyCharm运行外网ip无法访问,conda手动运行
// 查看环境列表
conda env list
// 切换
source activate Classify_serverdeploy-master
// 运行
python flask_sever.py
// 退出环境
source activate Classify_serverdeploy-master
// 退出base环境
conda deactivate

Remind

  • python@3.6.5
  • tensorflow@1.13.1
  • vue-electron@1.0.6

Contact Me

Contribution

Reward🍭 Encourage❤️

Thanks uper

Bilibili 云中有傻狗

About

🤖 机器学习之垃圾分类(AI garbage classification)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published