bytedeco/javacv

Handling corrupt images

Open

#1,467 opened on Jul 16, 2020

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

Repository metrics

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

Description

I am using val sourceImageMat = imread(sourceImage.toString()) to read a file in java. But for corrputed images it just prints Premature end of JPEG file . I can see its not an exception and that is why its not ignoring the image but processing it further. Is there a way to avoid this processing? Have had a look at the community channel but was not of much help.Hope you can throw some ideas around this?

samplecorrupt

Contributor guide