An apparatus, comprising: a processor; and a storage device storing instructions that, when executed by the processor, cause the apparatus to perform operations including: receiving an infrared image of an environment captured by an imaging apparatus in a first configuration; identifying, based on the infrared image, that a light source is present in a scene captured in the infrared image, comprising: determining a grayscale level of each of a plurality of pixels in the infrared image; determining, based on a shape detection algorithm, that the plurality of pixels form at least one target shape of the light source in the infrared image; and for each of the at least one target shape, determining a ratio of a count of pixels in the target shape that have grayscale levels satisfying a grayscale level condition to a total count of pixels in the target shape; determining that the ratio corresponding to one of the at least one target shape exceeds a ratio threshold; and in response to the determination that the ratio corresponding to one of the at least one target shape exceeds the ratio threshold, identifying that the light source is present in the scene; and generating an order for changing the imaging apparatus from the first configuration to a second configuration. a processor; and a storage device storing instructions that, when executed by the processor, cause the apparatus to perform operations including: receiving an infrared image of an environment captured by an imaging apparatus in a first configuration; identifying, based on the infrared image, that a light source is present in a scene captured in the infrared image, comprising: determining a grayscale level of each of a plurality of pixels in the infrared image; determining, based on a shape detection algorithm, that the plurality of pixels form at least one target shape of the light source in the infrared image; and for each of the at least one target shape, determining a ratio of a count of pixels in the target shape that have grayscale levels satisfying a grayscale level condition to a total count of pixels in the target shape; determining that the ratio corresponding to one of the at least one target shape exceeds a ratio threshold; and in response to the determination that the ratio corresponding to one of the at least one target shape exceeds the ratio threshold, identifying that the light source is present in the scene; and generating an order for changing the imaging apparatus from the first configuration to a second configuration. receiving an infrared image of an environment captured by an imaging apparatus in a first configuration; identifying, based on the infrared image, that a light source is present in a scene captured in the infrared image, comprising: determining a grayscale level of each of a plurality of pixels in the infrared image; determining, based on a shape detection algorithm, that the plurality of pixels form at least one target shape of the light source in the infrared image; and for each of the at least one target shape, determining a ratio of a count of pixels in the target shape that have grayscale levels satisfying a grayscale level condition to a total count of pixels in the target shape; determining that the ratio corresponding to one of the at least one target shape exceeds a ratio threshold; and determining a grayscale level of each of a plurality of pixels in the infrared image; determining, based on a shape detection algorithm, that the plurality of pixels form at least one target shape of the light source in the infrared image; and for each of the at least one target shape, determining a ratio of a count of pixels in the target shape that have grayscale levels satisfying a grayscale level condition to a total count of pixels in the target shape; determining that the ratio corresponding to one of the at least one target shape exceeds a ratio threshold; and in response to the determination that the ratio corresponding to one of the at least one target shape exceeds the ratio threshold, identifying that the light source is present in the scene; and generating an order for changing the imaging apparatus from the first configuration to a second configuration.