Now everything has been converted to asynchronus

This commit is contained in:
2023-04-11 09:40:21 +02:00
parent e278a1c006
commit 8796fed916
13 changed files with 37 additions and 37 deletions
+4 -4
View File
@@ -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 = "";