IMAGING SYSTEM AND METHOD WITH MOTION DETECTION
20200065979 ยท 2020-02-27
Inventors
Cpc classification
H04N23/667
ELECTRICITY
H04N23/651
ELECTRICITY
International classification
Abstract
An imaging method with motion detection includes determining a windows layout according to a vanishing point or a horizontal line, sizes of windows in the determined windows layout being not uniform; determining features of the windows of a current image; comparing the determined features of the windows of the current image with features of corresponding windows of a previous image to determine whether local motion occurs.
Claims
1. An imaging system with motion detection, comprising: an image sensor; a windows layout unit that determines a windows layout according to a vanishing point or a horizontal line, sizes of windows in the determined windows layout being not uniform; a feature extractor that determines features of the windows of a current image; and a local motion detector that determines whether local motion occurs by comparing the determined features of the windows of the current image with features of corresponding windows of a previous image.
2. The system of claim 1, further comprising an image analyzer that identifies the vanishing point or the horizontal line.
3. The system of claim 1, wherein windows near the vanishing point or the horizontal line are smaller in size than windows far away from the vanishing point or the horizontal line.
4. The system of claim 1, wherein the feature extractor determines the feature of a window as an average value of pixels within the associated window.
5. The system of claim 1, wherein the local motion detector comprises: a difference unit that subtracts a feature of the current image from a feature of the previous image, thereby resulting in a difference value; an absolute unit that generates an absolute value of the difference value; a comparator that compares the absolute value with a predetermined threshold, thereby generating a comparison result; and a logical circuit that generates a local motion flag indicating whether the local motion occurs according to comparison results associated with the features of the windows of the current image and the previous image.
6. The system of claim 1, further comprising: a global motion detector that determines whether global motion occurs.
7. The system of claim 6, wherein the global motion detector comprises: a summation unit that adds up the features of the windows of the current image, thereby resulting in a sum value; and a comparator that compares the sum value with a predetermined threshold, thereby generating a comparison result, according to which a global motion flag is generated.
8. The system of claim 1, further comprising: a mode selector that sets a motion detector mode after determining the window layout, and sets an image mode when the local motion is detected.
9. The system of claim 1, further comprising: a feature storage that stores the features of the windows.
10. The system of claim 1, wherein the imaging system is an event-triggered imaging system.
11. An imaging method with motion detection, comprising: determining a windows layout according to a vanishing point or a horizontal line, sizes of windows in the determined windows layout being not uniform; determining features of the windows of a current image; comparing the determined features of the windows of the current image with features of corresponding windows of a previous image to determine whether local motion occurs.
12. The method of claim 11, further comprising a step of identifying the vanishing point or the horizontal line.
13. The method of claim 11, wherein windows near the vanishing point or the horizontal line are smaller in size than windows far away from the vanishing point or the horizontal line.
14. The method of claim 11, wherein the feature of a window is an average value of pixels within the associated window.
15. The method of claim 11, wherein the local motion is determined by the following steps: subtracting a feature of the current image from a feature of the previous image, thereby resulting in a difference value; generating an absolute value of the difference value; comparing the absolute value with a predetermined threshold, thereby generating a comparison result; and generating a local motion flag indicating whether the local motion occurs according to comparison results associated with the features of the windows of the current image and the previous image.
16. The method of claim 11, further comprising: determining whether global motion occurs.
17. The method of claim 16, wherein the global motion is determined by the following steps: adding up the features of the windows of the current image, thereby resulting in a sum value; and comparing the sum value with a predetermined threshold, thereby generating a comparison result, according to which a global motion flag is generated.
18. The method of claim 11, wherein a motion detector mode is set after determining the window layout, and an image mode is set when the local motion is detected.
19. The method of claim 11, further comprising: storing the features of the windows.
20. The method of claim 1, wherein the imaging method is an event-triggered imaging method.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
[0007]
[0008]
[0009]
[0010]
[0011]
[0012]
[0013]
DETAILED DESCRIPTION OF THE INVENTION
[0014]
[0015] In the embodiment, the imaging system 100/imaging method 200A may be an event-triggered imaging system/method for substantially reducing power consumption and bandwidth. The imaging system 100 of the embodiment may include an image sensor 11 such as a complementary metal-oxide-semiconductor (CMOS) image sensor. The imaging system 100 of the embodiment may include a mode selector 12 configured to determine a current mode, according to which the image sensor 11 may have different resolutions, amounts of power consumption or frame rates. In the embodiment, the imaging system 100 may have, at least, a motion detection mode and an image (or image/video) mode.
[0016] Specifically, in step 21, an image is captured (by the image sensor 11), and a vanishing point or a horizontal line on the captured image is then determined. The vanishing point is a point on an image plane where the two-dimensional perspective projections of mutually parallel lines in three-dimensional space appear to converge, and the horizontal line (commonly called eye level) is a line on which the vanishing point is located. In one embodiment, the captured image is transferred to a host 10, which acts as an image analyzer capable of identifying the vanishing point or the horizontal line of the captured image. The host 10 may, for example, be disposed at a remote site. In another embodiment, the vanishing point/horizontal line may be set by a user. In a further embodiment, the vanishing point/horizontal line may be predetermined, and thus step 21 and the image analyzer may be omitted.
[0017] Next, in step 22, a windows layout for motion detection is determined, by a windows layout unit 13, according to the horizontal line or the vanishing point. According to one aspect of the embodiment, sizes of windows in the determined windows layout are not uniform. Specifically, in the embodiment, windows near the horizontal line/vanishing point are smaller than windows far away from the horizontal line/vanishing point.
[0018] After determining the windows layout, the mode selector 12 switches the imaging system 100 to the motion detection mode (step 23). The imaging system 100 of the embodiment may include a feature extractor 14, a local motion detector 15 and a feature storage 16. Specifically, the feature extractor 14 determines features of the windows of a current image (captured by the image sensor 11). The determined features of windows may be stored in the feature storage 16 such as static random-access memory (SRAM) or dynamic random-access memory (DRAM). In one example, the feature of a window is an average value of pixels within the associated window.
Block feature.sub.i,j=(abs[mean(A+B)mean(C+D)]+abs[mean(B+D)mean(A+C)])/2
[0019] In step 24, the determined features of windows of the current image are then compared with features of corresponding windows of a previous image stored in the feature storage 16, by the local motion detector 15, in order to determine whether (local) motion occurs. Step 24 repeatedly performs until motion is detected.
[0020]
[0021] When local motion is detected, the flow goes to step 25, in which the mode selector 12 switches the imaging system 100 to the image (or image/video) mode, in which image or video is captured and transferred (that is, streamed) to the host 10. After the image or video is transferred, the flow goes back to step 23, in which the mode selector 12 switches the imaging system 100 to the motion detection mode.
[0022]
[0023]
[0024] According to the embodiment set forth above, as sizes of windows for motion detection are not uniform, distant moving objects with small image size will not be missed.
[0025] Although specific embodiments have been illustrated and described, it will be appreciated by those skilled in the art that various modifications may be made without departing from the scope of the present invention, which is intended to be limited solely by the appended claims.