Skip to content

Commit 7744da9

Browse files
committed
Fixed Android build breakage
1 parent 6551779 commit 7744da9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ccmain/tessedit.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,9 @@ bool Tesseract::init_tesseract_lang_data(
202202
// Load the unicharset
203203
if (tessedit_ocr_engine_mode == OEM_LSTM_ONLY) {
204204
// Avoid requiring a unicharset when we aren't running base tesseract.
205+
#ifndef ANDROID_BUILD
205206
unicharset.CopyFrom(lstm_recognizer_->GetUnicharset());
207+
#endif
206208
} else if (!tessdata_manager.SeekToStart(TESSDATA_UNICHARSET) ||
207209
!unicharset.load_from_file(tessdata_manager.GetDataFilePtr())) {
208210
return false;

0 commit comments

Comments
 (0)