Skip to content

Commit fc2c362

Browse files
authored
Update line_cross.go
wrong comments
1 parent 0b0fff4 commit fc2c362

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

v2/blob/line_cross.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ func (b *SimpleBlobie) IsCrossedTheLineWithShift(vertical, leftX, rightX int, di
131131
}
132132

133133
// IsCrossedTheObliqueLine - Check if blob crossed the OBLIQUE line
134-
// This should be used when lineStart.Y != lineEnd.Y or lineStart.X != lineEnd.X
134+
// This should be used when lineStart.Y != lineEnd.Y
135135
func (b *SimpleBlobie) IsCrossedTheObliqueLine(leftX, leftY, rightX, rightY int, direction bool) bool {
136136
trackLen := len(b.Track)
137137
if b.isStillBeingTracked == true && trackLen >= 2 && b.crossedLine == false {
@@ -157,7 +157,7 @@ func (b *SimpleBlobie) IsCrossedTheObliqueLine(leftX, leftY, rightX, rightY int,
157157
}
158158

159159
// IsCrossedTheObliqueLine - Check if blob crossed the OBLIQUE line with shift along the Y-axis
160-
// This should be used when lineStart.Y != lineEnd.Y or lineStart.X != lineEnd.X
160+
// This should be used when lineStart.Y != lineEnd.Y
161161
// Purpose of shifting: for "predicative" cropping when detection line very close to bottom of image
162162
func (b *SimpleBlobie) IsCrossedTheObliqueLineWithShift(leftX, leftY, rightX, rightY int, direction bool, shift int) bool {
163163
trackLen := len(b.Track)
@@ -232,7 +232,7 @@ func (b *KalmanBlobie) IsCrossedTheLineWithShift(vertical, leftX, rightX int, di
232232
}
233233

234234
// IsCrossedTheObliqueLine - Check if blob crossed the OBLIQUE line
235-
// This should be used when lineStart.Y != lineEnd.Y or lineStart.X != lineEnd.X
235+
// This should be used when lineStart.Y != lineEnd.Y
236236
func (b *KalmanBlobie) IsCrossedTheObliqueLine(leftX, leftY, rightX, rightY int, direction bool) bool {
237237
trackLen := len(b.Track)
238238
if b.isStillBeingTracked == true && trackLen >= 2 && b.crossedLine == false {
@@ -259,7 +259,7 @@ func (b *KalmanBlobie) IsCrossedTheObliqueLine(leftX, leftY, rightX, rightY int,
259259
}
260260

261261
// IsCrossedTheObliqueLine - Check if blob crossed the OBLIQUE line with shift along the Y-axis
262-
// This should be used when lineStart.Y != lineEnd.Y or lineStart.X != lineEnd.X
262+
// This should be used when lineStart.Y != lineEnd.Y
263263
// Purpose of shifting: for "predicative" cropping when detection line very close to bottom of image
264264
func (b *KalmanBlobie) IsCrossedTheObliqueLineWithShift(leftX, leftY, rightX, rightY int, direction bool, shift int) bool {
265265
trackLen := len(b.Track)

0 commit comments

Comments
 (0)