This application claims priority of Taiwanese Application No. 100147488, filed on Dec. 20, 2011.
1. Field of the Invention
The present invention relates to a warning device, more particularly to a warning device for warning occurrence of a disaster, a burglary, etc.
2. Description of the Related Art
Due to global climate change, natural disasters (for example, typhoon, torrential rain, etc.) are relatively violent and may cause mud-rock flow, landslide, floods, collapse of bridge piers, etc. Currently, the climate change can be monitored using satellites. However, it is hard to detect and forecast the mud-rock flow attributed to the torrential rain since an influence range of the mud-rock flow is extremely large and there are a lot of factors causing the mud-rock flow.
In addition, compared with typhoon and torrential rain, it is relatively difficult to forecast an earthquake since occurrence of an earthquake is sudden. Further, a conventional warning device for the earthquake is specially designed for detecting the earthquake and cannot detect other types of disasters.
Therefore, an object of the present invention is to provide a warning device capable of forecasting and warning occurrence of various types of disasters, a burglary, etc.
Accordingly, a warning device of the present invention comprises a lighting unit, an image capturing unit and a processing unit. The lighting unit is configured for generating at least one light spot. The image capturing unit is configured for capturing and recording a series of images of the light spot in time sequence. The processing unit is coupled to the image capturing unit for analyzing a position of the light spot in each of the images, computing an overall displacement of the light spot according to the positions in the respective images, determining whether the overall displacement is greater than a predetermined safe value, and generating a warning output when the overall displacement is greater than the predetermined safe value.
Another object of the present invention is to provide a warning method of forecasting and warning occurrence of various types of disasters, a burglary, etc.
According to another aspect, a warning method of the present invention is to be implemented by a device including a lighting unit, an image capturing unit and a processing unit, and comprises the following steps of:
configuring the lighting unit to generate at least one light spot;
configuring the image capturing unit to capture and record a series of images of the light spot in time sequence;
configuring the processing unit to analyze a position of the light spot in each of the images, and to compute an overall displacement of the light spot according to the positions in the respective images;
configuring the processing unit to determine whether the overall displacement is greater than a predetermined safe value; and
configuring the processing unit to generate a warning output when the overall displacement is greater than the predetermined safe value.
Other features and advantages of the present invention will become apparent in the following detailed description of the preferred embodiments with reference to the accompanying drawings, of which:
Before the present invention is described in greater detail, it should be noted that like elements are denoted by the same reference numerals throughout the disclosure.
Referring to
The lighting unit 2 includes a first mounting member 23, a screen 21 mounted on the first mounting member 23, and a lighting module 22 disposed at the screen 21 for generating a plurality of light spots on the screen 21. In this embodiment, the screen 21 is black and is formed with a plurality of holes 211, and the lighting module 22 includes a plurality of light emitting diodes 221 disposed respectively within the holes 211 of the screen 21 so as to generate respective light spots. In particular, a number of the light spots (i.e., a number of the light emitting diodes 221) ranges from 15 to 20, and the light spots (i.e., the light emitting diodes 221) are arranged in a middle of the screen 21 and cover about half of the area of the screen 21. It should be noted that the number and the arrangement of the light spots are not limited to the disclosure of this embodiment.
The image capturing unit 3 includes a second mounting member 31, and an image capturing module 32 mounted on the second mounting member 31 and configured for capturing images of the light spots. A location of the second mounting member 31 is remote from a location of the first mounting member 23, for example, by 50 to 100 meters. In this embodiment, the image capturing module 32 is a charge-coupled device, and each of the first and second mounting members 23, 31 is a rod. In other embodiments, a plurality of the lighting units 2 may be disposed within a detection range of the image capturing module 32.
The solar energy generating unit 6 is coupled to the lighting unit 2, the image capturing unit 3, the processing unit 4 and the output unit 5 for providing electric power thereto. In this embodiment, the solar energy generating unit 6 includes a solar panel 61, a power transformer 62 coupled to the solar panel 61, and a storage battery 63 coupled to the power transformer 62. The solar panel 61 is configured for converting solar energy into direct current (DC) electricity, and the power transformer 62 is configured for transforming a voltage of the DC electricity from the solar panel 61 to a voltage suitable for charging the storage battery 63. Thus, the storage battery 63 is configured for storing the DC electricity from the power transformer 62 and for providing the electric power stored therein to the lighting unit 2, the image capturing unit 3, the processing unit 4 and the output unit 5.
Further referring to
In step S10, the lighting unit 2 is operable to generate the light spots. Then, in step S20, the image capturing unit 3 is operable to capture and record a series of images of the light spots in time sequence as shown in
In step S30, the processing unit 4 is operable to receive the images from the image capturing unit 3, and to compute an overall displacement of each of the light spots in the images. In particular, the processing unit 4 is operable to compute a displacement distance of each light spot in every temporally adjacent two of the images that are captured successively, and then, to compute a summation of the displacement distances as the overall displacement of the light spot. In other embodiments, the image capturing unit 3 may be configured to only record a first one of the images, and the processing unit 4 may be configured to compare a current one of other images with the first image and to compute a distance of each of the light spots between the current image and the first image as the overall displacement. Alternatively, both of the two computations for the overall displacement can be executed for accuracy.
In this embodiment, the processing unit 4 includes a tracking module 41. For every temporally adjacent two of the images that are captured successively, the tracking module 41 is operable to obtain a first function (f(i,j)) representing brightness values of respective pixels of an earlier one of the adjacent two images, and a second function (g(i,j)) representing brightness values of respective pixels of a later one of the adjacent two images, where i represents an ith one of the pixels in the x-axis of the image and j represents a jth one of the pixels in the y-axis of the image. Then, a cross-correlation function (C(m,n)) can be obtained based upon the first and second functions (f(i,j), g(i,j)) for the adjacent two images. The cross-correlation function (C(m,n)) can be expressed as Equation (1).
Then, as shown in
Further, in order to compute the displacement distance precisely, the tracking module 41 may be operable to smoothly link the peak point and adjacent points around the peak point so as to obtain a Gaussian distribution relative to the cross-correlation function as shown in
where Zm is a function value of the cross-correlation function in the x-axis at the peak point (m,n). Similarly, the displacement distance of the light spots between the adjacent two images can be precisely computed as n+Δy in the y-axis, where Δy is the distance between the peak point of the Gaussian distribution and the peak point (m,n) of the distribution of the cross-correlation function in the y-axis and can be computed based upon an equation similar to Equation (2). Certainly, precision of the displacement distance is ½ pixel (i.e., 0.5 cm in this embodiment) before the sub-pixel analysis, and is about 1/10 to 1/100 pixel after the sub-pixel analysis.
In step S40, the processing unit 4 is operable to determine whether the overall displacement of any one of the light spots is greater than a predetermined safe value, for example, 2 pixels (i.e., 2 cm in this embodiment). In other embodiments, the predetermined safe value may be varied according to an area of a place where the warning device 100 is configured to perform detection. For example, the predetermined safe value may be relatively small when the warning device 100 is used to perform detection for a place where a disaster occurs and damages frequently. The flow goes to step S50 when the overall displacement is greater than the predetermined safe value, and goes back to step S20 when otherwise.
In step S50, the processing unit 4 is operable to generate a warning output and the output unit 5 is operable to output the warning output generated by the processing unit 4. For example, the output unit 5 may wirelessly transmit the warning output to a plurality of cell phones so as to warn a plurality of people far from the warning device 100. Moreover, the output unit 5 may also wiredly transmit the warning output to an alarm system so as to warn residents living around the warning device 100.
For a relatively broad place, such as a mountain, since it is impractical to dispose an adequate amount of the lighting units 2, the warning device 100 may further include a first linkage member 7 for connecting the first mounting member 23 with a remote location far from the first mounting member 23 such that the first linkage member 7 will move the first mounting member 23 and result in the overall displacement of the light spots on the screen 21 when a disaster (e.g., a mud-rock flow, earthquake, etc.) occurs at the remote location. Alternatively, the warning device 100 may further include a second linkage member 7′ for connecting the second mounting member 31 with a remote location far from the second mounting member 31, or include both of the first and second linkage members 7, 7′.
In other embodiments for detecting a flood or a groundwater level, the first mounting member 23 may be omitted and the screen 21 is mounted on a floating member floating on a water body, for example, a river or groundwater. When a level of the water body rises or drops, the light unit 2 rises or drops with the water body and the image capturing unit 3 captures an image with the light spots displacing from the last captured image. The processing unit 4 may be configured to compute the overall displacement of the light spots so as to measure the level of the water body. Thus, it is not required to read a water gauge so as to enhance accuracy of the measured level of the water body.
Referring to
In particular, the recognition module 42 is operable to analyze each of the images and to recognize certain ones of the pixels of each of the images where the light spots occur so as to define said certain ones of pixels as the data portion and others of the pixels as the null-data portion. Then, the tracking module 41 is operable to obtain a first function (f(i,j)) representing brightness values of respective pixels of the light spots in an earlier one of the temporally adjacent two images, and a second function (g(i,j)) representing brightness values of respective pixels of the light spots in a later one of the temporally adjacent two images. In this embodiment, the processing unit 4 is operable, in step S30, to obtain a cross-correlation function in digital form based upon the first and second functions (f(i,j), g(i,j)) for the adjacent two images, and to compute a displacement vector of each of the light spots between the adjacent two images (see
Then, the processing unit 4 is operable to obtain a distribution of the cross-correlation function similar to
Referring to
To sum up, by virtue of the lighting unit 2, when a location (such as a mountain, a water body, a front door or a window of a house, etc.) where the lighting unit 2 is mounted has a displacement, the warning device 100, 100′, 100″ of this invention is operable to detect the displacement of the light spot(s) on the screen 21 of the lighting unit 2 so as to forecast and warn occurrence of a disaster (for example, a flood, a mud-rock flow, an earthquake, etc.) or a burglary. Further, the structure of the warning device 100, 100′, 100″ is relatively simple, and thus, manufacturing cost thereof is relatively low.
While the present invention has been described in connection with what are considered the most practical and preferred embodiments, it is understood that this invention is not limited to the disclosed embodiments but is intended to cover various arrangements included within the spirit and scope of the broadest interpretation so as to encompass all such modifications and equivalent arrangements.
Number | Date | Country | Kind |
---|---|---|---|
100147488 | Dec 2011 | TW | national |