I have found the solution, if anyone else is interested. Here is a sample application:
int main()
{
PIX* image = pixRead("R:/P12_0.jpg");
string outText = "";
tesseract::TessBaseAPI* api = new tesseract::TessBaseAPI();
api->Init(NULL, "deu", tesseract::OcrEngineMode::OEM_LSTM_ONLY);
api->SetVariable("tessedit_char_whitelist", "0123456789 .-LBME");
api->SetImage(image);
api->SetSourceResolution(300);
api->SetPageSegMode(tesseract::PSM_AUTO);
api->SetVariable("lstm_choice_mode", "2");
string text = api->GetUTF8Text();
cout << "text: " << text << endl;
int i = 0;
if (res_it != 0) {
do {
string word = res_it->GetUTF8Text(tesseract::RIL_WORD);
tesseract::ChoiceIterator ci(*res_it);
do {
if (ci.Confidence() > 60) {