The invention relates to an image monitoring scheme, and more particularly to an image sensor circuit, an image sensor apparatus, and corresponding methods.
Please refer to
Therefore one of the objectives of the invention is to provide an image sensor circuit, an image sensor apparatus, and corresponding methods, to solve the problems.
According to embodiments of the invention, an image sensor circuit is disclosed. The image sensor circuit is to be externally coupled to a digital processing circuit that is arranged for performing a motion detection. The image sensor circuit comprises an event camera which comprises at least one pixel unit. The event camera is arranged for sensing at least one current pixel value of the at least one pixel unit to detect whether at least one pixel value changes. When the at least one pixel value changes, the event camera triggers the digital processing circuit when the digital processing circuit is in a power saving mode and transmits information of the at least one pixel value to the digital processing circuit.
According to the embodiments, an image sensor apparatus is disclosed. The apparatus comprises the above-mentioned image sensor circuit and the digital processing circuit. The digital processing circuit uses the information of the at least one pixel value and a last data frame stored in the digital processing circuit to generate a current data frame.
According to the embodiments, a method of an image sensor circuit to be externally coupled to a digital processing circuit that is arranged for performing a motion detection is disclosed. The method comprises: providing an event camera comprising at least one pixel unit; using the event camera to sense at least one current pixel value of the at least one pixel unit to detect whether at least one pixel value changes; when the at least one pixel value changes, using the event camera to trigger the digital processing circuit when the digital processing circuit is in a power saving mode and to transmit information of the at least one pixel value to the digital processing circuit.
According to the embodiments, a method of an image sensor apparatus is disclosed. The method comprises: providing a digital processing circuit externally coupled to the image sensor circuit to perform a motion detection; and using the information of the at least one pixel value of claim 1 and a last data frame stored in the digital processing circuit to generate a current data frame.
These and other objectives of the present invention will no doubt become obvious to those of ordinary skill in the art after reading the following detailed description of the preferred embodiment that is illustrated in the various figures and drawings.
Please refer to
In one embodiment, the passive detector 62 can be a temperature detector, such as an infrared detector, and the motion detection device 60 can be selectively operated in a sleep mode or a wakeup mode. While a monitoring region is in an usual state, the passive detector 62 does not detect temperature variation, the motion detection device 60 stays in a sleep mode; while in an unusual state that the specific situation happens (such like the living thing passed by), the passive detector 62 detects the temperature variation and generates a triggering signal to switch the motion detection device 60 from the sleep mode to a wakeup mode.
The motion detection device 60 can include an image capturing unit 66, an operating processor 68, a memory 70 and a lighting unit 72. The operating processor 68 can drive the image capturing unit 66 to alternatively switch between the sleep mode and the wakeup mode, and further can drive the image capturing unit 66 to optionally capture monitoring images with low quality and high quality. In one embodiment, the lighting unit 72 can be actuated only while the image capturing unit 66 captures image, so as to enhance the image capturing unit 66 capturing images in a power efficiency manner.
The image capturing unit 66 may capture a background monitoring image with a low frame rate in the sleep mode, and capture a plurality of monitoring images with a high frame rate in the wakeup mode. The background image could be captured in low quality, wherein the background image is used for auto-exposure control of the image capturing unit 66. The monitoring images could comprise a first monitoring image with the low quality and a second monitoring image with the high quality, wherein the first monitoring image is used for the operating processor 68 to identify if the true event is happened and the second monitoring image is used for the external host 64 to determine the security alarm. The monitoring images captured by the image capturing unit 66 can be stored inside the memory 70, and further the high quality monitoring image can be transmitted to the external host 64.
In this embodiment, the monitoring system utilizes the passive detector 62 to detect the object passing through the monitoring region for a start, and then utilizes the motion detection device 60 to analyze whether the passed object conforms to a predetermined condition (i.e., true event). As a view range of the passive detector 62 has passerby and the specific situation is identified, the motion detection device 60 is switched to the wakeup mode by the passive detector 62 and determines whether the passerby is the expected object (which means the human); if so, the motion detection device 60 actuates the external host 64, and the external host 64 identifies the object within the monitoring images to optionally drive the motion detection device 60 in a recording mode, to transmit monitoring video, to send out a warning, to shut down the motion detection device 60 and to awaken another motion detection device 60′ electrically connected with the external host 64.
Please refer to
In one embodiment, the image capturing unit 66 captures the low quality monitoring image by using partial pixels, such as to divide the pixel array into a plurality of 2×2 pixel blocks and to use only one pixel in each pixel block to capture the image. In another embodiment, the image capturing unit 66 captures image by all pixels and divides all pixels to several pixel block (such as 2×2 pixel block) so as to combine values in all pixels in each pixel block as a block value and generates the low quality monitoring image by those block values.
In step S210, the operating processor 68 preferably analyzes a specific region of interest (ROI) within the first monitoring image to determine actuation of the external host 64, dimensions of the specific region is smaller than the first monitoring image, so that the operating processor 68 can rapidly acquire an image analysis result due to less data calculation in ROI; the first monitoring image setting as a low quality monitoring image is helpful to speed up image analysis about the specific region of interest. Position and dimensions of ROI are preferably pre-defined by the user, for example, a door and a window are situated in the first monitoring image, ROI can cover the pattern of the door to avoid the analysis result from being interfered by left shadow on the window, or ROI can cover edges of window for detecting a thief climbing into the window and also preventing the analysis result from being interfered by the left shadow; the position and dimensions of ROI further may be varied according to the analysis result. However, the operating processor 68 may analyze an entire region within the first monitoring image to perform the step S210, which depends on design demand. The said image analysis can be executed by identifying a pattern contour within the monitoring image, comparing feature point on the monitoring image, and analyzing intensity variation of the monitoring image optionally.
As the object does not conform to the predetermined condition, suck like the passerby within the monitoring image being the animal instead of the human, step S212 is executed to not actuate the external host 64, and the image capturing unit 66 may be passively or actively shut down to back the sleep mode. As the object conforms to the predetermined condition, which means the passerby within the monitoring image may be an unauthorized person, step S214 is executed to actuate the external host 64 and the image capturing unit 66 starts to capture the second monitoring image with the high quality, and the second monitoring image can be captured as static images format or a continuing video format and can be stored inside the memory 70. Next, step S216 is executed that the external host 64 receives the second monitoring image and utilizes image recognition algorithm to precisely analyze the object within the second monitoring image.
The second monitoring image does not conform to a predetermined threshold, which means the object is not the unauthorized person, step S218 is executed to shut down the motion detection device 60 passively or actively for energy economy; the second monitoring image conforms to the predetermined threshold, hence the object is defined as the unauthorized person, step S220 is executed that the external host 64 can switch the motion detection device 60 into the recording mode, the motion detection device 60 transmits the monitoring video outwardly for backup, and the other motion detection devices 60′ can be simultaneously awaken for overall monitoring. Therefore, the passive detector 62 cannot directly actuate the external host 64 while detecting the object, the motion detection device 60 wakes up by trigger of the passive detector 62 to capture the first monitoring image, and the external host 64 is actuated in accordance with the low quality image analysis of the first monitoring image through the motion detection device 60.
The motion detection device 60 can begin to capture the second monitoring image while the external host 64 is actuated. The external host 64 has to spend a period of time on waking other motion detection devices, the second monitoring image can record any doubtful event inside the monitoring region before the other motion detection devices are awaken, which means the monitoring system does not miss the doubtful event in a term between a detection timing of the passive detector 62 and a wakeup timing of the other motion detection devices. The first monitoring image with the low quality is used by the motion detection device 60 to determine existence of the object, the existence determination is rough computation and may be affected by noise, and the second monitoring image with the high quality is used by the external host 64 to analyze the accurate motion detection of the object, such as face recognition.
The present invention further provides an exposure adjustment function for preferred operational efficiency of the motion detection device 60. Please refer to
For example, as shown in
In conclusion, the motion detection device of the present invention is electrically connected between the passive detector and the external host, and the motion detection device is utilized to actuate the external host while the passive detector triggers the motion detection device switched from the sleep mode to the wakeup mode. As the motion detection device is in the sleep mode, the motion detection device can be awaken in the low frame rate or stay in the sleep mode to adjust the exposure parameter and to capture the background image; as the motion detection device is switched to the wakeup mode, the motion detection device is transformed into the high frame rate to capture the low quality monitoring image. The motion detection device executes the simple image analysis via ROI of the low quality monitoring image for a start for determining whether to actuate the external host; since the motion detection device actuates the external host, the motion detection device captures and stores the high quality monitoring image, and the high quality monitoring image can be used by the external host for the accurate image analysis and execution of related application programs. The motion detection device of the present invention can effectively economize start-up time of the monitoring system without waiting for a wakeup period of the external host and an exposure adjustment period of the motion detection device.
Please refer to
The image captured by the sensor array 86 may be pre-stored (i.e., wrote) into the memory 82 or directly transmitted to the processor 84 in accordance with modes of the processor 84 or an alarm signal resulted from motion detection. The memory 82 can have the image capacity of predefined quantity; when the memory 82 is full and a new image is prepared to pre-store, a former image can be removed for storing the new image. The image processed by the processor 84 and the pre-stored image in the memory 82 can be transmitted to an external storage module 88 electrically connected with the smart motion detection device 80.
As the first embodiment shown in
There has variety ways for the comparator 90 to compare the pre-stored images I1 and the reference image, for example the comparator 90 could compare whole image range or only compare partial pixels for the pre-stored images I1 and the reference image. The comparator 90 could compare intensity summation of all pixels or partial pixels, in another way the comparator 90 could compare intensity of each pixel in whole image range or only partial pixels.
When the processor 84 is operated in the wakeup mode, a real-time image 12 captured by the sensor array 86 is directly transmitted to the processor 84 for digital processing and may not be stored into the memory 82. The processor 84 in the wakeup mode may process the real-time image 12 and receive the pre-stored image I1 in the memory 82 by turns, or may receive the pre-stored image I1 after processing of the real-time image 12. A process of the real-time image 12 can precede that of the pre-stored image I1, so the smart motion detection device 80 is able to focus on an instant situation within the monitoring area. The process of the pre-stored image I1 may be executed when the process of the real-time image 12 is completed or paused. If an operating capability of the processor 84 is sufficient for mass data, the real-time image 12 and the pre-stored image I1 can be processed alternately, hence the smart motion detection device 80 can show detection results about the current and previous period at the same time.
In some embodiments, the pre-stored images captured by the sensor array 86 when the processor 84 is operated in the sleep mode can be pre-stored into the memory 82, and the real-time images captured by the sensor array 86 when the processor 84 is operated in the wakeup mode can be transmitted to the processor 84. In other embodiments, the processor 84 and the sensor array 86 can be turned off under a non-working mode; when the smart motion detection device 80 receives a trigger signal, the sensor array 86 can capture and send the images to the memory 82 directly, and then the processor 84 can send a request to the sensor array 86 for receiving the captured images. The trigger signal may be an alarm resulted from an external unit or a built-in unit of the smart motion detection device 80.
In addition, at least one of an image quality and a frame rate of the sensor array 86 may be changed when the processor 84 is operated in the sleep mode or the wakeup mode. For example, as the processor 84 is in the sleep mode, the sensor array 86 can capture the low-quality image or capture the image in the low frame rate for comparing with the reference image. Transmission bandwidth and storage capability are economized accordingly. The alarm signal is generated because the intensity variation between the low-quality image (or the image captured in the low frame rate) and the reference image is greater than the predefined value, so that the sensor array 86 starts to capture the high-quality image or capture the image in the high frame rate for pre-storing into the memory 82, and simultaneously the processor 84 can be switched to the wakeup mode. Then, the pre-stored high-quality image or the pre-stored image captured in the high frame rate in the memory 82 is transmitted to the processor 84 operated in the wakeup mode; therefore the smart motion detection device 80 does not lose image information before the processor 84 is in the wakeup mode.
Please refer to
In a possible embodiment, the smart motion detection device 80′ can include the memory 82, the processor 84, the sensor array 86′ and a passive sensor 92. The passive sensor 92 is electrically connected with the processor 84 and the sensor array 86′. The processor 84 is kept in the sleep mode and the sensor array 86′ is shut down when the passive sensor 92 does not detect any abnormal situation. As the passive sensor 92 detects the motion of the object, the passive sensor 92 can generate the alarm signal, and the alarm signal is used to drive the sensor array 86′ and switch the processor 84 from the sleep mode to the wakeup mode. When the processor 84 is still in the sleep mode, the sensor array 86′ can capture and transmit the pre-stored image I1 to the memory 82. When the processor 84 is operated in the wakeup mode, the sensor array 86′ can capture and transmit the real-time image 12 to the processor 84, and the pre-stored image I1 in the memory 82 can be transmitted to the processor 84 accordingly.
The smart motion detection device 80 may have the non-working mode. The processor 84 and the sensor array 86′ can be turned off under the non-working mode. As the passive sensor 92 detects the motion of the object and generates the alarm signal, the sensor array 86′ is triggered by the alarm signal and starts to capture and send the pre-stored image into the memory 82. After that, the processor 84 can be switched to the wakeup mode and then sends the request to the sensor array 86′ for receiving the pre-stored image.
In another possible embodiment, the smart motion detection device 80″ can include the memory 82, the processor 84, the sensor array 86″ having the comparator 90, and the passive sensor 92. The passive sensor 92 can activate the sensor array 86″ when detecting the abnormal situation. The activated sensor array 86″ can capture and transmit the pre-stored image I1 to the memory 82, and the comparator 90 can compare the pre-stored image I1 with the reference image for determining whether to switch on the processor 84. The comparator 90 is utilized to identify the abnormal situation. If the intensity variation between the pre-stored image I1 and the reference image is smaller than the predefined value, the abnormal situation may be resulted from noise and the processor 84 is not switched on. If the intensity variation is greater than the predefined value, the abnormal situation can be defined as someone or something intruding into the monitoring area of the smart motion detection device, so that the processor 84 is switched to the wakeup mode for recording. As the processor 84 is operated in the wakeup mode, the real-time image 12 captured by the sensor array 86″ and the pre-stored image I1 in the memory 82 can be transmitted to the processor 84 and then to the external storage module 88 for the digital processing.
Please refer to
After that, step S816 is executed that the processor 84 can analyze the real-time image 12 captured by the sensor array 86, 86′ or 86″ when capturing function of the sensor array 86, 86′ or 86″ is activated. When the sensor array 86, 86′ or 86″ is not activated, probably owning to the disappeared object or any other situations, step S818 is executed to analyze the pre-stored image I1 inside the memory 82 by the processor 84. It should be mentioned that the processor 84 not only can process the real-time image 12 before the pre-stored image I1, but also alternately process the pre-stored image I1 and real-time image 12 in accordance with the user's actual demand and the sufficient operating capability.
In conclusion, the alarm signal may be generated by the sensor array or the passive sensor (which can be a thermal sensor, an accelerometer or a gyro). The alarm signal is utilized to activate pre-storing operation of the sensor array and mode switching operation of the processor. When the alarm signal is received, the sensor array can be activated to capture the pre-stored image at a first time and the pre-stored image is transmitted to the memory. For waiting a duration of the processor switched from the sleep mode to the wakeup mode, the processor which receives the alarm signal can send a request to the sensor array for the real-time image and the pre-stored image at a second time later than the first time, so that the pre-stored image from the memory are processed later than the first time, and the real-time image is not stored into the memory but directly transmitted to the processor for the digital processing. Comparing to the prior art, the smart motion detection device and the related determining method of the present invention can effectively economize start-up time of the smart motion detection device without waiting for a wakeup period of the processor.
Please refer to
The analog IC portion/component is a collection of analog circuits/components and for example is or comprises an image sensor circuit such as an analog image sensor 1305 which comprises an event camera 1306 (or may be referred to as an event sensor) comprising at least one pixel unit (i.e. one or more pixel units such as pixels or sub-pixels) such as active pixel unit(s). It should be noted that in practice an event camera unit/circuit may comprise a pixel unit and be used to report changes in brightness as they occur and stay silent otherwise. That is, the event camera 1306 is used to detect whether brightness change(s) occur in one or more pixel units.
The digital IC portion/component is a collection of digital circuits/components and is or comprises a digital processing circuit comprising a first image buffer 1311 and a motion detector such as a smart motion detector (SMD) 1312. When the event camera 1306 transmits the information of pixel image/value's change, the SMD 1312 can use such pixel-level information to generate frame data, i.e. a frame-level image, and it can detect whether motion occurs. If it is determined that a motion occurs, then the SMD 1312 can generate an alert signal to the backend system 1315. Instead, if no motions occur, the SMD 1312 does not generate the alert signal. SMD 1312 can accurately detect whether actual motion occurs and filter out some undesired image fluctuations such as motion images of shaking leaves or shaking grasses (not limited).
When receiving an alert signal sent from the digital processing circuit 1310, the backend system 1315 is arranged to receive the image streams (i.e. frames) from the digital processing circuit 1310 and for example to start performing a video recording operation. The backend system 1315 comprises a second image buffer 1316 and an external processor 1317 that is externally coupled to the above-mentioned image sensor apparatus, i.e. the analog IC portion/component and digital IC portion/component.
The startup speed/time of the event camera 1306 (or the analog image sensor circuit 1305) is much faster than that of the SMD 1312 (or digital processing circuit 1310) and also much faster than that of the external processor 1317 (or the backend system device 1315). In one embodiment, if no pixel values change, only the event camera 1306 (or only the analog image sensor circuit 1305) is powered on and the other circuits (i.e. the digital processing circuit 1310 and the backend system device 1315) are powered off or left in a power saving mode (such as working under a low operating frequency), to save more power. Once the event camera 1306 (or the analog image sensor circuit 1305) detects that a pixel value changes, the SMD 1312 is awakened by a trigger signal, sent from the analog image sensor circuit 1305, to perform the above-mentioned motion detection. Only when the motion detection indicates that an actual motion occurs, the external processor 1317 in the backend system device 1315 is awakened by a trigger signal, sent from the digital processing circuit 1310, to perform further image processing and/or the video recording operation. If the event camera 1306 includes a plurality of pixels, then the “no pixel values change” may refer to “the number of pixels that has pixel values change less than a first specific threshold,” and the “a pixel value changes” may refer to “a number of pixels that has a pixel value change exceed than a second specific threshold”.
If the pixel value changes before the SMD 1312 is completely wakened, the pixel value(s) sensed by the image sensor circuit 1305 is/are stored into the first image buffer 1311, and then will be transmitted/transferred to the SMD 1312 once the SMD 1312 is completely awakened and able to receive the sensed pixel value(s). That is, when the event camera 1306 is going to send pixel value(s) to the digital processing circuit 1310, the pixel value(s) will be stored into the first image buffer 1311 before the SMD 1312 is wakened and the first image buffer 1311 may store a plurality of pixel values from the event camera 1306 before the SMD 1312 is wakened. Then, similarly, when it is determined that the frame data formed by the sensed pixel value(s) is associated with an actual motion event before the external processor 1317 is completely wakened, the frame(s) or image stream(s) processed by the digital processing circuit 1310 is/are stored into the second image buffer 1316, and then will be transmitted/transferred to the external processor 1317 once the external processor 1317 is completely wakened and able to receive the sensed frame(s) or image stream(s). Also, when the digital processing circuit 1310 is going to send frame(s) to the backend system device 1315, the frame(s) will be stored into the second image buffer 1316 before the external processor 1317 is wakened and the second image buffer 1316 may store a plurality of frames from the digital processing circuit 1310 before the external processor 1317 is wakened. By using the above-mentioned mechanisms and first/second image buffer(s), more power can be saved as well as image lost can be avoided.
As shown in
In a second operation scenario (but not limited), if it is determined that at least one pixel value changed, then the analog image sensor circuit 1305 is arranged to send a trigger signal to wake up the digital processing circuit 1310 and also send the sensed pixel data to the digital processing circuit 1310. In the situation that the startup speed/time of the first image buffer 1311 is much faster than that of SMD 1312, the sensed pixel data can be temporarily stored in the first image buffer 1311 by using an image freeze operation before the SMD 1312 is completely awakened. After the digital processing circuit 1310 completely exits the power saving mode and enters the normal mode, the pixel data sensed by the analog image sensor circuit 1305 can be directly transmitted to the SMD 1312 without using the first image buffer 1311. In this situation, if it is determined that no actual motions occur, then the digital processing circuit 1310 does not send an alert signal to wake up the backend system device 1315 and also does not transmit the generated frames or image streams to the backend system device 1315.
It should be noted that the SMD 1312 can simultaneously receive and process both the stored pixel data of the first image buffer 1311 and the incoming pixel data once the SMD 1312 completely enters the normal mode. For example (not limited), the SMD 1312 can employ a super high frame per second (HFPS) image processing frequency/rate to rapidly process the accumulated pixel values stored in the first image buffer 1311 and then synchronize the processed pixel values with the analog values of incoming pixel data. For instance, each time when the analog image sensor circuit 1305 is called to sense pixel units, the SMD 1312 is arranged to process the accumulated pixel values stored in the first image buffer 1311 and process the analog values of incoming pixel data in parallel until the first image buffer 1311 is empty.
In a third operation scenario (but not limited), the first image buffer 1311 can be used to collect and store the pixel information (values or differences) of pixel units, which are transmitted from the analog image sensor circuit 1305, to form and generate data of one or more complete frames. The SMD 1312 can determine whether an actual motion occurs based on the generated frame data. If it is determined that an actual motion occurs, the digital processing circuit 1310 is arranged to send an alert signal to wake up the backend system device 1315 and also transmit the sensed frames or image streams to the backend system device 1315. In this situation, the sensed frames or image streams may be temporarily stored in the second image buffer 1316 by using the image freeze operation before the backend system device 1315 is completely awakened. When the backend system device 1315 completely exits the power saving mode and enters the normal mode, sensed frames or image streams can be directly transmitted to the external processor 1317 without being buffered in the second image buffer 1316.
Refer back to
Then, the event camera 1306 determines whether the pixel value changed by comparing the pixel difference Diff with a pixel threshold TH (as shown by S13053). If the pixel difference Diff becomes higher than the pixel threshold TH, the event camera 1306 can determine that the pixel value changes. Instead, if the pixel difference Diff is not higher than the pixel threshold TH, the event camera 1306 determines that the pixel value does not change. It should be noted that in this embodiment the pixel value changing means that the pixel value varies significantly while the pixel value not changing means that the pixel value is not varied or varies insignificantly.
When the pixel difference Diff becomes equal to or higher than the pixel threshold TH, the event camera 1306 is arranged to generate and send a trigger signal to wake up the digital processing circuit 1310, send the currently counted value of a counter value N and the information/data associated with the currently captured pixel value to the digital processing circuit 1310, update the reference pixel value by using the currently captured pixel value, and reset the counter value N as zero. The counter value N is configured as zero initially. If the SMD 1312 is not in the normal mode, the currently counted value of the counter value N and the information/data associated with the currently captured pixel value can be temporarily stored in the first image buffer 1311. It should be noted that the pixel difference Diff of the pixel unit is calculated and updated each time after an exposure operation, performed upon the pixel unit, is finished to obtain its currently sensed pixel value. When the pixel difference Diff is not higher than the pixel threshold TH, the event camera 1306 is arranged to increment or accumulate the counter value N by one. In this situation, the event camera 1306 does not send the trigger signal, the currently counted value of the counter value N and, the information/data associated with the currently captured pixel value.
The value of such counter value N is used to indicate the number of timings of consecutive frames during which the pixel value of a pixel unit does not change. Equivalently, the counter value N, employed by the event camera 1306, is arranged to determine a time interval between the pixel value of such pixel unit changing twice. It should be noted that the values of counter values N corresponding to different pixel units may be identical, different, or may be partially different. In one embodiment, a resultant counter value can be selected from the values of counter values N corresponding to different pixel units, and such resultant counter value for example may be a smallest one in all the counter values N corresponding to different pixel units. The selected resultant counter value can be used to indicate a number of timings of consecutive frames during which the pixel values of all the pixel units do not change.
Further, for example (but not limited), the frame rate may be equal to 30 Hz, i.e. 30 frames in one second, and the counter value N may be sequentially accumulated from zero to 30 during one second if it is determined that the pixel value of the pixel unit does not change during such one second. In this situation, if it is then determined that the pixel value changes at a next frame timing, then the counter value N will not be counted to for example 31, and the event camera 1306 is arranged to generate a trigger signal to wake up the digital processing circuit 1310 and to transmit the currently counted counter value (i.e. 30) to the digital processing circuit 1310 before the counter value N is reset as zero. Also, at the same time, the event camera 1306 is arranged to output information/data of the sensed/captured pixel value to the digital processing circuit 1310.
The information/data of the sensed/captured pixel value which changes may be transmitted from the analog image sensor circuit 1305 to the digital processing circuit 1310 by using at least two different ways. In one embodiment, the event camera 1306 may send an actual value of the currently captured pixel value to the digital processing circuit 1310, and the digital processing circuit 1310 can directly use the actual value to replace a corresponding value of a pixel unit in a previous frame to generate a current frame. Further, in other embodiments, the event camera 1306 may send a difference value between the actual value of the actually captured pixel value and the actual value of a previously captured pixel value to the digital processing circuit 1310, and the digital processing circuit 1310 can add such difference value into a corresponding value of a pixel unit in a previous frame to generate a current frame.
Refer to
Further, as shown in a second scenario of
In one embodiment, when the current frame FC is generated, the SMD 1312 (or digital processing circuit 1310) is arranged to determine whether a motion occurs by generating one or more background frames based on the generated current frame FC and the counter value N and then comparing the current frame FS with the background frames. In practice, information/data of a previous background frame can be stored in a memory circuit of the SMD 1312, and the information stored in the memory circuit does not vanish even though the SMD 1312 is powered off. If the SMD 1312 has been kept in the normal mode, then the SMD 1312 may perform a recursive moving average operation based on a previous background frame and the current frame FC to generate a current background frame. For example (not limited), the current background frame can be determined by the following equation:
wherein FBi indicates data of the generated current background frame at a current frame timing i, FBi−1 indicates data of a previous background frame at a previous frame timing i−1 and FC indicates the current frame (or called as a current data frame). Similarly, the next background frame based on the recursive moving average operation can be determined by the following equation:
wherein FC′ is a next data frame. Usually, in a monitoring system, the curve corresponding to the background frames at the different frame timings will be convergenced into a stable background frame after a specific training time period.
However, if the SMD 1312 just exited the power saving mode and no data of the previous background frame can be used to generate the current background frame FBi, then the SMD 1312 does not execute the recursive moving average operation. in this situation, the SMD 1312 is arranged to employ the counter value N to generate a weighting value and then use the weighting value, current data frame FC, and a last background frame FBi−N stored in the memory circuit of SMD 1312 when the SMD 1312 becomes powered off. In this situation, the current background frame FBi can be determined by the following equation:
FBi=∝×FBi−N+(1−∝)×FC
wherein ∝ is the weighting value generated based on the counter value N. in a simplified example (not limited), the weighting value ∝ may be equal to
For instance, if the value N is equal to 30, then ∝ is equal to 29/30, and the current background frame FBi can be determined by the following equation:
and
alternatively, the current background frame FBi may be determined by the following equation:
However, this is not meant to be a limitation of the invention. In other words, the weighting value ∝ can be dynamically determined based on the number of how many consecutive frames which a pixel unit's image/value does not change. The calculation of using the counter value N to directly generate the current background frame FBi without executing the recursive moving average operation becomes more simplified since in this situation executing the recursive moving average operation needs recursively calculating data of background frames FBi−, . . . , FBi−(N−1).
To determine whether a motion occurs in the current frame FC, the SMD 1312 is arranged to calculate a frame difference between the current background frame FBi and the current data frame FC, and then it compares the frame difference with a motion threshold THM to determine whether the motion occurs. When the frame difference becomes higher than the motion threshold THM, the SMD 1312 can determine that the motion occurs and then generate an alarm signal to the backend system device 1315.
The motion threshold THM for example may be a fixed threshold value or can be dynamically adjusted. In one embodiment, the SMD 1312 can use a curve fitting operation to dynamically adjust the motion threshold THM according to a previous value of the motion threshold THM, the current background frame FBi, the current data frame FC, and the counter value N.
Then, for generating a next background frame FBi+1, the SMD 1312 for example can execute the recursive moving average operation based on the generated current background frame FBi and a next data frame FC′ when the next data frame FC′ is generated by using the information/data of pixel value sent from the event camera 1306.
To make readers more clearly understand the operations mentioned above,
Step 1605: Start;
Step 1610: Generate current data frame FC according to the previous data/static current FS and information/data of the pixel image/value changing (e.g. the actual pixel value or pixel difference value);
Step 1615: Generate a weighting value ∝ according to the counter value N which is received from the event camera 1306 and buffered in the first image buffer 1311;
Step 1620: Generate a current background frame according to the weighting value ∝, the last background frame stored by the SMD 1312, and the current data frame FC;
Step 1625: calculate a frame difference between the current data frame FC and the current background frame;
Step 1630: Dynamically update the motion threshold THM according to the previous/original value of motion threshold THM, the last background frame, and the current data frame FC;
Step 1635: Determine whether the frame difference is equal to or higher than the motion threshold THM; if it is equal to or higher than the motion threshold THM, the flow proceeds to Step 1645; otherwise, the flow proceeds to Step 1640;
Step 1640: Does not generate the alarm signal; and
Step 1645: Generate the alarm signal.
Those skilled in the art will readily observe that numerous modifications and alterations of the device and method may be made while retaining the teachings of the invention. Accordingly, the above disclosure should be construed as limited only by the metes and bounds of the appended claims.
This application is a continuation-in-part application of U.S. patent application Ser. No. 17/151,625 (filed on Jan. 18, 2021). U.S. patent application Ser. No. 17/151,625 is a continuation application of U.S. patent application Ser. No. 16/833,677 (filed on Mar. 30, 2020), which is a continuation application of U.S. patent application Ser. No. 16/018,025 (filed on Jun. 25, 2018), which is a continuation-in-part of U.S. patent application Ser. No. 15/854,697 (filed on Dec. 26, 2017). The disclosures of the prior applications are incorporated herein by reference herein in their entirety.
Number | Name | Date | Kind |
---|---|---|---|
6388773 | Smith | May 2002 | B1 |
7634662 | Monroe | Dec 2009 | B2 |
20040117638 | Monroe | Jun 2004 | A1 |
20140303435 | Taniguchi | Oct 2014 | A1 |
20150305114 | Hack | Oct 2015 | A1 |
20160104510 | Tamir | Apr 2016 | A1 |
20160110973 | Cho | Apr 2016 | A1 |
20160228987 | Baudimont | Aug 2016 | A1 |
20160277688 | Gaskamp | Sep 2016 | A1 |
20220014702 | Yin | Jan 2022 | A1 |
20220108548 | Kim | Apr 2022 | A1 |
Number | Date | Country |
---|---|---|
101146217 | Mar 2008 | CN |
102695042 | Sep 2012 | CN |
104079881 | Oct 2014 | CN |
206442461 | Aug 2017 | CN |
Number | Date | Country | |
---|---|---|---|
20210344881 A1 | Nov 2021 | US |
Number | Date | Country | |
---|---|---|---|
Parent | 16833677 | Mar 2020 | US |
Child | 17151625 | US | |
Parent | 16018025 | Jun 2018 | US |
Child | 16833677 | US |
Number | Date | Country | |
---|---|---|---|
Parent | 17151625 | Jan 2021 | US |
Child | 17376127 | US | |
Parent | 15854697 | Dec 2017 | US |
Child | 16018025 | US |