netPark / node-openalpr

NodeJS Wrapper for OpenALPR
GNU Affero General Public License v3.0
89 stars 78 forks source link

Pass image in as binary buffer, rather than path on disk #14

Open chriswiggins opened 8 years ago

chriswiggins commented 8 years ago

We're using this module to detect and read plates (and its awesome in node!) but we're having to unnecessarily write the file to disk to then have OpenALPR read it again.

How hard (I'm no native node person) would it be to pass this library a buffer of the file, instead of the path to the file? We're already reading in the file for other reasons (like cropping) and having to write it again just for OpenALPR is a bit of an overhead :-)

Happy to try and sort this myself, just need to be pointed in the right direction!

Cheers

robinlabs commented 7 years ago

I am also looking for an answer to this question. And to know which image format are supported through buffer data parameter.