Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add helper to add background color on image #15

Merged
merged 1 commit into from
Aug 23, 2017

Conversation

fbochu
Copy link
Contributor

@fbochu fbochu commented Aug 22, 2017

For some images with alpha channel, the background color and the
foreground color are the same after grey scale conversion, this will no
allow us to detect 1D or 2D code on the image.

The copy_image_on_background() allow to add a background color on a
image to avoid this issue.

refs #13

@fbochu fbochu force-pushed the fbochu/issue-13-need-white-background branch from 6597448 to 873dfaf Compare August 22, 2017 16:27
For some images with alpha channel, the background color and the
foreground color are the same after grey scale conversion, this will no
allow us to detect 1D or 2D code on the image.

The copy_image_on_background() allow to add a background color on a
image to avoid this issue.
@fbochu fbochu merged commit 873dfaf into master Aug 23, 2017
@fbochu fbochu deleted the fbochu/issue-13-need-white-background branch August 23, 2017 09:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant