A parking monitoring system based on image sensor movement detection

By working together with a hardware-level SAD unit based on an image sensor and a low-power standby chip, low-power, high-precision motion detection for parking monitoring is achieved, solving the problems of high power consumption, slow response, high false trigger rate and bus conflict in existing technologies, and providing accurate motion position information and intelligent event classification capabilities.

CN123164199APending Publication Date: 2026-11-24SHENZHEN XIAOJING TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611361949.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-03
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

Existing motion detection technologies for parking monitoring cannot achieve high-precision, regionally differentiated, location-aware, and reliable bus control motion detection under low-power conditions. They suffer from problems such as high power consumption, slow response speed, high false trigger rate, and risk of bus conflict.

Method used

The image is segmented by a hardware-level SAD unit based on an image sensor. Combined with the heterogeneous power domain management of the low-power standby chip and the main control chip, the image SAD unit acquires monitoring images in real time, triggers the judgment unit to perform spatial threshold decision and time series verification, generates MAP data and wakes up the main control chip to record, thereby achieving accurate event recognition and regional differentiated deployment.

Benefits of technology

It reduces power consumption during parking monitoring, improves motion response speed, reduces false wake-up rate, provides accurate motion position information, reduces bus conflict risk, and supports intelligent event classification.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123164199A_ABST
    Figure CN123164199A_ABST
Patent Text Reader

Abstract

This invention discloses a parking monitoring system based on image sensor motion detection, belonging to the field of monitoring technology. It includes an image SAD unit, a trigger determination unit, and a main control response unit. The image SAD unit has a built-in reference frame buffer with adjustable capacity. It calculates the SAD value for each grid based on a static background model and outputs it after downsampling. The trigger determination unit performs spatial counting and continuous frame verification on the changing units. After determining valid movement, it performs connected component clustering on the changing grid, extracts the trigger cluster area, compactness, and SAD-weighted centroid, and determines collision, pedestrian passage, or object passing events based on the area increment and centroid drift displacement. This system reduces standby power consumption to the microampere level, reduces response latency from the second level to the microsecond level, supports intelligent event classification and location awareness, has a low false trigger rate, completely eliminates bus conflict risks, and has high reliability.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of surveillance technology, and specifically to a parking monitoring system based on motion detection using an image sensor. Background Technology

[0002] In the scenario of parking monitoring by dashcam, the device needs to continuously monitor the surrounding environment after the vehicle is turned off. When abnormal movement is detected, such as a pedestrian approaching, a vehicle collision or scratch, it will automatically wake up and record video to realize the parking security function.

[0003] Currently, existing motion detection solutions for parking monitoring mainly include: Solution 1: Software-based motion detection using a main control chip (SoC). The SoC continuously acquires video frames and uses algorithms such as frame difference or optical flow to perform pixel-level comparisons between adjacent frames at the software level to determine the presence of moving objects. Its drawbacks are: the SoC needs to continuously run video acquisition and image processing algorithms, resulting in power consumption typically exceeding 100mA during parking monitoring, which can easily drain the vehicle battery over time; due to delays in frame buffering and algorithm processing, there is usually a 1-2 second delay from the occurrence of motion to triggering recording, limiting the response speed. Solution 2: Based on an external PIR infrared sensor. A passive infrared (PIR) sensor detects changes in human infrared radiation to trigger wake-up. Its drawbacks are: it can only detect human heat sources and cannot identify non-human movement events such as vehicle collisions or falling objects; it is also susceptible to changes in ambient temperature, resulting in a high false trigger rate; furthermore, it requires additional PIR sensors and interface circuitry, increasing hardware costs.

[0004] Furthermore, some architectures introduce low-power standby chips that work collaboratively with the main control chip, sharing the I2C bus to access the image sensor. However, in parking mode, after the main control chip is powered off, there is a lack of a clear bus control handover mechanism between the low-power chip and the main control chip, posing a risk of bus conflict and affecting system reliability. Simultaneously, while existing sensors with motion detection capabilities can output motion trigger signals, they cannot provide information on the distribution of movement positions, making it difficult to support subsequent intelligent event type recognition and analysis. In summary, the core deficiency of existing technologies lies in their inability to achieve high-precision, regionally differentiated, location-aware, and reliable bus control motion detection parking monitoring under low-power conditions, which urgently requires further improvement. Summary of the Invention

[0005] This invention provides a parking monitoring system based on image sensor motion detection, which solves the problem that existing parking monitoring motion detection technologies are difficult to implement regionally differentiated deployment and intelligent event pre-classification.

[0006] This invention is achieved through the following technical solution: A parking monitoring system based on image sensor motion detection, the system comprising: Image SAD Unit: Acquires monitoring images of the target vehicle, divides each monitoring image into multiple grids, divides each grid into several image calculation units, sets a threshold for the number of units for each image calculation unit, sets a SAD threshold for each grid, calculates the SAD value between the current frame and the reference frame for each image calculation unit, and outputs it after downsampling. Trigger Judgment Unit: Receives the SAD value of the image hardware unit. When the SAD value of the image calculation unit reaches the SAD threshold, it is marked as a changed unit. The monitoring images with the number of changed units reaching the unit number threshold are screened out and marked as changed images. Continuous frame verification is performed on the changed images. The changed images that meet the continuous frame verification are judged as valid moving images. Main control response unit: Includes main control chip and low-power standby chip. It outputs interrupt wake-up signal and generates MAP data. After the target vehicle is turned off, the main control is powered off and the standby chip listens for interrupt. After receiving the wake-up signal, the standby chip pulls up the main control, the main control reads the MAP data and starts recording. After completion, the main control is powered off again and the standby chip resumes listening.

[0007] Furthermore, the image SAD unit has a built-in reference frame buffer, which is used to store historical reference frame data, which represents a static background model. The image SAD unit uses the reference frame stored in the reference frame buffer as a reference to calculate the SAD value between the current frame and the reference frame; the reference frame buffer is configured with an adjustable buffer capacity, which is used to control the number of historical frames participating in background modeling; the image SAD unit continuously acquires monitoring images after the vehicle is turned off, and calculates the SAD value of each image calculation unit frame by frame with the reference frame as a reference.

[0008] Furthermore, the trigger determination unit is also configured with an interrupt sustaining frame number parameter; When the trigger determination unit determines that the current monitored image is a valid moving image, the trigger determination unit outputs an interrupt wake-up signal and controls the number of valid frames of the interrupt wake-up signal according to the interrupt maintenance frame number parameter. After the interrupt wake-up signal remains valid for a certain number of frames as set by the interrupt maintenance frame number parameter, the trigger determination unit automatically clears the interrupt wake-up signal and stops outputting the interrupt wake-up signal to the main control response unit.

[0009] Furthermore, when the interrupt sustaining frame number parameter is set to an integer greater than 1, the interrupt wake-up signal continues to maintain the corresponding frame number after the main control response unit is woken up, so as to ensure that the main control response unit continuously receives a valid interrupt trigger state during the wake-up start-up period.

[0010] Furthermore, the operation of the trigger determination unit also includes: After determining that the current frame is a valid moving image, all grids marked as changing in the MAP data corresponding to the current frame are extracted. Connected component clustering is performed on the changing grids, and adjacent changing grids are merged into the same trigger cluster. The geometric feature parameters of each trigger cluster are calculated, including the trigger cluster area, compactness, and centroid coordinates. The trigger determination unit performs connected component clustering on the MAP data of multiple consecutive frames, associates the same trigger cluster across frames, tracks the inter-frame displacement of its centroid coordinates, and generates a centroid drift trajectory. Logical events are set for the internal state of the target vehicle, and the logical events of the target vehicle are determined based on the trigger cluster area and the centroid drift trajectory.

[0011] Furthermore, the logical events include collision events, pedestrian passing events, and object passing events; the trigger determination unit sets an area threshold and a compactness threshold for the area of ​​the trigger cluster; and sets a first displacement threshold and a second displacement threshold for the centroid, wherein the second displacement threshold is greater than the first displacement threshold. When the area increment of the trigger cluster exceeds the area change threshold and the displacement of the centroid drift trajectory is less than the first displacement threshold, it is determined to be a collision event. When the compactness of the trigger cluster is lower than a preset compactness threshold, and the displacement of the centroid drift trajectory is greater than or equal to a first displacement threshold and less than a second displacement threshold, it is determined to be a pedestrian passing event. When the increment of the trigger cluster area is less than the area change threshold and the displacement of the centroid drift trajectory is greater than the second displacement threshold, it is determined to be an item passing event.

[0012] Furthermore, the calculation process for the compactness is set as follows: Let C represent compactness, S represent the area of ​​the trigger cluster, and P represent the perimeter of the trigger cluster boundary. The compactness calculation formula is then expressed as: , The perimeter of the trigger cluster boundary is obtained by tracing the eight-neighbor chain code of the outer contour of the trigger cluster.

[0013] Furthermore, the calculation process for the centroid coordinates is set as follows: Let the coordinates of the centroid in the plane coordinate system be expressed as: , The formulas for calculating the x-coordinate and y-coordinate of the centroid are as follows: , , Where N represents the total number of grid cells marked as changed within the trigger cluster, and i represents the ordinal number of the grid cells marked as changed within the trigger cluster; W i This indicates the maximum SAD value within the grid.

[0014] Furthermore, the main control response unit also includes state machine control logic and handshake signal lines. The state machine control logic includes standby state, wake-up transition state, working state and sleep transition state. The handshake signal lines are used for bus control right request and authorization handshake between the main control chip and the low-power standby chip. By default, the main control response unit is in the standby state: the low-power standby chip acts as the master control device of the I2C bus, the main control chip is physically isolated from the I2C bus through an analog switch, and the handshake signal line maintains the first level state; When the low-power standby chip detects the interrupt wake-up signal, the state machine control logic switches from the standby state to the wake-up transition state. The low-power standby chip sends a bus control request signal through the handshake signal line and detects the power stability signal of the main control chip. After confirming that the power supply of the main control chip is stable, the low-power standby chip releases the control of the I2C bus, the main control chip takes over the control of the I2C bus, and the state machine control logic enters the working state.

[0015] Furthermore, after the main control chip takes over the I2C bus master control, it sends a switch completion confirmation signal to the low-power standby chip through the dedicated handshake signal line. In response to the switch completion confirmation signal, the low-power standby chip switches to I2C slave mode and sets the dedicated handshake signal line to the second level state. The state machine control logic then fully enters the working state. After the main control chip completes video recording, it sends a bus release command through the I2C bus. Subsequently, the main control chip is powered off, and the state machine control logic switches from the working state to the sleep transition state. When the low-power standby chip detects that the I2C bus is idle and the main control chip has been powered off, it regains control of the I2C bus and sets the dedicated handshake signal line to the first level state. The state machine control logic then returns to the standby state. The state machine control logic also includes timeout self-recovery logic: when the execution time of any state switching step exceeds a preset timeout threshold, the low-power standby chip forcibly resets the I2C interface, re-executes the handshake protocol, and restores the dedicated handshake signal line to the first level state.

[0016] Compared with the prior art, the present invention has the following advantages and beneficial effects: 1. By replacing the frame difference calculation of the main control software with a hardware-level image SAD unit, the frame buffer and algorithm processing pipeline stalls are eliminated, and the motion response time is compressed from 1-2 seconds to the microsecond level. At the same time, the main control chip is completely powered off during parking, and only the standby chip monitors with a microampere current, reducing the standby power consumption from more than 100mA to the μA level, which greatly alleviates the problem of vehicle battery drain. 2. Employing a dual decision mechanism of "spatial counting + continuous frame temporal verification", it can effectively identify various movement events such as pedestrian approach, vehicle collision and object falling, and filter out environmental interference such as sudden changes in lighting and swaying tree shadows; compared with conventional PIR sensors, it significantly reduces the false wake-up rate and reduces invalid recording and storage loss. 3. The standby chip generates and reports MAP data containing the spatial coordinate distribution of the changing units, enabling the main controller to directly acquire the area where the motion occurs after waking up. This provides accurate input for subsequent regional differentiated deployment and intelligent event classification, making up for the deficiency of existing sensors that only output trigger signals; and significantly reducing the risk of contention and conflict in the dual-core shared bus. Attached Figure Description

[0017] The accompanying drawings, which are included to provide a further understanding of embodiments of the invention and form part of this application, do not constitute a limitation thereof. In the drawings: Figure 1 This is a schematic diagram of the structure of the present invention. Detailed Implementation

[0018] To make the objectives, technical solutions, and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the embodiments and accompanying drawings. The illustrative embodiments and descriptions of the present invention are only used to explain the present invention and are not intended to limit the present invention.

[0019] Examples, such as Figure 1 As shown, this embodiment is a parking monitoring system based on image sensor motion detection. The parking monitoring system based on image sensor motion detection includes: Image SAD Unit: Acquires monitoring images of the target vehicle, divides each monitoring image into multiple grids, divides each grid into several image calculation units, sets a threshold for the number of units for each image calculation unit, sets a SAD threshold for each grid, calculates the SAD value between the current frame and the reference frame for each image calculation unit, and outputs it after downsampling. Trigger Judgment Unit: Receives the SAD value of the image hardware unit. When the SAD value of the image calculation unit reaches the SAD threshold, it is marked as a changed unit. The monitoring images with the number of changed units reaching the unit number threshold are screened out and marked as changed images. Continuous frame verification is performed on the changed images. The changed images that meet the continuous frame verification are judged as valid moving images. Main control response unit: Includes main control chip and low-power standby chip. It outputs interrupt wake-up signal and generates MAP data. After the target vehicle is turned off, the main control is powered off and the standby chip listens for interrupt. After receiving the wake-up signal, the standby chip pulls up the main control, the main control reads the MAP data and starts recording. After completion, the main control is powered off again and the standby chip resumes listening.

[0020] The image SAD unit, serving as a front-end hardware-accelerated perception layer, is based on a block-grid processing architecture. It divides the monitoring image output from the image sensor into several grids according to spatial topology, further refining each grid into the smallest image computing unit. An independent unit number threshold is configured for each image computing unit, and a programmable SAD threshold is assigned to each grid. The core of this approach lies in offloading the absolute difference and SAD calculation logic from the main control software algorithm to the front-end hardware logic circuit, and outputting lightweight data after downsampling. When the vehicle is parked, the image SAD unit acquires monitoring images of the target vehicle in real time, segmenting the current frame and reference frame with a preset grid granularity; it sequentially performs pixel-level difference accumulation calculations on each image computing unit to generate corresponding SAD values; after calculation, the SAD data is downsampled and compressed, and then output to the trigger judgment unit via the data bus.

[0021] The trigger determination unit, serving as an event validity arbitration layer, is either built into the low-power standby chip or functions as an independent hardware logic gate. It includes a spatial threshold decision module and a time-series verification module. The spatial threshold decision module counts the number of changing units with excessive SAD values ​​in a single frame image, while the time-series verification module performs time-series consistency checks on multiple consecutive changing images. The trigger determination unit receives the SAD values ​​of each image calculation unit output by the image SAD unit in real time; it compares each SAD value with a corresponding preset SAD threshold; if the value exceeds the threshold, the image calculation unit is marked as a changing unit; it counts the total number of changing units in the current monitored image, and when this value reaches the unit number threshold corresponding to the grid, the monitored image frame is marked as a changing image; subsequently, continuous frame verification is performed on multiple changing images within a continuous time window; only when the continuous frame verification passes is the motion event determined as a valid moving image, and a trigger flag is generated.

[0022] The main control response unit comprises a main control chip and a low-power standby chip, forming a dual-chip heterogeneous power domain management architecture and connected to the image sensor via a shared bus. Its key features include the introduction of a bus-exclusive access timing isolation mechanism and a MAP data generation and reporting protocol. The MAP data is a two-dimensional thermal matrix containing the spatial coordinate distribution of all changing units in the valid motion image. When the target vehicle is turned off, the system performs a parking mode switch: the main control chip is completely powered off, releasing bus control with zero power consumption; the low-power standby chip maintains a μA-level monitoring state, exclusively accessing the image SAD unit and trigger determination unit via the bus. When the trigger determination unit outputs a valid motion image determination, the standby chip generates MAP data containing the coordinate distribution of changing units and outputs an interrupt wake-up signal to the main control chip; the standby chip powers on the main control chip via a power management circuit, and after the bus stabilizes, the main control chip reads the MAP data from the standby chip, analyzes the motion occurrence area, and starts high-definition video recording; after recording is completed, the main control chip is completely powered off again, and the standby chip clears the interrupt state and resumes exclusive bus monitoring.

[0023] In practical applications, as a feasible implementation example, the image SAD unit is also configured with a downsampling ratio register, which stores multiple selectable downsampling ratio levels. The image SAD unit performs corresponding downsampling processing on the original resolution of the monitoring image according to the downsampling ratio currently selected by the downsampling ratio register, so as to reduce the image resolution on which the SAD value calculation of the image calculation unit is based.

[0024] The downsampling ratio register is configured to support multiple selection levels, including at least the following levels: 1x downsampling, 1 / 2x downsampling, 1 / 4x downsampling, and 1 / 8x downsampling. The downsampling ratio is positively correlated with the power consumption of the image SAD unit. That is, the lower the downsampling ratio, the lower the image resolution when the image SAD unit performs SAD value calculation, and the lower the corresponding calculation power consumption. Conversely, the higher the downsampling ratio, the greater the calculation power consumption.

[0025] Furthermore, as a feasible implementation, the image SAD unit has a built-in reference frame buffer, which is used to store historical reference frame data, which represents a static background model. The image SAD unit uses the reference frame stored in the reference frame buffer as a reference to calculate the SAD value between the current frame and the reference frame; the reference frame buffer is configured with an adjustable buffer capacity, which is used to control the number of historical frames participating in background modeling; the image SAD unit continuously acquires monitoring images after the vehicle is turned off, and calculates the SAD value of each image calculation unit frame by frame with the reference frame as a reference.

[0026] The image SAD unit has a built-in reference frame buffer, which serves as the physical storage carrier for the static background model, unlike the temporary frame storage method that relies on dynamic caching of the main control DDR memory in conventional technologies. The reference frame buffer is independently configured within the front-end hardware logic domain of the image sensor and has an adjustable buffer capacity register. This buffer capacity defines the sampling depth of historical frames involved in background modeling, enabling adaptive tracking capabilities for gradual changes in scene illumination and thermal noise drift after the vehicle comes to a standstill. After the vehicle is turned off and enters parking monitoring mode, the image SAD unit continuously acquires monitoring images. During the initialization phase, an initial static background model is constructed using the average value of the first frame or several previous frames and written to the reference frame buffer. During operation, the image SAD unit always uses the background model stored in the reference frame buffer as a benchmark, performing pixel-level SAD value calculations between the current frame and the reference frame for each image calculation unit frame by frame. The buffer capacity is dynamically configured according to the deployment scenario. In stable lighting conditions, a smaller buffer capacity is used to quickly respond to sudden movements, while in gradually changing lighting conditions (such as under the shade of trees), a larger buffer capacity is used to smoothly track background changes, preventing the moving target from blending into the background due to excessively rapid background updates. When a valid movement event is detected and triggers master recording, the reference frame buffer can selectively pause updates or maintain the original background model to avoid the moving target itself being mistakenly constructed as the background.

[0027] When the buffer capacity of the reference frame buffer is configured to a large value, the reference frame buffer stores more historical frame data. The reference frame represents the average background state over a longer time window to maintain the stability of the SAD value output under slow illumination changes. When the buffer capacity is configured to a small value, the reference frame buffer stores less historical frame data. The reference frame quickly follows the current environmental changes to reduce background lag in scenarios with sudden illumination changes. The reference frame buffer stores multiple frames of historical image data. The image SAD unit generates the reference frame by performing weighted averaging or median filtering on the multiple frames of historical image data. The image SAD unit monitors the SAD value change trend of each image computing unit in real time. When it detects that the global SAD value shows a unidirectional gradual change trend and the rate of change is lower than the preset slope threshold, it is determined that the illumination is changing slowly. The image SAD unit starts the reference frame gradual update to gradually merge the current frame into the reference frame buffer. When it detects that the global SAD value undergoes a step change and the rate of change is higher than the preset change threshold, it is determined that the illumination is changing. The image SAD unit immediately resets the reference frame buffer and uses the current frame after the change as the new reference frame.

[0028] In practical applications, as a feasible implementation example, the image sensor is provided with an execution timing control register, which is configured to a first mode or a second mode.

[0029] When configured in the first mode, the image SAD unit calculates the SAD value between the current frame and the reference frame after the automatic exposure of the image sensor is completed. At this time, the reference frame is a stable background frame that has completed automatic exposure convergence, which is used to eliminate the interference of inter-frame brightness deviation on the SAD value caused by unstable exposure parameters. When configured in the second mode, the image SAD unit directly calculates the SAD value between the current frame and the reference frame without waiting for the automatic exposure to complete. The execution timing control register is configured in the first mode by default.

[0030] In practical applications, as a feasible implementation example, the sensitivity levels include a first sensitivity level, a second sensitivity level, and a third sensitivity level; Wherein, the first sensitivity level corresponds to the first SAD threshold, the second sensitivity level corresponds to the second SAD threshold, and the third sensitivity level corresponds to the third SAD threshold; the first SAD threshold is less than the second SAD threshold, and the second SAD threshold is less than the third SAD threshold; the image calculation unit compares the SAD value of the pixel region block with the SAD threshold corresponding to the sensitivity level according to its configured sensitivity level.

[0031] As a specific implementation example, the monitored image is constructed in the physical pixel domain as a two-layer computing architecture with hierarchical affiliation: At the hardware-level computing layer, the monitoring image is divided into 32 columns × 18 rows, totaling 576 image computing units. Each image computing unit corresponds to a fixed pixel area in the monitoring image and is used to independently perform the absolute difference in pixel brightness (SAD) between the current frame and the reference frame and output the corresponding SAD value. In the sensitivity configuration layer, the monitoring image is divided into 16 columns × 9 rows of 144 grids. Each grid is an independent configuration unit for sensitivity level and can be configured as any one of multiple preset sensitivity levels. Each sensitivity level is associated with a corresponding SAD threshold. Each grid contains 2 columns × 2 rows of 4 adjacent image computing units in space, forming a fixed attribution mapping relationship between the image computing units and the grid. That is, the 4 image computing units located in the same grid share the sensitivity level and the corresponding SAD threshold configured for that grid. The image SAD unit compares the SAD values ​​of each image calculation unit according to the SAD threshold corresponding to the grid to which each image calculation unit belongs, in order to mark the changing units.

[0032] The image SAD unit independently sets the sensitivity level of each grid through register configuration. The specific configuration logic is as follows: The image SAD unit arranges the 144 grids (16 columns × 9 rows) of the monitored image in a top-to-bottom, left-to-right order. Each grid is configured with a 2-bit sensitivity level code, which corresponds to one of a plurality of preset sensitivity levels. For any grid, the 4 image computing units (2 columns × 2 rows) contained therein share the same 2-bit sensitivity level code, that is, the sensitivity level of all image computing units within the same grid remains consistent.

[0033] The image SAD unit sequentially concatenates the 2-bit position codes corresponding to the four adjacent image calculation units into an 8-bit register configuration value and writes it into the corresponding register byte. The 2-bit code of the first image calculation unit is placed in the least significant bit of the register byte, the 2-bit code of the second image calculation unit is placed in the second least significant bit, the 2-bit code of the third image calculation unit is placed in the second most significant bit, and the 2-bit code of the fourth image calculation unit is placed in the most significant bit. The position configurations of all 576 image calculation units corresponding to the 144 grids (16 columns × 9 rows) occupy 36 consecutive register bytes. Each register byte corresponds to the position configurations of four image calculation units, and the 36 register bytes are arranged sequentially according to the row and column order of the grid.

[0034] Furthermore, as a feasible implementation, the trigger determination unit is also configured with an interrupt sustaining frame number parameter; When the trigger determination unit determines that the current monitored image is a valid moving image, the trigger determination unit outputs an interrupt wake-up signal and controls the number of valid frames of the interrupt wake-up signal according to the interrupt maintenance frame number parameter. After the interrupt wake-up signal remains valid for a certain number of frames as set by the interrupt maintenance frame number parameter, the trigger determination unit automatically clears the interrupt wake-up signal and stops outputting the interrupt wake-up signal to the main control response unit.

[0035] The trigger determination unit is also equipped with an interrupt sustaining frame count parameter register. This parameter serves as a time window constraint for the interrupt signal to remain valid. Its unit of measurement is the number of image frames, unlike the traditional timer which uses milliseconds per second. This parameter is a configurable preset value used to define the number of video frame cycles required for the interrupt wake-up signal to remain valid from the moment a valid moving image is determined. When the interrupt signal remains valid for the frame count window set by this parameter, the state machine inside the trigger determination unit automatically pulls the interrupt output pin low or sets it to an invalid state. Thus, the interrupt signal is automatically removed by the hardware logic, rather than relying on the reverse confirmation or clearing instruction from the main control chip.

[0036] During system parking monitoring, when the trigger determination unit determines that the current monitored image is a valid moving image, it immediately sets the interrupt wake-up signal to an active level and outputs it to the low-power standby chip of the main control response unit. Simultaneously, it starts the internal frame counter, using the field synchronization signal or pixel clock output by the image sensor as the driving clock, to accumulate the number of video frames during the interrupt maintenance period. During the active interrupt signal period, if subsequent consecutive frames are continuously determined to be valid moving images, the frame counter continues to accumulate. When the number of interrupt maintenance frames reaches the frame value set by the preset "interrupt maintenance frame count parameter," the trigger determination unit's state machine automatically clears the interrupt wake-up signal, i.e., invalidates it, and stops outputting the interrupt trigger signal to the main control response unit. Subsequently, if new valid moving images appear, the trigger determination unit will trigger a new round of interrupt signal output and repeat the above counting process.

[0037] Furthermore, as a feasible implementation, when the interrupt sustaining frame number parameter is set to an integer greater than 1, the interrupt wake-up signal continues to maintain the corresponding frame number after the main control response unit is woken up, so as to ensure that the main control response unit continuously receives a valid interrupt trigger state during the wake-up start-up period.

[0038] When the interrupt sustaining frame number parameter is set to an integer greater than 1, it essentially configures the sustaining duration of the interrupt wake-up signal as a multi-frame coverage window. This window length is designed to fully cover the complete startup time window required for the main control response unit to be woken up from the power-off state, complete power-on reset, clock stabilization, firmware loading, peripheral initialization, and finally achieve interrupt sampling capability. Compared to the "instantaneous pulse" trigger mode set to 1 frame, extending the effective window of the interrupt signal from a single frame width to a programmable multi-frame continuous effective range provides sufficient wake-up fault tolerance time for the backend main control, ensuring that the effective width of the interrupt signal and the startup time of the main control achieve timing matching.

[0039] Furthermore, as a feasible implementation method, the operation process of the trigger determination unit also includes: After determining that the current frame is a valid moving image, all grids marked as changing in the MAP data corresponding to the current frame are extracted. Connected component clustering is performed on the changing grids, and adjacent changing grids are merged into the same trigger cluster. The geometric feature parameters of each trigger cluster are calculated, including the trigger cluster area, compactness, and centroid coordinates. The trigger determination unit performs connected component clustering on the MAP data of multiple consecutive frames, associates the same trigger cluster across frames, tracks the inter-frame displacement of its centroid coordinates, and generates a centroid drift trajectory. Logical events are set for the internal state of the target vehicle, and the logical events of the target vehicle are determined based on the trigger cluster area and the centroid drift trajectory.

[0040] The meaning of this embodiment is that, based on the determination process of the aforementioned embodiment, the trigger determination unit further embeds a spatial clustering analysis engine and a temporal tracking engine. The spatial clustering analysis engine is used to perform connected component clustering on discrete changing grids in a single frame of MAP data, aggregating spatially adjacent changing grids into independent trigger clusters. Each trigger cluster corresponds to an independent moving object in the physical world, such as a human body, a vehicle, or a fallen object. The temporal tracking engine is used to associate the same trigger cluster across frames, track the inter-frame displacement of its centroid coordinates, and generate a centroid drift trajectory. The logical events are high-level semantic events defined for the internal state of the target vehicle, such as "intrusion warning," "approach collision," "minor scratch," and "object left behind," which are determined by the trigger determination unit based on the area of ​​the trigger cluster and the centroid drift trajectory, and the event label is output.

[0041] After determining that the current frame is a valid moving image, the trigger determination unit does not simply output an interrupt signal and stop. Instead, it performs a connected component clustering algorithm on all grids marked as changing in the corresponding MAP data of that frame, merging adjacent changing grids into the same trigger cluster. Then, it calculates the geometric feature parameters of each trigger cluster, including but not limited to: trigger cluster area, compactness, and centroid coordinates. Based on this, the trigger determination unit repeats the above clustering on MAP data for multiple consecutive frames, and according to the criterion of minimizing the inter-frame distance of centroid coordinates, it associates trigger clusters corresponding to the same physical target across frames, tracks the displacement of their centroid coordinates over time, and generates a centroid drift trajectory. Finally, the trigger determination unit makes a comprehensive judgment based on a preset logical event rule base. As an implementation example, the formula for calculating the centroid coordinates can be expressed as: Let the centroid coordinates in the planar coordinate system be represented as... ,but , .

[0042] Furthermore, as a feasible implementation, the logical events include collision events, pedestrian passing events, and object passing events; the trigger determination unit sets an area threshold and a compactness threshold for the area of ​​the trigger cluster; and sets a first displacement threshold and a second displacement threshold for the centroid, wherein the second displacement threshold is greater than the first displacement threshold. When the area increment of the trigger cluster exceeds the area change threshold and the displacement of the centroid drift trajectory is less than the first displacement threshold, it is determined to be a collision event. When the compactness of the trigger cluster is lower than a preset compactness threshold, and the displacement of the centroid drift trajectory is greater than or equal to a first displacement threshold and less than a second displacement threshold, it is determined to be a pedestrian passing event. When the increment of the trigger cluster area is less than the area change threshold and the displacement of the centroid drift trajectory is greater than the second displacement threshold, it is determined to be an item passing event.

[0043] In specific implementation, the trigger determination unit is internally configured with an event classification decision register group, including an area threshold register, a compactness threshold register, a first displacement threshold register, and a second displacement threshold register. These thresholds together constitute a three-dimensional decision space. The area change threshold is used to quantify the degree of apparent size change of the trigger cluster in time sequence. Its physical meaning is the surge in screen occupancy caused by deformation or occlusion when the target and vehicle come into contact at the moment of collision. The compactness threshold is used to distinguish between regular rigid targets and irregular flexible targets. The first displacement threshold and the second displacement threshold are used to divide the three speed ranges of "nearly stationary / micro-motion", "low-speed movement" and "high-speed movement", respectively. Their values ​​are preset based on the image sensor frame rate, grid resolution, and target distance calibration.

[0044] In collision-related events, when the area increment of the same trigger cluster exceeds the area change threshold, it reflects that the target suddenly expands or appears in the image. This corresponds to a sudden change in the distance between the target and the vehicle body or a violent shaking of the image when the vehicle is hit. Furthermore, if the displacement of the centroid drift trajectory is less than the first displacement threshold, it reflects that the target comes into contact with the vehicle after the collision and tends to be relatively stationary or vibrates with the vehicle. At this time, it is determined to be a collision-related event. This decision logic utilizes the dual physical characteristics of the collision process: "spatial position change lock + image occupancy step jump".

[0045] In pedestrian passing events, when the compactness of the trigger cluster is lower than the preset compactness threshold, it reflects that the target shape is irregular and conforms to the contour characteristics of human limbs being extended and postures being varied. Furthermore, the displacement of the centroid drift trajectory is between the first displacement threshold and the second displacement threshold, reflecting moderate speed movement, which is consistent with the normal walking speed of pedestrians. At this time, it is determined to be a pedestrian passing event. This decision utilizes two significant features: low compactness caused by the non-rigid posture of the human body and moderate inter-frame displacement corresponding to walking speed.

[0046] In object-passing events, if the increase in the area of ​​the trigger cluster is less than the area change threshold, excluding sudden changes in the screen caused by collisions, and the displacement of the centroid drift trajectory is greater than the second displacement threshold, reflecting high-speed movement, and conforming to scenarios such as rapid swinging, object throwing, or animal sprinting, then it is determined to be an object-passing event. This decision logic classifies targets with small area changes but large displacements as rapidly passing objects. The above three types of decision results are encoded and reported to the main control response unit along with the interrupt wake-up signal.

[0047] Furthermore, as a feasible implementation method, the calculation process for the compactness is set as follows: Let C represent compactness, S represent the area of ​​the trigger cluster, and P represent the perimeter of the trigger cluster boundary. The compactness calculation formula is then expressed as: , The perimeter of the trigger cluster boundary is obtained by tracing the eight-neighbor chain code of the outer contour of the trigger cluster.

[0048] The compactness is mathematically defined as the ratio of the trigger cluster area to the square of its outer contour perimeter multiplied by 4π, with a value range of (0,1). This metric quantifies the regularity of the trigger cluster contour. The trigger cluster boundary perimeter is obtained by performing eight-neighbor chain code tracing on the outer contour of the trigger cluster. Eight-neighbor chain code tracing is a commonly used boundary extraction algorithm in image processing. It encodes the displacement in adjacent directions sequentially along the outer boundary pixels of the target region, ultimately forming a closed chain code sequence. The cumulative step size of this sequence is the boundary perimeter. This calculation process is entirely completed by the hardware logic circuitry within the trigger determination unit, without the involvement of the main control chip.

[0049] Furthermore, as a feasible implementation method, the calculation process of the centroid coordinates is set as follows: Let the coordinates of the centroid in the plane coordinate system be expressed as: , The formulas for calculating the x and y coordinates of the centroid are as follows: , , Where N represents the total number of grid cells marked as changed within the trigger cluster, and i represents the ordinal number of the grid cells marked as changed within the trigger cluster; W i This indicates the maximum SAD value within the grid.

[0050] The centroid coordinates are not a simple arithmetic average of all the changing grid coordinates within the trigger cluster, but rather the maximum SAD value W within each changing grid. i The weighted centroid coordinates are calculated by using the weighted average as a weighting factor. i This represents the maximum SAD value among all pixels within the grid, and its physical meaning is the maximum motion intensity amplitude within that grid, reflecting the intensity of motion at that spatial location. By introducing W... i The weighting and centroid coordinate positioning no longer depend solely on the spatial distribution of the changing grid, but are significantly biased towards the region with the most intense motion within the trigger cluster. Traditional geometric centroids only reflect the shape center of the trigger cluster. When a pedestrian swings their arm forward, the trigger cluster includes the arm region with a large amplitude of motion and the torso region with a smaller amplitude of motion. The geometric centroid falls at the geometric midpoint between these two regions, failing to accurately reflect the "main energy zone" of the motion. This scheme uses the SAD value as the weight, significantly biasing the centroid towards regions with high motion intensity, such as the arm. This ensures that subsequent inter-frame displacement tracking reflects the "displacement of the strongest point of motion" rather than the "displacement of the shape midpoint," greatly improving the accuracy of the centroid drift trajectory in representing the true direction of motion and avoiding trajectory errors introduced by geometric centroid "jitter" caused by changes in target posture.

[0051] Furthermore, as a feasible implementation, the main control response unit also includes state machine control logic and handshake signal lines. The state machine control logic includes standby state, wake-up transition state, working state and sleep transition state. The handshake signal lines are used for bus control right request and authorization handshake between the main control chip and the low-power standby chip. By default, the main control response unit is in the standby state: the low-power standby chip acts as the master control device of the I2C bus, the main control chip is physically isolated from the I2C bus through an analog switch, and the handshake signal line maintains the first level state; When the low-power standby chip detects the interrupt wake-up signal, the state machine control logic switches from the standby state to the wake-up transition state. The low-power standby chip sends a bus control request signal through the handshake signal line and detects the power stability signal of the main control chip. After confirming that the power supply of the main control chip is stable, the low-power standby chip releases the control of the I2C bus, the main control chip takes over the control of the I2C bus, and the state machine control logic enters the working state.

[0052] The main control response unit includes state machine control logic and handshake signal lines. The state machine control logic is a finite state machine built into a low-power standby chip or an independent power management chip, defining four operating states of the system in parking monitoring mode: standby state (main control is powered off, standby chip exclusively listens to the bus); wake-up transition state (intermediate transition stage for bus control handover after an interrupt is detected); working state (main control takes over the bus and executes recording tasks); and sleep transition state (intermediate transition stage for main control to release the bus and prepare for shutdown after recording is completed). The handshake signal lines are dedicated hardware signal lines independent of the I2C / SPI data bus, used for the request and authorization handshake interaction of bus control rights between the main control chip and the low-power standby chip. The analog switch is a physical electronic switch connected in series between the main control chip and the I2C bus, used to achieve physical level isolation from the bus when the main control is powered off, preventing parasitic power supply or bus leakage after power failure from affecting communication integrity.

[0053] During operation, in the default state, the main control response unit is in the standby state: the main control chip is completely powered off, and its I / O pins are in a high-impedance state; the analog switch is open, physically isolating the main control chip's I2C interface from the shared I2C bus; the low-power standby chip, as the sole master device of the I2C bus, independently accesses the image SAD unit and the trigger determination unit, and continuously listens for interrupt signals; the handshake signal line maintains the first level state, representing the default state of "the bus is controlled by the standby chip".

[0054] When the low-power standby chip detects the interrupt wake-up signal output by the trigger determination unit, the state machine control logic switches from the standby state to the wake-up transition state. In this state, the standby chip first sends a bus control request signal to the master control chip through the handshake signal line, and at the same time starts the power management circuit to supply power to the master control chip, and continuously monitors the power stability signal output by the master control chip. This signal is set to valid by the master control chip after all power rails inside the master control chip are established and the clock is stable.

[0055] After confirming that the main control chip's power supply is stable, the standby chip performs a bus handover operation: the standby chip stops all communication transactions on the current I2C bus, switches its own I2C interface from master mode to slave mode or high-impedance input mode, and releases the drive control of the I2C bus; simultaneously, it controls the analog switch to turn on, connecting the main control chip's I2C interface to the shared bus. Subsequently, the handshake signal line is pulled back to the first level by the standby chip, indicating that "bus control has been released and can be taken over"; after the main control chip detects that the handshake signal line has returned to the first level, it initializes its own I2C interface to master mode and takes over the control of the I2C bus. The state machine control logic then enters the working state, and the main control chip begins to read the MAP data stored in the trigger determination unit through the I2C bus and starts recording.

[0056] Furthermore, as a feasible implementation, after the main control chip takes over the I2C bus master control, it sends a switch completion confirmation signal to the low-power standby chip through the dedicated handshake signal line. In response to the switch completion confirmation signal, the low-power standby chip switches to I2C slave mode and sets the dedicated handshake signal line to the second level state. The state machine control logic then fully enters the working state. After the main control chip completes video recording, it sends a bus release command through the I2C bus. Subsequently, the main control chip is powered off, and the state machine control logic switches from the working state to the sleep transition state. When the low-power standby chip detects that the I2C bus is idle and the main control chip has been powered off, it regains control of the I2C bus and sets the dedicated handshake signal line to the first level state. The state machine control logic then returns to the standby state. The state machine control logic also includes timeout self-recovery logic: when the execution time of any state switching step exceeds a preset timeout threshold, the low-power standby chip forcibly resets the I2C interface, re-executes the handshake protocol, and restores the dedicated handshake signal line to the first level state.

[0057] The handover completion confirmation signal indicates that after the main control chip takes over the I2C bus, it sends confirmation feedback to the standby chip via a dedicated handshake signal line. This upgrades the bus handover from a "one-sided release and takeover" to a two-way closed-loop confirmation process of "release to takeover, then confirmation to confirmation response." The bus release command is an explicit command frame sent by the main control chip via the I2C bus after completing recording, ensuring that the standby chip only reclaims the bus after explicitly receiving a task completion indication. The timeout self-recovery logic represents a watchdog timer embedded in the state machine. Each state transition step is configured with an independent timeout threshold register. When the execution time of a step exceeds the threshold, the standby chip actively intervenes to reset and return to the standby state.

[0058] During operation, after the low-power standby chip detects the interrupt wake-up signal, it initiates the wake-up process. Subsequently, after the main control chip takes over the I2C bus master, it does not immediately begin data reading. Instead, it first sends a switch completion confirmation signal to the standby chip via a dedicated handshake signal line. In response to this confirmation signal, the standby chip switches its own I2C interface from master mode to I2C slave mode and maintains the handshake signal line at the second level as feedback confirming receipt. The state machine control logic then fully enters the working state. At this point, the main control chip, as the sole master, accesses the image sensor and trigger determination unit, reads the MAP data, and starts recording.

[0059] After the main control chip completes video recording, it first sends a bus release command frame to the standby chip via the I2C bus. Upon receiving the command, the standby chip prepares to take over the bus. Subsequently, the main control chip switches its I2C interface to a high-impedance state, disconnects the analog switch, and performs a power-off shutdown. The state machine control logic switches from the working state to the sleep transition state. In this state, the low-power standby chip continuously monitors the idle state of the I2C bus and the main control chip's power-off completion signal. Once both conditions are met, the standby chip switches its I2C interface back from slave mode to master mode, acquires I2C bus master control, and sets the dedicated handshake signal line to the first level, indicating "bus returns to standby chip control." The state machine control logic then returns to the standby state, and the system returns to the microampere-level monitoring mode.

[0060] The timeout self-recovery logic operates as follows: each of the aforementioned state transition steps has an independent timeout threshold. When the execution time of a step exceeds the preset threshold, the state machine control logic triggers a timeout interrupt, the low-power standby chip forcibly resets its own I2C interface and related peripheral circuits, re-executes the handshake protocol, and restores the dedicated handshake signal line to the first level state, ensuring that the system can return to a defined standby state under any abnormal circumstances, preventing permanent freezing.

[0061] In conventional methods, the master controller relinquishes the bus upon power failure, and the standby chip needs to determine whether the master controller has released resources through bus idle timeout. However, when the master controller abnormally freezes, the bus may neither be active nor released, resulting in an excessively long timeout detection cycle. This implementation requires the master controller to actively send an explicit release command via the I2C bus after recording is complete before powering off, enabling the standby chip to accurately know the precise time point of "task completed, bus about to be released." Upon receiving the release command, the standby chip quickly enters the bus detection and takeover process in a sleep transition state, significantly shortening the bus switching waiting time from several seconds to milliseconds for command response. Simultaneously, the release command itself serves as a "heartbeat signal" for the master controller's survival. If no release command is received but the master controller is detected to be powered off, it is considered an anomaly, triggering a timeout self-recovery, thus improving the sensitivity of anomaly detection.

[0062] The specific embodiments described above further illustrate the purpose, technical solution, and beneficial effects of the present invention. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the scope of protection of the present invention.

Claims

1. A parking monitoring system based on image sensor motion detection, characterized by, The system includes: Image SAD Unit: Acquires monitoring images of the target vehicle, divides each monitoring image into multiple grids, divides each grid into several image calculation units, sets a threshold for the number of units for each image calculation unit, sets a SAD threshold for each grid, calculates the SAD value between the current frame and the reference frame for each image calculation unit, and outputs it after downsampling. Trigger Judgment Unit: Receives the SAD value of the image hardware unit. When the SAD value of the image calculation unit reaches the SAD threshold, it is marked as a changed unit. The monitoring images with the number of changed units reaching the unit number threshold are screened out and marked as changed images. Continuous frame verification is performed on the changed images. The changed images that meet the continuous frame verification are judged as valid moving images. Main control response unit: Includes main control chip and low-power standby chip. It outputs interrupt wake-up signal and generates MAP data. After the target vehicle is turned off, the main control is powered off and the standby chip listens for interrupt. After receiving the wake-up signal, the standby chip pulls up the main control, the main control reads the MAP data and starts recording. After completion, the main control is powered off again and the standby chip resumes listening.

2. The parking monitoring system based on image sensor movement detection according to claim 1, wherein, The image SAD unit has a built-in reference frame buffer, which is used to store historical reference frame data, which represents a static background model. The image SAD unit uses the reference frame stored in the reference frame buffer as a reference to calculate the SAD value between the current frame and the reference frame; The reference frame buffer is configured with an adjustable buffer capacity, which is used to control the number of historical frames participating in background modeling; the image SAD unit continuously acquires monitoring images after the vehicle is turned off, and calculates the SAD value of each image calculation unit frame by frame based on the reference frame.

3. The parking monitoring system based on image sensor motion detection of claim 1, wherein, The trigger determination unit is also configured with an interrupt sustaining frame number parameter; When the trigger determination unit determines that the current monitored image is a valid moving image, the trigger determination unit outputs an interrupt wake-up signal and controls the number of valid frames of the interrupt wake-up signal according to the interrupt maintenance frame number parameter. After the interrupt wake-up signal remains valid for a certain number of frames as set by the interrupt maintenance frame number parameter, the trigger determination unit automatically clears the interrupt wake-up signal and stops outputting the interrupt wake-up signal to the main control response unit.

4. The parking monitoring system based on image sensor motion detection of claim 3, wherein, When the interrupt sustain frame number parameter is set to an integer greater than 1, the interrupt wake-up signal continues to maintain the corresponding frame number after the main control response unit is woken up, so as to ensure that the main control response unit continuously receives a valid interrupt trigger state during the wake-up start-up period.

5. The parking monitoring system based on image sensor motion detection of claim 1, wherein, The working process of the trigger determination unit also includes: After determining that the current frame is a valid moving image, all grids marked as changing in the MAP data corresponding to the current frame are extracted. Connected component clustering is performed on the changing grids, and adjacent changing grids are merged into the same trigger cluster. The geometric feature parameters of each trigger cluster are calculated, including the trigger cluster area, compactness, and centroid coordinates. The trigger determination unit performs connected component clustering on the MAP data of multiple consecutive frames, associates the same trigger cluster across frames, tracks the inter-frame displacement of its centroid coordinates, and generates a centroid drift trajectory. Logical events are set for the internal state of the target vehicle, and the logical events of the target vehicle are determined based on the trigger cluster area and the centroid drift trajectory.

6. The parking monitoring system based on image sensor motion detection of claim 5, wherein, The logical events include collision events, pedestrian passing events, and object passing events; the trigger determination unit sets an area threshold and a compactness threshold for the area of ​​the trigger cluster; and sets a first displacement threshold and a second displacement threshold for the centroid, wherein the second displacement threshold is greater than the first displacement threshold. When the area increment of the trigger cluster exceeds the area change threshold and the displacement of the centroid drift trajectory is less than the first displacement threshold, it is determined to be a collision event. When the compactness of the trigger cluster is lower than a preset compactness threshold, and the displacement of the centroid drift trajectory is greater than or equal to a first displacement threshold and less than a second displacement threshold, it is determined to be a pedestrian passing event. When the increment of the trigger cluster area is less than the area change threshold and the displacement of the centroid drift trajectory is greater than the second displacement threshold, it is determined to be an item passing event.

7. The parking monitoring system based on image sensor motion detection of claim 6, wherein, The calculation process for the compactness is set as follows: Let C represent compactness, S represent the area of ​​the trigger cluster, and P represent the perimeter of the trigger cluster boundary. The compactness calculation formula is then expressed as: , The perimeter of the trigger cluster boundary is obtained by tracing the eight-neighbor chain code of the outer contour of the trigger cluster.

8. A parking monitoring system based on image sensor motion detection according to claim 6, characterized in that, The calculation process for the centroid coordinates is set as follows: Let the coordinates of the centroid in the plane coordinate system be expressed as: , The formulas for calculating the x-coordinate and y-coordinate of the centroid are as follows: , , where N represents the total number of grids whose intra-cluster labels are changed, and i represents the serial number of the grid whose intra-cluster label is changed; W i represents the maximum SAD value in the grid.

9. A parking monitoring system based on image sensor motion detection according to claim 1, characterized in that, The main control response unit also includes state machine control logic and handshake signal lines. The state machine control logic includes standby state, wake-up transition state, working state and sleep transition state. The handshake signal lines are used for bus control right request and authorization handshake between the main control chip and the low-power standby chip. By default, the main control response unit is in the standby state: the low-power standby chip acts as the master control device of the I2C bus, the main control chip is physically isolated from the I2C bus through an analog switch, and the handshake signal line maintains the first level state; When the low-power standby chip detects the interrupt wake-up signal, the state machine control logic switches from the standby state to the wake-up transition state. The low-power standby chip sends a bus control request signal through the handshake signal line and detects the power stability signal of the main control chip. After confirming that the power supply of the main control chip is stable, the low-power standby chip releases the control of the I2C bus, the main control chip takes over the control of the I2C bus, and the state machine control logic enters the working state.

10. A parking monitoring system based on image sensor motion detection according to claim 9, characterized in that, After the main control chip takes over the I2C bus master control, it sends a switch completion confirmation signal to the low-power standby chip through the dedicated handshake signal line. In response to the switch completion confirmation signal, the low-power standby chip switches to I2C slave mode and sets the dedicated handshake signal line to the second level state. The state machine control logic fully enters the working state. After the main control chip completes video recording, it sends a bus release command through the I2C bus. Subsequently, the main control chip is powered off, and the state machine control logic switches from the working state to the sleep transition state. When the low-power standby chip detects that the I2C bus is idle and the main control chip has been powered off, it regains control of the I2C bus and sets the dedicated handshake signal line to the first level state. The state machine control logic then returns to the standby state. The state machine control logic also includes timeout self-recovery logic: when the execution time of any state switching step exceeds a preset timeout threshold, the low-power standby chip forcibly resets the I2C interface, re-executes the handshake protocol, and restores the dedicated handshake signal line to the first level state.