@paddlejs-models/detect

1.1.2 • Public • Published

中文版

detect

detect model is used to detect the position of label frame in the image.

version size downloads downloads

Run Demo

  1. Execute in the current directory
npm install
npm run dev
  1. Visit http://0.0.0.0:8890

Usage

import * as det from '@paddlejs-models/detect';

// Load model
await det.load();

// Get label index, confidence and coordinates
const res = await det.detect(img);

res.forEach(item => {
    // Get label index
    console.log(item[0]);
    // Get label confidence
    console.log(item[1]);
    // Get label left coordinates
    console.log(item[2]);
    // Get label top coordinates
    console.log(item[3]);
    // Get label right coordinates
    console.log(item[4]);
    // Get label bottom coordinates
    console.log(item[5]);
});

effect

img.png

Readme

Keywords

none

Package Sidebar

Install

npm i @paddlejs-models/detect

Weekly Downloads

0

Version

1.1.2

License

ISC

Unpacked Size

178 kB

Total Files

15

Last publish

Collaborators

  • leoqh
  • changying01
  • sukkee
  • fanzhongkai
  • yueshuangyan