fixed all the last big bugs before going to PWA

This commit is contained in:
2023-06-01 14:30:30 +02:00
parent 3f4b82301d
commit bef8b9d635
27 changed files with 142 additions and 2979 deletions
-37
View File
@@ -1,37 +0,0 @@
# DriverLapTimeWindow.cs
``` cs
/// Author : Maxime Rohmer
/// Date : 08/05/2023
/// File : DriverLapTimeWindow
/// Brief : Window containing infos about the lap time of a driver
/// Version : 0.1
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Drawing;
namespace Test_Merge
{
internal class DriverLapTimeWindow:Window
{
public DriverLapTimeWindow(Bitmap image, Rectangle bounds, bool generateEngine = true) : base(image, bounds,generateEngine)
{
Name = "LapTime";
}
/// <summary>
/// Decodes the lap time contained in the image using OCR Tesseract
/// </summary>
/// <returns>The laptime in int (ms)</returns>
public override async Task<object> DecodePng()
{
int result = await GetTimeFromPng(WindowImage, OcrImage.WindowType.LapTime, Engine);
return result;
}
}
}
```