Releases: LdDl/gocv-blob
Releases · LdDl/gocv-blob
Version v2.3.0 - Update bindings version
What's new
Just migrated to newer version of OpenCV bindings https://github.com/hybridgroup/gocv/releases/tag/v0.30.0
Version v2.2.10 - Fix "point is on segment"
What's new
There is obvious mistake (which leads to wrong calculations with oblique lines) in code below
func isOnSegment(Px, Py, Qx, Qy, Rx, Ry int) bool {
if Qx <= maxInt(Px, Rx) && Qx >= maxInt(Px, Rx) && Qy <= maxInt(Py, Ry) && Qy >= maxInt(Py, Ry) {
return true
}
return false
}
Qx >= maxInt(Px, Rx) should be Qx >= minInt(Px, Rx)
Qy >= maxInt(Py, Ry) should be Qy >= minInt(Py, Ry)
Now this is fixed
Version v2.2.9 - Improve position prediction
What's new
- Thanks to @FieldsYeh issue for pointing that PredictNextPosition() function was not that good.
So I've used suggested code and written tests.
Detailed info about corresponding pull request: #3
Version v2.2.8 - Fix property map
What's new
- Add map initialization on blob creation (either simple or kalman based)
- Fix misspells
Version v2.2.7 - Additional setter / getter combo
What's new:
- Added getter for custom properties of Blob:
// Simple blob implementation
func (b *SimpleBlobie) GetPropetry(key string) (interface{}, bool) {
v, ok := b.customProperties[key]
return v, ok
}
// Kalman filter based blob implementation
func (b *KalmanBlobie) GetPropetry(key string) (interface{}, bool) {
v, ok := b.customProperties[key]
return v, ok
}
- Added setter for custom properties of Blob:
// Simple blob implementation
func (b *SimpleBlobie) SetPropetry(key string, value interface{}) {
b.customProperties[key] = value
}
// Kalman filter based blob implementation
func (b *KalmanBlobie) SetPropetry(key string, value interface{}) {
b.customProperties[key] = value
}
Version v2.2.6 - Minor fix
What's new
- Anchor shifting evaluated [for rendering multiple text line in DrawTrack() method] has been refactored
Version v2.2.5 - Minor
What's new
- Anchor shifting [for rendering multiple text line in DrawTrack() method] is evaluated instead of being a constant value.
Version v2.2.4 - Refactor DrawTrack method
What's new
- Until this release DrawTrack() was accepting variable of type String, but not it accepts variadic argument (slice of strings).
Now it is possible to draw multiple text lines over the bounding box of object
Version v2.2.3 - Minor update
What's new
- Remove currently not used setters (will bring them later if needed)
- Separate helping function into internal_utils.go
Version v2.2.2 - Minor update
What's new:
Just change blob.Center information for Kalman blobie - d30f216
old:
b.Track = append(b.Track, newbCast.Center)
new:
b.Track = append(b.Track, b.Center)
This change is needed due the DrawTrack() and PredictNextPosition() functions since thouse functions uses not only rectangle, but centroids too.