mirror of
https://github.com/babalae/better-genshin-impact.git
synced 2026-05-27 10:15:50 +08:00
* 小地图预处理和视角识别算法优化 * 模板匹配的相关类,包括快速带遮罩的SqDiff模板匹配,模板匹配归一化类,简易亚像素模板匹配实现,小地图匹配相关配置,和小地图匹配上下文。 * 实现小地图的分层地图模板匹配,修改 SceneBaseMap 的 GetMiniMapPosition 为 virtual 以便继承覆盖。
29 lines
766 B
C#
29 lines
766 B
C#
namespace BetterGenshinImpact.Core.Recognition.OpenCv.TemplateMatch;
|
|
|
|
public static class MiniMapMatchConfig
|
|
{
|
|
/// <summary>
|
|
/// 原始小地图尺寸
|
|
/// </summary>
|
|
public const int OriginalSize = 156;
|
|
|
|
/// <summary>
|
|
/// 粗匹配时的地图尺寸
|
|
/// </summary>
|
|
public const int RoughSize = 52;
|
|
|
|
/// <summary>
|
|
/// 精确匹配时的地图尺寸
|
|
/// </summary>
|
|
public const int ExactSize = 260;
|
|
|
|
public const int GlobalScale = 2;
|
|
|
|
public const int RoughZoom = 5;
|
|
public const int ExactZoom = 1;
|
|
public const int RoughSearchRadius = 50;
|
|
public const int ExactSearchRadius = 20;
|
|
public static readonly float HighThreshold = 0.99f;
|
|
public static readonly float LowThreshold = 0.9f;
|
|
|
|
} |