Files
FastDeploy/examples/application/js/package/README_en.md
Double_V 9339d52cea [Doc] add en readme for js (#479)
* add contributor

* add package readme

* refine ocr readme

* refine ocr readme

* add en readme about js

* fix bugs

* refine doc
2022-11-03 15:16:35 +08:00

2.3 KiB

English | 简体中文

Introduction to Paddle.js Demo Module

This part is a model library developed based on Paddle.js, which mainly provides the ability to directly introduce and use models on the web side.

demo name source directory npm package
face detection facedetect @paddle-js-models/facedetect
Screw detection detect @paddle-js-models/detect
Portrait segmentation background replacement humanseg @paddle-js-models/humanseg
Gesture Recognition AI Guessing Shell gesture @paddle-js-models/gesture
1000 Item Recognition mobilenet @paddle-js-models/mobilenet
Text Detection ocrdetection @paddle-js-models/ocrdet
Text Recognition ocr @paddle-js-models/ocr

Usage

This part is Menorepo built with pnpm

Install dependencies

pnpm i

Development

See Package.json for development testing with yalc.

pnpm run dev:xxx

Overall Introduction

  1. Use rollup to package the code of commonjs and es specifications at one time; at the same time, it is extensible; at present, there are some problems with the dependent cv library; there is no configuration for umd packaging.
  2. The d.ts file is generated based on api-extractor during packaging, and the introduction of ts is supported to generate our package
  3. Support testing based on jest and display test related coverage, etc.
  4. Maintain code style based on ts and eslint to ensure better code development
  5. Generate custom keywords based on conventional-changelog-cli and generate changelog accordingly
  6. Implement local packaging development and testing based on yalc