Commented the configuration methods to move on to the OCR part

This commit is contained in:
2023-05-10 07:10:11 +02:00
parent aac44fcfb9
commit df9231aed6
6 changed files with 70 additions and 3 deletions
+12
View File
@@ -23,6 +23,10 @@ namespace Test_Merge
{
Name = "DRS";
}
/// <summary>
/// Method that will decode the content of the window
/// </summary>
/// <returns></returns>
public override async Task<object> DecodePng()
{
bool result = false;
@@ -35,6 +39,10 @@ namespace Test_Merge
return result;
}
/// <summary>
/// Method that will get the green pixel proportion in the image, this can be used to determin if the DRS has been actuated
/// </summary>
/// <returns>The number of clearely green pixels</returns>
private unsafe int GetGreenPixels()
{
int tot = 0;
@@ -69,6 +77,10 @@ namespace Test_Merge
return tot;
}
/// <summary>
/// This method is used to lock on where exactly the DRS window is
/// </summary>
/// <returns>Returns a rectangle containing the DRS</returns>
public Rectangle GetBox()
{
var tessImage = Pix.LoadFromMemory(ImageToByte(WindowImage));