aslanyanhaik / RoundCode

Custom rounded QR code with lots of customization.
MIT License
403 stars 54 forks source link

Does the detection have to be on a white BG? #2

Closed naturalui closed 4 years ago

naturalui commented 4 years ago

Seems like it only works on the output generated image (White Background), not while on a black BG (using the example app). Could this be made configurable?

I tried to apply a CIFilter(name: "CIColorInvert") to the pixelBuffer with not much luck.

aslanyanhaik commented 4 years ago

Already started working on this. Will release update next week.

naturalui commented 4 years ago

Thats awesome, thanks for this awesome component.

aslanyanhaik commented 4 years ago

@naturalui just pushed version 1.1.1 which adds support for dark background. I've added color validation functionality because there can be cases when developers choose dark colors which makes detection almost impossible.

naturalui commented 4 years ago

@aslanyanhaik

Should this work? I'm testing white code on black background, does not seem to detect (both with camera or image)

Screenshot 2020-05-04 at 12 43 20 AM