-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathimage_properties.py
53 lines (42 loc) · 1.1 KB
/
image_properties.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
from dataclasses import dataclass
@dataclass
class ImageProperties:
"""
Dataclass for storing image properties
"""
title: str=""
time: str=""
is_flipped_horz: bool=False
is_flipped_vert: bool=False
is_grayscaled: bool=False
is_sepia: bool=False
is_cropped: bool=False
is_rotated: bool=False
is_zoomed: bool=False
is_resized: bool=False
original_image_width: int=0
original_image_height: int=0
altered_image_width: int=0
altered_image_height: int=0
resize_image_width: int=0
resize_image_height: int=0
zoom_scale_factor: float=0.0
rotation: int=0
brightness: int=50
contrast: int=50
saturation: float=0
blur: int=0
hue: float=0
crop_start_x: float = 0
crop_start_y: float = 0
crop_end_x: float = 0
crop_end_y: float = 0
crop_ratio: float = 0.0
crop_rectangle_width: float = 0
crop_rectangle_height: float = 0
at_time_canvas_width: float = 0
at_time_canvas_height: float = 0
pan_start_x: float = 0
pan_start_y: float = 0
pan_coord_x: float = 0
pan_coord_y: float = 0