Datasets:

Modalities:
Image
Text
Formats:
text
Size:
< 1K
Libraries:
Datasets
License:
File size: 349 Bytes
d381118
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
__all__ = ['imread']

try:
    import osgeo.gdal as gdal
except ImportError:
    raise ImportError(
        "The GDAL Library could not be found. "
        "Please refer to http://www.gdal.org/ "
        "for further instructions."
    )


def imread(fname):
    """Load an image from file."""
    ds = gdal.Open(fname)

    return ds.ReadAsArray()