Now the images are correctly loaded but the OCR is still Fucked

This commit is contained in:
2023-05-11 15:22:59 +02:00
parent 025c2f8d61
commit 134ac85ad1
3 changed files with 52 additions and 12 deletions
+16 -8
View File
@@ -166,17 +166,25 @@ namespace Test_Merge
if (windowType == OcrImage.WindowType.LapTime)
{
result = 0;
if (rawNumbers[0].Length == 4)
try
{
result += Convert.ToInt32(rawNumbers[0][0]) * 60000;
result += Convert.ToInt32(rawNumbers[0][2].ToString() + rawNumbers[0][3].ToString()) * 1000;
result += Convert.ToInt32(rawNumbers[1]);
if (rawNumbers[0].Length == 4)
{
result += Convert.ToInt32(rawNumbers[0][0]) * 60000;
result += Convert.ToInt32(rawNumbers[0][2].ToString() + rawNumbers[0][3].ToString()) * 1000;
result += Convert.ToInt32(rawNumbers[1]);
}
else
{
//Fuck it
result = 0;
}
}
else
catch
{
//Fuck it
result = 0;
}
//A lap time is fucked
Console.Write("Fuck");
}
}
if (windowType == OcrImage.WindowType.Sector)
{