work on color tracker
This commit is contained in:
parent
03d3fbd1dc
commit
86c7a31231
4 changed files with 176 additions and 6 deletions
|
|
@ -15,6 +15,7 @@ public class WorldMap : IDisposable
|
|||
private Mat? _prevWallMask; // for frame deduplication
|
||||
|
||||
public MapPosition Position => _position;
|
||||
public bool LastMatchSucceeded { get; private set; }
|
||||
|
||||
public WorldMap(MinimapConfig config)
|
||||
{
|
||||
|
|
@ -94,12 +95,14 @@ public class WorldMap : IDisposable
|
|||
if (matched == null)
|
||||
{
|
||||
_consecutiveMatchFails++;
|
||||
LastMatchSucceeded = false;
|
||||
Log.Information("MatchAndStitch: dedup={Dedup:F1}ms match={Match:F1}ms (FAILED x{Fails}) total={Total:F1}ms",
|
||||
dedupMs, matchMs, _consecutiveMatchFails, sw.Elapsed.TotalMilliseconds);
|
||||
return _position; // don't stitch — wrong position would corrupt the canvas
|
||||
}
|
||||
|
||||
_consecutiveMatchFails = 0;
|
||||
LastMatchSucceeded = true;
|
||||
_position = matched;
|
||||
var stitchStart = sw.Elapsed.TotalMilliseconds;
|
||||
StitchWithConfidence(classifiedMat, _position, boosted: false);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue