@@ -13,36 +13,38 @@ def parse_arguments():
13
13
)
14
14
parser .add_argument (
15
15
"--method" ,
16
- help = "Two computer vision method: traditional or deeplearning" ,
16
+ help = "Two computer vision method: traditional or deeplearning. " ,
17
17
required = False ,
18
18
type = str ,
19
19
default = "deeplearning" ,
20
20
)
21
21
parser .add_argument (
22
22
"--detectionType" ,
23
- help = "Type of object detection: color, shape, or category" ,
23
+ help = """For deeplearning, three types of object detection are
24
+ provided: color, shape, or category.
25
+ For traditional, only two types are provided: color or shape.""" ,
24
26
required = False ,
25
27
default = "color" ,
26
28
)
27
29
parser .add_argument (
28
30
"--multipleObject" ,
29
- help = "Whether to detect single or multiple types of objects ." ,
31
+ help = "Whether to detect objects with single or multiple classes ." ,
30
32
required = False ,
31
33
default = False ,
32
34
)
33
35
parser .add_argument (
34
36
"--trueLabel" ,
35
- help = """If it is color detection, input (Blue, Green, Red)
36
- of the object. Else if shape, input (Height, Width, Size).
37
- Else, input class_name of the object. In traditional,
38
- the label is also class_name""" ,
37
+ help = """For deeplearning, if it is color detection, input
38
+ (Blue, Green, Red) of the object. Else if shape, input
39
+ (Height, Width, Size). Else, input class_name of the object.
40
+ For traditional, the label is also class_name""" ,
39
41
required = False ,
40
42
type = str ,
41
43
default = "(55, 232, 254)" ,
42
44
)
43
45
parser .add_argument (
44
46
"--model" ,
45
- help = "Path of the object detection model." ,
47
+ help = "For deeplearning, path of the object detection model." ,
46
48
required = False ,
47
49
default = "./model/color_detector2.tflite" ,
48
50
)
@@ -62,14 +64,14 @@ def parse_arguments():
62
64
)
63
65
parser .add_argument (
64
66
"--numThreads" ,
65
- help = "Number of CPU threads to run the model." ,
67
+ help = "For deeplearning, number of CPU threads to run the model." ,
66
68
required = False ,
67
69
type = int ,
68
70
default = 4 ,
69
71
)
70
72
parser .add_argument (
71
73
"--enableEdgeTPU" ,
72
- help = "Whether to run the model on EdgeTPU." ,
74
+ help = "For deeplearning, whether to run the model on EdgeTPU." ,
73
75
action = "store_true" ,
74
76
required = False ,
75
77
default = False ,
@@ -82,13 +84,15 @@ def parse_arguments():
82
84
)
83
85
parser .add_argument (
84
86
"--plcAddress" ,
85
- help = "IP Address of the PLC to be sent detection data to" ,
87
+ help = """In client mode, IP Address of the PLC to which request
88
+ will be sent""" ,
86
89
required = False ,
87
90
default = "10.42.26.129" ,
88
91
)
89
92
parser .add_argument (
90
93
"--ethAddress" ,
91
- help = "IP Address of the Ethernet so Raspberry Pi can act as a server" ,
94
+ help = """In server mode, Ethernet Address of the Raspberry Pi so
95
+ that it can receive requests from the PLC""" ,
92
96
required = False ,
93
97
default = "10.42.26.165" ,
94
98
)
0 commit comments