Skip to content

Latest commit

 

History

History
44 lines (32 loc) · 950 Bytes

File metadata and controls

44 lines (32 loc) · 950 Bytes

中文版

wine

Wine is a wine bottle recognition module. Based on mobilenetv2 model, users need to input the model file path and classification mapping file to obtain the classification results.

Setup

npm install

Compiles and hot-reloads for development

npm run dev

Compiles and minifies for production

npm run build

Usage

import * as mobilenet from '@paddlejs-models/mobilenet';

// model load
const path = 'https://paddlejs.bj.bcebos.com/models/fuse/mobilenet/wine_fuse_activation/model.json';
await mobilenet.load({
    path,
    mean: [0.485, 0.456, 0.406],
    std: [0.229, 0.224, 0.225]
}, map);

// get classification results
const res = await mobilenet.classify(img);

Online experience

wine:https://paddlejs.baidu.com/wine

Performance

wine