Labels: Update rules for more accurate results

Signed-off-by: Michael Mayer <michael@liquidbytes.net>
This commit is contained in:
Michael Mayer 2020-02-02 08:43:40 +01:00
parent 382a5a89f8
commit 780d859526
2 changed files with 31 additions and 29 deletions

View File

@ -988,7 +988,7 @@ var rules = LabelRules{
}, },
"bullet train": { "bullet train": {
Label: "train", Label: "train",
Threshold: 0.000000, Threshold: 0.350000,
Priority: 0, Priority: 0,
Categories: []string{"vehicle"}, Categories: []string{"vehicle"},
}, },
@ -1066,13 +1066,13 @@ var rules = LabelRules{
}, },
"cannon": { "cannon": {
Label: "", Label: "",
Threshold: 0.000000, Threshold: 0.300000,
Priority: 0, Priority: 0,
Categories: []string{"weapon", "military"}, Categories: []string{"weapon"},
}, },
"canoe": { "canoe": {
Label: "", Label: "",
Threshold: 0.000000, Threshold: 0.300000,
Priority: 0, Priority: 0,
Categories: []string{"boat", "water"}, Categories: []string{"boat", "water"},
}, },
@ -1162,7 +1162,7 @@ var rules = LabelRules{
}, },
"castle": { "castle": {
Label: "", Label: "",
Threshold: 0.000000, Threshold: 0.200000,
Priority: 0, Priority: 0,
Categories: []string{"historic", "architecture"}, Categories: []string{"historic", "architecture"},
}, },
@ -1455,9 +1455,9 @@ var rules = LabelRules{
Categories: []string{"animal"}, Categories: []string{"animal"},
}, },
"combination lock": { "combination lock": {
Label: "lock", Label: "",
Threshold: 0.500000, Threshold: 1.000000,
Priority: 0, Priority: -2,
Categories: []string{}, Categories: []string{},
}, },
"comic book": { "comic book": {
@ -1600,7 +1600,7 @@ var rules = LabelRules{
}, },
"crash helmet": { "crash helmet": {
Label: "helmet", Label: "helmet",
Threshold: 0.300000, Threshold: 0.500000,
Priority: 0, Priority: 0,
Categories: []string{}, Categories: []string{},
}, },
@ -1954,7 +1954,7 @@ var rules = LabelRules{
}, },
"electric locomotive": { "electric locomotive": {
Label: "train", Label: "train",
Threshold: 0.200000, Threshold: 0.350000,
Priority: 0, Priority: 0,
Categories: []string{"vehicle"}, Categories: []string{"vehicle"},
}, },
@ -2164,7 +2164,7 @@ var rules = LabelRules{
}, },
"football helmet": { "football helmet": {
Label: "helmet", Label: "helmet",
Threshold: 0.300000, Threshold: 0.500000,
Priority: 0, Priority: 0,
Categories: []string{}, Categories: []string{},
}, },
@ -2212,7 +2212,7 @@ var rules = LabelRules{
}, },
"freight car": { "freight car": {
Label: "vehicle", Label: "vehicle",
Threshold: 0.300000, Threshold: 0.350000,
Priority: 0, Priority: 0,
Categories: []string{}, Categories: []string{},
}, },
@ -2692,7 +2692,7 @@ var rules = LabelRules{
}, },
"helmet": { "helmet": {
Label: "helmet", Label: "helmet",
Threshold: 0.300000, Threshold: 0.500000,
Priority: 0, Priority: 0,
Categories: []string{}, Categories: []string{},
}, },
@ -3369,9 +3369,9 @@ var rules = LabelRules{
Categories: []string{"animal", "cooking", "water"}, Categories: []string{"animal", "cooking", "water"},
}, },
"lock": { "lock": {
Label: "lock", Label: "",
Threshold: 0.500000, Threshold: 1.000000,
Priority: 0, Priority: -2,
Categories: []string{}, Categories: []string{},
}, },
"loggerhead": { "loggerhead": {
@ -3999,9 +3999,9 @@ var rules = LabelRules{
Categories: []string{"vehicle", "water"}, Categories: []string{"vehicle", "water"},
}, },
"padlock": { "padlock": {
Label: "lock", Label: "",
Threshold: 0.500000, Threshold: 1.000000,
Priority: 0, Priority: -2,
Categories: []string{}, Categories: []string{},
}, },
"paintbrush": { "paintbrush": {
@ -4192,7 +4192,7 @@ var rules = LabelRules{
}, },
"pickelhaube": { "pickelhaube": {
Label: "helmet", Label: "helmet",
Threshold: 0.300000, Threshold: 0.500000,
Priority: 0, Priority: 0,
Categories: []string{}, Categories: []string{},
}, },
@ -5320,7 +5320,7 @@ var rules = LabelRules{
}, },
"steam locomotive": { "steam locomotive": {
Label: "train", Label: "train",
Threshold: 0.200000, Threshold: 0.350000,
Priority: 0, Priority: 0,
Categories: []string{"vehicle"}, Categories: []string{"vehicle"},
}, },

View File

@ -1932,6 +1932,7 @@ breakwater:
bullet train: bullet train:
label: train label: train
threshold: 0.35
categories: categories:
- vehicle - vehicle
@ -1947,11 +1948,12 @@ cab:
- vehicle - vehicle
cannon: cannon:
threshold: 0.3
categories: categories:
- weapon - weapon
- military
canoe: canoe:
threshold: 0.3
categories: categories:
- boat - boat
- water - water
@ -1963,6 +1965,7 @@ carpenter's kit:
see: tool see: tool
castle: castle:
threshold: 0.2
categories: categories:
- historic - historic
- architecture - architecture
@ -2048,11 +2051,10 @@ coffeepot:
see: coffee see: coffee
lock: lock:
label: lock see: ignore
threshold: 0.5
combination lock: combination lock:
see: lock see: ignore
computer keyboard: computer keyboard:
label: keyboard label: keyboard
@ -2082,7 +2084,7 @@ cornet:
helmet: helmet:
label: helmet label: helmet
threshold: 0.3 threshold: 0.5
crash helmet: crash helmet:
see: helmet see: helmet
@ -2197,7 +2199,7 @@ electric guitar:
electric locomotive: electric locomotive:
label: train label: train
threshold: 0.2 threshold: 0.35
categories: categories:
- vehicle - vehicle
@ -2245,7 +2247,7 @@ four-poster:
freight car: freight car:
label: vehicle label: vehicle
threshold: 0.3 threshold: 0.35
catgories: catgories:
- train - train
@ -2912,7 +2914,7 @@ spotlight:
steam locomotive: steam locomotive:
label: train label: train
threshold: 0.2 threshold: 0.35
categories: categories:
- vehicle - vehicle