How to detect a mirrored image?

uh, you could run your detection on the mirrored image. that’s 2x the original execution cost, for zero effort to implement.

cheaper to execute, but more effort to implement (or find impls): both QR and aruco detect the same if they’re mirrored. it’s just the decoding where it would need to try a mirrored bit pattern if the straight pattern doesn’t decode. that ought to be cheap to execute because the expensive part is finding the things and reading the patterns from the image.

I don’t know of libraries that do it (I’m not remotely omniscient, there might be ones). if you can’t find one that does it, you could pick one that doesn’t, but looks easy to hack. then just hack it to do that.

why would that line scan camera’s data be mirrored? can you check that once during physical setup, and then always mirror it? or flip a bit in its configuration so it stops doing that? I’m sure those things have at least that much config in them.