forked from tinazhouhui/computer_vision
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrouter.py
25 lines (22 loc) · 823 Bytes
/
router.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
"""
Routing correct arguments to start correct functions
"""
from image_analysis.coin_detection import circle_coins, compare_circle_detection
from image_processing.bitwise_operations import bitwise
from image_processing.blend import blend
from image_processing.convo import create_transformed_outputs
from image_processing.edge_detection import edge_detection
from image_processing.gamma import gamma_correction
def router(argument):
"""
takes the argument from the system and starts the correct file
"""
routes = {
'convolution': create_transformed_outputs,
'edge-detection': edge_detection,
'blend': blend,
'bitwise-operations': bitwise,
'gamma-correction': gamma_correction,
'coin-detection': compare_circle_detection,
}
return routes[argument]