forked from vassdoki/opencv-darts
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig-sample.xml
More file actions
69 lines (62 loc) · 2.68 KB
/
config-sample.xml
File metadata and controls
69 lines (62 loc) · 2.68 KB
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
68
69
<DartsConfig>
<CAPTURE_WIDTH>640</CAPTURE_WIDTH>
<CAPTURE_HEIGHT>480</CAPTURE_HEIGHT>
<BOARD_ID>PLEASE_CHANGE_THIS</BOARD_ID> <!-- enter you cityName_username here -->
<SERVER_HOST>http://http://game.eu.dartsee.com:8080</SERVER_HOST>
<SERVER_USE>1</SERVER_USE> <!-- turn on web scoreboard -->
<CALIBRATION_SERVER>http://game.eu.dartsee.com:8080/calibrate</CALIBRATION_SERVER>
<SAVE_CAPTURED>0</SAVE_CAPTURED> <!-- save the captured images to OUTPUT_DIR -->
<USE_SAVED_IMAGES>0</USE_SAVED_IMAGES> <!-- 0: use the camera, 1: use the saved images -->
<START_OVER>1</START_OVER> <!-- in case of USE_SAVED_IMAGES == 1, 1: restart from the beginning of the file list -->
<OUTPUT_DIR>/tmp/</OUTPUT_DIR> <!-- directory to save captured images, if SAVE_CAPTURED == 1 -->
<INPUT_DIR>example/sample-images/</INPUT_DIR> <!-- directory to read all files from if USE_SAVED_IMAGES == 1 -->
<DEBUG_DART_FINDER>0</DEBUG_DART_FINDER>
<DEBUG_MAIN>0</DEBUG_MAIN>
<DEBUG_PROFILE>0</DEBUG_PROFILE>
<DEBUG_CAMERA_PROPERTIES>0</DEBUG_CAMERA_PROPERTIES>
<DEBUG_FPS>0</DEBUG_FPS> <!-- print FPS info to stdout -->
<camera name="left" camId="0">
<videoDeviceNumber>0</videoDeviceNumber> <!-- /dev/videoX value -->
<area> <!-- area of interest on the captured image, this should be absolutely white, if there are no darts in the board -->
<x>0</x>
<y>156</y>
<width>639</width>
<height>44</height>
<zeroy>220</zeroy> <!-- he y coordinate of the dartboard's surface -->
</area>
<threshold> <!-- in the grayscale image, pixels between min and max are considered to be part of the background -->
<min>130</min>
<max>255</max>
</threshold>
<pos> <!-- position of the camera in the dartbard's coordiate system (where bull is 400,400 and the radius is 300 -->
<camx>953</camx>
<camy>-102</camy>
<leftx>636</leftx>
<lefty>654</lefty>
<rightx>164</rightx>
<righty>138</righty>
</pos>
</camera>
<camera name="right" camId="1">
<videoDeviceNumber>1</videoDeviceNumber>
<area>
<x>0</x>
<y>232</y>
<width>639</width>
<height>43</height>
<zeroy>293</zeroy>
</area>
<threshold>
<min>200</min>
<max>255</max>
</threshold>
<pos>
<camx>-111</camx>
<camy>-142</camy>
<leftx>662</leftx>
<lefty>155</lefty>
<rightx>140</rightx>
<righty>645</righty>
</pos>
</camera>
</DartsConfig>