pub fn bit_code( img: &GrayImage, decode_pts: &[(f32, f32)], valid_brightness_threshold: u8, max_invalid_bit: u32, ) -> Option<u64>