The task is as follows: We have the variable "$ image" - with binary data / image /. In the old version, save the data to a file:
open A, '>img.png'; binmode(A); print A $image; close A; Next, execute the system command with saving the output to the $ res variable
my $res = `tesseract img.png stdout --psm 8 myconf`; Actually the question itself:
How to pass arguments without saving the $ image variable to a file, since tesseract provides for simultaneous input and output by a similar command:
tesseract stdin stdout --psm 8 myconf