mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-08-24 10:16:41 -05:00
Prevent crash when OCR traineddata file is missing
This commit is contained in:
@@ -108,7 +108,10 @@ public:
|
||||
void SetCustomConfigFile(const std::string &);
|
||||
std::string GetCustomConfigFile() const { return configFile; }
|
||||
tesseract::PageSegMode GetPageMode() const { return pageSegMode; }
|
||||
tesseract::TessBaseAPI *GetOCR() const { return ocr.get(); }
|
||||
tesseract::TessBaseAPI *GetOCR() const
|
||||
{
|
||||
return initDone ? ocr.get() : nullptr;
|
||||
}
|
||||
|
||||
StringVariable text = obs_module_text("AdvSceneSwitcher.enterText");
|
||||
RegexConfig regex = RegexConfig::PartialMatchRegexConfig();
|
||||
|
||||
Reference in New Issue
Block a user