Commented the configuration methods to move on to the OCR part
This commit is contained in:
@@ -27,14 +27,25 @@ namespace Test_Merge
|
||||
MainZone = new Zone(fullImage, mainZoneDimensions,"Main");
|
||||
AutoCalibrate();
|
||||
}
|
||||
/// <summary>
|
||||
/// Resets the main zone
|
||||
/// </summary>
|
||||
public void ResetMainZone()
|
||||
{
|
||||
MainZone.ResetZones();
|
||||
}
|
||||
/// <summary>
|
||||
/// Reset the windows
|
||||
/// </summary>
|
||||
public void ResetWindows()
|
||||
{
|
||||
MainZone.ResetWindows();
|
||||
}
|
||||
/// <summary>
|
||||
/// Save the current config in a JSON file stored in /Presets/
|
||||
/// </summary>
|
||||
/// <param name="drivers">A list of all the drivers in the GP. IMPORTANT, they need to ALL be mentionned or the program wont be able to detect the missing ones and will F up everything</param>
|
||||
/// <param name="configName">The name the config should have</param>
|
||||
public void SaveToJson(List<string> drivers, string configName)
|
||||
{
|
||||
string JSON = "";
|
||||
@@ -77,6 +88,11 @@ namespace Test_Merge
|
||||
|
||||
File.WriteAllText(path, JSON);
|
||||
}
|
||||
/// <summary>
|
||||
/// Adds a window in the windows list
|
||||
/// Be carefull of the order. It cant be random or it will crash. The programm expect the first to be position, second Gap to leader etc...
|
||||
/// </summary>
|
||||
/// <param name="rectangles">The bounds of the window</param>
|
||||
public void AddWindows(List<Rectangle> rectangles)
|
||||
{
|
||||
foreach (Zone driverZone in MainZone.Zones)
|
||||
@@ -127,6 +143,9 @@ namespace Test_Merge
|
||||
}
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// This will automatically create all the driver zones at the correct places if the main zone has been weel positionned
|
||||
/// </summary>
|
||||
public void AutoCalibrate()
|
||||
{
|
||||
List<Rectangle> detectedText = new List<Rectangle>();
|
||||
|
||||
Reference in New Issue
Block a user