mirror of
https://github.com/azaion/annotations.git
synced 2026-04-22 18:06:39 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user