-
Notifications
You must be signed in to change notification settings - Fork 0
/
scriptTA.py
33 lines (27 loc) · 903 Bytes
/
scriptTA.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
from LibLlie.troditionAlgorithm.utils import script_ta
if __name__ == '__main__':
path_to_img = r"D:\Code\JupyterCode\Assigment\data\real_data\fish.png" # it can be input local image, url, or bytes stream
img = script_ta(
path_to_img,
algorithm='DCP',
color_space='rgb',
# following parameters are alternative
showimg=True,
saveimg=False,
# name='rgb_he',
# width=800,
# height=600,
# format='jpg',
# directory=results_path,
# clipLimit=, # default = 2.0
# gridSize=, # default = 8
# iteration= # default = 2
dcpSize=15, # default = 15
)
"""
Quickly start:
supported algorithm:
he: he | clahe | rclahe | DCP
supported color_space:
cs: rgb | hls | hsv | lab | yuv
"""