Reducing and eliminating the effects of bright lights in a field-of-view of a camera
The present disclosure describes how to reduce or eliminate negative effects caused by bright lights in a change detection system. As a result, false alarms caused by lighting changes may be significantly reduced or eliminated.
1. A system, comprising:
at least one processor; and
a memory storing instructions that, when executed by the at least one processor, perform a method, comprising:
receiving a reference image;
receiving a new image;
determining an average value of pixels in the new image;
determining an average value of differences of the pixels in the new image;
determining whether a value of a pixel of the new image is greater than a sum of the average value of the pixels in the new image and the average value of the difference of the pixels in the new image; and
when it is determined that the value of the pixel of the new is greater than the sum, changing the value of the pixel to the sum of the average value of the pixels in the new image and the average value of the difference of the pixels in the new image.
2. The system of claim 1 , further comprising instructions for representing the reference image as a two-dimensional array of pixels.
3. The system of claim 1 , further comprising instructions for representing the new image as a two-dimensional array of pixels.
4. The system of claim 1 , wherein the reference image is a still image.
5. The system of claim 1 , further comprising instructions for updating the reference image using the changed value of the pixel.
6. The system of claim 5 , further comprising instructions for sending the updated reference image and the new image to a change detection system.
7. The system of claim 1 , wherein the reference image is captured by a closed-circuit television camera.
8. A method, comprising:
receiving a reference image;
receiving a new image;
determining an average value of pixels in the new image;
determining an average value of differences of the pixels in the new image;
determining whether a value of a pixel of the new image is greater than a sum of the average value of the pixels in the new image and the average value of the difference of the pixels in the new image; and
when it is determined that the value of the pixel of the new is greater than the sum, changing the value of the pixel to the sum of the average value of the pixels in the new image and the average value of the difference of the pixels in the new image.
9. The method of claim 8 , further comprising representing the reference image as a two-dimensional array of pixels.
10. The method of claim 8 , further comprising representing the new image as a two-dimensional array of pixels.
11. The method of claim 8 , wherein the reference image is a still image.
12. The method of claim 8 , further comprising updating the reference image using the changed value of the pixel.
13. The method of claim 12 , further comprising sending the updated reference image to a change detection system.
14. The method of claim 8 , wherein the reference image is captured by a closed-circuit television camera.
15. A system, comprising:
at least one processor; and
a memory storing instructions that, when executed by the at least one processor, perform a method, comprising:
receiving a reference image;
receiving a new image;
determining an average value of pixels in the new image;
determining an average value of differences of the pixels in the new image;
determining whether a value of a pixel of the new image is greater than a sum of the average value of the pixels in the new image and the average value of the difference of the pixels in the new image;
when it is determined that the value of the pixel of the new is greater than the sum, changing the value of the pixel to the sum of the average value of the pixels in the new image and the average value of the difference of the pixels in the new image; and
updating the reference image using in which each pixel in a reference image pixel array is set equal to the sum of one-fourth of a numerical value of a specific point in a reference image array plus three-fourths of a numerical value of a specific point in a new image array for all pixels in the reference image pixel array.
16. The system of claim 15 , further comprising instructions for representing the reference image as a two-dimensional array of pixels.
17. The system of claim 15 , further comprising instructions for representing the new image as a two-dimensional array of pixels.
18. The system of claim 15 , wherein the reference image is a still image.
19. The system of claim 15 , further comprising instructions for sending the updated reference image to a change detection system.
20. The system of claim 15 , wherein the reference image is captured by a closed-circuit television camera.