Smart_container/README.md

131 lines
8.0 KiB
Markdown
Raw Normal View History

2021-11-02 13:29:03 +08:00
# 袋鼯麻麻——智能购物平台
2021-11-13 17:28:10 +08:00
![GitHub Repo stars](https://img.shields.io/github/stars/thomas-yanxin/Smart_container)
![GitHub forks](https://img.shields.io/github/forks/thomas-yanxin/Smart_container)
![GitHub](https://img.shields.io/github/license/thomas-yanxin/Smart_container)
2021-11-19 21:05:31 +08:00
![python](https://img.shields.io/badge/python-3.79+-aff.svg)
2021-11-19 21:06:20 +08:00
![os](https://img.shields.io/badge/os-win%2C%20linux(Nano)-pink.svg)
2021-11-13 22:32:05 +08:00
![contributors](https://img.shields.io/github/contributors/thomas-yanxin/Smart_container)
2021-11-13 17:28:10 +08:00
> 求求了点个Star吧
2021-11-02 13:29:03 +08:00
## 项目背景
<font size=3 >目前在零售行业的实际运营过程中,会产生巨大的人力成本,例如导购、保洁、结算等,而其中,尤其需要花费大量的人力成本和时间成本在识别商品并对其进行价格结算的过程中,并且在此过程中,顾客也因此而需要排队等待。这样一来零售行业人力成本较大、工作效率极低,二来也使得顾客的购物体验下降。
随着计算机视觉技术的发展以及无人化、自动化超市运营理念的提出利用图像识别技术及目标检测技术实现产品的自动识别及自动化结算的需求呼之欲出及自动结账系统Automatic checkout, ACO。基于计算机视觉的自动结账系统能有效降低零售行业的运营成本提高顾客结账效率从而进一步提升用户在购物过程中的体验感与幸福感。 </font>
## 实现功能
2021-11-23 14:59:24 +08:00
<font size=3 >“**袋鼯麻麻——智能购物平台**”具体实现在零售过程中对用户购买商品的自动结算。即利用PaddleClas团队开源的[图像识别PP-ShiTu](https://arxiv.org/pdf/2111.00775.pdf)技术,精准地定位顾客购买的商品,并进行智能化、自动化的价格结算。当顾客将自己选购的商品放置在制定区域内时,“**袋鼯麻麻——智能购物平台**”能够精准地定位识别每一个商品,并且能够返回完整的购物清单及顾客应付的实际商品总价格,极大地降低零售行业实际运营过程中巨大的人力成本,提升零售行业无人化、自动化、智能化水平。而当系统有新商品增加时,本系统只需更新检索库即可,无需重新训练模型,极大地降低了模型训练成本和时间。 </font>
2021-11-07 20:59:05 +08:00
2021-11-04 00:46:54 +08:00
<div align="center">
<img src="https://ai-studio-static-online.cdn.bcebos.com/56a6521f80754fcdb12ab433e35ce343b7a5e475b56446e8beb4d9c93213e7b3" width = "480" height = "320"/>
2021-11-04 00:35:40 +08:00
</div>
2021-11-02 13:29:03 +08:00
## 整体架构
2021-11-04 00:46:54 +08:00
<div align="center">
2021-11-07 23:43:50 +08:00
<img src="https://ai-studio-static-online.cdn.bcebos.com/59f875129c854cdfb7cbb3435f5004c37ffed920756b41e5bde49e98c09cd0ab" width = "1080" height = "640"/>
2021-11-04 00:46:54 +08:00
</div>
2021-11-02 13:29:03 +08:00
## 技术路线
2021-11-07 21:05:31 +08:00
<font size=3 >**袋鼯麻麻——智能购物平台** 基于[PaddleClas](https://github.com/PaddlePaddle/PaddleClas)作为主要的功能开发套件,利用其开源的[PP-ShiTu](https://arxiv.org/pdf/2111.00775.pdf)进行核心功能的开发并通过PaddleInference将其部署于Jetson Nano并基于[QPT](https://github.com/QPT-Family/QPT)打包.exe打通Windows系统开发一套符合实际应用需求的工业级智能零售购物平台。 </font>
2021-11-07 20:59:05 +08:00
### [图像识别PP-ShiTu](https://arxiv.org/pdf/2111.00775.pdf)介绍
2021-11-02 13:29:03 +08:00
2021-11-07 20:59:05 +08:00
PP-ShiTu是一个实用的轻量级通用图像识别系统主要由主体检测、特征学习和向量检索三个模块组成。该系统从骨干网络选择和调整、损失函数的选择、数据增强、学习率变换策略、正则化参数选择、预训练模型使用以及模型裁剪量化8个方面采用多种策略对各个模块的模型进行优化最终得到在CPU上仅0.2s即可完成10w+库的图像识别的系统。
2021-11-04 00:46:54 +08:00
<div align="center">
2021-11-07 23:43:50 +08:00
<img src="./image/structure.jpg" width = "1080" height = "540"/>
2021-11-04 00:46:54 +08:00
</div>
2021-11-02 13:29:03 +08:00
2021-11-07 21:01:45 +08:00
<font size=3 >整个图像识别系统分为三步([详情见PP-ShiTu训练模块](https://github.com/PaddlePaddle/PaddleClas/blob/release/2.3/docs/zh_CN/models_training/recognition.md)
2021-11-02 13:29:03 +08:00
1通过一个目标检测模型检测图像物体候选区域
2对每个候选区域进行特征提取
3与检索库中图像进行特征匹配提取识别结果。
对于新的未知类别,无需重新训练模型,只需要在检索库补入该类别图像,重新建立检索库,就可以识别该类别。 </font>
### 数据集介绍
【The first one】:[Products-10K Large Scale Product Recognition Dataset](https://arxiv.org/abs/2006.12634)
【The second one】:[RP2K: A Large-Scale Retail Product Dataset for Fine-Grained Image Classification](https://www.pinlandata.com/rp2k_dataset)
2021-11-08 09:23:19 +08:00
**袋鼯麻麻——智能购物平台**基于上述两个数据集,结合爬虫,对此两种数据集进行适应性处理。
2021-11-02 13:29:03 +08:00
2021-11-08 09:23:19 +08:00
目前处理后的数据集已在[AIStudio](https://aistudio.baidu.com/aistudio/datasetdetail/113685)开源。 </font>
2021-11-02 13:29:03 +08:00
## 部署方式
2021-11-04 16:50:28 +08:00
本项目已打通**Jetson Nano、Windows、linux**系统
2021-11-07 21:12:37 +08:00
本项目全部代码百度网盘链接https://pan.baidu.com/s/1hVMobt-SKIL6DZwhNohDAg
2021-11-07 20:59:05 +08:00
提取码zcj9
2021-11-04 00:38:58 +08:00
2021-11-04 00:27:23 +08:00
<font size=3 >
2021-11-02 13:29:03 +08:00
2021-11-07 21:12:37 +08:00
- Windows 端
2021-11-12 01:26:28 +08:00
使用[QPT](https://github.com/QPT-Family/QPT)打包的百度网盘 链接https://pan.baidu.com/s/13cbLfqtXC_FS3Op9vnLl6w
2021-11-07 21:58:09 +08:00
2021-11-13 17:08:49 +08:00
提取码t9pl
2021-11-04 00:27:23 +08:00
解压后运行**启动程序.exe**即可
2021-11-07 21:12:37 +08:00
- Linux 端
Download本项目代码后进入client文件夹内执行以下代码即可运行
```
python client.py
```
2021-11-07 21:01:45 +08:00
2021-11-07 20:59:05 +08:00
- 图像识别部分部署详情请见[PP-ShiTu部署](https://github.com/PaddlePaddle/PaddleClas/blob/release/2.3/docs/zh_CN/inference_deployment/python_deploy.md#%E4%B8%BB%E4%BD%93%E6%A3%80%E6%B5%8B%E3%80%81%E7%89%B9%E5%BE%81%E6%8F%90%E5%8F%96%E5%92%8C%E5%90%91%E9%87%8F%E6%A3%80%E7%B4%A2%E4%B8%B2%E8%81%94)
2021-11-07 21:12:37 +08:00
- 微信小程序端
打开微信开发者工具导入系统文件夹下AIContainer文件夹并运行即可运行小程序端
2021-11-02 13:29:03 +08:00
2021-11-07 20:59:05 +08:00
## [bilibili](https://www.bilibili.com/video/BV19q4y1G7bx#reply5654379507)效果演示
2021-11-07 23:16:45 +08:00
- 主界面
2021-11-07 23:43:50 +08:00
<div align="center"><img src="./image/all.jpg" width = "1080" height = "540"/></div>
2021-11-07 21:01:45 +08:00
2021-11-07 20:59:05 +08:00
- 端侧界面
2021-11-07 23:43:50 +08:00
<div align="center"><img src="./image/main.png" width = "1080" height = "540"/></div>
<div align="center"><img src="./image/recognition_1.png" width = "1080" height = "540"/></div>
2021-11-02 13:29:03 +08:00
2021-11-07 20:59:05 +08:00
- 小程序界面
2021-11-07 23:14:36 +08:00
<div align="center">
2021-11-07 23:36:04 +08:00
<img src="./image/wx_all.png" width = "1080" height = "540"/>
2021-11-07 23:14:36 +08:00
</div>
2021-11-02 13:29:03 +08:00
2021-11-13 17:28:10 +08:00
## 待完成
2021-11-13 18:10:23 +08:00
2021-11-15 02:11:20 +08:00
| 序号 | 完成度 | 优先级 | 分属类别 | 功能描述 |
| :----: | :---- | :---- | :---- | :---- |
2021-11-15 02:12:44 +08:00
| 1 | 在做了 |★★★★★ | 端侧 | 添加数据库内容显示滑块、考虑是否在端侧增添商品补录功能|
| 2 | 在做了 |★★★★★ | 小程序 | 初始功能上线 |
| 3 | 在做了 |★★★★★ | 端侧 | Jetson Nano的深度适配 |
| 4 | 规划中 |★★★★ | 小程序 | 面向管理者及顾客的功能分离 |
| 5 | 规划中 |★★★★ | web | 基于 [Tyadmin](https://github.com/mtianyan/django-antd-tyadmin) or 其他工具 关于web端信息管理系统的建立 |
| 6 | 规划中 |★★★ | 小程序 | 接入[PaddleOCR](https://github.com/PaddlePaddle/PaddleOCR)实现商品名称的自动录入 |
| 7 | 规划中 |★★ | APP | Android and IOS 客户端的打通部署 |
2021-11-13 18:10:23 +08:00
2021-11-13 17:32:55 +08:00
2021-11-13 17:28:10 +08:00
2021-11-23 14:59:24 +08:00
## 🚀开发团队🚀
2021-11-13 17:08:49 +08:00
| 职责 | 名单 |
| :----: | :----: |
2021-11-13 22:15:26 +08:00
| PM | [颜鑫](https://github.com/thomas-yanxin) |
| 算法 | [颜鑫](https://github.com/thomas-yanxin) |
| 端侧前端 | [颜鑫](https://github.com/thomas-yanxin) |
| 小程序前端 | [沈晨](https://github.com/Scxw010516) |
2021-11-13 17:08:49 +08:00
| 后端 | [杜旭东](https://github.com/DXD-agumo) |
2021-11-07 21:58:09 +08:00
## 特别鸣谢
- [PaddleClas](https://github.com/PaddlePaddle/PaddleClas) 提供了图像识别核心功能开发;
- [QPT打包工具](https://github.com/QPT-Family/QPT) 提供了Windows端.exe打包
2021-11-04 00:35:40 +08:00
2021-11-13 17:32:55 +08:00
## 欢迎共建
我们非常欢迎您为"**袋鼯麻麻——智能购物平台**"贡献代码或者提供使用建议。无论您是提出存在bug、修复某个bug或者增加一个新功能欢迎给我们提交issue or Pull Requests。
2021-11-13 17:08:49 +08:00