Periodic storage method, device, equipment and medium

By replacing image data units with periodic storage methods and image detection algorithms, the problem of low storage efficiency in limited storage space is solved, the effect of storing more core information locally is achieved, and the automation of recording, storage and transmission is improved. and stability.

CN113676688BActive Publication Date: 2024-08-27KELONG SHIJING TECH (SHANGHAI) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110920619.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-08-11
Publication Date
2024-08-27
Estimated Expiration
2041-08-11

AI Technical Summary

Technical Problem

In the limited local storage space, existing technology is difficult to effectively store more core information, resulting in low storage efficiency and deletion of useful information.

Method used

Adopt a periodic storage method, detect the retained value of the image data unit through the image detection algorithm, replace the data unit with the lowest retained value to store the data unit with the highest retained value, realize multiple rounds of periodic storage, and use the preset recording cycle for continuous segmented recording and storage.

Benefits of technology

It improves storage efficiency, can store core useful information for a longer period of time in limited space, and achieves automatic, intelligent and stable coordination of instant recording, storage and transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113676688B
    Figure CN113676688B
Patent Text Reader

Abstract

The present application provides a periodic storage method, device, equipment and medium, which provides a storage space for sustainable storage of M real-time recorded image data sets; when the first round of M image data sets fills up the storage space, an image detection algorithm is used to detect the retention value of each image data unit in each image data set that has been stored and to be stored; the x image data units with the highest retention value in each image data set to be stored are used to replace the x image data units with the lowest retention value in each stored image data set, so as to achieve periodic storage of multiple rounds of corresponding recording cycles. The present application can not only further improve storage efficiency, and store as much core useful information as possible with a longer duration in a limited space, but also utilize the characteristics of segmented ingestion of periodic recording to achieve an organic combination of recording, storage, and transmission, and coordinate with each other to make the process more automatic, intelligent, effective, and stable.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of data storage, and in particular to a periodic storage method, device, equipment and medium. Background Art

[0002] In some application areas, it is necessary to automatically complete the instant recording, storage, and transmission process. However, in some uncontrollable environments, how can we automatically store more core information when the local storage space is limited?

[0003] The information (such as image data) obtained by automatic recording usually needs to be automatically stored in the local storage medium immediately, so it is necessary to configure a local storage space specifically for storing the recorded information. Usually, when the local storage space is sufficient, the automatically recorded information can be stored in the local storage space immediately. However, when the local storage space is full after a long recording period, the earliest stored information is deleted immediately in chronological order, and the latest recorded information is stored, and the oldest information is immediately overwritten in batches with the new information. Most of the current monitoring equipment or recorders use this method.

[0004] However, this storage method has some defects, namely, the storage efficiency is too low, too much invalid information is often stored in a limited space, and some really useful information is often deleted.

[0005] Therefore, how to further improve storage efficiency and store as much core useful information as possible for a longer period of time in a limited space is an urgent problem to be solved in this application. Summary of the invention

[0006] In view of the above-mentioned shortcomings of the prior art, the technical problem to be solved by the present application is to provide a periodic storage method, device, equipment and medium for solving at least one of the prior art problems.

[0007] To achieve the above-mentioned purpose and other related purposes, the present application provides a periodic storage method, which includes: providing a storage space for continuously storing M real-time recorded image data sets; wherein the image data sets are obtained by continuous segmented recording according to a preset recording cycle; each image data set contains n image data units; when the first round of M image data sets fills the storage space, using an image detection algorithm to respectively detect the retention value of each image data unit in each image data set that has been stored and to be stored after the first round; by replacing the x image data units with the lowest retention value in each stored image data set with the x image data units with the highest retention value in each image data set to be stored, periodic storage of corresponding recording cycles of multiple rounds is achieved.

[0008] In one embodiment of the present application, the method includes: when the second round of M image data sets are stored, the x image data units with the highest retention values ​​in the first image data set to be stored are replaced with the x image data units with the lowest retention values ​​in the first image data set stored in the first round; and so on, the storage of the second image data set to the Mth image data set of the second round is completed respectively, so as to complete the storage of the second round of M image data sets; when the kth round of M image data sets are stored, the x image data units with the highest retention values ​​in the first image data set to be stored in this round are replaced with the x image data units with the lowest retention values ​​in the first image data set to be stored. The x image data units with the lowest retention values ​​among the nx(k-2) image data units remaining and not replaced in the first image data set stored in the previous k-1 rounds; wherein k is a natural number not less than 2; and so on, the storage of the second image data set to the M-th image data set is completed respectively, so as to complete the storage of the M image data sets in the k-th round; wherein the replacement value x representing the number of the image data units replaced is a preset fixed value; wherein the minimum value of x is 1 and the maximum value does not exceed n; when x is set to 1, the storage space can store at most M image data sets of n rounds.

[0009] In one embodiment of the present application, the replacement value x can adjust the value of x according to the recording time or the size of the pre-stored data; when the recording time is longer or the pre-stored data is larger, the value of x can be reduced; conversely, when the recording time is shorter or the pre-stored data is larger, the value of x can be increased.

[0010] In one embodiment of the present application, the retention value is related to clarity and the key information / valid information contained therein; among them, the image data unit that is the clearest and contains the most key information / valid information has the highest retention value; and the image data unit that is the most blurry and contains the least key information / valid information has the lowest retention value.

[0011] In one embodiment of the present application, the reference factors for determining the key information / valid information include: any one or more combinations of reference object type, reference object type priority, reference object size, reference object distance, reference object brightness, reference object number, reference object movement, and reference object sound.

[0012] In one embodiment of the present application, the method further includes: performing timely and synchronous periodic storage of one or more image data units in an image data set that is continuously and segmentedly recorded according to a preset recording cycle; or, performing periodic transmission of one or more image data units in the M image data sets in the storage space according to the corresponding recording cycle.

[0013] To achieve the above-mentioned purpose and other related purposes, the present application provides a periodic storage device, which includes: a configuration module, which is used to provide a storage space for continuously storing M real-time recorded image data sets; wherein the image data sets are obtained by continuous segmented recording according to a preset recording cycle; each image data set includes n image data units; a processing module, which is used to use an image detection algorithm to respectively detect the retention value of each image data unit in each image data set that has been stored and to be stored after the first round after the first round of M image data sets fills the storage space; by replacing the x image data units with the lowest retention values ​​in each stored image data set with the x image data units with the highest retention values ​​in each image data set to be stored, periodic storage of corresponding recording cycles of multiple rounds is achieved.

[0014] To achieve the above-mentioned purpose and other related purposes, the present application provides a processing device, which includes: a memory, a processor, and a communicator; the memory is used to store computer instructions; the processor executes the computer instructions to implement the method described above; the communicator is used to communicate with the integrated camera, storage and transmission device to receive image data recorded in real time by the integrated camera, storage and transmission device; and the communicator is also used to transmit the stored image data to the outside.

[0015] To achieve the above-mentioned purpose and other related purposes, the present application provides an integrated device for recording, storing and transmitting, including: a processing device as described above; a camera for recording; a data card for storing image data; and a communicator for transmitting image data.

[0016] To achieve the above-mentioned purpose and other related purposes, the present application provides a computer-readable storage medium storing computer instructions, which execute the above-mentioned method when executed.

[0017] In summary, the present application provides a periodic storage method, device, equipment and medium, which provides a storage space for sustainable storage of M real-time recorded image data sets; wherein the image data sets are obtained by continuous segmented recording according to a preset recording cycle; each image data set contains n image data units; when the first round of M image data sets fills the storage space, an image detection algorithm is used to respectively detect the retention value of each image data unit in each image data set that has been stored and to be stored after the first round; by replacing the x image data units with the lowest retention value in each stored image data set with the x image data units with the highest retention value in each image data set to be stored, periodic storage of multiple rounds of corresponding recording cycles is achieved.

[0018] The following beneficial effects were achieved:

[0019] The storage method described in the present application can not only further improve the storage efficiency and store as much core useful information as possible for a longer period of time in a limited space, but also utilize the characteristics of segmented acquisition of periodic recording to achieve an organic combination of recording, storage, and transmission, and coordinate with each other to make the process of instant recording, storage, and transmission more automatic, intelligent, effective, and stable. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] Figure 1 Schematic diagram of the process of the periodic storage method in the embodiment of the present application.

[0021] Figure 2 A schematic diagram of a scene of an image data set in an embodiment of the present application.

[0022] Figure 3 Schematic diagram of the principle of periodic storage in an embodiment of the present application.

[0023] Figure 4 Schematic diagram of a module of a periodic storage device in an embodiment of the present application.

[0024] Figure 5 It is a schematic diagram of the structure of the processing device in the embodiment of the present application.

[0025] Figure 6 It is a schematic diagram of the structure of the integrated camera, storage and transmission device in an embodiment of the present application. DETAILED DESCRIPTION

[0026] The following describes the implementation methods of the present application through specific examples, and those skilled in the art can easily understand other advantages and effects of the present application from the contents disclosed in this specification. The present application can also be implemented or applied through other different specific implementation methods, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present application. It should be noted that the embodiments in the present application and the features in the embodiments can be combined with each other without conflict.

[0027] The following is a detailed description of the embodiments of the present application with reference to the accompanying drawings so that those skilled in the art can easily implement the present application. The present application can be embodied in a variety of different forms and is not limited to the embodiments described herein.

[0028] In order to clearly describe the present application, parts not related to the description are omitted, and the same reference numerals are given to the same or similar components throughout the specification.

[0029] Throughout the specification, when a component is said to be "connected" to another component, this includes not only the case of "direct connection" but also the case of "indirect connection" by placing other elements therebetween. In addition, when a component is said to "include" a certain constituent element, unless otherwise stated, it does not exclude other constituent elements, but means that other constituent elements may be included.

[0030] Although the terms first, second, etc. are used to describe various elements in this article in some examples, these elements should not be limited by these terms. These terms are only used to distinguish one element from another element. For example, the first interface and the second interface are described. Moreover, as used in this article, the singular forms "one", "one" and "the" are intended to also include plural forms, unless there is an opposite indication in the context. It should be further understood that the terms "comprising" and "including" indicate that there are the described features, steps, operations, elements, components, projects, kinds, and / or groups, but do not exclude the existence, occurrence or addition of one or more other features, steps, operations, elements, components, projects, kinds, and / or groups. The terms "or" and "and / or" used herein are interpreted as inclusive, or mean any one or any combination. Therefore, "A, B or C" or "A, B and / or C" means "any of the following: A; B; C; A and B; A and C; B and C; A, B and C". Only when the combination of elements, functions, steps or operations is inherently mutually exclusive in some way, will there be an exception to this definition.

[0031] The technical terms used herein are only used to refer to specific embodiments and are not intended to limit the present application. The singular form used herein also includes the plural form unless the sentence clearly indicates the contrary meaning. The meaning of "including" used in the specification is to specify specific characteristics, regions, integers, steps, operations, elements and / or components, and does not exclude the existence or addition of other characteristics, regions, integers, steps, operations, elements and / or components.

[0032] Relative spatial terms such as "below" and "above" may be used to more easily describe the relationship of one component to another component illustrated in the drawings. Such terms are intended to include not only the meaning indicated in the drawings, but also other meanings or operations of the device in use. For example, if the device in the drawings is turned over, a component that was previously described as being "below" other components is described as being "above" the other components. Therefore, the exemplary term "below" includes both above and below. The device may be rotated 90° or other angles, and the relative spatial terms may be interpreted accordingly.

[0033] In some application areas, it is necessary to automatically complete the instant recording, storage, and transmission process. How to automatically record sufficiently clear core useful information when the environment is uncontrollable? How to automatically store more core information when local storage space is limited? How to instantly transmit enough core information when the transmission speed is difficult to guarantee?

[0034] In order to solve the above problems, the present application provides a set of reasonable and feasible instant recording, storage, and transmission methods and corresponding equipment to make the above process sufficiently automatic, intelligent, effective, and stable. Among them, the retention values ​​of the image data units that have been stored and to be stored are detected for the image data sets obtained by periodic recording. By replacing the image data units with low retention values ​​with high retention values, multiple rounds of periodic storage can be achieved, and sufficient core information can be transmitted in real time.

[0035] It should be noted that the image data in this application is not limited to information data such as pictures or videos, and can also include data in the form of audio, waves, number series, etc. This application mainly uses pictures and video information as examples for explanation, and other information is usually not as complex as pictures and video information, and can generally be inferred by the same principle.

[0036] like Figure 1 FIG. 1 is a flow chart of a periodic storage method in one embodiment of the present application. As shown in the figure, the method includes:

[0037] Step S101: providing a storage space for continuously storing M real-time recorded image data sets; wherein the image data sets are acquired by continuous segmented recording according to a preset recording cycle; and each image data set includes n image data units.

[0038] For example, the storage space may be an existing storage space, or may be provided by inserting an additional data card, a removable and portable storage medium, or may be a storage space divided from a storage medium with a large storage space such as a mobile hard disk or a solid-state hard disk. That is, the storage space in this application may be a storage space provided by the recorder of an existing monitoring or wearable device or portable device, or an externally inserted or configured storage space, or an independent, dedicated storage space or a storage space divided therefrom.

[0039] It should be noted that the present application does not actually limit the size of the storage space, that is, the size of the storage space provided by the recorder of the existing monitoring or wearable device or portable device can be used, the size of an additionally inserted or configured single storage space can be used, an independent, dedicated storage space or a super storage space, as well as partial storage space divided therefrom.

[0040] On the one hand, the storage method of the present application has no requirements for storage space, and the storage space of any existing device or storage medium can meet the requirements of the method described in the present application. Moreover, the storage space of any storage device or medium is limited, so it will be full at some point. The focus of the present application is on the processing of the stored data after storage, so that valuable image data can continue to be stored, and the valuable core image data that has been stored will not be lost.

[0041] On the other hand, the focus of this application is not on how many M are stored, but on how to reasonably replace the stored data with the data to be stored later.

[0042] Usually, the memory requirement of an image dataset is very small, so a general storage device or medium can store multiple image datasets. Of course, it is also possible to estimate how many image datasets can be stored by knowing the storage space in advance.

[0043] The main purpose of this application is to provide an image data replacement method, which replaces low-definition or invalid image data with lower retention value by retaining high-definition or valid image data with higher retention value, so as to store more long-term image data without losing valid core information.

[0044] In one embodiment of the present application, the image data set is acquired by continuous segmented recording according to a preset recording cycle; each image data set includes n image data units, and the specific recording method may include: presetting a recording cycle; performing continuous segmented recording according to the recording cycle to continuously acquire an image data set including multiple image data units corresponding to each recording cycle.

[0045] like Figure 2 As shown, a schematic diagram of a scene of an image data set is shown. As shown in the figure, the first shooting cycle T1 corresponds to capturing the first image data set 1, each image data set contains n image data units, and so on, M image data sets can be captured.

[0046] For example, the image data set here can be a video of a period of time, or multiple pictures taken continuously, or data in different forms such as audio; and the image data unit here refers to smaller data content, such as a frame of a video, a picture in a picture set, an audio segment per second in audio, and so on.

[0047] The setting of the recording cycle includes: 1) setting according to a preset recording duration; or, 2) setting according to a preset recording quantity; or, 3) setting according to a combination of a preset recording duration and a preset recording quantity.

[0048] Preferably, the preset recording duration and the preset recording quantity are fixed values, or are a series that changes according to a preset rule.

[0049] In one embodiment of the present application, during automatic recording, in order to obtain clear, more core and useful information immediately, the recording process is set to automatic periodic recording, and the duration of each recording cycle is T.

[0050] For example, T may be set to a fixed value. For example, according to actual needs, T may be set to 500 milliseconds, or 2 seconds, or 3 seconds, and so on.

[0051] In another embodiment of the present application, the recording period T can also be set to a certain variable number sequence as needed.

[0052] For example, the changing sequence may be increasing or decreasing.

[0053] In some other embodiments, the recording period T may also be adjusted and changed according to the scene changes.

[0054] The key factor underlying this idea is that, assuming that a piece of image data of core information can be extracted from each recording cycle, the shorter the recording cycle in the key time period is, the more core information can be extracted.

[0055] For example, when the vehicle-mounted recorder detects a moving object, the recording cycle can be reduced, and when no moving object is detected, the recording cycle can be increased.

[0056] For another example, the above scene conditions can also be such as light and shadow changes. When the changes are faster, the recording cycle is shorter, and vice versa; or, when more people are detected, the recording cycle is shorter, and vice versa, the recording cycle is longer, etc. In short, the more and faster the scene changes in the lens, the shorter the recording cycle; and when the scene changes less and slower, the recording cycle is longer.

[0057] In addition, the periodic recording process can also be set in reverse, that is, first set the number of frames n of the video images to be recorded in each cycle, n can be a fixed value or a certain sequence. Assuming that the duration of recording each frame of the video image is t, then each recording cycle T = n*t + the duration of a single autofocus.

[0058] Step S102: when the storage space is fully filled with the first round of M image data sets, an image detection algorithm is used to detect the retention value of each image data unit in each image data set that has been stored and to be stored after the first round.

[0059] In one embodiment of the present application, one or more image data units are collected from image data that is continuously and segmentedly recorded according to a preset recording cycle, and are periodically stored in a timely and synchronous manner according to the recording cycle.

[0060] In simple terms, the automatic storage process is also set to periodic storage, and the storage period is the same as the preset recording period, that is, the aforementioned T time is used as a storage period, and one or more image data units in the aforementioned continuous segmented recorded image data set are stored periodically and synchronously in real time. For example, if an image data set containing n image data units is acquired in a recording period, then each image data unit of this image data set is synchronously stored; after the image data set acquired in the next recording period is recorded, the next image data set is synchronously stored.

[0061] Preferably, the storage period may be equal to the recording period, or may be an integer multiple of the recording period.

[0062] In the present application, the retention value is related to clarity and the key information / valid information contained therein; among them, the image data unit that is the clearest and contains the most key information / valid information has the highest retention value; the image data unit that is the most blurry and contains the least key information / valid information has the lowest retention value.

[0063] Specifically, the retention value is related to clarity and the key information / effective information contained. Among them, on the one hand, due to the relationship between light, brightness, object movement speed, etc., sometimes the recorded image data (such as pictures or video clips or certain frames of video) will appear blurry or ghosting, which affects the reading of information, so the image data with better clarity is more worthy of retention, or the image data with poor clarity should be deleted; on the other hand, the key information or effective information is mainly based on certain scene requirements or user needs to determine the objects or reference objects that they are more concerned about. For example, in traffic or vehicle-related places, people are more concerned about vehicles and license plate numbers, while in security monitoring or recorder scenes of wearable devices and portable devices, people are more concerned about faces or actions or sounds. That is, when the content of concern is included, it is equivalent to including key information / effective information. Therefore, this application determines the retention value based on two dimensions: clarity and key information / effective information included.

[0064] In one embodiment of the present application, the reference factors for determining the key information / valid information include: any one or more combinations of reference object type, reference object type priority, reference object size, reference object distance, reference object brightness, reference object number, reference object movement, and reference object sound.

[0065] In one or more embodiments, common image detection algorithms, object detection algorithms, speech recognition algorithms and other detection methods may be used to detect reference objects in images or videos, and to identify what objects they belong to (e.g., identifying objects such as people or vehicles), and to track actions, monitor sounds, etc. Assuming that the image data is a picture or video, the size, distance, brightness, quantity and other contents of the reference objects may be further detected.

[0066] In one embodiment of the present application, the reference object includes any one or more of: a face, a number, a letter, a text, a building, an animal, and an object.

[0067] For example, in some scenarios, such as the application scenarios of monitors, recorders and other equipment, people are more concerned about the faces captured. In addition, they are also more concerned about key information such as numbers, letters, such as license plate information, and other objects such as buildings, animals, and vehicles, suitcases, mobile phones, etc. That is, there is a priority order of reference objects such as faces>numbers>text>letters>other objects.

[0068] However, it should be noted that the priority is only a possible sorting method for some scenarios, but the present application is not limited to the reference objects exemplified above. For example, a monitor in a traffic environment pays more attention to the reference objects of vehicles and pedestrians, and can also use vehicles and pedestrians as reference objects and arrange them in a higher priority position.

[0069] In simple terms, the retention value in this application is used as an evaluation index for the image data that users need to retain. For example, in image data (such as pictures), under the same or similar conditions, images with higher clarity are more valuable to retain than those with lower clarity; or, in specific scenarios such as recorders for monitoring or wearable devices or portable devices, images containing facial information are more valuable to retain than those without a frontal face or a portrait, or images containing digital information (such as a license plate) are more valuable to retain than those without digital information or vehicle information, etc.

[0070] Step S103: replacing the x image data units with the lowest retention values ​​in each stored image data set with the x image data units with the highest retention values ​​in each image data set to be stored, so as to realize periodic storage of multiple rounds of corresponding recording cycles.

[0071] like Figure 3 As shown, it is a schematic diagram of the principle of periodic storage of the present application. As shown in the figure, specifically, when the second round of M image data sets are stored, the x image data units with the highest retention value in the first image data set to be stored replace the x image data units with the lowest retention value in the first image data set of the first round that have been stored; and so on, the storage of the second image data set to the Mth image data set is completed respectively, so as to complete the storage of the second round of M image data sets.

[0072] Furthermore, when the k-th round of M image data sets are stored, the x image data units with the highest retention values ​​in the first image data set to be stored replace the x image data units with the lowest retention values ​​in the remaining nx(k-2) image data units in the first image data set that have been stored; wherein k is a natural number not less than 2; and so on, the storage of the second image data set to the M-th image data set is completed respectively, so as to complete the storage of the k-th round of M image data sets.

[0073] The replacement value x representing the number of image data units to be replaced is a preset fixed value; the minimum value of x is 1 and the maximum value does not exceed n; when x is set to 1, the storage space can store at most n rounds of M image data sets.

[0074] In one embodiment of the present application, the replacement value x can adjust the value of x according to the recording time or the size of the pre-stored data; when the recording time is longer or the pre-stored data is larger, the value of x can be reduced; conversely, when the recording time is shorter or the pre-stored data is smaller, the value of x can be increased.

[0075] In simple terms, depending on the specific recording environment and settings, the value of x can be adjusted according to the recording time or the size of the pre-stored data. For example, when the recording time is long, such as a recorder or monitor, since it usually works continuously without interruption, the image data it records must store a large amount of unattended or repeated content, that is, the frequency of the image data that can be retained is low, so the value of x can be appropriately reduced, that is, the number of image data units that need to be retained in each recording cycle is reduced; on the contrary, assuming that the portable law enforcement recorder is manually turned on, because each frame of the picture it records may have a high utilization and reference value, the frequency of the image data that can be retained is high, so the value of x can be appropriately increased, that is, the number of image data units that need to be retained in each recording cycle is increased.

[0076] In order to further clearly describe the storage method of the present application, the following is an example of multiple rounds of periodic automatic storage:

[0077] In the first round, during periodic storage, multiple image data sets recorded periodically in real time are automatically stored from the first T period (recording period, corresponding to the storage period), to the second T period, and so on, until the Mth T period. Each T period stores the current n frames of images in real time. After the automatic storage of the Mth T period is completed, the set storage space is full, and a total of M*n frames of images are stored. Among the n frames of images in each T period, many of the images are actually not much different from each other, and the similarity is very high. Therefore, a lot of repeated information is stored in them, and there is still a lot of room for improvement in storage efficiency.

[0078] In the second round, periodic automatic storage continues. In this round, when the recorded information of the first T period of the second round is to be stored, intelligent image detection is performed on the information: on the one hand, the n frames of picture information stored in the first T period of the previous round are detected, and the clearest picture containing the most core information is retained (Note: x is 1 as an example here, and can also be set to other numbers less than n, the principle is the same), and the remaining (n-1) pictures are deleted; on the other hand, the n frames of picture information recorded in the first T period of the second round to be stored are detected, and the most blurred picture containing the least core information is deleted, and the remaining (n-1) pictures are retained, and these (n-1) pictures are stored in the space vacated in the previous round.

[0079] It should be noted that, conversely, it is possible to detect the n frames of image information stored in the first T period of the previous round and delete the most blurred image containing the least core information; on the other hand, it is also possible to detect the n frames of image information recorded in the first T period of the second round to be stored and only retain the clearest image containing the most core information. The same goes for the following and will not be repeated.

[0080] When the recorded information of the second T period of the second round is to be stored, intelligent image detection is performed on the information: on the one hand, the n frames of image information stored in the second T period of the previous round are detected, and the clearest image containing the most core information is retained, and the remaining (n-1) images are deleted; on the other hand, the n frames of image information recorded in the second T period of this round are detected, and the blurriest image containing the least core information is deleted, and the remaining (n-1) images are retained, and these (n-1) images are stored in the space vacated in the previous round.

[0081] Continue the above cycle storage process until the automatic storage of the Mth T cycle of the second round is completed. In this way, the clearest M pictures of the M cycles of the first round and the (n-1)*M pictures of the second round are stored, a total of M*n pictures.

[0082] In the third round, periodic automatic storage continues. In this round, when the recorded information of the first T period of this round is to be stored, intelligent image detection is performed on the information: on the one hand, the (n-1) frames of picture information stored in the first T period of the previous round (second round) are detected, and the clearest picture containing the most core information is retained, and the remaining (n-2) pictures are deleted; on the other hand, the n frames of picture information recorded in the first T period of this round are detected, and the two most blurred pictures containing the least core information are deleted, and the remaining (n-2) pictures are retained, and these (n-2) pictures are stored in the space vacated in the previous round.

[0083] When the recorded information of the second T period of the third round is to be stored, intelligent image detection is performed on the information: on the one hand, the (n-1) frames of picture information stored in the second T period of the previous round are detected, and the one clearest picture containing the most core information is retained, and the remaining (n-2) pictures are deleted; on the other hand, the n frames of picture information recorded in the second T period of this round are detected, and the two most blurred pictures containing the least core information are deleted, and the remaining (n-2) pictures are retained, and these (n-2) pictures are stored in the space vacated in the previous round.

[0084] Continue the above cycle storage process until the automatic storage of the Mth T cycle of the third round is completed. In this way, the clearest M pictures of the M cycles of the first round, the clearest M pictures of the M cycles of the second round, and the (n-2)*M pictures of the third round are stored, a total of M*n pictures.

[0085] By repeating the above process, more core information can be stored for a longer period of time and with greater clarity in a certain space. This is a feasible solution for how to tap the potential of wearable devices, portable devices, monitoring devices, and recording devices when storage space is usually limited.

[0086] In one embodiment of the present application, the advantage of the periodic storage method described in the present application is that it can be organically combined with the recording and transmission process of the same period to coordinate with each other to complete the process of real-time recording, storage, and transmission. For example:

[0087] 1) In the image data set that is continuously recorded in segments according to a preset recording cycle, one or more image data units are periodically stored in a timely and synchronous manner according to the recording cycle.

[0088] Specifically, in combination with segmented periodic recording, the multiple image data units obtained are also synchronously and periodically stored, which can avoid the loss of a large amount of image data when the recording is accidentally interrupted or fails in the traditional mode of storing after the entire recording is completed. The present application greatly improves the stability of image data acquisition through periodic design, and in combination with the periodic segmented image data set, it also provides a basis for the present application to adopt a replacement method for storage.

[0089] 2) Periodically transmitting one or more image data units in the M image data sets in the storage space in accordance with a corresponding recording period.

[0090] In one embodiment of the present application, the method of periodic transmission includes:

[0091] A. Detect the real-time transmission rate and stability of multiple transmission paths, and divide them into multiple transmission levels according to their advantages and disadvantages;

[0092] B. Select different transmission levels for the real-time recorded image data set or the stored M image data sets to perform periodic transmission corresponding to the recording cycle or storage cycle to adapt to different transmission requirements; wherein the image data set is acquired by continuous segmented recording according to a preset recording cycle; each image data set includes n image data units; the stored M image data sets are completely stored according to the storage cycle corresponding to the recording cycle or a number of image data units with the highest retention value are retained for replacement storage.

[0093] The retention value is related to the clarity and the key information / valid information contained; the image data unit that is the clearest and contains the most key information / valid information has the highest retention value; the image data unit that is the most blurred and contains the least key information / valid information has the lowest retention value. The reference factors for judging the key information / valid information include: any one or more combinations of the reference object type, the priority of the reference object type, the reference object size, the reference object distance, the reference object brightness, and the number of reference objects.

[0094] Specifically, transmission paths corresponding to transmission rates and stabilities required for transmitting different numbers of image data units of an image data set within a transmission cycle are defined as different transmission levels.

[0095] In addition, the transmission path with the fastest transmission rate and the best stability is detected within a transmission cycle; and then, according to the transmission requirements that can be met by the real-time rate of the detected transmission path, an appropriate number of image data units in an image data set are matched for transmission.

[0096] In addition, based on the real-time detected transmission rate and stability, the transmission level corresponding to the current transmission path is confirmed; the transmission quantity of image data units in an image data set that meets the transmission requirements corresponding to a transmission level that is one or more levels lower than the current transmission level is selected for transmission.

[0097] In the present application, when the transmission environment of multiple transmission paths is not good, the recording cycle is increased to adapt to the transmission rate and stability of one or more lower transmission levels; or, the number of image data units with the highest retention value when storing each image data set is reduced to adapt to the transmission rate and stability of one or more lower transmission levels; or, one or more image data units to be transmitted are converted to reduce the quality of the image data unit to the minimum quality requirement.

[0098] For example, during transmission, the real-time transmission rate and stability of multiple configured transmission paths can be detected first, and multiple transmission levels can be divided according to the advantages and disadvantages; then the transmission mode can be graded according to the transmission requirements of image data units in an image data set within a transmission cycle. Based on the periodic characteristics of image data, it is not necessary to transmit the entire segment of data during transmission, but to transmit more dispersed image data sets or image data units. In this way, due to the reduction of transmitted data, the time of each transmission can be reduced, and the risk of low transmission efficiency and packet loss or transmission failure caused by the stability and rate of the transmission path can be avoided.

[0099] In one embodiment of the present application, whenever one or more image data sets or image data units are transmitted, one or more image data sets or image data units that have been stored may be deleted in the storage space accordingly, thereby freeing up storage space for storing one or more image data sets to be stored or the x image data units with the highest retention values ​​in each image data set to be stored.

[0100] Specifically, combining periodic storage and transmission can, on the one hand, free up space for real-time storage; on the other hand, periodic transmission can allow one or more image data units in each segment of the image data to be transmitted according to the current optimal transmission path, thereby avoiding the transmission of the entire segment of data together, which is easily affected by the stability and rate of the transmission path, resulting in low transmission efficiency and the risk of packet loss or transmission failure.

[0101] In addition, the method can also regularly remind the user to clean up the storage space, or delete the stored information locally after backing it up to an external medium, so that the local storage space can be restored to its initial optimal state, thus further improving the effective storage capacity.

[0102] In summary, the storage method described in the present application can not only further improve the storage efficiency and store as much core useful information as possible for a longer period of time in a limited space, but also utilize the characteristics of segmented acquisition of periodic recording to achieve an organic combination of recording, storage, and transmission, and coordinate with each other to make the process of instant recording, storage, and transmission more automatic, intelligent, effective, and stable.

[0103] like Figure 4 FIG. 4 is a block diagram of a periodic storage device in an embodiment of the present application. As shown in the figure, the device 400 includes:

[0104] Configuration module 401, configured to configure a storage space capable of storing M real-time recorded image data sets, so as to continuously store the image data sets; wherein the image data sets are acquired by continuous segmented recording according to a preset recording cycle; each image data set includes n image data units;

[0105] The processing module 402 is used to, when the first round of M image data sets fills up the storage space, use an image detection algorithm to respectively detect the retention value of each image data unit in each image data set that has been stored and to be stored; and replace the x image data units with the lowest retention value in each stored image data set with the x image data units with the highest retention value in each image data set to be stored, so as to achieve multiple rounds of periodic storage.

[0106] It should be noted that the information interaction, execution process, etc. between the modules / units of the above-mentioned device are based on the same concept as the method embodiment described in the present application, and the technical effects they bring are the same as those of the method embodiment of the present application. For specific contents, please refer to the description in the method embodiment shown in the previous description of the present application, and will not be repeated here.

[0107] It should also be noted that it should be understood that the division of the various modules of the above device 400 is only a division of logical functions. In actual implementation, they can be fully or partially integrated into one physical entity, or they can be physically separated. And these units can all be implemented in the form of software calling through processing elements; they can also be all implemented in the form of hardware; some modules can also be implemented in the form of software calling through processing elements, and some modules can be implemented in the form of hardware. For example, the processing module 402 can be a separately established processing element, or it can be integrated in a chip of the above device. In addition, it can also be stored in the memory of the above device in the form of program code, and called and executed by a processing element of the above device. The function of the above processing module 402. The implementation of other modules is similar. In addition, all or part of these modules can be integrated together, or they can be implemented independently. The processing element described here can be an integrated circuit with signal processing capabilities. In the implementation process, each step of the above method or each module above can be completed by an integrated logic circuit of hardware in the processor element or instructions in the form of software.

[0108] For example, the above modules may be one or more integrated circuits configured to implement the above methods, such as: one or more application specific integrated circuits (ASICs); or, one or more digital signal processors (DSPs); or, one or more field programmable gate arrays (FPGAs); etc.; for another example, when one of the above modules is implemented in the form of a processing element scheduling program code, the processing element may be a general-purpose processor, such as a central processing unit (CPU) or other processor that can call program code; for another example, these modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).

[0109] like Figure 5 As shown, it is a schematic diagram of the structure of a processing device in an embodiment of the present application. As shown in the figure, the processing device 500 includes: a memory 501, a processor 502, and a communicator 503; the memory 501 is used to store computer instructions; the processor 502 executes the computer instructions to implement the following Figure 1 The communicator 503 is used to communicate with the integrated camera, storage and transmission device.

[0110] In some embodiments, the number of the memory 501 in the processing device 500 can be one or more, the number of the processor 502 can be one or more, the number of the communicator 503 can be one or more, and Figure 5 Take one as an example.

[0111] In one embodiment of the present application, the processor 502 in the processing device 500 will perform the following operations: Figure 1 In the above steps, one or more instructions corresponding to the process of the application are loaded into the memory 501, and the processor 502 runs the application stored in the memory 501, thereby achieving the following Figure 1 The method described.

[0112] The memory 501 may include a random access memory (RAM), or may include a non-volatile memory, such as at least one disk storage. The memory 501 stores an operating system and operating instructions, executable modules or data structures, or a subset thereof, or an extended set thereof, wherein the operating instructions may include various operating instructions for implementing various operations. The operating system may include various system programs for implementing various basic services and processing hardware-based tasks.

[0113] The processor 502 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, and discrete hardware components.

[0114] The communicator 503 is used to realize the communication connection between the database access device and other devices (such as a client, a read-write library, and a read-only library). The communicator 503 may include one or more modules of different communication modes, for example, a CAN communication module connected to a CAN bus communication. The communication connection may be one or more wired / wireless communication modes and combinations thereof. The communication modes include: any one or more of the Internet, CAN, intranet, wide area network (WAN), local area network (LAN), wireless network, digital subscriber line (DSL) network, frame relay network, asynchronous transfer mode (ATM) network, virtual private network (VPN) and / or any other suitable communication network. For example: any one or more of WIFI, Bluetooth, NFC, GPRS, GSM, and Ethernet and a variety of combinations.

[0115] In some specific applications, the various components of the processing device 500 are coupled together through a bus system, wherein the bus system may include a power bus, a control bus, and a status signal bus in addition to a data bus. However, for the sake of clarity, Figure 5 In the specification, various buses are referred to as bus systems.

[0116] like Figure 6As shown in FIG. 1 , a schematic diagram of the structure of an integrated device for recording, storing and transmitting in one embodiment of the present application is shown. As shown in the figure, the integrated device for recording, storing and transmitting 600 includes: Figure 5 The processing device 601; the camera 602 for recording; the data card 603 for storing image data; the communicator 604 for transmitting image data.

[0117] Preferably, the camera 602 has wide-angle recording, automatic focus, and high-speed recording functions, and under the control of the above method as the driving logic, it automatically records in a continuous segmented manner according to the recording cycle.

[0118] Preferably, the transmission paths that the communicator 604 can provide include: wired transmission paths and / or wireless transmission paths; the wired transmission paths include: any one or more combinations of USB1.0 / 2.0 / 3.x, MicroUSB, MiniUSB, serial interface, parallel interface, and charging pile interface; the wireless transmission paths include: any one or more combinations of 2G / 3G / 4G / 5G, Bluetooth, infrared, NB-IoT, Rola, Zigbee, MavLink, WIFI, NFC, GPRS, GSM, and Ethernet.

[0119] Preferably, the integrated camera, storage and transmission device 600 can be used as any one of a wearable device, a portable device, a monitoring device and a recording device.

[0120] In one embodiment of the present application, the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the following Figure 1 The method described.

[0121] At any possible level of technical detail combination, the present application may be a system, method and / or computer program product. The computer program product may include a computer-readable storage medium carrying computer-readable program instructions for causing a processor to implement various aspects of the present application.

[0122] Computer readable storage medium can be a tangible device that can hold and store instructions used by an instruction execution device. Computer readable storage medium can be, for example, (but not limited to) an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination thereof. More specific examples (non-exhaustive list) of computer readable storage medium include: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a static random access memory (SRAM), a portable compact disk read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanical encoding device, for example, a punch card or a convex structure in a groove on which instructions are stored, and any suitable combination thereof. The computer readable storage medium used here is not interpreted as a transient signal itself, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagated by a waveguide or other transmission medium (for example, a light pulse by an optical fiber cable), or an electrical signal transmitted by a wire.

[0123] The computer-readable program described herein can be downloaded from a computer-readable storage medium to each computing / processing device, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network can include copper transmission cables, optical fiber transmission, wireless transmission, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in a computer-readable storage medium in each computing / processing device.

[0124] The computer program instructions for performing the operation of the present application can be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state setting data, integrated circuit configuration data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages ​​such as Smalltalk, C++, etc., and procedural programming languages ​​such as "C" language or similar programming languages. Computer-readable program instructions can be executed completely on the user's computer, partially on the user's computer, as an independent software package, partially on the user's computer, partially on the remote computer, or completely on the remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any type of network including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (for example, using an Internet service provider to connect through the Internet). In some embodiments, by using the state information of computer-readable program instructions to personalize electronic circuits, such as programmable logic circuits, field programmable gate arrays (FPGAs) or programmable logic arrays (PLAs), the electronic circuits can execute computer-readable program instructions, thereby realizing various aspects of the present application.

[0125] In summary, the present application provides a periodic storage method, device, equipment and medium, which provide a storage space for continuous storage of M real-time recorded image data sets; wherein the image data sets are obtained by continuous segmented recording according to a preset recording cycle; each image data set contains n image data units; when the first round of M image data sets fills the storage space, an image detection algorithm is used to detect the retention value of each image data unit in each image data set that has been stored and to be stored; and the x image data units with the highest retention value in each image data set to be stored are replaced by the x image data units with the lowest retention value in each stored image data set, so as to realize periodic storage of multiple rounds of corresponding recording cycles.

[0126] The present invention effectively overcomes various shortcomings of the prior art and has a high industrial utilization value.

[0127] The above embodiments are merely illustrative of the principles and effects of the present application and are not intended to limit the present invention. Anyone familiar with the technology may modify or change the above embodiments without violating the spirit and scope of the present application. Therefore, all equivalent modifications or changes made by those of ordinary skill in the art without departing from the spirit and technical ideas disclosed by the present invention shall still be covered by the claims of the present application.

Claims

1. A periodic storage method, It is characterized in that The method comprises: A storage space is provided for continuously storing M real-time recorded image data sets; wherein the image data sets are acquired by continuous segmented recording according to a preset recording cycle; and each image data set includes n image data units; When the first round of M image data sets fill up the storage space, the image detection algorithm is used to detect the retention value of each image data unit in each image data set that has been stored and to be stored after the first round; wherein the retention value is related to the clarity and the key information / effective information contained; wherein the image data unit that is the clearest and contains the most key information / effective information has the highest retention value; and the image data unit that is the most blurred and contains the least key information / effective information has the lowest retention value; The x image data units with the highest retention values ​​in each image data set to be stored are used to replace the x image data units with the lowest retention values ​​in each image data set that has been stored, so as to realize the periodic storage of multiple rounds of corresponding recording cycles.

2. The method according to claim 1, It is characterized in that The method comprises: When the second round of M image data sets are stored, the x image data units with the highest retention values ​​in the first image data set to be stored replace the x image data units with the lowest retention values ​​in the first round of the first image data set that have been stored; By analogy, the storage of the second image data set to the Mth image data set of the second round is completed respectively, so as to complete the storage of the M image data sets of the second round; When the k-th round of M image data sets are stored, the x image data units with the highest retention values ​​in the first image data set to be stored in the current round are used to replace the x image data units with the lowest retention values ​​in the remaining nx(k-2) image data units that have not been replaced in the first image data set that has been stored in the previous k-1 rounds; wherein k is a natural number not less than 2; And so on, the storage of the second image data set to the M-th image data set is completed respectively, so as to complete the storage of the M image data sets in the k-th round; The replacement value x representing the number of image data units to be replaced is a preset fixed value; the minimum value of x is 1 and the maximum value does not exceed n; when x is set to 1, the storage space can store at most n rounds of M image data sets.

3. The method according to claim 2, It is characterized in that The replacement value x can be adjusted according to the recording time or the size of the pre-stored data.

4. The method according to claim 1, It is characterized in that The reference factors for determining the key information / valid information include any one or more combinations of reference object type, reference object type priority, reference object size, reference object distance, reference object brightness, reference object quantity, reference object movement, and reference object sound.

5. The method according to claim 1, It is characterized in that The method further comprises: One or more image data units are collected from the image data that are continuously recorded in segments according to a preset recording cycle, and are periodically stored in a timely and synchronous manner according to the recording cycle; or, One or more image data units in the M image data sets in the storage space are periodically transmitted corresponding to the recording period.

6. A periodic storage device, It is characterized in that The device comprises: A configuration module is used to provide a storage space for continuously storing M real-time recorded image data sets; wherein the image data sets are acquired by continuous segmented recording according to a preset recording cycle; and each image data set includes n image data units; A processing module is used to detect the retention value of each image data unit in each image data set that has been stored and to be stored after the first round by using an image detection algorithm after the storage space is fully stored with the first round of M image data sets; wherein the retention value is related to the clarity and the key information / effective information contained; wherein the image data unit that is the clearest and contains the most key information / effective information has the highest retention value; and the image data unit that is the most blurred and contains the least key information / effective information has the lowest retention value; by replacing the x image data units with the lowest retention values ​​in each stored image data set with the x image data units with the highest retention values ​​in each image data set to be stored, periodic storage of corresponding recording cycles of multiple rounds is achieved.

7. A processing device, It is characterized in that The device includes: a memory, a processor, and a communicator; the memory is used to store computer instructions; the processor executes the computer instructions to implement the method described in any one of claims 1 to 5; the communicator is used to communicate with the integrated camera, storage and transmission device to receive image data recorded in real time by the integrated camera, storage and transmission device; and the communicator is also used to transmit the stored image data to the outside.

8. An integrated device for recording, storing and transmitting. It is characterized in that include: The processing device as claimed in claim 7; Camera for recording; A data card for storing image data; Communicator, used for transmitting image data.

9. A computer-readable storage medium, It is characterized in that Computer instructions are stored, and when the computer instructions are executed by a processor, the method according to any one of claims 1 to 5 is executed.