X-Git-Url: https://wannabe.guru.org/gitweb/?a=blobdiff_plain;f=camera_utils.py;h=d2c50ddf314d96402f885c10c6c79081569ca2c1;hb=9d3650cc7009183d92422e70cf0089b2674e1e9b;hp=799efd35d19fa39a7879c6c0851f9e697704927b;hpb=17e8082381dbbf691dfb19fb1b38a97e48d6ab87;p=python_utils.git diff --git a/camera_utils.py b/camera_utils.py index 799efd3..d2c50dd 100644 --- a/camera_utils.py +++ b/camera_utils.py @@ -56,7 +56,8 @@ def sanity_check_image(hsv: np.ndarray) -> SanityCheckImageMetadata: hs_zero_count += 1 logger.debug(f"hszero#={hs_zero_count}, weird_orange={weird_orange_count}") return SanityCheckImageMetadata( - hs_zero_count > (num_pixels * 0.75), weird_orange_count > (num_pixels * 0.75) + hs_zero_count > (num_pixels * 0.75), + weird_orange_count > (num_pixels * 0.75), )