Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/vectorize-line-zone' into vector…
Browse files Browse the repository at this point in the history
…ize-line-zone
  • Loading branch information
tc360950 committed May 24, 2024
2 parents ed5c265 + d23cc00 commit d6ae86e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion supervision/detection/line_zone.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ def trigger(self, detections: Detections) -> Tuple[np.ndarray, np.ndarray]:
cross_products_1 = self._cross_product(all_anchors, self.limits[0])
cross_products_2 = self._cross_product(all_anchors, self.limits[1])
# anchor is in limits if it's on the same side of both limit vectors
in_limits = ~ np.logical_xor(cross_products_1 > 0, cross_products_2 > 0)
in_limits = ~np.logical_xor(cross_products_1 > 0, cross_products_2 > 0)
# Reduce array to find out if all anchors for a detection are within limits
in_limits = np.min(in_limits, axis=0)

Expand Down

0 comments on commit d6ae86e

Please sign in to comment.