27 lines
750 B
C#
27 lines
750 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Drawing;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Test_Merge
|
|
{
|
|
internal class DriverGapToLeaderWindow:Window
|
|
{
|
|
public DriverGapToLeaderWindow(Bitmap image, Rectangle bounds, bool generateEngine = true) : base(image, bounds,generateEngine)
|
|
{
|
|
Name = "GapToLeader";
|
|
}
|
|
/// <summary>
|
|
/// Decodes the gap to leader using Tesseract OCR
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
public override async Task<object> DecodePng()
|
|
{
|
|
int result = await GetTimeFromPng(WindowImage, OcrImage.WindowType.Gap, Engine);
|
|
return result;
|
|
}
|
|
}
|
|
}
|