File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ func NewBlobiesDefaults() *Blobies {
33
33
}
34
34
}
35
35
36
- // MatchToExisting Check if blob already exists
36
+ // MatchToExisting Check if some of blobs already exists
37
37
func (bt * Blobies ) MatchToExisting (rects []image.Rectangle ) {
38
38
bt .prepare ()
39
39
blobies := make ([]* Blobie , len (rects ))
@@ -43,7 +43,6 @@ func (bt *Blobies) MatchToExisting(rects []image.Rectangle) {
43
43
44
44
for i := range blobies {
45
45
minUUID := uuid.UUID {}
46
- _ = minUUID
47
46
minDistance := math .MaxFloat64
48
47
for j := range (* bt ).Objects {
49
48
dist := distanceBetweenPoints (blobies [i ].Center , (* bt ).Objects [j ].Center )
@@ -61,6 +60,10 @@ func (bt *Blobies) MatchToExisting(rects []image.Rectangle) {
61
60
}
62
61
}
63
62
63
+ bt .RefreshNoMatch ()
64
+ }
65
+
66
+ func (bt * Blobies ) RefreshNoMatch () {
64
67
for i , b := range (* bt ).Objects {
65
68
if b .isExists == false {
66
69
b .noMatchTimes ++
You can’t perform that action at this time.
0 commit comments