ocrd_models.ocrd_exif module¶
Technical image metadata
-
class
ocrd_models.ocrd_exif.
OcrdExif
(img)[source]¶ Bases:
object
Represents technical image metadata.
-
width
¶ pixel dimensions
- Type
int
-
height
¶ pixel dimensions
- Type
int
-
photometricInterpretation
¶ - pixel type/depth, e.g.
1
for b/w,L
for 8-bit grayscale,RGB
for 24-bit truecolor,I
for 32-bit signed integer grayscale,F
for floating-point grayscale
(see PIL concept mode)
- Type
str
-
resolution
¶ pixel density
- Type
int
-
xResolution
¶ pixel density
- Type
int
-
yResolution
¶ pixel density
- Type
int
-
resolutionUnit
¶ unit of measurement (either
inches
orcm
)- Type
str
- Parameters
img (PIL.Image) – PIL image technical metadata is about.
-