working on crop

This commit is contained in:
Boki 2026-02-12 17:48:16 -05:00
parent 93e2234c4e
commit f74e3e1c85
12 changed files with 1135 additions and 220 deletions

View file

@ -39,8 +39,12 @@ export class InventoryTracker {
}
}
// Record detected items
// Record detected items, filtering out impossibly large ones (max POE2 item = 2×4)
for (const item of items) {
if (item.w > 2 || item.h > 4) {
logger.warn({ row: item.row, col: item.col, w: item.w, h: item.h }, 'Ignoring oversized item (false positive)');
continue;
}
this.items.push({ row: item.row, col: item.col, w: item.w, h: item.h, postAction: defaultAction });
}