File tree Expand file tree Collapse file tree 3 files changed +10
-0
lines changed
Expand file tree Collapse file tree 3 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ package blob
22
33import (
44 "image"
5+ "time"
56
67 uuid "github.com/satori/go.uuid"
78 "gocv.io/x/gocv"
@@ -13,6 +14,7 @@ type Blobie interface {
1314 GetCurrentRect () image.Rectangle
1415 GetPredictedNextPosition () image.Point
1516 GetTrack () []image.Point
17+ GetTimestamps () []time.Time
1618 GetDiagonal () float64
1719 GetClassID () int
1820 GetClassName () string
Original file line number Diff line number Diff line change @@ -167,6 +167,10 @@ func (sb *KalmanBlobie) GetTrack() []image.Point {
167167 return sb .Track
168168}
169169
170+ func (sb * KalmanBlobie ) GetTimestamps () []time.Time {
171+ return sb .TrackTime
172+ }
173+
170174func (sb * KalmanBlobie ) GetDiagonal () float64 {
171175 return sb .Diagonal
172176}
Original file line number Diff line number Diff line change @@ -50,6 +50,10 @@ func (sb *SimpleBlobie) GetTrack() []image.Point {
5050 return sb .Track
5151}
5252
53+ func (sb * SimpleBlobie ) GetTimestamps () []time.Time {
54+ return sb .TrackTime
55+ }
56+
5357func (sb * SimpleBlobie ) GetDiagonal () float64 {
5458 return sb .Diagonal
5559}
You can’t perform that action at this time.
0 commit comments