mirror of
https://github.com/azaion/annotations.git
synced 2026-04-22 08:46:31 +00:00
fix zooming in map matcher
This commit is contained in:
@@ -137,12 +137,12 @@
|
||||
HorizontalAlignment="Stretch"
|
||||
VerticalAlignment="Stretch"/>
|
||||
|
||||
<Border Grid.Column="2" ClipToBounds="True">
|
||||
<controls:CanvasEditor
|
||||
Grid.Column="2"
|
||||
x:Name="GpsImageEditor"
|
||||
VerticalAlignment="Stretch"
|
||||
HorizontalAlignment="Stretch" >
|
||||
</controls:CanvasEditor>
|
||||
HorizontalAlignment="Stretch" />
|
||||
</Border>
|
||||
|
||||
<GridSplitter
|
||||
Background="DarkGray"
|
||||
|
||||
@@ -118,7 +118,7 @@ public class Constants
|
||||
|
||||
public static readonly GpsDeniedConfig DefaultGpsDeniedConfig = new()
|
||||
{
|
||||
MinKeyPoints = 15
|
||||
MinKeyPoints = 11
|
||||
};
|
||||
|
||||
# endregion
|
||||
|
||||
@@ -24,7 +24,7 @@ public class GpsMatcherService(IGpsMatcherClient gpsMatcherClient,
|
||||
private readonly DirectoriesConfig _dirConfig = dirConfig.Value;
|
||||
private const int ZOOM_LEVEL = 18;
|
||||
private const int POINTS_COUNT = 10;
|
||||
private const int DISTANCE_BETWEEN_POINTS_M = 120;
|
||||
private const int DISTANCE_BETWEEN_POINTS_M = 140;
|
||||
private const double SATELLITE_RADIUS_M = DISTANCE_BETWEEN_POINTS_M * (POINTS_COUNT + 1);
|
||||
private const int MAX_AVG_POINTS = 2;
|
||||
|
||||
@@ -88,7 +88,7 @@ public class GpsMatcherService(IGpsMatcherClient gpsMatcherClient,
|
||||
_currentIndex = _currentRouteImages[result.Image];
|
||||
_currentRouteImages.Remove(result.Image);
|
||||
|
||||
if (result.KeyPoints > gpsDeniedConfig.Value.MinKeyPoints)
|
||||
if (result.KeyPoints >= gpsDeniedConfig.Value.MinKeyPoints)
|
||||
{
|
||||
var direction = _lastGeoPoint.DirectionTo(result.GeoPoint);
|
||||
_directions.Enqueue(direction);
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
"ModelBatchSize": 4
|
||||
},
|
||||
"GpsDeniedConfig": {
|
||||
"MinKeyPoints": 12
|
||||
"MinKeyPoints": 11
|
||||
},
|
||||
"ThumbnailConfig": { "Size": "240,135", "Border": 10 }
|
||||
}
|
||||
Reference in New Issue
Block a user