mobimeo / node-yolo

Node bindings for YOLO/Darknet image recognition library
https://lab.moovel.com/blog/what-you-get-is-what-you-see-nodejs-yolo
MIT License
372 stars 51 forks source link

How to change input format? #15

Closed AditiBhiwaniwala closed 7 years ago

AditiBhiwaniwala commented 7 years ago

You have used a 'ImageDetectionWorker' for detecting object in an image in darknet.cc file as:

'class ImageDetectionWorker : public AsyncWorker { public: ImageDetectionWorker(Callback *callback, InputOptions opts) : AsyncWorker(callback), opts(opts) {}'

I want to change the input format of this and i am not understanding where the opts() in the above code comes from. Can you given the reference??

OrKoN commented 7 years ago

Hi @AditiBhiwaniwala the options come from here: https://github.com/moovel/node-yolo/blob/master/darknet.cc#L180 and the type is defined here https://github.com/moovel/node-yolo/blob/master/src/types.h#L24

OrKoN commented 7 years ago

@AditiBhiwaniwala Was my response helpful? I hope so and, therefore, closing this issue for now

AditiBhiwaniwala commented 7 years ago

Yes it helped. Thanks a lot