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 use this wrapper for byte array (of Image) ? #16

Closed visha-l closed 7 years ago

visha-l commented 7 years ago

I have a byte array of an image which i am extracting from amazon S3 server , can you tell me a way to use this darknet wrapper on byte array , I am using this wrapper for object detection.

OrKoN commented 7 years ago

@visha-l the only possibility currently is to store the image to the file system and provide the filename to the library.

visha-l commented 7 years ago

But that is taking more time, please tell me if you find some other way to do that, instead of saving it on disk.

And if you could tell how to pass the byte array in C function , I will make the further changes in opencv function in C .

OrKoN commented 7 years ago

@visha-l I don't think we gonna support this any time soon. But you could mount your S3 as a filesystem (e.g. using https://github.com/s3fs-fuse/s3fs-fuse)