Now everything has been converted to asynchronus
This commit is contained in:
@@ -44,11 +44,11 @@ namespace OCR_Decode
|
||||
Engine.DefaultPageSegMode = PageSegMode.SingleLine;
|
||||
}
|
||||
}
|
||||
public virtual Object DecodePng()
|
||||
public virtual async Task<Object> DecodePng()
|
||||
{
|
||||
return "NaN";
|
||||
}
|
||||
public virtual Object DecodePng(List<string> drivers)
|
||||
public virtual async Task<Object> DecodePng(List<string> drivers)
|
||||
{
|
||||
return "NaN";
|
||||
}
|
||||
@@ -60,7 +60,7 @@ namespace OCR_Decode
|
||||
return stream.ToArray();
|
||||
}
|
||||
}
|
||||
public static int GetTimeFromPng(Bitmap wImage,OcrImage.WindowType type)
|
||||
public static async Task<int> GetTimeFromPng(Bitmap wImage,OcrImage.WindowType type)
|
||||
{
|
||||
string rawResult = "";
|
||||
int result = 0;
|
||||
@@ -156,7 +156,7 @@ namespace OCR_Decode
|
||||
page.Dispose();
|
||||
return result;
|
||||
}
|
||||
public static string GetStringFromPng(Bitmap image,string allowedChars = "",OcrImage.WindowType windowType = OcrImage.WindowType.Text)
|
||||
public static async Task<string> GetStringFromPng(Bitmap image,string allowedChars = "",OcrImage.WindowType windowType = OcrImage.WindowType.Text)
|
||||
{
|
||||
string result = "";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user