OpenPecha / OCR-Pipelines

1 stars 0 forks source link

don't save images on the hard drive #12

Open eroux opened 1 year ago

eroux commented 1 year ago

The current code is something like:

It would be much more efficient to have something like

or even better: stream the bytes from s3 to the GV request directly.

ngawangtrinley commented 1 year ago

If I remember correctly we download for conversion since some formats aren't supported by GV. @10zinten is that correct?

eroux commented 1 year ago

it doesn't change anything, the conversion with PIL happens in memory anyway, there's not need to write anything on the hard drive