Clean up code

This commit is contained in:
whoswhip
2025-06-18 13:41:31 -04:00
parent f8b90d7b63
commit dd13b99249
3 changed files with 9 additions and 13 deletions
-4
View File
@@ -1,11 +1,7 @@
using OpenCvSharp;
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Spectrum
{
+4 -3
View File
@@ -121,7 +121,7 @@ namespace Spectrum
Sensitivity = 0.5;
error = true;
}
if (AutoLabel && !CollectData )
if (AutoLabel && !CollectData)
{
Console.ForegroundColor = ConsoleColor.Yellow;
Console.WriteLine("[WARNING] AutoLabel is enabled but CollectData is not. Disabling AutoLabel.");
@@ -161,7 +161,8 @@ namespace Spectrum
Console.ResetColor();
SaveConfig();
}
} public static void SaveConfig()
}
public static void SaveConfig()
{
var config = new JObject
{
@@ -198,7 +199,7 @@ namespace Spectrum
["UpperHSV"] = JToken.FromObject(UpperHSV),
["LowerHSV"] = JToken.FromObject(LowerHSV)
}
}; File.WriteAllText("config.json", config.ToString(Formatting.Indented));
}; File.WriteAllText("config.json", config.ToString(Formatting.Indented));
}
public static void StartFileWatcher()
-1
View File
@@ -1,5 +1,4 @@
using OpenCvSharp;
using OpenCvSharp.Internal.Vectors;
using System.Drawing;
using System.Drawing.Imaging;
using System.Runtime.InteropServices;