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

libpng error: IDAT: CRC error is random #20683

Closed
geoexploring opened this issue Sep 10, 2021 · 3 comments
Closed

libpng error: IDAT: CRC error is random #20683

geoexploring opened this issue Sep 10, 2021 · 3 comments
Labels
category: imgcodecs category: 3rdparty incomplete needs reproducer Provide complete minimal reproducer with input data

Comments

@geoexploring
Copy link

System information (version)
  • OpenCV => opencv-python 4.5.3.56
  • Operating System / Platform => Windows 64 Bit
  • Compiler => VScode or Pycharm

I use cv2.imread() as the input image reading tool for deep learning model training, but 'libpng error: IDAT: CRC error' often occurs during reading and is random, which is annoying because the model often stops training.

The image reading function is:

def read_img(img_path):
    return cv2.imread(img_path, cv2.IMREAD_ANYDEPTH | cv2.IMREAD_ANYCOLOR | cv2.IMREAD_COLOR)

Not sure if this is a hardware problem.
Thanks

@sturkmen72
Copy link
Contributor

probably related pnggroup/libpng#183

@alalek
Copy link
Member

alalek commented Sep 10, 2021

Please provide complete minimal reproducer including image data.

@geoexploring
Copy link
Author

@alalek ,I converted all PNG into JPG, and the problem was solved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: imgcodecs category: 3rdparty incomplete needs reproducer Provide complete minimal reproducer with input data
Projects
None yet
Development

No branches or pull requests

3 participants