mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-05-08 20:56:04 +00:00
Update ScreenMatch.cs
This commit is contained in:
parent
ba654438ab
commit
3a1d2ab1ba
|
@ -115,8 +115,8 @@ public class ScreenMatch
|
||||||
private bool isSaveToFile = false;
|
private bool isSaveToFile = false;
|
||||||
private bool isMatching = false;
|
private bool isMatching = false;
|
||||||
private bool isOCR128 = false;
|
private bool isOCR128 = false;
|
||||||
private string tesseractDataPath = @"./tessdata";
|
private string tesseractDataPath;
|
||||||
private string tesseractLanguage = "eng";
|
private string tesseractLanguage;
|
||||||
|
|
||||||
public ScreenMatch(ServiceBase parent, string workingDirectory)
|
public ScreenMatch(ServiceBase parent, string workingDirectory)
|
||||||
{
|
{
|
||||||
|
@ -162,6 +162,8 @@ public class ScreenMatch
|
||||||
|
|
||||||
if (_params.Contains("ocr128"))
|
if (_params.Contains("ocr128"))
|
||||||
{
|
{
|
||||||
|
tesseractDataPath = Path.Combine(workingDirectory, "assets/tessdata");
|
||||||
|
tesseractLanguage = "eng";
|
||||||
isOCR128 = true;
|
isOCR128 = true;
|
||||||
this.parent.Log("Use OCR within a 128x128 pixel range around specific coordinates.");
|
this.parent.Log("Use OCR within a 128x128 pixel range around specific coordinates.");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user