mirror of
https://github.com/azaion/annotations.git
synced 2026-04-22 22:36:31 +00:00
switcher dataset explorer
lat lon -> geopoint correct location for gps if small keypoints number
This commit is contained in:
@@ -83,6 +83,7 @@ public partial class App
|
||||
{
|
||||
AnnotationConfig = Constants.DefaultAnnotationConfig,
|
||||
AIRecognitionConfig = Constants.DefaultAIRecognitionConfig,
|
||||
GpsDeniedConfig = Constants.DefaultGpsDeniedConfig,
|
||||
ThumbnailConfig = Constants.DefaultThumbnailConfig,
|
||||
})));
|
||||
}
|
||||
@@ -132,6 +133,7 @@ public partial class App
|
||||
services.ConfigureSection<DirectoriesConfig>(context.Configuration);
|
||||
services.ConfigureSection<AnnotationConfig>(context.Configuration);
|
||||
services.ConfigureSection<AIRecognitionConfig>(context.Configuration);
|
||||
services.ConfigureSection<GpsDeniedConfig>(context.Configuration);
|
||||
services.ConfigureSection<ThumbnailConfig>(context.Configuration);
|
||||
services.ConfigureSection<UIConfig>(context.Configuration);
|
||||
services.ConfigureSection<MapConfig>(context.Configuration);
|
||||
|
||||
@@ -25,7 +25,6 @@ public partial class MainSuite
|
||||
private readonly Dictionary<WindowEnum, Window> _openedWindows = new();
|
||||
private readonly IInferenceClient _inferenceClient;
|
||||
private readonly IGpsMatcherClient _gpsMatcherClient;
|
||||
private static readonly Guid SaveConfigTaskId = Guid.NewGuid();
|
||||
|
||||
public MainSuite(IOptions<AppConfig> appConfig,
|
||||
IConfigUpdater configUpdater,
|
||||
@@ -48,10 +47,6 @@ public partial class MainSuite
|
||||
InitializeComponent();
|
||||
Loaded += OnLoaded;
|
||||
Closed += OnFormClosed;
|
||||
|
||||
SizeChanged += (_, _) => SaveUserSettings();
|
||||
LocationChanged += (_, _) => SaveUserSettings();
|
||||
StateChanged += (_, _) => SaveUserSettings();
|
||||
Left = (SystemParameters.WorkArea.Width - Width) / 2;
|
||||
}
|
||||
|
||||
@@ -125,19 +120,8 @@ public partial class MainSuite
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private void SaveUserSettings()
|
||||
{
|
||||
ThrottleExt.Throttle(() =>
|
||||
{
|
||||
_configUpdater.Save(_appConfig);
|
||||
return Task.CompletedTask;
|
||||
}, SaveConfigTaskId, TimeSpan.FromSeconds(2));
|
||||
}
|
||||
|
||||
private void OnFormClosed(object? sender, EventArgs e)
|
||||
{
|
||||
_configUpdater.Save(_appConfig);
|
||||
foreach (var window in _openedWindows)
|
||||
window.Value.Close();
|
||||
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"LoaderClientConfig": {
|
||||
"ZeroMqHost": "127.0.0.1",
|
||||
"ZeroMqPort": 5025,
|
||||
"ZeroMqPort": 5024,
|
||||
"ApiUrl": "https://api.azaion.com"
|
||||
},
|
||||
"InferenceClientConfig": {
|
||||
"ZeroMqHost": "127.0.0.1",
|
||||
"ZeroMqPort": 5127,
|
||||
"ZeroMqPort": 5126,
|
||||
"ApiUrl": "https://api.azaion.com"
|
||||
},
|
||||
"GpsDeniedClientConfig": {
|
||||
@@ -28,6 +28,7 @@
|
||||
"LeftPanelWidth": 220.0,
|
||||
"RightPanelWidth": 230.0,
|
||||
"GenerateAnnotatedImage": true,
|
||||
"SilentDetection": false
|
||||
"SilentDetection": false,
|
||||
"ShowDatasetWithDetectionsOnly": false
|
||||
}
|
||||
}
|
||||
@@ -19,7 +19,7 @@
|
||||
{ "Id": 15, "Name": "Building", "ShortName": "Будівля", "Color": "#ffb6c1" },
|
||||
{ "Id": 16, "Name": "Caponier", "ShortName": "Капонір", "Color": "#ffa500" }
|
||||
],
|
||||
"VideoFormats": [ ".mp4", ".mov", ".avi" ],
|
||||
"VideoFormats": [ ".mp4", ".mov", ".avi", ".ts", ".mkv" ],
|
||||
"ImageFormats": [ ".jpg", ".jpeg", ".png", ".bmp" ],
|
||||
"AnnotationsDbFile": "annotations.db"
|
||||
},
|
||||
@@ -34,5 +34,8 @@
|
||||
|
||||
"ModelBatchSize": 4
|
||||
},
|
||||
"GpsDeniedConfig": {
|
||||
"MinKeyPoints": 15
|
||||
},
|
||||
"ThumbnailConfig": { "Size": "240,135", "Border": 10 }
|
||||
}
|
||||
Reference in New Issue
Block a user