ocrd_models.ocrd_exif module¶
Technical image metadata
-
class
ocrd_models.ocrd_exif.OcrdExif(img)[source]¶ Bases:
objectRepresents technical image metadata.
-
width¶ pixel dimensions
- Type
int
-
height¶ pixel dimensions
- Type
int
-
photometricInterpretation¶ - pixel type/depth, e.g.
1for b/w,Lfor 8-bit grayscale,RGBfor 24-bit truecolor,Ifor 32-bit signed integer grayscale,Ffor 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
inchesorcm)- Type
str
- Parameters
img (PIL.Image) – PIL image technical metadata is about.
-