move detection classes and other system values from local config to remote

forbid non validators to read from queue
create better visualization in detector control
make colors for detection classes more distinguishable
fix bug with removing detection (probably completely)
This commit is contained in:
Alex Bezdieniezhnykh
2025-04-02 19:53:03 +03:00
parent e182547dc8
commit 83ae6a0ae9
19 changed files with 209 additions and 169 deletions
+3 -3
View File
@@ -4,10 +4,10 @@ namespace Azaion.Common.Extensions;
public static class ColorExtensions
{
private const int MIN_ALPHA = 20;
private const int MAX_ALPHA = 100;
private const int MIN_ALPHA = 15;
private const int MAX_ALPHA = 150;
public static Color ToConfidenceColor(this Color color, double confidence )
public static Color ToConfidenceColor(this Color color, double confidence = 1)
{
color.A = (byte)(MIN_ALPHA + (int)Math.Round(confidence * (MAX_ALPHA - MIN_ALPHA)));
return color;