File size: 673 Bytes
b7eedf7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
"""
Arguments:
maxR -- maximum drop radius
minR -- minimum drop radius
maxDrops -- maximum number of drops in the image
minDrops -- minimum number of drops in the image
edge_darkratio -- brightness reduction factor for drops edges
return_label -- flag defining whether a label will be returned or just an image with generated raindrops
A, B, C, D -- in this code are useless, old version is used for control bezeir
"""

cfg = {
    'maxR': 35,  # max not more then 150
    'minR': 10,
    'maxDrops': 50,
    'minDrops': 15,
    'edge_darkratio': 1.0,
    'return_label': True,
    'label_thres': 128,
    'A': (1, 4.5),
    'B': (3, 1),
    'C': (1, 3),
    'D': (3, 3)
}