24 lines
528 B
C#
24 lines
528 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Drawing;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using Tesseract;
|
|
|
|
namespace OCR_Decode
|
|
{
|
|
internal class DriverLapTimeWindow : Window
|
|
{
|
|
public DriverLapTimeWindow(Bitmap image, Rectangle bounds) : base(image, bounds)
|
|
{
|
|
Name = "Lap time";
|
|
}
|
|
public override object DecodePng()
|
|
{
|
|
int result = GetTimeFromPng(WindowImage);
|
|
return result;
|
|
}
|
|
}
|
|
}
|