File tree Expand file tree Collapse file tree 3 files changed +35
-2
lines changed
Expand file tree Collapse file tree 3 files changed +35
-2
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ Blob tracking via GoCV package
44## Table of Contents
55
66- [ About] ( #about )
7- - [ Installation] ( #usage )
7+ - [ Installation] ( #installation )
88- [ Usage] ( #usage )
99- [ Support] ( #support )
1010- [ Thanks] ( #thanks )
Original file line number Diff line number Diff line change 1+ package blob
2+
3+ import (
4+ "image"
5+ "time"
6+
7+ uuid "github.com/satori/go.uuid"
8+ )
9+
10+ // KalmanBlobie Blob implementation based on Kalman filter.
11+ // For more ref. see: https://en.wikipedia.org/wiki/Kalman_filter
12+ type KalmanBlobie struct {
13+ ID uuid.UUID
14+ CurrentRect image.Rectangle
15+ Center image.Point
16+ Area float64
17+ Diagonal float64
18+ AspectRatio float64
19+ Track []image.Point
20+ TrackTime []time.Time
21+ maxPointsInTrack int
22+ isExists bool
23+ isStillBeingTracked bool
24+ noMatchTimes int
25+ PredictedNextPosition image.Point
26+
27+ classID int
28+ className string
29+
30+ // For array tracker
31+ drawingOptions * DrawOptions
32+ crossedLine bool
33+ }
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import (
1010 "gocv.io/x/gocv"
1111)
1212
13- // SimpleBlobie - Main blob structure
13+ // SimpleBlobie Simplest blob implementation
1414type SimpleBlobie struct {
1515 ID uuid.UUID
1616 CurrentRect image.Rectangle
You can’t perform that action at this time.
0 commit comments