Skip to content

Commit 9ea514f

Browse files
committed
minor
1 parent 2e0d9e9 commit 9ea514f

File tree

3 files changed

+35
-2
lines changed

3 files changed

+35
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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)

v2/kalman_blob.go

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
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+
}

v2/simple_blob.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
"gocv.io/x/gocv"
1111
)
1212

13-
// SimpleBlobie - Main blob structure
13+
// SimpleBlobie Simplest blob implementation
1414
type SimpleBlobie struct {
1515
ID uuid.UUID
1616
CurrentRect image.Rectangle

0 commit comments

Comments
 (0)