bytedeco/javacv

Image colors getting inverted by leptonica converter

Open

#1,136 opened on Feb 6, 2019

View on GitHub
 (7 comments) (0 reactions) (0 assignees)Java (1,583 forks)batch import
bughelp wanted

Repository metrics

Stars
 (6,985 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

I am using LeptonicaFrameConverter c = new LeptonicaFrameConverter(); Frame f = c.convert(src); BufferedImage img = Java2DFrameUtils.toBufferedImage(f); But the output image has inverted colors, ie 1->0 and vice versa. using it for .tiff format. How can I resole this? TIA.

Contributor guide