A method and device for monitoring a device, and an electronic device and storage medium

By determining the cache queue storage status and entering a pseudo-sleep state when the SOC is not in sleep mode, the image sensor is controlled to acquire image frames at the target frame rate, thus solving the synchronization problem between the SOC and the image sensor and achieving low power consumption and continuous recording.

CN122285418APending Publication Date: 2026-06-26ZHEJIANG UNIVIEW TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
ZHEJIANG UNIVIEW TECH CO LTD
Filing Date
2024-12-25
Publication Date
2026-06-26

Smart Images

  • Figure CN122285418A_ABST
    Figure CN122285418A_ABST
Patent Text Reader

Abstract

This invention discloses a mimicry storage method, apparatus, electronic device, and storage medium for monitoring equipment. The method includes: in AOV mode of the monitoring equipment, determining whether the System-on-Chip (SOC) is currently storing image frames from the cache queue to the storage medium; if the SOC is currently storing image frames from the cache queue to the storage medium, controlling the SOC to enter a mimicry sleep state; when the duration of the mimicry sleep state of the SOC reaches the mimicry sleep duration, controlling the image sensor in the monitoring equipment in sleep mode to acquire image frames at a target output frame rate. This solution achieves the effect of maintaining synchronization between the image acquisition by the SOC in non-sleep mode and the output of the image by the image sensor in sleep mode during image frame storage, achieving the same effect as when the SOC is in sleep mode.
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 in particular to a mimicry storage method, apparatus, electronic device, and storage medium for surveillance equipment. Background Technology

[0002] The emergence of Linux hibernation capabilities and the demand for real-time recording in 4G low-power solar-powered monitoring devices have led to the development of the cutting-edge AOV (Always On Video) technology. This technology enables solar-powered monitoring devices to output images at a rate of one frame per second or even one frame per several seconds, which to some extent meets the low-power requirements of solar-powered monitoring devices and solves the problem of monitoring devices being unable to monitor when in hibernation.

[0003] There are two ways to store the image frames generated by the monitoring equipment during full-time recording: Method 1, each image frame is stored on a storage medium such as an SD card; Method 2, the image frames acquired in AOV mode are cached in the running memory of the System on Chip (SOC). When the number of image frames stored in the running memory of the SOC reaches a certain number, the SOC does not enter a sleep state, but instead performs the operation of storing all the image frames stored in the running memory to a storage medium such as an SD card. Only after all the image frames stored in the running memory are completely stored on the storage medium such as an SD card does the SOC enter a sleep state.

[0004] However, Method 1 increases the time required for a single non-sleep state activity of the SOC, as each interaction with the SD card takes time, resulting in greater wear and tear on the SD card. Method 2, if the sleeping sensor is not woken up when the SOC is not in sleep mode, will cause recording loss due to the inconsistency between the timing of the SOC's image fetching and the timing of the sensor's image frame generation, resulting in a certain period of recording blanks. If the sleeping sensor is woken up when the SOC is not in sleep mode, the frame rate of the sensor's output image will become high, producing discontinuous segments in continuous AOV recording, while also increasing the video data volume. Summary of the Invention

[0005] This invention provides a mimicry storage method, device, electronic device, and storage medium for monitoring equipment, which enables the SOC to maintain synchronization with the image sensor outputting images in the dormant state when retrieving images during the image frame storage process, thereby achieving the same effect as when the SOC is in the dormant state.

[0006] According to one aspect of the present invention, a method for mimicking the storage of a monitoring device is provided, comprising:

[0007] When the monitoring device is in AOV mode, determine whether the on-chip system SOC is currently storing image frames in the cache queue to the storage medium.

[0008] If the SOC is currently storing image frames from the cache queue to the storage medium, then control the SOC to enter a pseudo-sleep state;

[0009] When the duration of the SOC in the mimicry sleep state reaches the mimicry sleep duration, the image sensor in the monitoring device that is in sleep state is controlled to acquire image frames at the target output frame rate.

[0010] According to another aspect of the present invention, a mimicry storage device for a monitoring device is provided, comprising:

[0011] The storage judgment module is used to determine whether the on-chip system SOC is currently storing image frames in the cache queue to the storage medium when the monitoring device is in AOV mode.

[0012] The SOC control module is used to control the SOC to enter a pseudo-sleep state if the SOC is currently storing image frames from the cache queue to the storage medium.

[0013] The image sensor control module is used to control the image sensor in the monitoring device that is in a dormant state to acquire image frames at a target frame rate when the duration of the simulated sleep state of the SOC reaches the simulated sleep duration.

[0014] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:

[0015] At least one processor; and

[0016] A memory communicatively connected to the at least one processor; wherein,

[0017] The memory stores a computer program that can be executed by the at least one processor, which enables the at least one processor to perform the mimicry storage method for monitoring devices according to any embodiment of the present invention.

[0018] According to another aspect of the present invention, a computer-readable storage medium is provided, the computer-readable storage medium storing computer instructions, the computer instructions being configured to cause a processor to execute and implement the mimicry storage method of the monitoring device according to any embodiment of the present invention.

[0019] The mimicry storage scheme for monitoring devices in this embodiment of the invention determines whether the System-on-Chip (SOC) is currently storing image frames from the cache queue to the storage medium when the monitoring device is in AOV mode. If the SOC is currently storing image frames from the cache queue to the storage medium, the SOC is controlled to enter a mimicry sleep state. When the duration of the mimicry sleep state reaches the mimicry sleep duration, the image sensor in the monitoring device, which is in sleep mode, is controlled to acquire image frames at the target output frame rate. Through the technical solution provided by this embodiment of the invention, by actively waking up the image sensor at a predetermined time when the SOC is not in sleep mode, the image frame acquisition by the SOC in non-sleep mode can still maintain synchronization with the image output of the image sensor in sleep mode during image frame storage, thereby achieving the same effect as when the SOC is in sleep mode.

[0020] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of the present invention, nor is it intended to limit the scope of the invention. Other features of the invention will become readily apparent from the following description. Attached Figure Description

[0021] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0022] Figure 1 A flowchart illustrating a mimicry storage method for a monitoring device provided in an embodiment of the present invention;

[0023] Figure 2 A flowchart illustrating a mimicry storage method for a monitoring device provided in an embodiment of the present invention;

[0024] Figure 3 This is a schematic diagram of the structure of a mimicry storage device for a monitoring device provided in an embodiment of the present invention;

[0025] Figure 4 A schematic diagram of the structure of an electronic device for implementing the mimicry storage method of the monitoring device in this embodiment of the invention. Detailed Implementation

[0026] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.

[0027] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0028] Figure 1 This is a flowchart illustrating a mimicry storage method for a monitoring device according to an embodiment of the present invention. This embodiment is applicable to mimicry storage in monitoring devices. The method can be executed by a mimicry storage device of the monitoring device, which can be implemented in hardware and / or software and can be configured within the monitoring device. Figure 1 As shown, the method includes:

[0029] S110. When the monitoring device is in AOV mode, determine whether the on-chip system SOC is currently storing image frames in the cache queue to the storage medium.

[0030] The monitoring equipment can be a 4G low-power solar-powered monitoring device. When the monitoring equipment is in AOV mode, both the SOC and image sensor in the monitoring equipment are in AOV mode. AOV mode includes both sleep and non-sleep states. Theoretically, the image sensor is in sleep mode when the monitoring equipment is in AOV mode. The SOC controls whether the image sensor acquires image frames, that is, it controls the switching between sleep and non-sleep states. When the image sensor is in sleep mode, the SOC is also synchronously in sleep mode to read the image frames acquired by the image sensor; when the image sensor is in sleep mode, the SOC is also synchronously in sleep mode. For example, the image sensor acquires image frames at a frequency of one frame per second, and the SOC acquires the image frames acquired by the image sensor at a frequency of one frame per second. The frame output timing of the image sensor is synchronized with the image acquisition timing of the SOC. Optionally, when the monitoring equipment is in working mode (i.e., non-AOV mode), the image sensor acquires image frames at a high frame rate. When the monitoring device is in AOV mode, it determines whether the SOC is currently storing image frames from the cache queue to the storage medium; that is, whether the SOC is currently performing the operation of writing image frames from the cache queue to the storage medium. For example, the SOC's main thread can determine whether there is an active storage thread within the SOC. If so, it can be determined that the SOC is currently storing image frames from the cache queue to the storage medium; otherwise, it can be determined that the SOC is not currently storing image frames from the cache queue to the storage medium.

[0031] Optionally, before determining whether the System-on-Chip (SOC) is currently storing image frames from the cache queue to the storage medium, the method further includes: the SOC acquiring image frames at a preset frame rate and adding the acquired image frames to the cache queue; if the write length of the cache queue is greater than a preset length threshold, the SOC is triggered to store all image frames in the cache queue to the storage medium; wherein, the write length is the number of image frames contained in the cache queue. For example, when the monitoring device is in AOV mode, the SOC acquires image frames collected by the image sensor at a preset frame rate (e.g., 1 fps) and adds the image frames to the cache queue in the SOC's running memory. The cache queue can be understood as a cache area of ​​a certain size allocated from the SOC's running memory for storing the acquired image frames. After the SOC adds the acquired image frames to the cache queue, the number of image frames currently contained in the cache queue is determined; for ease of description, the number of image frames currently contained in the cache queue is used as the write length of the cache queue. The system determines whether the write length of the buffer queue exceeds a preset length threshold. If so, the SOC is triggered to store all image frames in the buffer queue to the storage medium. Otherwise, the SOC continues to acquire image frames at a preset frame rate and adds them to the buffer queue until the write length of the buffer queue exceeds the preset length threshold. For example, if the write length of the buffer queue exceeds the preset length threshold, the main thread in the SOC, which reads image frames from the image sensor, creates a storage thread and controls the storage thread to begin writing all image frames in the buffer queue to the storage medium. Since the number of image frames written to the storage medium in the buffer queue exceeds the preset length threshold, the storage thread needs time to write all image frames in the buffer queue to the storage medium. Therefore, the SOC's main thread can determine whether the SOC is currently storing image frames from the buffer queue to the storage medium by checking if there is an active storage thread in the SOC.

[0032] Optionally, before adding the acquired image frames to the cache queue, the method further includes: performing target detection (such as vehicle detection or human detection) on the image frames; if a target is detected in the image frame, controlling the monitoring device to exit AOV mode and enter high-frequency image acquisition mode, for example, the image sensor in the monitoring device acquires image frames at a frame rate of 25fps.

[0033] Optionally, after triggering the SOC to store all image frames in the cache queue to the storage medium, the method further includes: the SOC resetting the write length to 0 and continuing to add image frames acquired at a preset frame rate to the cache queue. For example, if the write length of the cache queue is greater than a preset length threshold, the position of the image frame in the cache queue when the write length is greater than the preset length threshold is recorded, and the SOC is triggered to store all image frames in the cache queue to the storage medium. After triggering the SOC to store all image frames in the cache queue to the storage medium, the write length of the cache queue is reset to 0, and image frames acquired at a preset frame rate are continued to be added to the cache queue, wherein the write length of the cache queue is incremented by 1 for each image frame added to the cache queue. It is understood that the process of the SOC storing all image frames in the cache queue to the storage medium does not affect the SOC's continued addition of image frames acquired from the image sensor at a preset frame rate to the cache queue.

[0034] S120. If the SOC is currently storing image frames from the cache queue to the storage medium, then control the SOC to enter a pseudo-sleep state.

[0035] In this embodiment of the invention, if the SOC is currently storing image frames from the cache queue to the storage medium, the SOC is controlled to enter a simulated sleep state. This simulated sleep state can be understood as a kind of simulated sleep state, meaning the SOC only performs the task of storing image frames from the cache queue to the storage medium, but does not perform the task of reading image frames from the image sensor.

[0036] Optionally, if the SOC is currently storing image frames from the cache queue to the storage medium, then controlling the SOC to enter a mimicry sleep state includes: if the SOC is currently storing image frames from the cache queue to the storage medium, determining the current time and the last sleep wake-up time of the SOC; determining the mimicry sleep duration of the SOC based on the current time, the last sleep wake-up time, and a preset AOV sleep duration, and controlling the SOC to enter a mimicry sleep state.

[0037] For example, if the SOC is currently storing image frames from the cache queue to the storage medium, then the current time Tc and the SOC's last sleep / wake-up time Tb are determined. Optionally, when the monitoring device is in AOV mode, after the SOC reads an image frame from the image sensor and adds it to the cache queue, it determines whether the SOC is currently storing the image frame from the cache queue to the storage medium. If so, then the current time Tc and the SOC's last sleep / wake-up time Tb are determined. In this case, the current time can be understood as the time when the SOC should theoretically enter sleep mode after reading the image frame from the image sensor and adding it to the cache queue. If the SOC detects for the first time that it is currently storing image frames from the cache queue to the storage medium, the SOC's last sleep / wake-up time is the time when the SOC first enters AOV mode, such as Tb = 0.

[0038] In this embodiment of the invention, the simulated sleep duration of the SOC is determined based on the current time, the last sleep / wake-up time, and a preset AOV sleep duration. Determining the simulated sleep duration of the SOC based on the current time, the last sleep / wake-up time, and the preset AOV sleep duration includes: calculating the time difference between the current time and the last sleep / wake-up time, and using this time difference as the theoretical working time of the SOC; and determining the simulated sleep duration of the SOC based on the theoretical working time and the preset AOV sleep duration. The simulated sleep duration is the time during which the SOC only performs the task of storing image frames from the buffer queue to the storage medium, but does not perform the task of reading image frames from the image sensor.

[0039] Optionally, the simulated sleep duration of the SOC is determined based on the theoretical working time and the preset AOV sleep duration, including: if the theoretical working time is less than the preset AOV sleep duration, the difference between the AOV sleep duration and the theoretical working time is taken as the simulated sleep duration of the SOC; if the theoretical working time is greater than the preset AOV sleep duration, the AOV sleep duration is taken as the simulated sleep duration of the SOC.

[0040] For example, the time difference (Tc-Tb) between the current time Tc and the previous sleep / wake time Tb is calculated, and this time difference Tc-Tb is used as the theoretical operating time of the SOC. Based on the theoretical operating time Tc-Tb and the preset AOV sleep time Taov, the simulated sleep time Tsleep of the SOC is determined. For example, it is determined whether the theoretical operating time Tc-Tb is less than the preset AOV sleep time Taov. If so, the difference between the AOV sleep time Taov and the theoretical operating time Tc-Tb is used as the simulated sleep time Tsleep of the SOC, i.e., Tsleep = Taov - (Tc – Tb); if not, the AOV sleep time Taov is used as the simulated sleep time Tsleep of the SOC, i.e., Tsleep = Taov. It is understandable that if the theoretical working time Tc-Tb is greater than the AOV sleep time Taov, it means that the SOC takes too long to execute the storage operation of writing the image frames in the cache queue to the storage medium. Therefore, it is assumed that the SOC has theoretically performed a sleep once. Thus, the AOV sleep time Taov is taken as the SOC's pseudo-sleep time Tsleep.

[0041] Optionally, if the SOC is not currently storing image frames from the cache queue to the storage medium, the SOC is controlled to enter a system sleep state. It is understood that if the SOC is not currently performing the operation of storing image frames from the cache queue to the storage medium, the SOC is controlled to enter a system sleep state according to the normal AOV sleep logic. For example, if the SOC is not currently performing the operation of storing image frames from the cache queue to the storage medium, the SOC's image acquisition timing is synchronized with the image sensor's frame output timing. For instance, if both the image sensor's frame output rate and the SOC's image acquisition rate are 1fps, the image sensor acquires image frames from 0-200ms and is in a sleep state from 200ms to 1000ms. If the SOC is not currently performing the operation of storing image frames from the cache queue to the storage medium, the SOC reads image frames from the image sensor from 0-200ms and is in a sleep state from 200ms to 1000ms.

[0042] S130. When the duration of the SOC in the mimicry sleep state reaches the mimicry sleep duration, control the image sensor in the monitoring device that is in sleep state to acquire image frames at the target output frame rate.

[0043] In this embodiment of the invention, if the SOC is currently storing image frames from the cache queue to the storage medium, the SOC is controlled to enter a pseudo-sleep state. When the duration of the pseudo-sleep state reaches the specified pseudo-sleep duration, the image sensor in the monitoring device, which is in a sleep state, is controlled to acquire image frames at the target output frame rate. It is understood that because the SOC still needs to concurrently process the storage of image frames written to the cache queue while in a pseudo-sleep state, the image retrieval timing of the SOC and the image output timing of the image sensor are out of sync. Therefore, when the duration of the pseudo-sleep state reaches the specified pseudo-sleep duration, a control signal is actively sent to the image sensor to control the image sensor in a sleep state to acquire image frames at the target output frame rate, thereby synchronizing the image retrieval by the SOC and the image output by the image sensor. Optionally, when the duration of the pseudo-sleep state reaches the specified pseudo-sleep duration, the time when the duration of the pseudo-sleep state reaches the specified pseudo-sleep duration is recorded, and the previous sleep wake-up time Tb is updated based on this time.

[0044] Optionally, the target frame rate is greater than or equal to the initial frame rate and less than the high-frequency frame rate of the image sensor when the monitoring device is in operation. The initial frame rate is the frame rate when the image sensor is in AOV mode and the SOC is not currently storing image frames from the cache queue to the storage medium. For example, when the duration of the SOC's simulated sleep state reaches the simulated sleep duration, the image sensor in the monitoring device, which is in sleep mode, is controlled to acquire image frames at the target frame rate; wherein the target frame rate is greater than or equal to the initial frame rate when the image sensor is in AOV mode and the SOC is not currently storing image frames from the cache queue to the storage medium. For example, if the image sensor is in AOV mode and the SOC is not currently storing image frames from the cache queue to the storage medium, the initial frame rate is 1fps, meaning the image sensor acquires one frame per second. Then, when the SOC is in a pseudo-sleep state for the duration of this pseudo-sleep, the image sensor in the monitoring device can be controlled to acquire image frames at a frame rate of 1fps (one frame per second), or at a frame rate of 2fps (two frames per second). It should be noted that the target frame rate is much lower than the frame rate when the monitoring device exits AOV mode and performs full-frame recording. The advantage of this setting is that, while ensuring the SOC maintains synchronization with the image sensor in sleep mode while acquiring images, it also allows the image sensor to operate in a low-power mode, reducing unnecessary power consumption. Furthermore, it avoids discontinuous segmentation and increased unnecessary recording storage size caused by the image sensor switching to a higher frame rate after waking up.

[0045] Optionally, since the image frame position in the cache queue when the write length is greater than the preset length threshold can be recorded, after the storage thread stores the image frame corresponding to the image frame position (that is, the last image frame in the cache queue when the write length is greater than the preset length threshold) to the storage medium, the SOC resumes normal sleep logic (that is, the sleep logic when the SOC is in AOV mode and the SOC is not storing image frames in the cache queue to the storage medium). At this time, the image output logic of the image sensor and the image acquisition logic of the SOC are synchronized.

[0046] For example, Figure 2 This is a flowchart of a mimicry storage method for a monitoring device provided in an embodiment of the present invention. The description of the above embodiments can be used to further illustrate this method. Figure 2 The meaning is clear and will not be elaborated upon here.

[0047] The mimicry storage method for monitoring devices in this embodiment of the invention determines whether the System-on-Chip (SOC) is currently storing image frames from the cache queue to the storage medium when the monitoring device is in AOV mode. If the SOC is currently storing image frames from the cache queue to the storage medium, the SOC is controlled to enter a mimicry sleep state. When the duration of the mimicry sleep state reaches the mimicry sleep duration, the image sensor in the monitoring device, which is in sleep mode, is controlled to acquire image frames at the target output frame rate. Through the technical solution provided by this embodiment of the invention, by actively waking up the image sensor at a predetermined time when the SOC is not in sleep mode, the image acquisition by the SOC in non-sleep mode can still maintain synchronization with the image output of the image sensor in sleep mode during image frame storage, thereby achieving the same effect as when the SOC is in sleep mode.

[0048] Figure 3 This is a schematic diagram of the structure of a mimicry storage device for a monitoring device provided in an embodiment of the present invention. Figure 3 As shown, the device includes:

[0049] The storage judgment module 310 is used to determine whether the on-chip system SOC is currently storing image frames in the cache queue to the storage medium when the monitoring device is in AOV mode.

[0050] SOC control module 320 is used to control the SOC to enter a pseudo-sleep state if the SOC is currently storing image frames in the cache queue to the storage medium.

[0051] The image sensor control module 330 is used to control the image sensor in the monitoring device that is in a dormant state to acquire image frames at a target frame rate when the duration of the SOC in the mimicry sleep state reaches the mimicry sleep duration.

[0052] Optionally, the SOC control module includes:

[0053] The time determination unit is used to determine the current time and the last sleep wake-up time of the SOC if the SOC is currently storing image frames in the cache queue to the storage medium.

[0054] The mimicry sleep duration determination unit is used to determine the mimicry sleep duration of the SOC based on the current time, the last sleep wake-up time and the preset AOV sleep duration, and control the SOC to enter the mimicry sleep state.

[0055] Optionally, the mimicry sleep duration determination unit includes:

[0056] The theoretical working time calculation subunit is used to calculate the time difference between the current time and the last sleep-wake time, and use the time difference as the theoretical working time of the SOC;

[0057] The mimicry sleep duration determination subunit is used to determine the mimicry sleep duration of the SOC based on the theoretical working duration and the preset AOV sleep duration.

[0058] Optionally, the mimicry sleep duration determination subunit is used for:

[0059] If the theoretical working time is less than the preset AOV sleep time, the difference between the AOV sleep time and the theoretical working time shall be used as the simulated sleep time of the SOC.

[0060] If the theoretical working time is longer than the preset AOV sleep time, then the AOV sleep time will be used as the simulated sleep time of the SOC.

[0061] Optional, also includes:

[0062] The hibernation state control module is used to control the SOC to enter a system hibernation state if the SOC is not currently storing image frames in the cache queue to the storage medium.

[0063] Optional, also includes:

[0064] The image frame adding module is used to, before determining whether the on-chip system SoC is currently storing image frames in the cache queue to the storage medium, acquire image frames at a preset frame rate and add the acquired image frames to the cache queue.

[0065] An image frame storage module is used to trigger the SOC to store all image frames in the cache queue to the storage medium if the write length of the cache queue is greater than a preset length threshold; wherein, the write length is the number of image frames contained in the cache queue.

[0066] Optional, also includes:

[0067] The write length reset module is used to reset the write length to 0 after the SOC is triggered to store all image frames in the cache queue to the storage medium, and to continue adding image frames acquired at a preset frame rate to the cache queue.

[0068] The mimicry storage device for monitoring equipment provided in the embodiments of the present invention can execute the mimicry storage method for monitoring equipment provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0069] Figure 4 A schematic diagram of an electronic device 10 that can be used to implement embodiments of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the invention described and / or claimed herein.

[0070] like Figure 4As shown, the electronic device 10 includes at least one processor 11 and a memory, such as a read-only memory (ROM) 12 or a random access memory (RAM) 13, communicatively connected to the at least one processor 11. The memory stores computer programs executable by the at least one processor. The processor 11 can perform various appropriate actions and processes based on the computer program stored in the ROM 12 or loaded from storage unit 18 into the RAM 13. The RAM 13 may also store various programs and data required for the operation of the electronic device 10. The processor 11, ROM 12, and RAM 13 are interconnected via a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0071] Multiple components in electronic device 10 are connected to I / O interface 15, including: input unit 16, such as keyboard, mouse, etc.; output unit 17, such as various types of displays, speakers, etc.; storage unit 18, such as disk, optical disk, etc.; and communication unit 19, such as network card, modem, wireless transceiver, etc. Communication unit 19 allows electronic device 10 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.

[0072] Processor 11 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. Processor 11 performs the various methods and processes described above, such as the mimicry storage method for monitoring devices.

[0073] In some embodiments, the mimicry storage method for a monitoring device can be implemented as a computer program tangibly contained in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program can be loaded and / or installed on the electronic device 10 via ROM 12 and / or communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the mimicry storage method for a monitoring device described above can be performed. Alternatively, in other embodiments, processor 11 can be configured to execute the mimicry storage method for a monitoring device by any other suitable means (e.g., by means of firmware).

[0074] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), payload-programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.

[0075] Computer programs used to implement the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when executed by the processor, the computer programs cause the functions / operations specified in the flowcharts and / or block diagrams to be performed. The computer programs may be executed entirely on a machine, partially on a machine, or as a standalone software package, partially on a machine and partially on a remote machine, or entirely on a remote machine or server.

[0076] In the context of this invention, a computer-readable storage medium can be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, apparatus, or device. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination thereof. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.

[0077] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).

[0078] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as data servers), or computing systems that include middleware components (e.g., application servers), or computing systems that include frontend components (e.g., user computers with graphical user interfaces or web browsers through which users can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., communication networks). Examples of communication networks include local area networks (LANs), wide area networks (WANs), blockchain networks, and the Internet.

[0079] A computing system can include clients and servers. Clients and servers are generally located far apart and typically interact through communication networks. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or cloud host, which is a hosting product within the cloud computing service system to address the shortcomings of traditional physical hosts and VPS services, such as high management difficulty and weak business scalability.

[0080] It should be understood that the various forms of processes shown above can be used, with steps reordered, added, or deleted. For example, the steps described in this invention can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution of this invention can be achieved, and this is not limited herein.

[0081] The specific embodiments described above do not constitute a limitation on the scope of protection of this invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this invention should be included within the scope of protection of this invention.

Claims

1. A method for monitoring a device using a quasistatic storage, characterized by, Comprising: When the monitoring device is in the AOV mode, judging whether the system on chip SOC is currently storing image frames in the cache queue into the storage medium; If the SOC is currently storing image frames in the cache queue into the storage medium, controlling the SOC to enter a quasi-hibernation state; When the duration of the SOC in the quasi-hibernation state reaches a quasi-hibernation duration, controlling the image sensor in the monitoring device in the hibernation state to collect image frames at a target frame rate.

2. The method of claim 1, wherein, If the SOC is currently storing image frames in the cache queue into the storage medium, controlling the SOC to enter a quasi-hibernation state, comprising: If the SOC is currently storing image frames in the cache queue into the storage medium, determining the current time and the last hibernation wake-up time of the SOC; According to the current time, the last hibernation wake-up time and a pre-set AOV hibernation duration, determining the quasi-hibernation duration of the SOC and controlling the SOC to enter a quasi-hibernation state.

3. The method of claim 2, wherein, According to the current time, the last hibernation wake-up time and a pre-set AOV hibernation duration, determining the quasi-hibernation duration of the SOC, comprising: Calculating the time difference between the current time and the last hibernation wake-up time, and taking the time difference as the theoretical working duration of the SOC; According to the theoretical working duration and the pre-set AOV hibernation duration, determining the quasi-hibernation duration of the SOC.

4. The method of claim 3, wherein, According to the theoretical working duration and the pre-set AOV hibernation duration, determining the quasi-hibernation duration of the SOC, comprising: If the theoretical working duration is less than the pre-set AOV hibernation duration, taking the difference between the AOV hibernation duration and the theoretical working duration as the quasi-hibernation duration of the SOC; If the theoretical working duration is greater than the pre-set AOV hibernation duration, taking the AOV hibernation duration as the quasi-hibernation duration of the SOC.

5. The method of claim 1, wherein, Further comprising: If the SOC is not currently storing image frames in the cache queue into the storage medium, controlling the SOC to enter a system hibernation state.

6. The method of claim 1, wherein, Before judging whether the system on chip SOC is currently storing image frames in the cache queue into the storage medium, further comprising: The SOC acquires image frames at a pre-set frame rate and adds the acquired image frames to the cache queue; If the write length of the cache queue is greater than a pre-set length threshold, triggering the SOC to store all image frames in the cache queue to the storage medium; wherein the write length is the number of image frames contained in the cache queue.

7. The method of claim 6, wherein, After triggering the SOC to store all image frames in the cache queue to the storage medium, further comprising: The SOC resets the write length to 0 and continues to add image frames acquired at a pre-set frame rate to the cache queue.

8. A device for monitoring a memristive storage device, characterized in that Comprising: A storage judgment module for judging whether the system on chip SOC is currently storing image frames in the cache queue into the storage medium when the monitoring device is in the AOV mode; The SOC control module is configured to control the SOC to enter a quasi-sleep state if the SOC is currently storing image frames in a cache queue into a storage medium. The image sensor control module is configured to control the image sensor in the monitoring device in the sleep state to capture image frames at a target frame rate when a duration of the SOC in the quasi-sleep state reaches a quasi-sleep duration.

9. An electronic device, comprising: The electronic device comprises: at least one processor; and a memory connected to the at least one processor in communication; wherein the memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor to enable the at least one processor to perform the quasi-sleep storage method of the monitoring device according to any one of claims 1-7.

10. A computer-readable storage medium, characterized in that, The computer readable storage medium stores computer instructions for causing the processor to perform the quasi-sleep storage method of the monitoring device according to any one of claims 1-7 when executed.