3.0.1 • Published 2 years ago

@paddle-js-models/detect v3.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

中文版

detect

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

Usage

import * as det from '@paddle-js-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