Object detection

Information

  • Patent Grant
  • 7184585
  • Patent Number
    7,184,585
  • Date Filed
    Wednesday, January 14, 2004
    21 years ago
  • Date Issued
    Tuesday, February 27, 2007
    17 years ago
Abstract
A method for object detection that utilizes a patterned background. Patterned backgrounds are chosen such that each reference image analyzed will have both light and dark pixels. The method calculates the difference between the expected value for the light pixels and the expected value of the dark pixels in the reference image. This difference is used to chose a threshold value. The difference in expected values for the corresponding pixels in a live image is calculated and compared to the threshold value. If the difference in expected values of the live image are less than the threshold value, object detection is indicated.
Description
FIELD OF THE INVENTION

The present invention relates to object detection. More specifically, the present invention relates to the detection of objects in a user-defined area having a patterned background.


BACKGROUND OF THE INVENTION

Motion detection and object detection systems are known in the art. Frequently, such systems are used to monitor a user-defined area to detect whenever an object enters the area. The equipment needed to implement an object detection system is well known in the art. Such systems comprise an imaging device (typically a video camera) capable of capturing an image of the monitored area and a device for digitizing the captured images. The digitized images are then analyzed in an attempt to detect whether an object has entered the monitored area. There exist many different known methods and algorithms for analyzing digitized images for determining when an object has entered a monitored area. Two of the most common methods utilized are generally referred to as motion segmentation methods or change detection methods.


A change detection method of object detection in an image is accomplished by examining the difference between a current image and a reference image that contains only the static background of the monitored area or scene. A reference image can be thought of as a representation of the monitored area as it would appear if no transitory objects were in view. Change detection algorithms take two digitized images as input and return the locations in the field of view where differences between the images are identified. These differences may be caused by the motion of an object in the field of view, the addition or removal of an object from the scene, changes in illumination, or noise from the digitization process. The objective of change detection algorithms is to locate only the changes that are due to structural changes in the scene, that is, an object moving or the introduction or removal of an object in the scene.


However, many object detection systems are utilized in environments that cause shadows to be cast on the monitored area or zone or in environments that experience significant changes in ambient lighting conditions. Such environments are often found in industrial settings. Shadows may be caused by direct and/or diffuse illumination from the environment outside the monitored area. Objects moving near the monitored area may have their shadows cast into the monitored area. Additionally, shadows may change as the lighting conditions in the environment change. Changes in the lighting conditions may be due to changes in the amount of illumination or movement of the light source.


Object detection systems need to distinguish actual objects in a monitored area from shadows that are being cast into the area and changes in the ambient lighting conditions. Existing techniques have attempted to distinguish actual objects in a monitored area from shadows that are being cast into the area and changes in the ambient lighting conditions, but these existing techniques have enjoyed limited success. Therefore, a need continues to exist in the art for object detection systems and methods that are superior to existing systems and methods for distinguishing objects from shadows and changing lighting conditions.


SUMMARY OF THE INVENTION

The present invention provides for object detection that is superior to the prior art at distinguishing between objects that have moved into a monitored area and shadows that have been cast into the monitored area. A patterned background is utilized in the present invention. According to the present invention, portions of the patterned background are analyzed to determine whether an object exists in any of the portions. For purposes of the present specification, each portion of the patterned background is referred to as a mask window. Preferably, the size of the mask window is designed so that it is no larger than the approximate size of the smallest object for which detection is desired. Mask windows are overlapped in a manner so as to cover the area for which object detection is desired. The patterned background is designed so that each mask window contains both light areas and dark areas. In a preferred embodiment, the patterned background is designed so that in each mask window the amount of light area and amount of dark area is approximately equal.


The present invention takes advantages of certain phenomena that occur when, in accordance with the present invention, a live image is compared to a reference image exhibiting a patterned background. First, a difference image produced by subtracting the reference image from a live image containing an object will contain a complement or inverse image of the object. Second, live images containing shadows instead of objects tend to not produce any complements or inverse images in a difference image.


Because the overall background pattern and the position of each mask window are known and do not change during object detection, the background pattern within each mask window is known and is constant. Thus, certain calculations corresponding to each reference image can be made once during initialization of the object detection system and then used as constants during analysis of a live image. This use of constants calculated at initialization allows for faster image analysis at run time, which in turn allows image capture devices with faster frame rates to be used.


According to the present invention, an object is detected when the difference between the expected value for the brightness levels in the portion of the live image corresponding to the portion of the reference image containing light pixels and the expected value for the brightness levels in the portion of the live image corresponding to the portion of the reference image containing dark pixels is less than some threshold T. Stated another way, object detection is indicated whenever the following relationship holds:

(E[LiveL(x,y)]−E[LiveD(x,y)])<T,

wherein E[LiveL(x,y)] is the expected value for the brightness levels in the portion of the live image corresponding to the portion of the reference image containing light pixels, wherein E[LiveD(x,y)] is the expected value for the brightness levels in the portion of the live image corresponding to the portion of the reference image containing dark pixels, wherein 0<T<γref, wherein γref=(E[RefL(x,y)−E[RefD(x,y)]), wherein E[RefL(x,y) is the expected value of the brightness levels of the light pixels in the reference image and E[RefD(x,y)] is the expected value of the brightness levels of the dark pixels in the reference image. In a preferred embodiment of the present invention, T is equal to about γref/2.


As explained above, γref can be calculated once and T can be chosen once at the time when a system embodying the present invention is setup or initialized and then both γref and T can be used as constants throughout the operation of the system. Alternatively, the reference image could be updated periodically and new values for γref and T calculated. Updating the reference image periodically would allow for embodiments of the present invention to account for changes in the environment, such as a slight deterioration of the background pattern over time.


The present invention can be embodied in a monitoring system able to detect the intrusion of people (or other objects) into a user-defined safety zone. The present invention provides superior methods for distinguishing between objects actually entering the user-defined area and shadows caused to be cast onto the user-defined area by changes in lighting or objects moving near the user-defined area.





DESCRIPTION OF THE DRAWINGS


FIG. 1 depicts examples of patterns useful in the present invention.



FIG. 2 depicts an embodiment of the present invention.



FIG. 3 depicts a reference image, a live image containing an object (that is, a hand), and a reference image produced in accordance with the present invention.



FIG. 4 shows a flowchart embodying a method according to the present invention.





DETAILED DESCRIPTION OF THE INVENTION

Unless indicated otherwise, the term “image” used in the current specification will refer to a digitized image having an array or vector of numbers representing brightness (that is, luminance intensity) levels. Each brightness level ranges from 0 (the darkest) to Imax (the brightest). In embodiments of the present invention, the actual numerical intensity levels may range from 0 to 1.0 or from 0 (00000000 in binary notation) to 255 (11111111 in binary notation), for example, depending on the specific equipment utilized. Equipment for digitizing images and converting to arrays of brightness levels is well known in the art. The numerical brightness levels are frequently referred to as pixels.


According to the present invention, each captured image of the monitored area is divided up into portions or segments. These portions or segments are referred to as mask windows. The size of each mask window is chosen so that it is no bigger than the approximate size of the smallest object for which detection is desired. This is referred to as the target size. The present invention can detect objects smaller than the mask window, but the smaller an object is relative to the mask window, the lower the probability will be that the object will be detected. Thus, the size of objects to be detected are preferably at least as big as the area represented by the mask window.


Positions of mask windows are chosen so that the entire area to be monitored is covered by overlapping mask windows. Preferably, each mask window overlaps at least one other mask window. More preferably, each mask window overlaps approximately one half of at least one other mask window.


For each captured image of the monitored area, the image corresponding to each mask window is analyzed for object detection. Generally, object detection according to the present invention can be implemented on standard hardware known to one of ordinary skill in the art to operate sufficiently fast to complete analysis of all window masks for each capture image before the next image of the monitored area is captured.


The present invention provides for improved object detection in monitored areas having a patterned background. The patterned background is designed so that each mask window contains both light areas and dark areas. In a preferred embodiment, the patterned background is designed so that in each mask window the amount of light area and amount of dark area is approximately equal. FIG. 1 depicts examples of patterns useful in the present invention. The light and dark areas of a pattern are designed so that the brightness value or intensity level of the image pixels corresponding to the light areas is substantially greater than the brightness value or intensity level of the image pixels corresponding to the dark areas. The image pixels corresponding to the dark areas will all have values much less than Imax, and preferably, they will all have values close to zero. Similarly, the image pixels corresponding to the light areas will all have values much greater than zero, and preferably, they will all have values close to Imax.


One embodiment of the present invention utilizes a patterned area surrounding an area into which objection detection is desired. An example of such an embodiment is depicted in FIG. 2 along with three overlapping mask windows 11. In actual operation, the number of mask windows 11 would be sufficient to allow the entire patterned background to be monitored for objects. Each mask window 11 is analyzed for the presence of objects. It is assumed that no object can enter the surrounded area without passing through the patterned area. Thus, if no object is detected in any of the mask windows 11, then no object will have been detected in the patterned area and it can be assumed that no object has entered the surrounded area.



FIG. 2 also shows an image capturing device 12, an image analysis device 13, and two different types of warning devices: an alarm 14 and a monitor 15. Image capturing devices 12 useful in the present invention are known in the art. Image capture device 12 may be a camera or other device capable of capturing an image. Various attachments can be used with image capture device 12 to enhance or modify the manner in which an image is captured. For example, a telescopic lens attached to image capture device 12 enables the monitoring of an area at a significant distance from the image capture device 12. Generally, images captured by the image capturing device 12 are analyzed, and stored if necessary, in the image analysis device 13. Image analysis devices 13 useful in the present invention can be any devices capable of carrying out the calculations required by the present invention. For example, the image analysis device 13 can be a computing device, such as a personal computer, programmed to carry out the needed calculations. In one embodiment, the image capture device 12 and the image analysis device 13 reside in the same hardware. For example, the image capture device 12 can be a camera having an on-board or embedded microprocessor used as an image analysis device 13. If an object is detected an appropriate signal or indication is made. The signal can take the form of sounding and alarm 14 or displaying information on a monitor 15.


The embodiment depicted in FIG. 2 can be effectively utilized in an industrial setting, for example, where the area of interest is a portion of a floor, perhaps containing potentially hazardous equipment. A pattern according to the present invention can be painted on the floor surrounding the area of interest. An imaging device is then placed in a position (on the ceiling, for example) such that the patterned area can be monitored for objects. If an object is detected in the patterned area, an alarm can be sounded or the potentially hazardous equipment shut down.


The present invention takes advantage of certain characteristics or phenomena about the difference between a current or live image and a reference image. A difference image can be calculated by subtracting the brightness level of the reference image from the brightness level of the live image at each pixel. The calculation of a difference image can be represented by the following equation:

Diff (x,y)=Live (x,y)−Ref(x,y)

where Live(x,y) represents the brightness level at position (x,y) in a live image, Ref(x,y) represents the brightness level at the same position (x,y) in the reference image, and Diff(x,y) represents the difference between these two brightness levels.


According to the present invention, the following phenomena is utilized. Whenever an object is located in the live image at a position (x,y), Diff(x,y) will be the complement of Ref(x,y). That is, if Ref(x,y) is a light pixel (that is, has a high brightness level) then Diff(x,y) will have a lower brightness level than Ref(x,y) and if Ref(x,y) is a dark pixel then Diff(x,y) will have a higher brightness level than Ref(x,y). Accordingly, Diff(x,y) will be the complement or inverse of Ref(x,y) when an object is present in the live image. This phenomena is shown in FIG. 3 and can be further explained in the following manner:

    • Let IL=value of Ref(x,y) when Ref(x,y) is a light pixel,
    • Let ID=value of Ref(x,y) when Ref(x,y) is a dark pixel, and
    • Let l=the value of Live(x,y). Then,
      • Diff(x,y)=(l−IL) if Ref(x,y)=IL
      • Diff(x,y)=(l−ID) if Ref(x,y)=ID
    • Since ID<IL, the following inequality holds
      • (l−ID)>(l−IL),∀l


According to the present invention, the following phenomena is also utilized. Let DiffL(x,y) be that portion of the difference image corresponding to the position where the pixels in Ref(x,y) are light and let DiffD(x,y) be that portion of the difference image corresponding to the position where the pixels in Ref(x,y) are dark. When an object has entered the mask window the expected value (typically calculated as the average value) of the values in DiffL should be less than the expected value of the values in DiffD. This is expressed as follows:

∃ an object→E[DiffL(x,y)]<E[DiffD(x,y)],

where E[DiffL(x,y)] is the expected value of the pixels in DiffL(x,y) and E[DiffD(x,y)] is the expected value of the pixels in DiffD(x,y). Equivalently, this can be expressed as follows:

E[DiffL(x,y)]≧E[DiffD(x,y)]→custom character an object

This equation can be rearranged to produce the following:

(E[LiveL(x,y)]−E[LiveD(x,y)])≧(E[RefL(x,y)−E[RefD(x,y)→custom character an object

where LiveL(x,y) is that portion of the live image corresponding to the position where the pixels in Ref(x,y) are light and let LiveD(x,y) be that portion of the live image corresponding to the position where the pixels in Ref(x,y) are dark. Since RefL(x,y) is known and is constant, the expected value of RefL(x,y), E[RefL(x,y)], is only required to be calculated once. This calculation can be done during the configuration or initialization of the system prior to operating the system. Similarly, E[RefD(x,y)] can be calculated once and then used whenever needed. Let the constant (E[RefL(x,y)−E[RefD(x,y)]) be represented as γref. The above equation then becomes:

(E[LiveL(x,y)]−E[LiveD(x,y)])≧γrefcustom character an object


The present invention also utilizes another phenomenon. If a shadow falls on a pattern of the present invention it will darken all pixels to some degree, but will not cause lighter pixels to have intensity values lower than the darker pixels. That it, the expected value of the light pixels in a live image, E[LiveL(x,y)], should be greater than the expected value of the dark pixels in a live image, E[LiveD(x,y)], even when there is a shadow in the mask window. This observation can be expressed by the following equation.

(E[LiveL(x,y)]−E[LiveD(x,y)])<0→(∃ an object)


The two equations above cover all cases except those covered by the following equation.

0<(E[LiveL(x,y)]−E[LiveD(x,y)])<γref


In an ideal world, the above condition would be considered an object intrusion since the difference in expected values found in the live image is less than the difference in expected values found in the reference image, namely γref. However, this analysis of the above condition does not address any noise effects. Taking noise effects into consideration in conjunction with the above three equations, an object is detected when the difference in expected values is less than some threshold T, where the value of T is greater than 0 and less than γref.


Thus, according to the present invention, an object is detected when

(E[LiveL(x,y)]−E[LiveD(x,y)])<T,

where 0<T<γref. In a preferred embodiment of the present invention, T is equal to about γref/2. Values of T may be optimized for specific applications without undue experimentation.


Once an object is detected, the present invention can indicate or signal that an object has been detected in any number of ways known in the art. For example, a system according to the present invention could send a signal to an alarm system.



FIG. 4 shows a flowchart embodying a method according to the present invention. It should be understood that FIG. 4 is intended to be illustrative, not restrictive. Many other embodiments of the present invention will be apparent to those of skill in the art. For example, the particular sequence of steps depicted in FIG. 4 does not imply any temporal ordering of their execution in the broadest embodiments of the present invention.

Claims
  • 1. A method for detecting an object in an area, comprising: capturing a reference image of the area without the object present, wherein the area includes an intentionally patterned background with both light areas and dark areas, wherein the light areas and dark areas have an intended interrelationship;capturing a live image; anddetermining if the object is present by comparing the reference image and the live image.
  • 2. A method according to claim 1 wherein the area is at least part of a larger area.
  • 3. A method according to claim 1 further comprising at least one other area that at least partially overlaps the area, and the method further includes the step of determining if the object is present in the at least one other area by comparing the reference image and the live image.
  • 4. A method according to claim 2 wherein the larger area at least partially encircles an area to be monitored.
  • 5. A method according to claim 2 wherein the larger area corresponds to an area to be monitored.
  • 6. A method according to claim 1 wherein the area corresponds to a monitored area.
  • 7. A method according to claim 1 wherein the area is a mask window.
  • 8. A method according to claim 1 wherein the patterned background includes an approximately equal amount of light areas and dark areas.
  • 9. A method according to claim 1 wherein the patterned background includes a number of parallel extending light areas and dark areas.
  • 10. A method according to claim 1 wherein the patterned background includes a checkerboard pattern of light areas and dark areas.
  • 11. A method according to claim 1 wherein the light areas and/or dark areas each have a size that is smaller than the object.
  • 12. A method according to claim 1 wherein the determining step comprises the steps of: determining a difference image by determining a difference in intensity between corresponding locations of the reference image and the live image; anddetermining if at least a portion of the difference image includes a complement or inverse image of the object.
  • 13. A method according to claim 1 wherein the determining step comprises the steps of: determining a difference image by determining a difference in intensity between corresponding locations of the reference image and the live image; anddetermining if the intensity of at least part of the difference image exceeds a threshold value.
  • 14. A method for detecting an object in an area, comprising: providing a patterned background in the area, wherein the patterned background includes both light areas and dark areas with an intended interrelationship;capturing a reference image of the area without the object present;capturing a live image of the area; anddetermining if the object is present in the area by comparing the reference image and the live image.
  • 15. A method according to claim 14 wherein the area corresponds to an area of a floor, and the patterned background is fixed to the area of the floor.
  • 16. A method according to claim 15 wherein the patterned background is painted on the area of the floor.
  • 17. An object detection system, comprising: a patterned background fixed to an area, wherein the patterned background includes both light areas and dark areas with an intended interrelationship;an image capture device for capturing a reference image of the area without the object present, and a live image of the area; anda processing element for determining if the object is present in the area by comparing the reference image and the live image.
  • 18. An object detection system according to claim 17 wherein the area is at least part of a larger area.
  • 19. An object detection system according to claim 18 wherein the larger area at least partially encircles an area to be monitored.
  • 20. An object detection system according to claim 18 wherein the larger area corresponds to an area to be monitored.
  • 21. An object detection system according to claim 17 wherein the area corresponds to a monitored area.
  • 22. An object detection system according to claim 17 wherein the patterned background includes an approximately equal amount of light areas and dark areas.
  • 23. An object detection system according to claim 17 wherein the patterned background includes a number of parallel extending light areas and dark areas.
  • 24. An object detection system according to claim 17 wherein the patterned background includes a checkerboard pattern of light areas and dark areas.
  • 25. An object detection system according to claim 24 wherein the light areas and/or dark areas each have a size that is smaller than the object.
Parent Case Info

This application is a continuation of U.S. Patent Application Ser. No. 09/716,002, filed Nov. 17, 2000, entitled OBJECT DETECTION, issued as U.S. Pat. No. 6,711,279 on Mar. 23, 2004.

US Referenced Citations (51)
Number Name Date Kind
4923066 Ophir et al. May 1990 A
5065237 Tsikos et al. Nov 1991 A
D347442 Falconer May 1994 S
D349713 Hasegawa Aug 1994 S
D349714 Hasegawa Aug 1994 S
D349911 Shimizu et al. Aug 1994 S
D349913 Morris Aug 1994 S
5359363 Kuban et al. Oct 1994 A
D354973 Hisatune et al. Jan 1995 S
5402168 Fouilloy Mar 1995 A
5418567 Boers et al. May 1995 A
5436462 Huli-Allen Jul 1995 A
5448320 Sakai et al. Sep 1995 A
5477212 Rumpel Dec 1995 A
D365834 Dozier Jan 1996 S
5539199 Ruckh et al. Jul 1996 A
5573006 Shimotani et al. Nov 1996 A
D378095 Hasegawa Feb 1997 S
5613013 Schuette Mar 1997 A
5627616 Sergeant et al. May 1997 A
5649255 Schieltz Jul 1997 A
5657076 Tapp Aug 1997 A
5677535 Stephan Oct 1997 A
5691765 Schieltz et al. Nov 1997 A
5731832 Ng Mar 1998 A
5745170 Palmer Apr 1998 A
5752100 Schrock May 1998 A
5790910 Haskin Aug 1998 A
5793900 Nourbakhsh et al. Aug 1998 A
5795306 Shimotani et al. Aug 1998 A
5801770 Paff et al. Sep 1998 A
D399517 Hasegawa Oct 1998 S
5818519 Wren Oct 1998 A
5835218 Harding Nov 1998 A
5835613 Breed et al. Nov 1998 A
5845000 Breed et al. Dec 1998 A
5852754 Schneider Dec 1998 A
5870135 Glatt et al. Feb 1999 A
5878156 Okumura Mar 1999 A
5953055 Huang et al. Sep 1999 A
5953076 Astle et al. Sep 1999 A
5980123 Heifler Nov 1999 A
6035067 Ponticos Mar 2000 A
6286349 Muller et al. Sep 2001 B1
6392754 Pingel et al. May 2002 B1
6456320 Kuwano et al. Sep 2002 B2
6456384 Kulawiec et al. Sep 2002 B1
6496253 Vokhmin Dec 2002 B1
6509967 Pingel et al. Jan 2003 B1
6564166 Ume et al. May 2003 B1
20040066970 Matsugu Apr 2004 A1
Foreign Referenced Citations (44)
Number Date Country
0631430 Jun 1994 EP
0610863 Aug 1994 EP
0654684 May 1995 EP
0468839 Sep 1995 EP
0691632 Jan 1996 EP
0491121 Feb 1996 EP
0519379 Sep 1996 EP
0554197 Oct 1996 EP
0484076 Dec 1996 EP
0529317 Dec 1996 EP
0747868 Dec 1996 EP
0772169 May 1997 EP
0774730 May 1997 EP
0800152 Oct 1997 EP
0810791 Dec 1997 EP
0585033 Jan 1998 EP
0575220 Mar 1998 EP
0833503 Apr 1998 EP
0632858 Aug 1998 EP
0691632 Oct 1998 EP
1168269 May 2001 EP
07056219 Aug 1993 JP
07104362 Oct 1993 JP
07159892 Dec 1993 JP
07175128 Dec 1993 JP
07191390 Dec 1993 JP
07222039 Jan 1994 JP
07255004 Mar 1994 JP
07281276 Apr 1994 JP
08076213 Sep 1994 JP
08140941 Nov 1994 JP
09083999 Sep 1995 JP
09193078 Jan 1996 JP
10031256 Jul 1996 JP
10042231 Jul 1996 JP
WO 8403784 Sep 1984 WO
WO 9701246 Jan 1997 WO
WO 9705741 Feb 1997 WO
WO 9705744 Feb 1997 WO
WO 9712278 Apr 1997 WO
WO 9818026 Apr 1998 WO
WO 9846116 Oct 1998 WO
WO 9847025 Oct 1998 WO
WO 0233671 Apr 2002 WO
Related Publications (1)
Number Date Country
20040146184 A1 Jul 2004 US
Continuations (1)
Number Date Country
Parent 09716002 Nov 2000 US
Child 10757674 US