cleanup
This commit is contained in:
parent
566dae8997
commit
bef61f841d
5 changed files with 0 additions and 17 deletions
Binary file not shown.
|
Before Width: | Height: | Size: 7 MiB |
Binary file not shown.
|
Before Width: | Height: | Size: 6.2 MiB |
Binary file not shown.
|
Before Width: | Height: | Size: 323 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 323 KiB |
|
|
@ -625,23 +625,6 @@ public class ScreenReader : IScreenReader
|
|||
var labels = NmsLootLabels(scored, NmsIouThresh);
|
||||
labels.Sort((a, b) => a.CenterY.CompareTo(b.CenterY));
|
||||
|
||||
// Debug images
|
||||
try
|
||||
{
|
||||
current.Save("debug_loot_capture.png", System.Drawing.Imaging.ImageFormat.Png);
|
||||
Cv2.ImWrite("debug_loot_edges.png", edges);
|
||||
using var debugMat = mat.Clone();
|
||||
foreach (var label in labels)
|
||||
Cv2.Rectangle(debugMat,
|
||||
new Rect(label.CenterX - label.Width / 2, label.CenterY - label.Height / 2, label.Width, label.Height),
|
||||
new Scalar(0, 255, 0), 2);
|
||||
Cv2.ImWrite("debug_loot_detected.png", debugMat);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Log.Warning(ex, "Failed to save debug images");
|
||||
}
|
||||
|
||||
Log.Information("DetectLootLabels: strict={Strict} relaxed={Relaxed} yellow={Yellow} final={Final}",
|
||||
strict.Count, relaxed.Count, textClusters.Count, labels.Count);
|
||||
foreach (var label in labels)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue