mirror of
https://github.com/azaion/annotations.git
synced 2026-04-22 22:36:31 +00:00
c1b5b5fee2
make inference in batches, fix c# handling, add overlap handling
85 lines
3.3 KiB
C#
85 lines
3.3 KiB
C#
using System.Windows;
|
|
using Azaion.Common.DTO;
|
|
|
|
namespace Azaion.Common;
|
|
|
|
public class Constants
|
|
{
|
|
public const string SECURE_RESOURCE_CACHE = "SecureResourceCache";
|
|
|
|
#region DirectoriesConfig
|
|
|
|
public const string DEFAULT_VIDEO_DIR = "video";
|
|
public const string DEFAULT_LABELS_DIR = "labels";
|
|
public const string DEFAULT_IMAGES_DIR = "images";
|
|
public const string DEFAULT_RESULTS_DIR = "results";
|
|
public const string DEFAULT_THUMBNAILS_DIR = "thumbnails";
|
|
|
|
#endregion
|
|
|
|
#region AnnotatorConfig
|
|
|
|
public static readonly List<DetectionClass> DefaultAnnotationClasses =
|
|
[
|
|
new() { Id = 0, Name = "Броньована техніка", ShortName = "Бронь" },
|
|
new() { Id = 1, Name = "Вантажівка", ShortName = "Вантаж" },
|
|
new() { Id = 2, Name = "Машина легкова", ShortName = "Машина" },
|
|
new() { Id = 3, Name = "Артилерія", ShortName = "Арта" },
|
|
new() { Id = 4, Name = "Тінь від техніки", ShortName = "Тінь" },
|
|
new() { Id = 5, Name = "Окопи", ShortName = "Окопи" },
|
|
new() { Id = 6, Name = "Військовий", ShortName = "Військов" },
|
|
new() { Id = 7, Name = "Накати", ShortName = "Накати" },
|
|
new() { Id = 8, Name = "Танк з захистом", ShortName = "Танк захист" },
|
|
new() { Id = 9, Name = "Дим", ShortName = "Дим" },
|
|
new() { Id = 10, Name = "Літак", ShortName = "Літак" },
|
|
new() { Id = 11, Name = "Мотоцикл", ShortName = "Мото" }
|
|
];
|
|
|
|
public static readonly List<string> DefaultVideoFormats = ["mp4", "mov", "avi"];
|
|
public static readonly List<string> DefaultImageFormats = ["jpg", "jpeg", "png", "bmp"];
|
|
|
|
public static int DEFAULT_LEFT_PANEL_WIDTH = 250;
|
|
public static int DEFAULT_RIGHT_PANEL_WIDTH = 250;
|
|
|
|
public const string DEFAULT_ANNOTATIONS_DB_FILE = "annotations.db";
|
|
|
|
# endregion AnnotatorConfig
|
|
|
|
# region AIRecognitionConfig
|
|
|
|
public const double DEFAULT_FRAME_RECOGNITION_SECONDS = 2;
|
|
public const double TRACKING_DISTANCE_CONFIDENCE = 0.15;
|
|
public const double TRACKING_PROBABILITY_INCREASE = 15;
|
|
public const double TRACKING_INTERSECTION_THRESHOLD = 0.8;
|
|
public const int DEFAULT_FRAME_PERIOD_RECOGNITION = 4;
|
|
|
|
public const int DETECTION_BATCH_SIZE = 4;
|
|
# endregion AIRecognitionConfig
|
|
|
|
#region Thumbnails
|
|
|
|
public static readonly Size DefaultThumbnailSize = new(240, 135);
|
|
|
|
public const int DEFAULT_THUMBNAIL_BORDER = 10;
|
|
|
|
public const string THUMBNAIL_PREFIX = "_thumb";
|
|
|
|
#endregion
|
|
|
|
#region Queue
|
|
|
|
public const string MQ_ANNOTATIONS_QUEUE = "azaion-annotations";
|
|
public const string MQ_ANNOTATIONS_CONFIRM_QUEUE = "azaion-annotations-confirm";
|
|
|
|
#endregion
|
|
|
|
#region Database
|
|
|
|
public const string ANNOTATIONS_TABLENAME = "annotations";
|
|
public const string ANNOTATIONS_QUEUE_TABLENAME = "annotations_queue";
|
|
public const string ADMIN_EMAIL = "admin@azaion.com";
|
|
public const string DETECTIONS_TABLENAME = "detections";
|
|
|
|
#endregion
|
|
|
|
} |