Motion detection device, motion detection method, and non-temporary machine-readable media thereof

The motion detection device and method address hardware limitations in embedded systems by using reduction operations and optical flow algorithms to enhance processing efficiency and accuracy, ensuring reliable motion detection.

JP2026185740APending Publication Date: 2026-11-27SHENZHUN TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
JP2025247759
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Priority Date
2025-05-14
Filing Date
2025-12-12
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Motion detection in embedded systems, particularly in IP cameras, faces challenges due to limited hardware resources, leading to delays and missed critical scenes, degrading system reliability and user experience.

Method used

A motion detection device and method that includes a processor performing reduction operations, generating a vector matrix through an optical flow algorithm, and comparing region thresholds to determine motion events, reducing computational load and enhancing real-time processing.

Benefits of technology

The solution effectively reduces hardware requirements and improves motion detection accuracy and reliability by optimizing resource consumption and enabling real-time processing of object motion information.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2026185740000001_ABST
    Figure 2026185740000001_ABST
Patent Text Reader

Abstract

To provide a motion detection device. [Solution] The motion detection device performs the following operations on the current image frame and previous image frames among a plurality of image frames: (A) an operation to perform reduction processing; (B) an operation to generate a vector matrix through an optical flow algorithm; (C) an operation to determine the maximum value of a first region for a first region in the vector matrix, wherein the first region corresponds to a first region threshold; and (D) an operation to compare the maximum value of the first region with the first region threshold, and transmit a motion detection signal to an alarm unit if the number of times the maximum value of the first region exceeds the first region threshold is greater than the number of times threshold. The alarm unit is configured to provide an alarm means based on the motion detection signal.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical Field]

[0001] This application claims priority to Taiwan Patent Application No. 114118146 filed on May 14, 2025, the entire contents of which are incorporated herein by reference.

[0002] CROSS-REFERENCE TO RELATED APPLICATIONS Not applicable.

[0003] The present invention relates to a motion detection device applied to continuous images, a motion detection method, and non-transitory machine-readable media thereof; more particularly, the present invention relates to a motion detection device, a motion detection method, and non-transitory machine-readable media thereof that perform motion detection on continuous images using an optical flow algorithm. BACKGROUND ART

[0004] In the field of continuous image recording (e.g., Internet Protocol (IP) cameras), motion detection has become a practical feature that manufacturers actively invest in developing, apart from the common feature of continuous image recording. With motion detection, users can monitor whether a specific object in an image (e.g., an infant, a patient, a pet, a door, a cash register, etc.) is associated with a motion event. Furthermore, motion detection technology is also applicable to improving panning techniques, such as but not limited to the panning feature of a camera or camcorder targeting a moving object.

[0005] Motion detection involves real-time processing of continuous images and different analysis between frames, and often requires relatively high central processing unit (CPU) resources and high CPU specifications for implementation. When calculations related to motion detection are performed by a terminal device, delays may occur if the terminal device faces a lack of memory space or processing resources. Furthermore, if image data cannot be processed in real time, terminal devices may miss critical scenes, which can degrade the quality of motion detection and further impact the overall system reliability and user experience.

[0006] The aforementioned problems are particularly common in embedded systems, especially Internet Protocol (IP) cameras, where hardware components (e.g., processors, memory, ports, etc.) often have relatively lower specifications (compared to, for example, typical cameras or camcorders) to accommodate factors such as product size, application environment, network connectivity requirements, and manufacturing costs. Therefore, these hardware constraints (e.g., processor speed, memory capacity, number of ports) put many features of the embedded system under development at a disadvantage. [Overview of the project] [Problems that the invention aims to solve]

[0007] In light of the above, the need for real-time and efficient solutions to effectively reduce the delay in motion detection and the probability of missing scenes under relatively limited hardware resources and standards in the art, particularly for motion detection processing of cameras or camcorders in embedded systems (e.g., Internet Protocol (IP) cameras), remains unmet. [Means for solving the problem]

[0008] To at least solve the above technical problems, the present invention provides a motion detection device. The motion detection device may comprise a memory device, a processor, and an alarm unit. The memory device may be configured to store a plurality of image frames. The processor may be electrically coupled to the memory device and the alarm unit, and may be configured to perform the following operations on the current image frame and previous image frames among the plurality of image frames: (A) performing a reduction operation; (B) generating a vector matrix through an optical flow algorithm; (C) determining the maximum value of a first region in the vector matrix, wherein the first region corresponds to a first region threshold; and (D) comparing the maximum value of the first region with the first region threshold, and transmitting a motion detection signal to the alarm unit if the number of times the maximum value of the first region exceeds the first region threshold is greater than a count threshold. The alarm unit may be configured to provide an alarm means based on the motion detection signal.

[0009] Optionally, the processor may be further configured to perform the following operations: (E) update the current image frame and subsequent image frames among a plurality of image frames as a new previous image frame and a new current image frame, respectively, if the number of times the maximum value of the first region exceeds the first region threshold is less than or equal to the count threshold; and (F) repeat operations (A), (B), (C), (D), and (E) on the new current image frame and new previous image frame for all corresponding image frames until the number of times the maximum value of the first region exceeds the first region threshold is greater than the count threshold, and then transmit an operation detection signal to the alarm unit.

[0010] Optionally, the processor may be further configured to convert the current image frame and previous image frames to grayscale images before generating the vector matrix.

[0011] The vector matrix may, arbitrarily, contain only the first region.

[0012] Optionally, the vector matrix may further include a second region in addition to the first region, the second region may correspond to a second region threshold. The processor may be further configured to determine the maximum value of the second region, compare the maximum value of the second region with the second region threshold, and send an operation detection signal to an alarm unit if the total number of times the maximum value of the first region exceeds the first region threshold, and the number of times the maximum value of the second region exceeds the second region threshold, is greater than a count threshold.

[0013] Optionally, the motion detection device may further comprise a transceiver, which may be electrically coupled to a processor, which may be configured to receive a set of control signals from an external device, and the processor may further be configured to determine a first region threshold, a second region threshold, and a count threshold based on the set of control signals.

[0014] Optionally, the processor may be further configured to determine the division pattern of the first and second regions based on a set of control signals.

[0015] Optionally, the motion detection device may further comprise a transceiver, which may be electrically coupled to a processor, which may be configured to receive a set of control signals from an external device, and the processor may further be configured to determine a first domain threshold and a count threshold based on the set of control signals.

[0016] The alarm unit may optionally be a buzzer, and the alarm means may be an audible buzzer alarm.

[0017] The alarm unit may optionally be a transceiver. The alarm means may be an alarm signal. The transceiver may be configured to transmit the alarm signal to an external device, which in turn issues an alarm to the user.

[0018] Optionally, the alarm unit may be equipped with at least one indicator light, and the alarm means may be a light-based alarm.

[0019] To at least solve the above technical problems, the present invention further provides a motion detection method. The motion detection method can be performed by an electronic device and may include the steps of: (A) performing a reduction process on the current image frame and previous image frames among a plurality of image frames; (B) generating a vector matrix through an optical flow algorithm; (C) determining the maximum value of a first region in the vector matrix, wherein the first region corresponds to a first region threshold; and (D) comparing the maximum value of the first region with the first region threshold and providing an alarm means if the number of times the maximum value of the first region exceeds the first region threshold is greater than the number threshold.

[0020] Optionally, the motion detection method may further include the steps of (E) updating the current image frame and subsequent image frames among a plurality of image frames as a new previous image frame and a new current image frame, respectively, if the number of times the maximum value of the first region exceeds the first region threshold is less than or equal to the count threshold, and (F) repeating steps (A), (B), (C), (D), and (E) on the new current image frame and the new previous image frame for all corresponding image frames until the number of times the maximum value of the first region exceeds the first region threshold is greater than the count threshold, and then providing an alarm means.

[0021] Optionally, the motion detection method may further include the step of converting both the current image frame and previous image frames to grayscale images before generating the vector matrix.

[0022] Optionally, in the motion detection method, the vector matrix may include only the first region.

[0023] Optionally, in the motion detection method, the vector matrix may further include a second region in addition to the first region, and the second region may correspond to a second region threshold. The first region threshold and the second region threshold may be different. The motion detection method may further include the steps of: determining a maximum value of the second region; comparing the maximum value of the second region with the second region threshold; and providing an alarm means when the total number of times the maximum value of the first region exceeds the first region threshold and the maximum value of the second region exceeds the second region threshold is greater than a number-of-times threshold.

[0024] Optionally, the motion detection method may further include the steps of: receiving a set of control signals from an external device; and determining the first region threshold, the second region threshold, and the number-of-times threshold based on the set of control signals.

[0025] Optionally, the motion detection method may further include the step of determining a division mode of the first region and the second region based on the set of control signals.

[0026] Optionally, the motion detection method may further include the steps of: receiving a set of control signals from an external device; and determining the first region threshold and the number-of-times threshold based on the set of control signals.

[0027] Optionally, in the motion detection method, the alarm means may be an audible buzzer alarm.

[0028] Optionally, in the motion detection method, the alarm means may be an alarm signal, and the motion detection method may further include the steps of: transmitting the alarm signal to an external device; and causing the external device to issue an alarm to a user of the external device in response thereto.

[0029] Optionally, in the motion detection method, the alarm means may be a light-based alarm.

[0030] To at least solve the above technical problems, the present invention further provides a non-temporary machine-readable medium for storing instructions, the instructions causing the machine (e.g., a computer) to perform one of the above-described operation detection methods when the machine executes the instructions.

[0031] Based on the above, the motion detection solution of the present invention performs a reduction process on the image frame to be processed before performing optical flow calculations. This reduces the hardware resources required by the motion detection device during motion detection, thereby reducing the processing load on the memory and processor of the motion detection device. Furthermore, the motion detection solution of the present invention employs an optical flow algorithm to perform motion detection calculations, thereby enabling better real-time processing of object motion information, allowing the device to capture more detailed information about the detected object (e.g., but not limited to the direction and speed of movement of the object), and further improving the accuracy and reliability of motion detection. Therefore, the present invention effectively reduces the hardware requirements and resource consumption of motion detection devices during motion detection, achieves efficient use of computing resources and optimization of motion detection performance, and delivers excellent motion detection effects.

[0032] The above description is not intended to limit the invention to the present invention, but merely provides a general overview of the technical problems that can be solved by the present invention, the technical means that can be adopted, and the technical effects that can be achieved, so that those skilled in the art may gain a preliminary understanding of the invention. Those skilled in the art will be able to further understand various embodiments of the present invention based on the attached drawings and the descriptions in the following embodiments. [Brief explanation of the drawing]

[0033] [Figure 1] This is a schematic diagram of an motion detection device according to one or more embodiments of the present invention. [Figure 2] This flowchart shows motion detection performed by a motion detection device according to one or more embodiments of the present invention. [Figure 3A] This is a schematic diagram of one image frame from a series of images taken during motion detection performed by a motion detection device according to one or more embodiments of the present invention. [Figure 3B] This is a schematic diagram of a portion of the vector matrix generated during motion detection performed by a motion detection device according to one or more embodiments of the present invention. [Figure 4] This is a flowchart showing a motion detection method according to one or more embodiments of the present invention. [Modes for carrying out the invention]

[0034] The contents shown in Figures 1 to 4 are provided merely as examples illustrating embodiments of the present invention and are not intended to limit the scope of the invention.

[0035] The following embodiments are not intended to limit the claimed invention to any particular environment, use, structure, process, or situation. The accompanying drawings are provided solely to aid in describing the embodiments disclosed below and are not intended to limit the scope to those claimed in this invention. For example, elements unrelated to the claimed invention are omitted in the attached drawings. The dimensions of individual elements and their relative proportions are illustrative and not intended to limit the invention to the claimed invention. In the following explanation, the same element may refer to the same element unless otherwise specified.

[0036] Terms such as "one (a or an)" should not be considered as limiting quantity, but rather as embodiments of inclusion that include multiple identical referents. Terms such as "equip," "include," and "have" are used to indicate the presence of features, integers, steps, actions, elements, components, and / or groups described after the term, but do not exclude the presence or addition of one or more other additional features, integers, steps, actions, elements, components, and / or groups. The term "and / or" is used to indicate any one of the listed related items or various substitutions and combinations thereof. Terms such as “first,” “second,” and “third” used to describe features, integers, steps, actions, elements, components, and / or groups are not intended to imply any order of these described objects, but are used solely to distinguish them.

[0037] A first embodiment of the present invention is a motion detection device for sequential images. Referring to Figure 1, one or more embodiments of the present invention are shown as an action detection device 1. The motion detection device 1 may be implemented as any type of electronic device having image processing capabilities, such as, but not limited to, an Internet Protocol (IP) camera, a camera, a smartphone, a tablet computer, smart glasses, or a head-mounted device for virtual reality, augmented reality, or a combination thereof. These electronic devices perform image data processing on a series of images (e.g., video, moving images, etc.) related to a target object in the application environment of the electronic device, thereby enabling motion detection on the target object.

[0038] The motion detection device 1 may include at least a storage device 11, a processor 12, and an alarm unit 13. The memory device 11 may be electrically coupled to the processor 12 and the alarm unit 13 through a direct electrical connection (i.e., without intervening components) or through an indirect electrical connection (i.e., through intervening components).

[0039] The storage device 11 may store data generated by the motion detection device 1, data received from an external device, and / or data generated by the user via input / output components (e.g., a combination of a keyboard, mouse, touch panel, display device, etc.). For example, the storage device 11 may include a first level of memory (also called main memory or internal memory). The processor 12 can directly read the instruction set stored in the first level of memory and execute the instruction set as needed. The storage device 11 may also include a second level of memory (also called external memory or sub-memory) that can transfer stored data to a first level of memory through a data buffer. The second level of memory may be, for example, a hard disk, an optical disk, or other storage medium, but is not limited to these. The storage device 11 may further include a third level of memory, such as a removable storage device or a cloud drive. Depending on the requirements of the application, the storage device 11 may include a first level of memory, a second level of memory, and / or a third level of memory.

[0040] As described above, the motion detection device 1 is configured to process a series of images. Therefore, the storage device 11 shown in Figure 1 can store a set of sequential images 111. The set of sequential images 111 may include multiple sequentially related image frames, each image frame may serve as a reference for motion detection performed by the motion detection device 1. The set of consecutive images 111 may, for example, be a segment of surveillance video recorded by an IP camera, or a segment of video recorded by a camera.

[0041] The processor 12 may be a programmable application-specific integrated circuit (ASIC) having capabilities such as computation, storage, and input / output, and may accept and process various coded instructions, perform logical and arithmetic operations, and output corresponding results. The processor 12 can interpret various instructions for executing a task or program, and thereby be programmed to perform the steps described in the present invention. For example, the processor 12 may include a central processing unit (CPU), a graphics processing unit (GPU), a digital signal processor (DSP), a microprocessor, and / or a microcontroller. Generally, the processor 12 can determine whether an action event occurred within a specific region of an image frame, based on a plurality of image frames stored in the memory device 11.

[0042] The alarm unit 13 can be any type of component having alarm features, thereby providing alarm means 131 to the user 101 and / or external device 102. More specifically, when the processor 12 determines that an operational event has occurred, the alarm unit 13 may provide an alarm means to the user 101 and / or an external device 102 to notify them of the occurrence of the operational event. The alarm unit 13 may have corresponding hardware configurations that accommodate various means of presenting alarms.

[0043] For example, in some embodiments, the alarm means 131 may be a sound-based alarm, and the alarm unit 13 may be a buzzer or speaker that provides an alarm via a buzzer sound, sound effects and / or voice message. In some embodiments, the alarm means 131 may be a light-based alarm, and the alarm unit 13 may therefore include at least one indicator light that provides an alarm by turning an optical signal on and off.

[0044] In some embodiments, the alarm means 131 may be a display-based alarm, and the alarm unit 13 may be a display that presents the alarm using content that is visually understandable to the user 101.

[0045] In some embodiments, the alarm means 131 may be a communication-based alarm, and the alarm unit 13 may be a transceiver that transmits packets conveying an alarm message to an external device 102 to signal an alarm. The external device 102 may be, for example, a smartphone, a laptop computer, a desktop computer, a television, or another electronic device, but is not limited to these. A transceiver may include a transmitter and a receiver. In the case of wireless communication, the transceiver may include, but is not limited to, an antenna, amplifier, modulator, demodulator, detector, analog-to-digital converter, digital-to-analog converter, and other communication components. In the case of wired communication, the transceiver may include, but is not limited to, a Gigabit Ethernet transceiver, a Gigabit Interface Converter (GBIC), an SFP (small form-factor pluggable) transceiver, or an XFP (ten-gigabit small form-factor pluggable) transceiver. Specifically, the motion detection device 1 may provide an alarm message to the external device 102 via the receiver in order to achieve an alarm effect.

[0046] It should be noted that the various types of alarm means 131 described above may be provided individually or in combination in some embodiments, thereby achieving a more comprehensive alarm effect. In this case, the alarm unit 13 can be a collection of hardware configurations corresponding to the various alarm means 131 described above. Those skilled in the art will understand, based on the above description of the alarm unit 13, how hardware configurations corresponding to multiple alarm means 131 can coexist and cooperate; therefore, further details are omitted in this specification.

[0047] In some embodiments, the motion detection device 1 may further include an image capture unit 14 electrically coupled to the storage device 11 and the processor 12, and may be configured to capture images and generate the set of sequential images 111 described above. More specifically, the image capture unit 14 may refer to a collection of components including at least one lens, a photosensitive element, a lens control device, and the like. The lens control device can control the operation of each lens (for example, according to instructions from the processor 12) and form an image on the photosensitive element.

[0048] Referring to Figure 2, an action detection step 2 is shown, which is performed by an action detection device 1 according to one or more embodiments of the present invention. In some embodiments, the motion detection step 2 may begin with an operation 20, in which the motion detection device 1 may, for example, use the image capture unit 14 described above to capture multiple image frames of the target 141 and store these image frames in the storage device 11. Multiple image frames may be, for example, multiple frames of the set of consecutive images 111 shown in Figure 1. In some other embodiments, the motion detection device 1 may acquire multiple image frames using, for example, a transceiver or input / output (I / O) component. Please understand that Figure 1 and the explanation of the number of image frames in sequential images in this specification are examples only and not limiting.

[0049] Next, in operation 21, the processor 12 may determine motion detection regions from multiple image frames, region thresholds corresponding to the regions, and count thresholds corresponding to the regions. In some embodiments, the motion detection step 2 may be initiated directly by the motion 21. The region may be the main region that user 101 and / or the manufacturer of motion detection device 1 consider necessary for motion detection. The processor 12 may determine the number of operations threshold, area, and area threshold based on instructions from the user 101 or data predetermined by the manufacturer or administrator.

[0050] In some embodiments, focusing on the entire image frame during monitoring may be undesirable in certain implementation scenarios. For example, a user with parental preferences might only want monitoring of the area showing the crib within the supervised image for motion events, and might not consider movements outside the window, such as a bird flying nearby, as meaningful motion events. Accordingly, some embodiments of the present invention enable a user and / or administrator to define each image frame to include at least one region and to set a detection sensitivity for each region. The region threshold represents the detection sensitivity of a region (e.g., a pixel) to the movement of individual parts. The count threshold represents the threshold for the total number of possible actions that can occur across all parts of the region. These thresholds together indicate the sensitivity of the region to detecting motion. Further details are provided below.

[0051] The division method of the regions within each image frame may be similar to facilitate subsequent calculations by the processor 12. In some embodiments, the splitting configuration may be specified by user 101 (for example, by providing instructions through input / output components or via transceivers). For example, user 101 may determine the division pattern through the user interface of their mobile device and provide the corresponding command to the motion detection device 1. Therefore, as shown in Figure 1, in an embodiment where the splitting configuration is specified by user 101, the motion detection device 1 may further include a transceiver 15 that is electrically coupled to the processor 12 to receive control signals 112 from an external device 102. The control signal 112 can be used to specify the count threshold, the image frame division method, and the region threshold corresponding to each region (for example, the first region threshold described above). However, in some other embodiments, the splitting pattern may be predetermined by the manufacturer or administrator within the built-in firmware and / or software of the motion detection device 1.

[0052] As described above, in some embodiments, the alarm means 131 may be a communication-based alarm, and the alarm unit 13 may be a transceiver. In these embodiments, if the motion detection device 1 further includes a transceiver 15, the alarm unit 13 and the transceiver 15 can be integrated into a single component.

[0053] A more specific embodiment of region segmentation is shown in Figure 3A, which shows one image frame 3 of a set of sequential images for motion detection performed by a motion detection device 1 according to one or more embodiments of the present invention. Image frame 3 may correspond to one of the image frames in the set of sequential images 111 shown in Figure 1. Please understand that the content shown in Figure 3A is provided for illustrative purposes only and is not intended to be limited to image content or region segmentation methods. As shown in Figure 3A, image frame 3 can be divided into four regions, namely region 31, region 32, region 33, and region 34, and this region division pattern can be defined by user 101 or administrator.

[0054] Referring back to Figure 2, after the number threshold, the region division result, and the region threshold for each region have been determined, operation 22 can be performed. Here, the processor 12 can determine two image frames from among the multiple image frames acquired for processing, namely the previous image frame and the current image frame. In the case of real-time image detection, these two image frames are preferably two temporally adjacent frames within a plurality of image frames, so that the motion event can be detected within the shortest possible time interval.

[0055] In operation 23, the processor 12 performs a reduction process on the two image frames, thereby reducing the computational load on the processor 12. The reduction process is not limited to but may include nearest neighbor interpolation, bilinear interpolation, etc. For example, after reduction processing, the file size of each image frame can be reduced to approximately half of its original size. In some embodiments, in addition to reduction processing, the processor 12 may further convert the two image frames into a grayscale image, thereby further reducing the amount of computing resources consumed by the processor 12.

[0056] In operation 24, the processor 12 may execute an optical flow algorithm to generate a vector matrix corresponding to the two image frames. The distribution of regions within the vector matrix can correspond to the region segmentation of the image frame described above. For example, image frame 3 shown in Figure 3A is divided into four equal regions by a cross line, and the vector matrix generated by the optical flow algorithm is similarly divided into four equal regions by the cross line, and the values ​​of each region are used to describe their respective regions within the image frame.

[0057] Optical flow algorithms are motion detection techniques based on a series of image analyses and are widely applied in motion detection and object tracking. The basic principle is to estimate the direction and velocity of an object's movement by analyzing significant changes in feature points within a series of image frames. Optical flow algorithms primarily rely on two fundamental concepts: the assumption of luminance stability and minute motion. Brightness stability assumes that the brightness of feature points does not change between consecutive frames while an object is moving. The assumption of minute movements assumes that the movement of each feature point over a short period of time is minimal. Therefore, by analyzing feature points between consecutive frames, the direction and magnitude of movement for each feature point can be derived. Using an optical flow algorithm, the processor 12 can identify feature points between two image frames, analyze the changes in these feature points, and generate a vector matrix that includes the direction and magnitude of motion of the feature points.

[0058] A concrete example of a part of a vector matrix is ​​shown in Figure 3B. Referring to Figure 3B, the vector matrix illustrates matrix 35 with a size of 8 × 16. Matrix 35 can represent a portion of a vector matrix (i.e., a submatrix of a vector matrix). More specifically, the vector matrix can represent all pixels in the entire image frame 3, while the matrix 35 can represent one region within the image frame 3, for example, the region 31 previously described in Figure 3A, but is not limited to this. Region 31 can represent an area within the entire image that the user intends to monitor for potential behavioral events.

[0059] In the matrix 35 shown in Figure 3B, each element includes a value and a direction (i.e., a vector). The value represents the magnitude of the motion, i.e., the displacement of feature points between two consecutive image frames. The direction represents the direction of the displacement. In some embodiments, when the displacement in the X direction is dx and the displacement in the Y direction is dy, the operating scale is: It is possible to use JPEG2026185740000002.jpg18145, and the angle representing the direction of movement is, It is possible to name the file JPEG2026185740000003.jpg20145.

[0060] Please understand that Matrix 35 shown in Figure 3B is merely an example. Those skilled in the art will readily understand how to maintain information regarding the scale and direction of operation in Figure 3B by implementing, for example, a one-dimensional array, a two-dimensional array, or other data structure. Therefore, further details are omitted in this specification.

[0061] Referring simultaneously to Figures 2, 3A, and 3B, in operation 25, the processor 12 may determine the maximum value of each region of the vector matrix generated in operation 24, compare the maximum value of each region with the corresponding region threshold, and record the number of times the maximum value exceeds the corresponding region threshold for each region. As described above, the region thresholds for each region are independent of each other, which means that each region may have different detection sensitivities. In some embodiments, the processor 12 may set sensitivity levels from 1 to 5 (1 being the most sensitive and 5 being the least sensitive), and set region thresholds corresponding to sensitivity levels 1, 2, 3, 4, and 5, respectively, for example (but not limited to) 2.0, 4.0, 8.0, 12.0, and 20.0.

[0062] Taking Figure 3A as an example, user 101 can define the upper left region 31 as the most important area of ​​interest and set the detection sensitivity accordingly to the highest level. For example, region 31 may have a region threshold of 2.0 and a count threshold of 1. Similarly, user 101 can also define region 34 as a second priority area of ​​interest, thereby enabling a relatively high detection sensitivity. For example, region 34 may have a region threshold of 8.0 and a count threshold of 3. It should be noted that regions with higher detection sensitivity may have lower region thresholds and / or count thresholds. This means that the processor 12 is more likely to determine whether operation is possible. Regions 32 and 33 may be considered less important regions and are therefore defined by user 101 with a relatively lower detection sensitivity. For example, regions 32 and 33 may have a region threshold of 20.0 and a count threshold of 5, or, in some cases, the processor 12 may not perform any operation detection on regions 32 and 33 at all, thereby saving more computing resources. The following description uses region 31 as an example to illustrate an embodiment of the present invention.

[0063] In operation 26, with respect to the maximum value of each region corresponding to region 31 determined in operation 25, the processor 12 may determine whether the number of times the maximum value of region 31 exceeds the corresponding region threshold exceeds the number threshold (for example, 5 times). If the decision in operation 26 is "yes", this indicates that the processor 12 has detected an operation event in region 31. Accordingly, in operation 27, the processor 12 issues an operation detection alarm, specifically an operation detection signal 121, to the alarm unit 13, and based on the operation detection signal 121, the alarm unit 13 may provide at least one of the alarm means 131 described above. Conversely, if the decision in operation 26 is "no," this indicates that the processor 12 has not yet detected a sufficient number of possible operation events in region 31 and can continue operation detection. The processor 12 may repeat operations 22, 23, 24, 25, and 26 for all corresponding image frames until the number of times the maximum value of the first region exceeds the first region threshold exceeds a count threshold, at which point an alarm means 131 is provided.

[0064] In some embodiments, the processor 12 may wait for a cooling period in operation 28 before re-executing operations 22, 23, 24, 25, and 26. The cooling period can be set, for example, between 400 milliseconds and 600 milliseconds, or in a preferred embodiment, to 500 milliseconds. However, in other embodiments, the processor 12 may directly re-execute operations 22, 23, 24, 25, and 26 without waiting for a cooling period.

[0065] When processor 12 re-executes operation 22, the original current image frame can be updated as the previous image frame, and from among multiple image frames, the image frame that follows the original current image frame in the time sequence can be used as the new current image frame, allowing operations 23, 24, 25, and 26 to continue. The number of times the maximum value of the first region exceeds the first region threshold calculated for region 31 in the previous round(s) of operation 25 can be maintained and is not reset to zero. In addition to the region 31 described above, the processor 12 can perform the same operation on other regions shown in Figure 3A and perform operation detection on these regions as well.

[0066] In some embodiments, the processor 12 may also perform motion detection with respect to the entire image frame described above with respect to region 31. In other words, each image frame may contain only a single region, and the processor 12 may perform motion detection by determining the maximum value from the entire vector matrix, comparing the maximum value with a region threshold, and determining whether the number of times the maximum value exceeds the region threshold has reached a count threshold.

[0067] In some embodiments, the count threshold may instead be compared to the total number of times the maximum value exceeds the area threshold corresponding to all areas (or all areas subject to motion detection). In other words, the count threshold can be compared to the total number of times the maximum value in each region of the vector matrix exceeds the threshold for that region. In such an embodiment, the processor 12 comprehensively considers the occurrence of possible operations across multiple regions and can issue an operation detection alarm signal to the alarm unit 13 only after a specific level of possible operations has collectively appeared within these regions. Although not shown in Figure 2, excessively frequent and / or false alarms can be avoided by increasing the number of regions considered during the comparison with the count threshold.

[0068] A second type of embodiment of the present invention is a motion detection method. Referring to Figure 4, Figure 4 shows an action detection method 4 according to one or more embodiments of the present invention. The motion detection method 4 can be performed by an electronic device (for example, but is not limited to the motion detection device 1 described above) and may include the steps of: (A) performing a reduction process (indicated as step 41) on the current image frame and previous image frames among a plurality of image frames performed by the electronic device; (B) generating a vector matrix through an optical flow algorithm (indicated as step 42); (C) determining the maximum value of a first region in the vector matrix, wherein the first region corresponds to a first region threshold (indicated as step 43); and (D) comparing the maximum value of the first region with the first region threshold and providing an alarm means (indicated as step 44) if the number of times the maximum value of the first region exceeds the first region threshold is greater than the number threshold.

[0069] In some embodiments, the motion detection method 4 may further include the steps of (E) updating the current image frame and subsequent image frames after the current image frame as a new previous image frame and a new current image frame, respectively, if the number of times the maximum value of the first region exceeds the first region threshold is less than or equal to the count threshold, and (F) repeating steps (A), (B), (C), (D), and (E) on the new current image frame and the new previous image frame for all corresponding image frames until the number of times the maximum value of the first region exceeds the first region threshold is greater than the count threshold, and then providing an alarm means.

[0070] In some embodiments, the motion detection method 4 may further include the step of converting both the current image frame and the previous image frame to grayscale images before generating the vector matrix.

[0071] In some embodiments, with respect to motion detection method 4, the vector matrix may include only the first region.

[0072] In some embodiments, with respect to the motion detection method 4, the vector matrix may include not only a first region but also a second region, the second region may correspond to a second region threshold, and the first region threshold and the second region threshold may be different. Furthermore, the operation detection method 4 may further include the steps of determining the corresponding maximum value of the second region and comparing the maximum value of the second region with the second region threshold, and the electronic device is configured to provide an alarm means when the total number of times the maximum value of the first region exceeds the first region threshold and the number of times the maximum value of the second region exceeds the second region threshold exceeds a count threshold.

[0073] In some embodiments, the motion detection method 4 may further include the steps of receiving a set of control signals from an external device and determining a first region threshold, a second region threshold, and a count threshold based on the set of control signals. The user of the external device can adjust the first region threshold, the second region threshold, and the count threshold at any time via the external device to determine the motion detection sensitivity in the first and second regions.

[0074] In some embodiments, the motion detection method 4 may further include the step of determining the division pattern of the first region and the second region based on a set of control signals.

[0075] In some embodiments, the motion detection method 4 may further include the steps of receiving a set of control signals from an external device and determining a first region threshold and a count threshold according to the set of control signals. The user of the external device can adjust the first area threshold and the count threshold via the external device at any time to determine the motion detection efficiency in the first area.

[0076] In some embodiments, with respect to the motion detection method 4, the alarm means may be an audible buzzer alarm.

[0077] In some embodiments, with respect to the motion detection method 4, the alarm means may be an alarm signal, and the motion detection method 4 may further include the steps of transmitting the alarm signal to an external device and the external device issuing an alarm to the user accordingly.

[0078] In some embodiments, with respect to motion detection method 4, the alarm means may be an optical alarm.

[0079] Each embodiment of the motion detection method 4 generally corresponds to each embodiment of the motion detection device 1. Therefore, based solely on the above description of the motion detection device 1, a person skilled in the art will be able to fully understand and implement all corresponding embodiments of the motion detection method 4, even if a detailed description of the embodiments from the motion detection method 4 is omitted.

[0080] A third type of embodiment of the present invention involves a computer program product that stores a program for detecting motion on a series of images. When an electronic computing device (e.g., a computer) loads and executes the program, a plurality of program instructions contained within the computer program product can execute the motion detection method 4 described above for the second type of embodiment. The computer program product can be stored on a non-temporary tangible machine-readable medium, such as, but not limited to, read-only memory (ROM), flash memory, disk, mobile hard drive, magnetic tape, network-accessible database, or any other storage medium having equivalent functionality known to those skilled in the art.

[0081] As described above, the motion detection solution provided by the present invention performs a reduction process on the image frame to be detected. This reduction process reduces the hardware resources required by the motion detection device during motion detection, thereby lowering the computational load on the hardware. Furthermore, the motion detection solution of the present invention uses an optical flow algorithm to perform the motion detection calculations. This optical flow algorithm enables more effective real-time processing of object motion information, captures more detailed information about the detected object, and further improves the accuracy and reliability of motion detection. Therefore, the present invention effectively reduces the hardware specifications and resource requirements for the motion detection device when performing motion detection.

[0082] The embodiments described above are merely examples illustrating embodiments of the present invention and are not intended to limit the scope to that claimed herein. Any other embodiments resulting from modifications, changes, adjustments, and integrations of the embodiments described above shall be included within the scope claimed herein, unless it is difficult for a person skilled in the art to conceive of them. The scope claimed herein shall be determined by the claims.

Claims

1. A motion detection device, wherein the motion detection device is A storage device configured to store multiple image frames, Alarm unit and A processor electrically coupled to the storage device and the alarm unit. The processor comprises the current image frame and previous image frames among the plurality of image frames, (A) Action to perform reduction processing, (B) The operation of generating a vector matrix through an optical flow algorithm. (C) An operation to determine the maximum value of a first region in the vector matrix, wherein the first region corresponds to a first region threshold, and (D) The operation of comparing the maximum value of the first region with the first region threshold, and if the number of times the maximum value of the first region exceeds the first region threshold is greater than the number threshold, an operation to transmit an operation detection signal to the alarm unit. It is configured to perform the following: The alarm unit is configured to provide an alarm means based on the motion detection signal, and is an motion detection device.

2. The aforementioned processor, (E) If the number of times the maximum value of the first region exceeds the threshold of the first region is less than or equal to the threshold of the number of times, the operation of updating the current image frame and the subsequent image frames following the current image frame as a new previous image frame and a new current image frame, respectively, and (F) Repeat operations (A), (B), (C), (D), and (E) on the new current image frame and the new previous image frame for all corresponding image frames until the number of times the maximum value of the first region exceeds the first region threshold is greater than the number threshold, and then transmit the operation detection signal to the alarm unit. The motion detection device according to claim 1, further configured to perform the following:

3. The motion detection device according to claim 1, further characterized in that the processor is configured to convert the current image frame and the previous image frame into grayscale images before generating the vector matrix.

4. The motion detection device according to claim 1, characterized in that the vector matrix includes only the first region.

5. The vector matrix further includes a second region in addition to the first region, the second region corresponding to a second region threshold, The operation detection device according to claim 1, further configured to determine the maximum value of the second region, compare the maximum value of the second region with the second region threshold, and transmit the operation detection signal to the alarm unit if the total number of times the maximum value of the first region exceeds the first region threshold and the number of times the maximum value of the second region exceeds the second region threshold exceeds a count threshold.

6. It is further equipped with a transmitter and receiver, The transceiver is electrically coupled to the processor. The transceiver is configured to receive a set of control signals from an external device. The operation detection device according to claim 5, further characterized in that the processor is configured to determine the first region threshold, the second region threshold, and the count threshold based on the set of control signals.

7. The motion detection device according to claim 6, further characterized in that the processor is configured to determine the division pattern of the first region and the second region based on the set of control signals.

8. It is further equipped with a transmitter and receiver, The transceiver is electrically coupled to the processor. The transceiver is configured to receive a set of control signals from an external device. The operation detection device according to claim 1, further characterized in that the processor is configured to determine the first region threshold and the count threshold based on the set of control signals.

9. The motion detection device according to claim 1, characterized in that the alarm unit is a buzzer and the alarm means is an audible buzzer alarm.

10. The motion detection device according to claim 1, characterized in that the alarm unit is a transceiver, the alarm means is an alarm signal, and the transceiver is configured to transmit the alarm signal to an external device, and the external device issues an alarm to the user of the external device accordingly.

11. The motion detection device according to claim 1, characterized in that the alarm unit comprises at least one indicator light, and the alarm means is a light-based alarm.

12. A motion detection method applied to a sequence of images and performed by an electronic device, wherein the motion detection method includes, among a plurality of image frames, the current image frame and previous image frames, (A) Step of performing reduction processing, (B) A step of generating a vector matrix through an optical flow algorithm, (C) A step of determining the maximum value of a first region in the vector matrix, wherein the first region corresponds to a first region threshold, and (D) A step in which the maximum value of the first region is compared with the first region threshold, and if the number of times the maximum value of the first region exceeds the first region threshold is greater than the number threshold, an alarm means is provided. A method for detecting motion, including performing the following actions.

13. (E) If the number of times the maximum value of the first region exceeds the threshold of the first region is less than or equal to the threshold of the number of times, the steps of updating the current image frame and the subsequent image frames following the current image frame as a new previous image frame and a new current image frame, respectively, (F) Repeat steps (A), (B), (C), (D), and (E) on the new current image frame and the new previous image frame for all corresponding image frames until the number of times the maximum value of the first region exceeds the first region threshold is greater than the number threshold, and then provide the alarm means. The operation detection method according to claim 12, further comprising:

14. Before generating the vector matrix, the step of converting both the current image frame and the previous image frame to grayscale images. The operation detection method according to claim 12, further comprising:

15. The motion detection method according to claim 12, characterized in that the vector matrix includes only the first region.

16. The vector matrix further includes a second region in addition to the first region, the second region corresponding to a second region threshold, The first and second region thresholds are different. The operation detection method according to claim 12, further comprising the steps of: determining the maximum value of the second region; comparing the maximum value of the second region with the second region threshold; and providing the alarm means if the total number of times the maximum value of the first region exceeds the first region threshold and the number of times the maximum value of the second region exceeds the second region threshold is greater than a count threshold.

17. The steps include receiving a set of control signals from an external device, A step of determining the first region threshold, the second region threshold, and the count threshold based on the set of control signals. The operation detection method according to claim 16, further comprising:

18. A step of determining the division patterns of the first region and the second region based on the set of control signals. The operation detection method according to claim 17, further comprising:

19. The steps include receiving a set of control signals from an external device, A step of determining the first region threshold and the count threshold based on the set of control signals. The operation detection method according to claim 12, further comprising:

20. The operation detection method according to claim 12, characterized in that the alarm means is an audible buzzer alarm.

21. The operation detection method according to claim 12, wherein the alarm means is an alarm signal, and the operation detection method further includes the steps of transmitting the alarm signal to an external device, and the external device issuing an alarm to the user of the external device accordingly.

22. The operation detection method according to claim 12, characterized in that the alarm means is an optical alarm.

23. A non-temporary machine-readable medium for storing instructions, wherein the instructions, when executed by a machine, cause the machine to perform the operation detection method described in claim 12.