1. Field of the Invention
The present invention relates to a surveillance system and method for the same, and more particularly to an intelligent surveillance system and method for the same.
2. Description of Prior Art
Due to increasing crimes recently, human has started to pay much more attention on the security mechanism. Also, the most important part of the security mechanism is a surveillance system. The most important function of the surveillance system is to solve the problem which the manpower is insufficient to quickly detect changes in environment. Hence, a good surveillance system can be used for security to reduce the property loss and consume of manpower.
A dynamic image real-time tracking technology can provide a decision when the image is changed. The dynamic image real-time tracking technology is further applied to a digital surveillance system or a traditional closed circuit television (CCTV). A recording function is started to work when the monitored image has been changed. Hence, the stored capacity for the monitored images can be saved. In addition, warning messages can be sent, as an abnormal condition occurs, to automatically provide a notification for the abnormal condition.
Image resolution is determined by the pixel number for an image. Reference is made to
Traditionally, two cameras with identical resolution are used to solve the problem mentioned above. One camera, such as a panorama camera, is fixed to monitor the panorama and to build a background of the monitoring and control area. In addition, position of the moving object is obtained by subtracting the current image from the background. Afterward, another camera (such as PTZ camera) with wide angle and adjustable zoom parameter is notified by the panorama camera to trace, position, and zoom in the moving object. Hence, high-definition images for moving objects can be captures.
The PTZ camera is provided with a controllable lens, and further called “Speed Dome” camera according to its shape. The PTZ camera adopts the direct drive motor mechanism inside the camera to drive the rotating platform and the adjustable lens to. However, the process of capturing image data is limited by the operation of driving mechanisms. Also, the machine tends to be worn by long operation time. In addition, the capturing time of the PTZ may be influenced due to the auto focus function thereof. Also, the region of capturing the moving object may exceed the range of the lens to cause fault discrimination when the magnification rate is high.
In order to improve the disadvantages mentioned above, the prevent invention provides an intelligent surveillance system.
In order to improve the disadvantages mentioned above, the prevent invention further provides a method for performing an intelligent surveillance system.
In order to achieve the objectives mentioned above, the intelligent surveillance system includes an image sensor, a data temporary memory, a digital image processor, and a program memory. The digital image processor is electrically connected to the image sensor, the data temporary memory, and the program memory, respectively. More particularly, the image sensor fetches an original image and the original image is transmitted to the digital image processor. The digital image processor adjusts the original image to obtain an adjusted image. The digital image processor detects an adjusted motion image in the adjusted image. The digital image processor captures an original motion image portion in the original image according to location information of the adjusted motion image.
In order to achieve the other objectives mentioned above, the intelligent surveillance method uses an image sensor to fetch an original image and adjust the original image to obtain an adjusted image. Afterward, an adjusted motion image is detected in the adjusted image, and an original motion image portion is captured in the original image according to location information of the adjusted motion image.
It is to be understood that both the foregoing general description and the following detailed description are exemplary, and are intended to provide further explanation of the invention as claimed. Other advantages and features of the invention will be apparent from the following description, drawings and claims.
The features of the invention believed to be novel are set forth with particularity in the appended claims. The invention itself, however, may be best understood by reference to the following detailed description of the invention, which describes an exemplary embodiment of the invention, taken in conjunction with the accompanying drawings, in which:
a) is a schematic view of an object;
b) is a schematic view of an object which is captured and zoomed in eight times by a low-resolution camera;
c) is a schematic view of an object which is captured by a high-resolution camera;
a) shows an image which is full of noises;
b) shows an image of eliminating noises after performing an erosion operation;
In cooperation with attached drawings, the technical contents and detailed description of the present invention are described thereinafter according to a preferable embodiment, being not used to limit its executing scope. Any equivalent variation and modification made according to appended claims is all covered by the claims claimed by the present invention.
An intelligent surveillance system and a method for the same are used with the digital image processing technology to replace the PTZ (pan-tile-zoom) camera. The intelligent surveillance system can be used to trace moving objects, and to monitor and control specific scenes such as exits or smoking areas. More particularly, warning messages can be sent, as an abnormal condition occurs, to provide a notification. Furthermore, the image information captured is stored in a database, which can be researched in the future.
The intelligent surveillance system and a method for the same is to trace a moving object by processing a low-resolution panorama image, and afterward to obtain clear images of the moving object by processing a high-resolution panorama image. Accordingly, a traditional PTZ (pan-tile-zoom) camera can be replaced by the intelligent surveillance system. First, the high-resolution panorama image is preserved. Afterward, a resolution of the high-resolution panorama image is reduced to facilitate the detection and tracing of the moving object. Afterward, a surveillance block in the high-resolution panorama image is re-located. Finally, a processed size of the moving object can be automatically adjusted by means of image processing methods. The traditional PTZ camera is replaced by the intelligent surveillance system to reduce the machinery wear, overcome the dead angle problem, eliminate the moving delay, and simultaneously detect more than two moving objects.
Reference is made to
The image sensor 10 fetches an original image (not shown) and afterward the original image is transmitted to the digital image processor 30. The digital image processor 30 adjusts the original image to obtain an adjusted image (not shown). The digital image processor 30 reconstructs a background as required. The digital image processor 30 detects an adjusted motion image (not shown) in the adjusted image. The digital image processor 30 inpaints and labels the adjusted motion image as required to obtain a labeled image (not shown). The digital image processor 30 captures an original motion image portion (not shown) in the original image according to location information of the labeled image. When the adjusted motion image doesn't need to be inpainted and labeled by the digital image processor 30, the digital image processor 30 captures the original motion image portion in the original image according to location information of the adjusted motion image. Finally, the image output device 50 displays or stores the original motion image portion. More particularly, the image sensor 10 is a fixed high-resolution camera, and the image output device 50 is a display or a recording device. A detailed operation of the intelligent surveillance system will be explained later.
The original image is adjusted to obtain an adjusted image by the digital image processor 30 with following sub-steps: (1) to adjust processed size of the original image; (2) to transform colors of the original image; and (3) to filter speckle noises of the original image. First, a high-resolution panorama image, namely, the original image is preserved. Afterward, a resolution of the original image is reduced to lower resolution (such as 320×240 pixels) to reduce the amount of computation. For example, a resolution of an image captured by a five-megapixel camera (high-resolution camera) is 2560×1920 pixels, and the image is a 24-bit full-color image. Hence, the amount of computation for the image is huge to give rise to a redundant computation time for the intelligent surveillance system in a real-time operation. In this embodiment, the resolution of the original image is reduced from 2560×1920 pixels to 320×240 pixels, and colors of the original image are transformed from the 24-bit full-color image to the 8-bit gray-level image. Hence, the amount of computation for the image can be extremely reduced. Finally, the speckle noises of the original image can be filtered by an image low pass filter.
More particularly, the so-called background is the part of an image that lies outside the object of interest captured by the image and which form the foreground. Sometimes the captured background is not complete when a moving object is within the background or the background is influenced by sunshine. Hence, the background needs to be reconstructed when incomplete part of the background is motionless for a period of time. In addition, the background needs to be repeatedly reconstructed to correctly detect the moving object when difference between the background and continuous images are significant.
The adjusted motion image in the adjusted image is detected by the digital image processor 30, which uses a fixed background image and three continuous adjusted images. The description is detailed as following. A real moving object is calculated by using three continuous images and a fixed background. Reference is made to
In the same way, a logic XOR operation is performed between the preceding grey-level image M1 and the pre-preceding grey-level image M0 to obtain a second grey-level image (not shown). Afterward, a grey value of each pixel of the second grey-level image is compared to the binary image threshold value to obtain a second binary image M4. Afterward, a logic AND operation is performed between the first binary image M5 and the second binary image M4 to obtain a third binary image M7. More particularly, the third binary image M7 is an edge-moving binary image. Afterward, the preceding grey-level image M1 is subtracted by the fixed background image M3 to obtain a fourth grey-level image (not shown). Afterward, a grey value of each pixel of the fourth grey-level image is compared to the binary image threshold value to obtain a fourth binary image M6. More particularly, the fourth binary image M6 is a foreground-extracting binary image. Finally, a logic OR operation is performed between the third binary image M7 and the fourth binary image M6 to obtain a fifth binary image M8. More particularly, the fifth binary image M8 is an object-moving binary image, namely, the fifth binary image M8 is the adjusted motion image.
Reference is made to
The dilation operation is a basic morphological operation. As shown in
The erosion operation is another basic morphological operation. As shown in
Generally speaking, the morphological dilation operation and the morphological erosion operation are implemented based on the 3×3 mask structure or the 5×5 mask structure, and more particularly for the intelligent surveillance system of monitoring human behavior. In this embodiment, however, the 3×3 mask structure (shown in
Because it is possible to detect more than two moving objects in the step S30 and S40, the amount of the moving objects is need to be calculated using a labeling method. The major purpose of the connected-component labeling method is to label adjacent pixels as the same number. Hence, the amount of the group having the same number can be calculated according to the labeled numbers, namely, the amount of the group is equal to the amount of the moving objects. Reference is made to
Afterward, the digital image processor 30 fetches the original motion image portion in the original image according to location information of the labeled image. A start position and an ending position of the moving object can be acquired to calculate size and relative position of the moving object based on the above-mentioned labeling method. Afterward, the location information of the labeled image is transmitted to the original image (namely, the high-resolution panoramic image) to display the original motion image with real image size in the image output device 50 to achieve image zooming effect.
Reference is made to
The intelligent surveillance system of the present invention can be provided to trace moving objects, and to monitor and control specific scenes such as exits or smoking areas. First, a surveillance block is set in the adjusted image by the user. Afterward, the digital image processor 30 fetches an original surveillance block image in the original image according to location information of the surveillance block. Finally, the image output device 50 displays or stores the original surveillance block image.
Reference is made to
The step S200 of adjusting the original image to obtain an adjusted image includes following sub-steps: (1) to adjust processed size of the original image; (2) to transform colors of the original image; and (3) to filter speckle noises of the original image. First, a high-resolution panorama image, namely, the original image is preserved. Afterward, a resolution of the original image is reduced to lower resolution (for example, 320×240 pixels) to reduce the amount of computation. For example, a resolution of an image captured by a five-megapixel camera (high-resolution camera) is 2560×1920 pixels, and the image is a 24-bit full-color image. Finally, the speckle noises of the original image can be filtered by an image low pass filter.
More particularly, the step S400 detects an adjusted motion image in the adjusted image by means of a fixed background image and three continuous adjusted images. Because the process of the step S400 has been mentioned for the intelligent surveillance system, the detail is omitted here for conciseness. The step S500 inpaints and labels the adjusted motion image to obtain a labeled image. In this embodiment, a 3×3 mask structure is provided for the erosion operation, and a 3×1 mask structure is provided for the dilation operation. Because it is possible to detect more than two moving objects, the amount of the moving objects needs to be calculated using a labeling method.
The intelligent surveillance system of the present invention can be provided to trace moving objects, and to monitor and control specific scenes such as exits or smoking areas. First, a surveillance block is set in the adjusted image by the user. Afterward, the digital image processor fetches an original surveillance block image in the original image according to location information of the surveillance block. Finally, the image output device displays or stores the original surveillance block image.
In conclusion, the intelligent surveillance system has the following features:
1. A resolution of an image captured by a five-megapixel camera (high-resolution camera) is 2560×1920 pixels. Hence, the amount of stored data and the amount of computation for the image are huge. However, the intelligent surveillance system provides a recording frame with 640×480 pixels to reduce the amount of stored data (to only one-sixteenth the amount of stored data) to clearly display captured images of tracing moving objects and monitoring and controlling specific scenes.
2. The PTZ (pan-tile-zoom) camera can be replaced by the intelligent surveillance system to dispense with the machinery wear, overcome the dead angle problem, eliminate the moving delay, and simultaneously detect more than two moving objects.
3. One fixed high-resolution camera can replace one low-resolution camera and one low-resolution PTZ camera to reduce manpower costs, raise life quality and home-living safety. Hence, the intelligent surveillance system can be effectively applied to various kinds of environments.
4. The intelligent surveillance system is highly expandable, easy integrated, product-general, low-cost and high-quality, and easy to use.
Although the present invention has been described with reference to the preferred embodiment thereof, it will be understood that the invention is not limited to the details thereof. Various substitutions and modifications have been suggested in the foregoing description, and others will occur to those of ordinary skill in the art. Therefore, all such substitutions and modifications are intended to be embraced within the scope of the invention as defined in the appended claims.