This repository has been archived by the owner on Dec 3, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.xml
67 lines (67 loc) · 2.62 KB
/
config.xml
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
63
64
65
66
67
<configuration>
<!-- Sets what the application needs to do
It can be:
- video - show video stream, mark circles which contain minimal value of blue color
- collect - find circles which contain minimal value of blue color and save it ti disk
- quiet_collect - same made without GUI
- learning - make models using collected images
- detection - detect road signs, print result on window and to log
- quiet_detection - same mode without GUI -->
<mode>detection</mode>
<gui>
<show_extra_windows>true</show_extra_windows>
</gui>
<!--for color detect (HSV)-->
<hsv_filtering>
<blue>
<!--0…179 (Hue)-->
<low_h>85</low_h>
<high_h>160</high_h>
<!--0…255 (Saturation)-->
<low_s>127</low_s>
<high_s>255</high_s>
<!--0…255 (Value)-->
<low_v>127</low_v>
<high_v>255</high_v>
<!--for blue road signs-->
</blue>
</hsv_filtering>
<video>
<video_input_source_number>1</video_input_source_number>
</video>
<hough_circle_transform_parametrs>
<dp>2.1</dp>
<min_dist>25</min_dist>
<p1>200</p1>
<p2>100</p2>
<!--Caution! Min radius in not smaller then 15 -->
<min_radius>15</min_radius>
<max_radius>160</max_radius>
</hough_circle_transform_parametrs>
<detection>
<!--<threshold>220</threshold>-->
<!--the ratio of non zero pixels to zero pixels from monochrome image.
if it higher then this value then image will go on to detection -->
<ratio_nonzeros_to_zeros>2</ratio_nonzeros_to_zeros>
</detection>
<ml>
<base_directory>ml_data</base_directory>
<!-- To train your fully connected network put originals to directories in originals_subdirectory.
Directories must be named as road signs, i.e. forward_only, right_turn_only, left_turn_only, stop, etc...-->
<originals_subdirectory>originals</originals_subdirectory>
<threshold>300000</threshold>
</ml>
<files>
<road_sign_samples_directory>samples/</road_sign_samples_directory>
<!-- note: the logfile can be /dev/stdout (on unix/linux) -->
<logfile>/dev/stdout</logfile>
<!--loglevel must be: none, fatal, error, warning, info, debug or verbose -->
<loglevel>verbose</loglevel>
<output_directory>output/</output_directory>
<save_test_images>false</save_test_images>
</files>
<serial_connection>
<port>"/dev/ttyACM0"</port>
<fake>true</fake>
</serial_connection>
</configuration>