library icon indicating copy to clipboard operation
library copied to clipboard

Allow scanning codes that are color inverted

Open jiapw opened this issue 3 years ago • 2 comments

I used inverted luminance for all even frames to handle the case that the code being scanned is color inverted. For production, that should be made as an option, sorry I didn't walk through the entire library to learn how to do it.

P.S. I duplicated the loop for converting pixels, because I think that hurts performance a bit if the odd-even branching is made for every pixel. Not sure of that, I am not a TS guy. :) This is the first time for me to write TS code.

jiapw avatar Mar 08 '21 10:03 jiapw

That's nice! Have you tested that?

werthdavid avatar Apr 26 '22 06:04 werthdavid

What is the status of this? This would be extremely helpful for my current project.

johnnyb avatar May 12 '22 20:05 johnnyb

Can somebody test this and confirm that it works correctly?

werthdavid avatar Apr 19 '23 07:04 werthdavid