| 65 | } |
| 66 | |
| 67 | Recognizer::~Recognizer() |
| 68 | { |
| 69 | workerThread_->quit(); |
| 70 | const auto timeoutMs = 2000; |
| 71 | if (!workerThread_->wait(timeoutMs)) { |
| 72 | LTRACE() << "terminating tesseract thread"; |
| 73 | workerThread_->terminate(); |
| 74 | } |
| 75 | } |
| 76 | |
| 77 | void Recognizer::updateSettings() |
| 78 | { |