Package Exports
- darknet
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (darknet) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Darknet.JS
Just when you thought the world was beautiful, I put YOLO into JavaScript.
Example
import { Darknet } from 'darknet.js';
let darknet = new Darknet({
weights: './rubbish.weights',
config: './rubbish.cfg',
metadata: {
classes: 2,
names: [ 'dog', 'cat' ]
},
library: './libdarknet'
});
console.log(darknet.detect('/image/of/a/dog/'));