rcaceiro / node-yolo

MIT License
18 stars 4 forks source link

Getting Empty Array In Detections Instead Of Object #1

Closed shivarajnaidu closed 6 years ago

shivarajnaidu commented 6 years ago

const yolo = require('@vapi/node-yolo');
const darknetConfigs = './';
const detector = new yolo(darknetConfigs, "./cfg/coco.data", "./cfg/yolo.cfg", "./yolov3.weights");
detector.detect('./data/dog.jpg')
    .then(detections => {
        console.log(detections)
    })
    .catch(error => {
        // here you can handle the errors. Ex: Out of memory
        console.error(error);
    });

Not getting any detection values... just empty array..

image

rcaceiro commented 6 years ago

ok, shivarajnaidu, we thanks you for your help to improve this module. We will check this to understand what is going on. We will be in touch

shivarajnaidu commented 6 years ago

Thanks for your quick response... By the way I forgot to tell .. That I am using Ubuntu (KDE) 18.04 for this testing.. If I can get quick fix for this .. it would be very helpful for me..

freakstatic commented 6 years ago

Hi shivarajnaidu, is this the image that you are using?

dog

freakstatic commented 6 years ago

Can you show us your "npm install" output?

rcaceiro commented 6 years ago

Hi shivarajnaidu, Can you respond to the previous questions for can check what happen.

shivarajnaidu commented 6 years ago

Yes I think.. @rcaceiro

shivarajnaidu commented 6 years ago

Sorry @freakstatic I didn't have the outputs now... Because I have switched to use Python for yolo bindings and.. making it work with NodeJs

rcaceiro commented 6 years ago

We test with dog.jpg image that came with darknet examples and worked properly on CPU and GPU. Can you download the latest version to check if happens again?

shivarajnaidu commented 6 years ago

getting this error while installing node-yolo.. (I'm using Ubuntu 18.04 LTS) image

freakstatic commented 6 years ago

You have opencv installed?

shivarajnaidu commented 6 years ago

Sorry.. I'll install and test once again.. Thank you @freakstatic

rcaceiro commented 6 years ago

@shivarajnaidu we found a problem with opencv support and temporary removed it. We have launched a new version, can you install it and test it again. You must delete node-modules folder and when run the following command: npm install