Package Exports
- @vapi/node-yolo
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 (@vapi/node-yolo) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
node-yolo
This project came out from a computer engineering project VAPi. Our project uses a bleeding edge AI algorithm that classify objects of a certain image called yolo.
Pre-requirements
Installation
npm install https://github.com/rcaceiro/node-yolo --save
How To Use
darknet-configs is a folder where you should put the weight files and you most create inside of it another called cfg where put the config files.
const yolo = require('node-yolo');
const detector = new yolo("darknet-configs", "cfg/coco.data", "cfg/yolov3.cfg", "yolov3.weights");
detector.detect(path)
.then(detections => {
})
.catch(error => {
});
detections object
Field | Description |
---|---|
className |
Name of the class of the object detected |
probability |
The higher probability that this className is correct |
box |
obejct that contains box info of the object |
box object
Field | Description |
---|---|
x |
x coordinate in pixels of the picture |
y |
y coordinate in pixels of the picture |
w |
width from x point in pixels |
h |
height from y point in pixels |