This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import logging | |
log = logging.getLogger(__name__) | |
def get_dimensions(img_path: str) -> Tuple[int, int]: | |
""" | |
Returns a tuple (w, h) of an image with a given ID. Reads the w/h data directly | |
from the JPEG 2000 header. | |
:param img_path: a path to a JPEG 2000 image |
OlderNewer