Method and circuitry for mobile object detection

By dynamically adjusting the threshold and region of interest, the problems of misjudgment and power consumption in moving object recognition are solved, the recognition accuracy and energy efficiency of the circuit system are improved, and the system can adapt to image deformation and posture changes.

CN117197181BActive Publication Date: 2026-11-20REALTEK SEMICON CORP
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202210601525.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-30
Publication Date
2026-11-20
Estimated Expiration
2042-05-30

AI Technical Summary

Technical Problem

Existing technologies for moving object recognition suffer from problems such as misjudgment, unstable recognition rate, and high power consumption. In particular, when using neural network algorithms, it is difficult to handle deformed images and posture changes, and battery-powered devices also face power consumption issues.

Method used

By employing a dynamic threshold adjustment mechanism and region of interest (ROI) technology, the image is segmented into multiple blocks, brightness and chromaticity differences are calculated, a background model is established, and the judgment threshold is dynamically adjusted. Neural network operations are performed only in the ROI, reducing unnecessary computation.

Benefits of technology

It improves the accuracy of moving object recognition and continuous tracking capability, reduces the energy consumption of the circuit system, reduces false judgments, and adapts to changes in posture and image scaling distortion.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117197181B_ABST
    Figure CN117197181B_ABST
Patent Text Reader

Abstract

A mobile object detection method and circuit system, in the method, when a mobile object in a scene is sensed, continuous frame images are obtained, each frame image is divided into multiple blocks, and the brightness and chrominance of each block are calculated frame by frame to obtain differences compared with a background model, so as to identify dynamic events in each frame image. When there is a dynamic event, one or more blocks where the dynamic event is detected can be used to establish a region of interest, and then the mobile object in the region of interest is detected. A neural network algorithm can be used to calculate a trust score of the probability of a mobile object in each frame image, and the trust score is compared with a judgment threshold to detect the mobile object.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The specification discloses a technique for detecting moving objects, which in particular relates to a method and circuit system for establishing a background model to detect dynamic events and then using neural network technology to perform moving object detection. Background Technology

[0002] Existing methods for identifying moving objects include using infrared light sensors based on the principle of light blocking to achieve motion sensing, and also using image recognition technology to analyze the changes in images and light and shadow within a space to identify moving objects.

[0003] Image recognition technology that uses image changes to identify moving objects includes first establishing a background model, which is a fixed image in the environment, recording continuous images of this environment during monitoring, comparing each frame with this background model through a powerful image processing circuit, and then identifying moving objects based on the image changes in the continuous frames.

[0004] Furthermore, even if no dynamic information is detected in the image, it is still necessary to identify specific objects within it, such as people who do not typically remain still for long. When a person is identified in the image using human figure recognition technology, an information is triggered. However, if it is a human-shaped standee, such a standee may cause continuous triggering of incorrect information. Therefore, more effective and accurate recognition technology is needed to avoid the problem of detection errors.

[0005] Existing technologies incorporate neural network technology into image processing circuits, enabling these circuits to more intelligently identify moving objects in the environment through neural network operations and to determine subsequent actions by detecting changes in the image.

[0006] When using neural network algorithms for object recognition, the input image size must match the model's requirements for effective recognition. For example, if the model design requires a 1:1 image, but the camera captures an image in a 16:9 ratio, image distortion during the image conversion process will lead to a decrease in recognition rate.

[0007] Furthermore, during the movement or rotation of the object to be identified, it is difficult to guarantee that every pose can be accurately identified by the model built by the neural network algorithm. Therefore, the trust score of the same object may fluctuate. If a fixed trust score threshold is set, it may be difficult to continuously track the object when it moves between consecutive frames.

[0008] As can be seen from the above description, neural network algorithms can effectively perform object recognition, but existing methods still face some difficulties. Among them, the large amount of computing resources required for neural network operations causes serious power consumption problems for the microcontrollers in sensing devices that use batteries as power sources. Summary of the Invention

[0009] In order to effectively filter out information that leads to false positives and increase the recognition rate of specific targets, the publication proposes a moving object detection method and circuit system, which uses neural network operations to identify moving objects in images and adopts a dynamic threshold adjustment mechanism to accurately identify moving objects and continuously track them.

[0010] According to an embodiment of the moving object detection method, the method operates in a circuit system, wherein a continuous frame image of a scene is first acquired by a camera. When identifying dynamic events in each frame image, each frame image can be divided into multiple blocks. The brightness and chromaticity of each block are calculated frame by frame. The difference is then compared with the background model, and the presence or absence of dynamic events can be identified accordingly.

[0011] When dynamic events are identified in each frame of imagery, a Region of Interest (ROI) is established based on one or more blocks where dynamic events are detected. Moving objects are then detected within this ROI. If a moving object is detected, the ROI is updated based on the object's position and image features, allowing for the detection of moving objects in subsequent frames. If no moving object is detected, the ROI record stored in a memory is cleared.

[0012] According to one embodiment, the circuit system is implemented by an integrated circuit and includes a computing circuit. When the electronic system using the circuit system senses a dynamic event in the scene based on the motion sensor, it triggers a camera in the electronic system to capture the scene to obtain continuous frame images. When a dynamic event is identified, the computing circuit in the circuit system is triggered to execute the process of detecting moving objects in each frame of the image.

[0013] Furthermore, the moving object can be a humanoid moving object. The computing circuit runs a neural network algorithm to train and derive a humanoid recognition model, and performs humanoid recognition accordingly. When a humanoid moving object is detected in the region of interest, the humanoid recognition model calculates a confidence score for the probability of a humanoid moving object in each frame of the image. This confidence score is then compared with a judgment threshold to confirm the humanoid moving object.

[0014] Preferably, when a human-shaped moving object is detected, the judgment threshold can be lowered to avoid filtering out images that should contain human-shaped moving objects due to a high threshold.

[0015] Furthermore, in the step of identifying dynamic events in each frame of the image, after dividing each frame of the image into multiple blocks, the image features of brightness and chromaticity of each block are obtained. The background model is established based on the brightness and chromaticity values ​​of the previous and next frames. Then, the difference between the brightness and chromaticity of each block and the background model is calculated frame by frame. After comparing with a threshold, the dynamic event is confirmed.

[0016] Preferably, the background model is represented by chroma and luminance values, and the background model is updated by calculating the ratio between the chroma and luminance values ​​of the current frame image and the chroma and luminance values ​​of the background model to obtain the updated background model.

[0017] Furthermore, in the step of initializing the background model, it is necessary to confirm whether the automatic exposure value in the frame image is stable. If the automatic exposure value is unstable, it is necessary to wait for an image with a stable automatic exposure value to be obtained. Once the automatic exposure value is stable, the background model is initialized based on the chromaticity and brightness information of the frame image.

[0018] To further understand the features and technical content of the present invention, please refer to the following detailed description and drawings of the present invention. However, the drawings provided are for reference and illustration only and are not intended to limit the present invention. Attached Figure Description

[0019] Figure 1 A schematic diagram of an embodiment of an electronic system applying a moving object detection method is shown;

[0020] Figure 2 This displays a schematic diagram of each stage of the moving object detection method.

[0021] Figure 3 A flowchart illustrating an embodiment of the moving object detection method is shown;

[0022] Figure 4 Showing a flowchart of an implementation example of dynamic event detection;

[0023] Figure 5 A schematic diagram of an embodiment that uses image information from each block of the image to determine dynamic events after the image is segmented;

[0024] Figures 6A to 6C This diagram illustrates an example of obtaining an image size that directly matches the model's requirements through image cropping; and

[0025] Figure 7 This demonstrates an implementation flow for dynamically adjusting the judgment threshold.

[0026] Symbol Explanation

[0027] 100: Control circuit

[0028] 101: Motion Sensor

[0029] 103: Camera

[0030] 105: Circuit System

[0031] 107: Operational Circuit

[0032] 109: Output Circuit

[0033] 201: Mobile Sensing Phase

[0034] 203: Dynamic Event Detection Phase

[0035] 205: Human Recognition Stage

[0036] 207: Application Phase

[0037] 500: Block Image

[0038] 61: Original Image

[0039] 63: Regional Imagery

[0040] 63': Cropped image

[0041] Steps S301 to S325 Moving Object Detection Process

[0042] S301 receives images

[0043] S303 segmentation image is multi-region

[0044] S305 Establishing a Background Model

[0045] S307 calculates the differences in brightness and chromaticity between each zone and the background model.

[0046] S309 checks if there are dynamic events in each zone.

[0047] S311 Image Cropping

[0048] S313 establishes the Region of Interest (ROI).

[0049] S315 Moving Object Detection

[0050] Did S317 detect any moving objects?

[0051] S319 Update Area of ​​Interest

[0052] S321 outputs information indicating that a moving object has been detected.

[0053] S323 Update Background Model

[0054] S325 removes the region of interest (ROI).

[0055] Steps S401 to S415: Update the background model

[0056] The process of dynamically adjusting the threshold in steps S701 to S709 Detailed Implementation

[0057] The following specific embodiments illustrate the implementation of the present invention. Those skilled in the art can understand the advantages and effects of the present invention from the content disclosed in this specification. The present invention can be implemented or applied through other different specific embodiments, and various details in this specification can also be modified and changed based on different viewpoints and applications without departing from the concept of the present invention. Furthermore, the accompanying drawings of the present invention are for simple illustrative purposes only and are not depictions of actual dimensions; this is stated beforehand. The following embodiments will further describe the relevant technical content of the present invention in detail, but the disclosed content is not intended to limit the scope of protection of the present invention.

[0058] It should be understood that while terms such as "first," "second," and "third" may be used in this document to describe various components or signals, these components or signals should not be limited by these terms. These terms are primarily used to distinguish one component from another, or one signal from another. Furthermore, the term "or" as used herein should, as appropriate, include any combination of one or more of the associated listed items.

[0059] To address the shortcomings of existing image recognition technologies in moving object detection, such as poor recognition results due to objects occupying too few pixels in the image and the need for effective filtering of false positives, this disclosure proposes a moving object detection method and circuit system. The main technical concept is that, since most current surveillance cameras provide high-resolution images, and the image size is much larger than the image size required by the computational model in the circuit system, the image is cropped before moving object recognition calculations to meet the needs of the intelligent model. Furthermore, regions of interest (ROIs) can be established based on the areas of dynamic events, and only ROIs need to be identified, thus improving recognition performance.

[0060] The moving object detection method can be a software means executed in a computer system or applied to a circuit system. One embodiment of the circuit system can be an integrated circuit, such as an application-specific integrated circuit (ASIC) or a system on chip (SoC), or an integrated circuit that integrates at least an image signal processor (ISP), communication circuits, an image codec, and a neural network (NN) computing circuit.

[0061] Furthermore, the circuit system can be applied in electronic systems that perform moving object detection, such as access control systems, surveillance systems, or related systems for electronic doorbells equipped with cameras. According to one embodiment, see [reference needed]. Figure 1 This diagram illustrates an embodiment of an electronic system employing a moving object detection method. The system includes a control circuit 100 that controls the operation of various circuit components. The control circuit 100 is electrically connected to each component, including a motion sensor 101. The motion sensor 101 can be a sensor utilizing light-sensing technology (such as infrared light) or other technologies for sensing moving objects, such as a pyro-electric infrared detector (PIR). The system also includes a camera 103. This camera can continuously capture images of a scene, or it can be triggered by the control circuit 100 based on any dynamic event detected by the motion sensor 101 within the scene. A dynamic event typically refers to the detection of a moving object. Once triggered, the camera 103 begins capturing images of the scene. The electronic system includes a circuit system 105 for running a moving object detection method. The control circuit 100 acquires images captured by the camera 103. The circuit system 105 processes the images frame by frame, detecting dynamic events within them. It then triggers the processing circuit 107 within the circuit system 105 to use neural network technology to identify human figures or specific targets in the images. Finally, the image confirming the presence of a moving object is output via the control circuit 100 and output circuit 109.

[0062] Based on the application embodiments of the above circuit system, please refer to Figure 2 The diagram shows the various stages of the moving object detection method, including the front-end motion perception stage 201, the dynamic event detection stage 203, the human figure recognition stage 205, and the application stage 207.

[0063] In the motion sensing stage 201, the motion sensor 101 is used to determine whether there is any dynamic event within a scene. If a dynamic event is present, the process proceeds to the dynamic event detection stage 203. In this stage, the camera 103 is activated to capture images of the scene, and the method executed by the circuit system 105 uses image recognition technology to detect whether any dynamic event exists. In one embodiment, a background model is first established through consecutive images, and subsequent images are compared with this background model to identify dynamic events that cause image changes. The circuit system 105 may implement an Image Signal Processor (ISP), and perform Motion Detect (MD) on the consecutive image data collected by the camera 103.

[0064] If a dynamic event is identified from each frame of image, the moving object therein is further identified. Taking a human as an example, the process proceeds to the human shape recognition stage 205, where the arithmetic circuit 107 may apply a human shape recognition model trained by a neural network algorithm to perform Person Detect (PD), and output the human shape recognition result to the application stage 207 via the input circuit 109, that is, the applied system will execute subsequent actions according to the human shape recognition result. According to an embodiment, in the step of determining a human-shaped moving object using the human shape recognition model, the human shape recognition model is applied to the region of interest of the multiple frames of images acquired by the circuit system, and a confidence score for the presence of a human-shaped moving object in each frame of image is calculated, which is compared with a judgment threshold to confirm whether a human-shaped moving object exists.

[0065] According to the operation modes of the above stages, taking an electronic doorbell system equipped with a camera as an example, in the motion sensing stage 201, the motion sensor is used to detect motion events near the door at all times. When a motion event is detected, the control circuit activates subsequent steps and proceeds to the dynamic event detection stage 203, which includes activating the camera to capture images, obtaining consecutive images, and executing the moving object detection method through the circuit system to determine whether a dynamic event exists. If a dynamic event exists, the process proceeds to the human shape recognition stage 205 to identify whether there is a human shape in the image. If the human shape recognition model determines that the detected object is not a person about to enter the door, the currently detected dynamic event is ignored; if a person is identified, the electronic doorbell is triggered in the application stage 207.

[0066] The above moving object detection method may refer to Figure 3 the illustrated embodiment flowchart.

[0067] The method operates within a circuit system. Initially, the applied electronic system acquires an image of a scene (which can be obtained by triggering a camera after motion sensing). In step S301, the circuit system receives consecutive frames of images and processes them frame by frame. This includes dividing the image into multiple blocks in step S303. The number and size of the blocks affect the accuracy of recognition and can be determined according to the computing power of the circuit system. In step S305, a background model is established based on the image features of the preceding and following frames. The background model can be a color image, a grayscale image, or a binarized pattern to establish the static image features within the scene, such as brightness and chromaticity features. These features can be stored in the internal or external memory of the circuit system according to the background model corresponding to each image block defined in the method. In addition to obtaining the initialized background model, the background model can also be updated based on the results of subsequent image processing. Then, based on this background model, in step S307, the difference values ​​between the brightness and chromaticity of each block and the background model are calculated frame by frame, and compared with the threshold set as the brightness difference or chromaticity difference of dynamic events. In step S309, it is detected whether there are dynamic events in each area.

[0068] If no motion event is detected in a single frame or a certain number of consecutive frames (No), the process returns to S301, and the above procedure is repeated. Furthermore, the previously established background model can be updated based on this detection result (S323). Conversely, if one or more blocks are detected to have motion events compared to the background model (Yes), the process continues to S311. Based on the detected blocks, one or more frames of imagery are cropped, i.e., the area where the motion event is detected is dynamically cropped. The process continues to S313, where a region of interest (ROI) is established for this motion event. The ROI can be established based on the image segmentation into multiple blocks as described above, or it can be updated based on the ROI established in the previous detection. The relevant information can be stored in memory.

[0069] After establishing the region of interest (ROI), as in step S315, a neural network algorithm is used to identify and detect moving objects, such as human figures, within the ROI of one or more image frames. The relevant neural network algorithm can be found below. It is worth noting that in the operation of the circuit system, the circuits performing the computation, such as... Figure 1 The displayed computing circuit 107 can only be fully activated to perform subsequent calculations for moving object and human figure recognition after the region of interest has been established, thus saving power.

[0070] In step S317, the presence of a moving object in the region of interest (ROI) is determined based on the detection result. If no moving object is detected (No), the record of the ROI stored in the memory is cleared (step S325), and the process returns to step S301. If a moving object is detected (Yes), the process continues to step S319, indicating that the position and image features of the moving object can be accurately determined. This allows for further updating of the ROI established in previous steps based on the detected dynamic events, such as adjusting the area covered by the ROI, so that moving objects can be detected in subsequent frames based on the updated ROI. For example, when a human figure is detected, the area of ​​dynamic event detection changes as the person approaches, moves away from, or moves around, therefore the ROI should be updated accordingly. Then, as in step S321, the information indicating a moving object was detected is output. The process can then continue with subsequent actions based on the functions applied by the circuit system, while the moving object detection process returns to step S301.

[0071] In the above process, step S309, which describes the detection of dynamic events in the image, is described in detail. Figure 4 The flowchart shown is an example of motion detection.

[0072] When the camera captures consecutive frames (step S401), it can first be confirmed whether the automatic exposure (AE) values ​​in each frame are stable (step S403). If the AE values ​​are still unstable, it is necessary to acquire images with stable AE values ​​and return to step S401. After obtaining stable images, these can be considered as background values ​​of the captured area. Image values, segmented into multiple specific sizes, can then be obtained from the image signal processor (ISP) implemented by the circuit system. Figure 5 The image 500 is displayed as a 5x5 block. The chromaticity and luminance values ​​(using YRGB values ​​as an example) of each block image 500 are obtained. That is, after the automatic exposure value stabilizes, the background model is initialized based on the chromaticity and luminance information of one or more frames of images (step S405). The number and size of the blocks affect the accuracy of recognition. If the blocks are divided more finely, more subtle dynamic events can be detected, but the computational load will also increase accordingly.

[0073] For example, with Figure 5For example, a frame is divided into 5x5 blocks, forming multiple block images 500. During the initialization of the background model, the average YRGB (luminance RGB) value of each block image 500 is calculated. Therefore, each block image 500 corresponds to an average image chromaticity and luminance value (such as the average YRGB value). Once the automatic exposure value stabilizes, it is considered a background without dynamic events, and the average YRGB (luminance RGB) value of each block image 500 at that moment can be regarded as the background value. In this example, the 25 blocks formed by dividing the entire image correspond to 25 average image chromaticity and luminance values, forming a background model.

[0074] After initializing the background model, the image chromaticity and luminance values ​​(e.g., YRGB values) of each pixel in the current image are obtained (step S407), and the numerical differences between these values ​​and those of the background model are calculated (step S409) to detect whether there is a dynamic event (step S411). According to the embodiment, the numerical differences between the image chromaticity and luminance values ​​(e.g., YRGB values) in the image and those of the background model are calculated, and the average difference of the entire image is compared. The difference value is then compared with a threshold set by the system for judging dynamic events, thereby determining the dynamic event.

[0075] In step S411, if no dynamic event is detected (No), the background model is updated in real time according to the calculated value (step S413), and the process returns to step S401; if a dynamic event is detected (Yes), the step of establishing a region of interest to detect moving objects (or human figure recognition) in the moving object detection method can continue to be executed (step S415).

[0076] It is worth mentioning that when the circuit system obtains the color and brightness values ​​of each block in the image, such as the 5*5 YRGB values ​​mentioned above, each value corresponds to the average value within the multiple regions into which the image is divided. The effect of performing moving object detection in this way includes saving computation, still retaining the color change data in the image, filtering out too small motions, and filtering out relatively far or small motions.

[0077] In the above steps of initializing or updating the background model, the values ​​of the background model will be... Figure 4 After the exposure values ​​are automatically adjusted and stabilized during the process, the model is initialized using the acquired image information. The background model is represented by image chroma and luminance values. One way to update the background model is to calculate the image chroma and luminance values ​​of each frame currently obtained from the circuit system (i.e., the BGmodel in Equation 1). current The image chromaticity and luminance values ​​of the previously recorded background model (i.e., the BGmodel in Equation 1) are compared with those of the previously recorded background model. previousThe average value of the background model (BGmodel) or an adjustment using a specific ratio (Ratio1, Ratio2) is used to update the background model, resulting in the updated BGmodel, as shown in Equation 1. This increases the background memory, improves the sensitivity of dynamic detection, and real-time updates to the background model can avoid false triggering caused by background changes.

[0078] Equation 1:

[0079] After initializing or updating the background model, the difference between each frame of the image and the background model is calculated. First, the chromaticity and luminance values ​​of each frame are obtained, and then the difference is calculated between these values ​​and the chromaticity and luminance values ​​of the background model to obtain dynamic information from the image. When the difference exceeds a set threshold, a dynamic event is detected, and subsequent moving object detection is performed. According to the embodiment, the threshold is not a fixed value but is set with reference to the average difference value of each frame. A consistent difference across the entire image is usually caused by noise or changes in lighting, such as consistent variations in the automatic exposure (AE) and automatic white balance (AWB) values. False triggers caused by overall consistency changes can be filtered out by calculating the average difference value of a frame, as well as areas with differences less than the average difference. This ensures that when there are no significant changes in lighting, the average difference value approaches zero, without affecting the threshold for dynamic detection. For example, when a consistent brightness change is detected across the entire frame, such as when lights are turned on or off, this change, considered noise, can be filtered out using the frame average difference value.

[0080] When a dynamic event is detected, the process enters the moving object detection phase (e.g., ...). Figure 4 In step S415), such as the human figure recognition stage, cropping can be performed based on the region where dynamic events are detected (where the difference value of most blocks is greater than a threshold), and the dynamically cropped image region can be identified. According to the embodiment, refer to... Figures 6A to 6C The example shown illustrates how image cropping directly yields the image size required by a model (such as a human figure recognition model). Figure 6A Displaying the original image 61, when dynamic events are detected, such as... Figure 6B This generates an image 63 of the region with dynamic events. The region where movement events were detected is then cropped. This example shows the cropped portion near the center of the image. In actual operation, the left half, right half, or a specific location can be cropped based on the detected dynamic events. The cropped result is as follows: Figure 6CThe cropped image 63' is displayed. This cropping and adjusting of the entire frame to fit the size required by the human recognition model avoids image distortion that could lead to poor recognition results. Furthermore, because the cropping process only captures the dynamic areas for recognition, moving objects occupy a larger proportion of the original image, making them easier to identify. Alternatively, adjusting the aspect ratio of each frame to fit the model's size is also a possibility.

[0081] Furthermore, when a moving object is detected based on a judgment threshold (probability, confidence score), it means that the moving object should be included in a finite number of consecutive frames. The method then determines the pose of the moving object. Taking human recognition as an example, when performing human recognition using a neural network-based human recognition model, the model calculates a confidence score for each frame containing a moving human figure. This confidence score is then compared to the system's set judgment threshold to confirm the presence of a person. When a person changes their posture, the human recognition result may fluctuate. In some cases, the confidence score calculated by the neural network-based human recognition model may be below the judgment threshold, preventing the tracking of the human figure. Therefore, a mechanism for dynamically adjusting the threshold is implemented. One purpose of dynamically adjusting the threshold is to ensure that when a moving human figure is detected, the person can be detected with a high probability regardless of their size changes in the image during each movement.

[0082] For example, when a moving object changes its posture, the confidence score for whether a moving object exists in each frame of the image may change. For instance, if the face changes from front to side, the confidence score for the moving object will be dynamically adjusted to avoid misjudgment and to continuously track moving objects in the image.

[0083] For reference Figure 7This document describes an implementation flow for dynamically adjusting the judgment threshold. In the human recognition algorithm, a preset threshold (default threshold, e.g., threshold = 0.6) is initially used to determine whether a person is detected. The threshold is then adjusted based on the detection results; that is, the degree to which the threshold can be relaxed is calculated according to the trust score of the detected person. A standard threshold is also set, which is a lower limit to avoid excessive false positives caused by adjusting the threshold too low. The mechanism for adjusting the judgment threshold is as follows: the higher the trust score of the human recognition model derived from the intelligent algorithm for detecting a moving human object, the higher the threshold is expected to be. Since the presence of a moving object should be continuous for a period of time, once a moving object (in this case, a moving human) is detected, it is anticipated that the next frame will also contain a moving object. Therefore, the judgment threshold is lowered to prevent a high threshold from filtering out images that should contain moving objects.

[0084] According to one embodiment, the threshold for judging moving human figures is adjusted as shown in Equation 2. According to Equation 2, the threshold value to be used for this human figure recognition is... current ) equals the previous threshold value previous Subtract the trust score from the previous detection of a humanoid figure. previous ) and a standard threshold standard The square of the difference.

[0085] Equation 2:

[0086] threshold current =threshold previous -(trustscore previous -threshold standard ) 2 .

[0087] As shown in the flowchart, a neural network algorithm is introduced to perform human recognition, calculating the trust score of detected human figures in the image, and employing a dynamic threshold adjustment mechanism. Initially, a preset threshold is used (step S701). Based on the human recognition model, the trust score of each detected human figure is compared with this preset threshold to confirm whether a moving human object has been detected (step S703). Specifically, during the human recognition process based on the trust score of detected human figures, the threshold is adjusted according to whether a human figure is detected. If no human figure is detected (NO), it indicates that the image continues to be without human figures, and the threshold value is increased to avoid false alarms (step S705).

[0088] Conversely, if the comparison between the trust score and the judgment threshold indicates that a person has been detected (yes), the threshold will be lowered to ensure that the person is also detected in the next frame under the dynamic threshold adjustment mechanism. See Equation 2 for an example. The relevant process first proceeds to step S707, comparing the trust score with the system's set standard threshold. If the trust score does not exceed the standard threshold (no), the threshold value is increased to avoid false alarms (step S705). If the trust score exceeds (or equals) the standard threshold (yes), the prediction threshold continues to be used (step S709).

[0089] According to the embodiment of the moving object detection method, when a human figure is detected, since it is difficult to guarantee that every action and size of a person can be detected with a high confidence score during the movement of a person, the threshold of the confidence score is relaxed so that the system can continue to detect human figures and continuously track human figures moving objects; conversely, when no human figure is detected, the threshold is increased to avoid misjudgment caused by changes in the overall image.

[0090] According to an embodiment of the moving object detection method, in the process of detecting moving objects, when a detected moving object moves away from or near the camera, the confidence score calculated as a moving object will change. Since the proportion of the moving object in the image affects the confidence score calculated as a moving object, the above-mentioned mechanism of dynamically adjusting the threshold can be used to avoid the moving object being misjudged as disappearing due to changes in the size of the moving object in the image, and can also continuously track moving objects in the image.

[0091] In summary, in the above embodiments, if power saving is not considered, recognition can continue even without dynamic events. Specifically, in the moving object detection method, when no dynamic event is detected, recognition continues in the area where movement was previously detected. Taking human recognition as an example, the area where movement disappears might be where the person in the image is stationary, or where the person leaves from a passage or entrance; these are the areas most likely to continue detecting people. To avoid false triggers caused by stationary objects, the threshold value for the trust score of detecting a person can be increased in the neural network algorithm to filter out false triggers with insufficient trust scores. Furthermore, multiple regions of interest (ROIs) can be calculated to determine the trust score of the object to be detected in each region, effectively filtering unnecessary background information and improving the accuracy of determining whether a person or specific target is present.

[0092] The content disclosed above is only a preferred and feasible embodiment of the present invention, and is not intended to limit the claims of the present invention. Therefore, all equivalent technical changes made based on the content of the present invention specification and drawings are included within the scope of the claims of the present invention.

Claims

1. A moving object detection method, operating in a circuit system, comprising: When a movement event is detected, the dynamic event detection phase begins, and the camera is activated to capture a series of frames of the scene. The dynamic event in each frame of the image is identified by dividing each frame of the image into multiple blocks and then calculating the difference between the brightness and chromaticity of each block and a background model frame by frame to identify the dynamic event. In the step of identifying the dynamic event, when the continuous frame images are acquired, it is first confirmed whether an automatic exposure value in each frame of the image is stable. If the automatic exposure value is unstable, it is necessary to acquire an image with a stable automatic exposure value. If the automatic exposure value is stable, the background model is initialized based on the chromaticity and brightness information of one or more frames of the image. When the dynamic event is identified in each frame of the image, a region of interest is established based on one or more blocks where the dynamic event is detected; and Detect a moving object in the region of interest of one or more frames of imagery; If the moving object is detected, the region of interest is updated based on the position of the moving object and image features, so that the moving object can be detected in subsequent frames based on the updated region of interest; if the moving object is not detected, the record of the region of interest stored in a memory is cleared.

2. The moving object detection method as described in claim 1, wherein the circuit system is implemented by an integrated circuit and includes a computing circuit. When an electronic system using the circuit system detects the dynamic event in the scene based on a motion sensor, it triggers a camera in the electronic system to capture the scene to obtain the continuous frame images.

3. The moving object detection method as described in claim 2, wherein, When the dynamic event is detected, the arithmetic circuit in the circuit system is triggered to execute the process of detecting the moving object in each frame of the image.

4. The moving object detection method as described in claim 3, wherein the moving object is a humanoid moving object, and the computing circuit runs a neural network algorithm to train and obtain a humanoid recognition model, thereby performing humanoid recognition.

5. The moving object detection method as described in claim 4, wherein, It also includes cropping one or more frames of the image so that each frame is cropped and adjusted to fit the size required by the human figure recognition model, or adjusting the proportion of each frame to fit the size required by the human figure recognition model.

6. The moving object detection method as described in claim 4, wherein, When detecting the human-shaped moving object in the region of interest, a confidence score for the presence of the human-shaped moving object in each frame of the image is calculated using the human recognition model. The confidence score is then compared with a judgment threshold, which is dynamically adjusted. When the human-shaped moving object is detected, the judgment threshold is lowered to prevent images that should contain the human-shaped moving object from being filtered out due to a high threshold.

7. The moving object detection method as described in claim 1, wherein, In the step of identifying the dynamic event in each frame of the image, after dividing each frame of the image into multiple blocks, the image features of brightness and chromaticity of each block are obtained. The background model is established based on the brightness and chromaticity values ​​of the previous and next frames. Then, the difference value between the brightness and chromaticity of each block and the background model is calculated frame by frame. After comparing with a threshold, the dynamic event is confirmed.

8. The moving object detection method as described in claim 7, wherein the background model is represented by chroma and luminance values, and the updating method of the background model includes calculating an average of the chroma and luminance values ​​of the current frame image and the chroma and luminance values ​​of the previous background model to obtain the updated background model.

9. A circuit system applied in an electronic system, wherein the circuit system, after acquiring continuous frame images of a scene through a camera of the electronic system, executes a moving object detection method, comprising: When a motion event is detected, the dynamic event detection phase is entered to acquire the continuous frame image. The dynamic event in each frame of the image is identified by dividing each frame of the image into multiple blocks and then calculating the difference between the brightness and chromaticity of each block and a background model frame by frame to identify the dynamic event. In the step of identifying the dynamic event, when the continuous frame images are acquired, it is first confirmed whether an automatic exposure value in each frame of the image is stable. If the automatic exposure value is unstable, it is necessary to acquire an image with a stable automatic exposure value. If the automatic exposure value is stable, the background model is initialized based on the chromaticity and brightness information of one or more frames of the image. When the dynamic event is identified in each frame of the image, a region of interest is established based on one or more blocks where the dynamic event is detected; and Detect a moving object in the region of interest of one or more frames of imagery; If the moving object is detected, the region of interest is updated based on the position of the moving object and image features, so that the moving object can be detected in subsequent frames based on the updated region of interest; if the moving object is not detected, the record of the region of interest stored in a memory is cleared.

Citation Information

Patent Citations

  • Object and key person monitoring system and method thereof

    CN102244769A

  • Method for processing still image in image

    CN113902624A

  • Human shape detection method, monitoring and early warning method, device and system

    CN114495395A