const { Img } = require("./paper-recognizer.js"); const c = []; process.stdin.on("data", d => c.push(d)); process.stdin.on("end", () => { const b = Buffer.concat(c); const w = b.readUInt32LE(0), h = b.readUInt32LE(4); const px = new Uint8Array(b.slice(8)); const bgr = new Uint8Array(w*h*3); for (let i=0;i=0.9&&ar<=1.1||ar>4)continue; const tol=0.35; const ib=Math.abs(ar-GP.BIG_LOCATOR_RATIO_SHORT)