-
Notifications
You must be signed in to change notification settings - Fork 73
/
Copy pathconstants.py
62 lines (55 loc) · 1.18 KB
/
constants.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
54
55
56
57
58
59
60
61
62
from typing import List
IMAGE_PROPERTY: str = "image_property"
DUPLICATE: str = "duplicate"
IMAGE_PROPERTY_ISSUE_TYPES_LIST: List[str] = [
"dark",
"light",
"odd_aspect_ratio",
"low_information",
"blurry",
"grayscale",
"odd_size",
]
DUPLICATE_ISSUE_TYPES_LIST: List[str] = ["exact_duplicates", "near_duplicates"]
SETS: str = "sets"
# max number of processes that can be forked/spawned for multiprocessing
MAX_PROCS = 5000
MAX_RESOLUTION_FOR_BLURRY_DETECTION = 64
IMAGE_FILE_EXTENSIONS: List[str] = [
"*.jpg",
"*.JPG",
"*.jpeg",
"*.JPEG",
"*.gif",
"*.GIF",
"*.jp2",
"*.JP2",
"*.png",
"*.PNG",
"*.tiff",
"*.TIFF",
"*.webp",
"*.WebP",
"*.WEBP",
] # filetypes supported by PIL
DEFAULT_ISSUE_TYPES_IMAGELAB = [
"dark",
"light",
"odd_aspect_ratio",
"low_information",
"exact_duplicates",
"near_duplicates",
"blurry",
"grayscale",
"odd_size",
]
DEFAULT_ISSUE_TYPES_VIDEOLAB = [
"dark",
"light",
"odd_aspect_ratio",
"low_information",
"blurry",
"grayscale",
"odd_size",
]
VIDEO_FILE_EXTENSIONS: List[str] = ["*.mp4", "*.avi", "*.mkv", "*.mov", "*.webm"]