working on crop
This commit is contained in:
parent
93e2234c4e
commit
f74e3e1c85
12 changed files with 1135 additions and 220 deletions
|
|
@ -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 });
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue