mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-10-06 00:57:33 +08:00

* add application include paddle.js web demo and xcx * cp PR #5 * add readme * fix comments and link * fix xcx readme * fix Task 1 * fix bugs * refine readme * delete ocrxcx readme * refine readme * fix bugs * delete old readme * 200px to 300px * revert 200px to 300px Co-authored-by: Jason <jiangjiajun@baidu.com>
Paddle.js-demo
该分支是 Paddle.js 应用的Demo集合;可以查看各个 Demo 的实现代码。
Demo 目录
分类 | 名称 | 目录 |
---|---|---|
CV | 人像扣图 | /src/views/cv/segmentation/PortraitMatting |
CV | 人像分割背景替换 | /src/views/cv/segmentation/PortraitBackgroundReplacement |
CV | 手势识别AI猜丁壳 | /src/views/cv/recognition/GestureRecognition |
CV | 1000种物品识别 | /src/views/cv/recognition/ItemIdentification |
CV | 酒瓶识别 | /src/views/cv/recognition/WineBottleIdentification |
CV | 文本检测 | /src/views/cv/ocr/TextDetection |
CV | 文本识别 | /src/views/cv/ocr/TextRecognition |
开发简介
安装依赖
npm install
开发
npm run dev
构建
npm run build
ESLint 格式化
npm run lint
工程风格
- 项目使用TypeScript
- 推荐使用 Vue 的组合式 API,可以根据 'src/views/ExampleFile.vue' 模板创建新的组件
- CSS 使用 Less
- eslint 使用的是 Vue 推荐的,一般情况请尽量符合对应的要求
- store 使用的是 Pinia
- router 使用的是 vue-router
src 目录简介
├─assets 资源文件
├─components 全局组件
├─router 路由
├─stores 存储库
└─views 视图
└─cv cv相关demo
├─ocr ocr相关demo
│ ├─TextDetection
│ └─TextRecognition
├─...
├─recognition 识别相关demo
│ ├─GestureRecognition
│ ├─ItemIdentification
│ ├─...
│ └─WineBottleIdentification
└─segmentation 分割相关demo
├─PortraitBackgroundReplacement
├─...
└─PortraitMatting
新增组件在对应类别下新增即可,可以参考模板 'src/views/ExampleFile.vue'
提交相关
- 提交前会自动进行全部文件的 ESLint 格式化
- commit 格式需要遵守
<type>(<scope>): <subject>
,会自动进行检查