mirror of
https://github.com/azaion/annotations.git
synced 2026-04-22 14:26:30 +00:00
add altitude + camera spec component and calc tile size by this
also restrict detections to be no bigger than in classes.json
This commit is contained in:
@@ -18,5 +18,8 @@ public class AIRecognitionConfig
|
||||
[Key("m_bs")] public int ModelBatchSize { get; set; } = 4;
|
||||
|
||||
[Key("ov_p")] public double BigImageTileOverlapPercent { get; set; }
|
||||
[Key("tile_size")] public int TileSize { get; set; }
|
||||
|
||||
[Key("cam_a")] public double Altitude { get; set; }
|
||||
[Key("cam_fl")] public double CameraFocalLength { get; set; }
|
||||
[Key("cam_sw")] public double CameraSensorWidth { get; set; }
|
||||
}
|
||||
@@ -28,6 +28,8 @@ public class AppConfig
|
||||
public MapConfig MapConfig{ get; set; } = null!;
|
||||
|
||||
public GpsDeniedConfig GpsDeniedConfig { get; set; } = null!;
|
||||
|
||||
public CameraConfig CameraConfig { get; set; } = null!;
|
||||
}
|
||||
|
||||
public interface IConfigUpdater
|
||||
@@ -61,7 +63,8 @@ public class ConfigUpdater : IConfigUpdater
|
||||
config.InferenceClientConfig,
|
||||
config.GpsDeniedClientConfig,
|
||||
config.DirectoriesConfig,
|
||||
config.UIConfig
|
||||
config.UIConfig,
|
||||
config.CameraConfig
|
||||
};
|
||||
|
||||
await File.WriteAllTextAsync(Constants.CONFIG_PATH, JsonConvert.SerializeObject(publicConfig, Formatting.Indented), Encoding.UTF8);
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
namespace Azaion.Common.DTO.Config;
|
||||
|
||||
public class CameraConfig
|
||||
{
|
||||
public decimal Altitude { get; set; }
|
||||
public decimal CameraFocalLength { get; set; }
|
||||
public decimal CameraSensorWidth { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user