0

I want to read only metadata of an image, without reading the data. This should be much faster.

I found this question, with this answer, but not sure how to use it.

Also, I prefer a cv2 solution if one exists.

Not looking for:

import cv2

im = cv2.imread(mypath)
height, width, channels = im.shape
Christoph Rackwitz
  • 11,317
  • 4
  • 27
  • 36
Gulzar
  • 23,452
  • 27
  • 113
  • 201

0 Answers0