@@ -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
135135func (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
162162func (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
236236func (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
264264func (b * KalmanBlobie ) IsCrossedTheObliqueLineWithShift (leftX , leftY , rightX , rightY int , direction bool , shift int ) bool {
265265 trackLen := len (b .Track )
0 commit comments