Skip to content

Commit

Permalink
Merge branch 'motdet_patch' of github.com:groundlight/framegrab into …
Browse files Browse the repository at this point in the history
…motdet_patch
  • Loading branch information
blaise-muhirwa committed Jul 20, 2023
2 parents caefd41 + 4f278ac commit 7571304
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/framegrab/motion.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,7 @@ def pixel_threshold(self, img: np.ndarray, threshold_val: float = None) -> bool:
return True
else:
if self.log_pixel_percent:
logger.debug(
f"No motion detected: {pct_hi:.3f}% < {self.pixel_pct_threshold}%"
)
logger.debug(f"No motion detected: {pct_hi:.3f}% < {self.pixel_pct_threshold}%")
return False

def motion_detected(self, new_img: np.ndarray) -> bool:
Expand Down

0 comments on commit 7571304

Please sign in to comment.