diff --git a/web/examples/README.md b/web/examples/README.md new file mode 100644 index 0000000000000000000000000000000000000000..96afab52b0339f7bc5072df34e8ef41d7f18e9fd --- /dev/null +++ b/web/examples/README.md @@ -0,0 +1,35 @@ +# PaddleJS Examples + +Baidu paddlejs uses the ready-made JavaScript model or transforms the paddle model to run in the browser. + +## Demonstration + +At present, tiny Yolo model can run within 30ms for web project, which is enough for general real-time scenarios. + +## Browser coverage + +* PC: Chrome +* Mac: Chrome +* Android: Baidu App and QQ Browser + +## Building deployment + +```bash +cd web # Go to root +npm i # Installation dependency +mkdir dist # Create resource directory +cd dist # Enter resource directory +git clone https://github.com/DerekYangMing/Paddle-Web-Models.git # Get models +mv Paddle-Web-Models/separablemodel . # Move the model to the designated location +cd .. # Root directory +npm run tinyYolo # run tinyYolo +``` + +## Preview + +1. Open url: https://localhost:端口号/ +2. Click the upload picture button。 + +## Result + +![image](./tinyYolo/demoshow.png) diff --git a/web/examples/README_cn.md b/web/examples/README_cn.md index ef10c63bca928ced79fc6ec5091afd1b51d98d72..a0f34d7a41c7d009a6057bae1e0fd837bb728ee3 100644 --- a/web/examples/README_cn.md +++ b/web/examples/README_cn.md @@ -29,7 +29,7 @@ npm run tinyYolo # 启动 tinyYolo 在线推理服务 ## 如何预览 demo -1. 在浏览器中打开url: https://localhost:8123/ +1. 在浏览器中打开url: https://localhost:端口号/ 2. 点击【开始检测】按钮。 3. 将人脸对准摄像头,没有问题的话,可以正常检测到人脸。