craftutils.fits_files.detect_edges(file: HDUList | str, value: float = 0.0, ext: int = 0)

Detects the edges of a rectangular non-zero block, where the frame consists of a single value. For use with background files with an obvious frame. :param file: :param value: the value of the frame. :return: