Basic tesseract example uses
auto pixs = pixRead(argv[1]);
to read a TIF image.
However, it isn't clear how to use an RGB buffer (not read from a file).
I tried to find out about Pix but the documentation isn't very clear.
Later it does
tess.SetImage(pixs);
maybe there's a way but I couldn't find the documentation.