Commented the configuration methods to move on to the OCR part
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user