An image retention period configuration method, device, medium and electronic equipment

By dynamically adjusting the image retention period based on the confidence interval and the number of devices within the target area, the problem of storage space saturation caused by a fixed image retention period is solved, thus realizing a reasonable image retention strategy.

CN116010357BActive Publication Date: 2026-04-10ZHEJIANG UNIVIEW TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-10-22
Publication Date
2026-04-10

AI Technical Summary

Technical Problem

In existing technologies, the image retention period is fixed and cannot adapt to dynamic changes in image size and quantity, leading to storage space being filled up and data access failure.

Method used

By acquiring image data from cameras within the target area, the confidence interval for the target area is calculated, and the image retention period is dynamically adjusted based on the confidence interval and the number of cameras.

Benefits of technology

It enables dynamic adjustment of image retention period, avoiding the situation where storage space is full before the cleanup conditions are met, and ensuring normal data access.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116010357B_ABST
    Figure CN116010357B_ABST
Patent Text Reader

Abstract

Embodiments of the present application disclose a method and device for configuring an image retention period, a medium and an electronic device. The method comprises: obtaining image data collected by a shooting device in a target area, and determining sample data; calculating a target area confidence interval based on the sample data, a preset total standard deviation and a preset total confidence, and determining an image retention period of the target area based on the target area confidence interval and the number of shooting devices in the target area; wherein the target area confidence interval is used to represent the size of the image data collected by the shooting device in the target area. The technical solution can dynamically calculate the image retention period of the target area, making the image retention period more reasonable and avoiding the situation that the storage capacity is full before the cleaning condition is reached.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] Embodiments of the present application relate to the technical field of image cleaning, and in particular to a configuration method and device for image retention period, a medium and an electronic device. BACKGROUND

[0002] The current safe city project is gradually tending to mass access, and the uncertainty of a large number of front-end picture access and the instantaneous burst of picture access have brought great difficulties to picture storage and cleaning. Since the total size of the pictures accessed every day is not necessarily fixed, when the storage space is fixed and the retention period is set, the problem of the storage space being full before the retention period is reached may occur. This will cause new picture data access to be unable to be written into the storage, and eventually lead to data access failure.

[0003] The current image retention period is manually configured and fixed. The cleaning strategy is to scan the storage capacity regularly every day, and if the occupied storage space meets the storage capacity ratio for starting cleaning and also exceeds the retention period, the oldest pictures are cleaned, and the cleaning is performed by day until the cleaning is stopped when the storage capacity ratio for ending cleaning is reached.

[0004] In this way, the image retention period is fixed and cannot meet the picture storage in the case of sudden changes in the total size of pictures caused by dynamic changes in the size and quantity of pictures. SUMMARY

[0005] Embodiments of the present application provide a configuration method and device for image retention period, a medium and an electronic device, which can dynamically calculate the target area image retention period. The image retention period is more reasonable, and the situation of the storage capacity being full before the cleaning condition is reached is avoided.

[0006] In a first aspect, embodiments of the present application provide a configuration method for image retention period, which comprises:

[0007] acquiring image data collected by a shooting device in a target area, and determining sample data;

[0008] based on the sample data, a preset total standard deviation and a preset total confidence, a target area confidence interval is calculated, and based on the target area confidence interval and the number of shooting devices in the target area, a target area image retention period is determined; wherein the target area confidence interval is used to represent the size of the image data collected by the shooting device in the target area.

[0009] In a second aspect, embodiments of the present application provide a configuration device for image retention period, which comprises:

[0010] a sample data determination module, which acquires image data collected by a shooting device in a target area, and determines sample data;

[0011] The target region image retention period determination module is configured to calculate a target region confidence interval based on the sample data, a preset total standard deviation and a preset total confidence, and determine a target region image retention period based on the target region confidence interval and a number of photographing devices in the target region; wherein the target region confidence interval is used to represent the size of image data collected by photographing devices in the target region.

[0012] In a third aspect, an embodiment of the present application provides a computer readable medium having a computer program stored thereon, which, when executed by a processor, implements the image retention period configuration method according to the embodiments of the present application.

[0013] In a fourth aspect, an embodiment of the present application provides an electronic device, which includes a memory, a processor and a computer program stored in the memory and executable by the processor, and the processor implements the image retention period configuration method according to the embodiments of the present application when executing the computer program.

[0014] The technical solution provided by the embodiments of the present application obtains image data collected by photographing devices in a target region, determines sample data, calculates a target region confidence interval based on the sample data, a preset total standard deviation and a preset total confidence, and determines a target region image retention period based on the target region confidence interval and a number of photographing devices in the target region. The technical solution can dynamically calculate the target region image retention period, so that the image retention period is more reasonable and the situation that the storage capacity is full before the cleaning condition is reached is avoided. BRIEF DESCRIPTION OF DRAWINGS

[0015] Figure 1 FIG. 1 is a flowchart of the image retention period configuration method according to an embodiment of the present application;

[0016] Figure 2 FIG. 2 is a schematic diagram of the image retention period configuration process according to an embodiment of the present application;

[0017] Figure 3 FIG. 3 is a schematic diagram of sub-region division according to an embodiment of the present application;

[0018] Figure 4 FIG. 4 is a structural schematic diagram of the image retention period configuration device according to an embodiment of the present application;

[0019] Figure 5 FIG. 5 is a structural schematic diagram of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0020] The application will be described in further detail below with reference to the drawings and embodiments. It is to be understood that the specific embodiments described herein are merely illustrative of the application and are not to be used to limit the scope of the application. In addition, it is to be understood that, for ease of description, only the parts related to the application are shown in the drawings rather than all the parts.

[0021] Before the example embodiments are described in more detail, it should be mentioned that some of the example embodiments are described as processes or methods depicted as flow charts. While the steps of the processes are depicted as sequential processes, many of the steps can be performed in parallel, concurrently or at the same time. In addition, the order of the steps can be re-arranged. The processes can be terminated when their operations are completed, but can also have additional steps not included in the figure. The processes can correspond to methods, functions, procedures, subroutines, subprograms, etc.

[0022] Embodiment One

[0023] Figure 1 is a flow chart of the image retention period configuration method provided by Embodiment One of the application. The embodiment can be applicable to the case of dynamically setting the image retention period. The method can be executed by the image retention period configuration device provided by the embodiment of the application. The device can be realized in the form of software and / or hardware, and can be integrated into a smart terminal or other device for storage space cleaning.

[0024] As shown in Figure 1 , the image retention period configuration method comprises:

[0025] S110, acquiring image data collected by a shooting device in a target area, and determining sample data;

[0026] The shooting device can be a camera, a front-end IPC, a camera head or other devices, which is used to collect image data and upload the image data to a storage device for storage.

[0027] In the present solution, the target area can refer to an area formed by the distribution positions of all shooting devices.

[0028] In the present embodiment, the structured attribute data reported by each shooting device can carry an image size. If each piece of data reported by the shooting device carries an image size, the image size and the total image size accessed by all shooting devices every day can be obtained according to the data reporting time and the image size. The obtained image data is recorded every day by week as sample data. The image size is used to represent how much storage space is occupied by an image file. For example, a file size of 100k means that the image file occupies a storage space of 100KB.

[0029] S120, based on the sample data, a preset total standard deviation and a preset total confidence, a target region confidence interval is calculated, and based on the target region confidence interval and a target region shooting device quantity, a target region image retention period is determined; wherein the target region confidence interval is used to represent the size of the image data collected by the shooting device in the target region.

[0030] Wherein, the total standard deviation and the total confidence can be set according to the number of image data. For example, when the number of image data is 100, the total standard deviation can be set to 10%; when the number of image data is 500, the total standard deviation can be set to 5%; and when the number of image data is 1200, the total standard deviation can be set to 3%. Wherein, the total confidence can be set to 90%.

[0031] In this scheme, the target region confidence interval can be used to represent the size of the image data collected by the shooting device in the target region, and the target region confidence interval meets the total confidence requirement. For example, the target region confidence interval is (1000, 2000), i.e. the size of the image data obtained by the shooting device is within the range of 1000-2000. That is, the target region confidence interval is (1000, 2000), and the total confidence is 90%.

[0032] Optionally, assuming that the average value of the image data collected by the shooting device in the target region is μ, the total standard deviation is δ, and the total confidence is α, then the target region confidence interval is (μ-Z α / 2 σ, μ+Z α / 2 σ). Wherein, Z α / 2 σ is the corresponding total standard deviation.

[0033] Wherein, the image retention period can be used to represent the image retention period of the storage device. If the occupied storage space meets the storage capacity ratio of starting cleaning and also exceeds the image retention period, the oldest image is started to be cleaned. Wherein, the storage capacity ratio of starting cleaning can be set according to the capacity of the storage device. Wherein, the configuration of the image retention period needs to meet the requirement of the minimum retention period. The minimum retention period can be set according to the demand of the storage device.

[0034] Optionally, assuming that the target region shooting device quantity is X, and the target region confidence interval is (1000, 2000), then the total size of the accessed pictures is 1500X. Assuming that the allocated storage capacity is Y, then the target region image retention period is Y / 1500X.

[0035] In the embodiment, the target region image retention period can be calculated according to the target region confidence interval with high confidence, and the target region image retention period is set. Generally, if the target region image confidence interval is adjusted to be large, the target region image retention period is reduced; if the target region confidence interval is adjusted to be small, the target region image retention period is increased. For example, if the target region image confidence interval is (1000X, 2000X), and more than four days of the week fall within the target region image confidence interval, it is considered that the initial estimated total confidence and the target region confidence interval are relatively reliable; if more falls outside the target region image confidence interval, the total confidence is low, and it is considered that the initial estimated target region confidence interval is unreliable.

[0036] If the target region confidence interval is reliable, there is no need to adjust.

[0037] If the target region confidence interval is unreliable, it is divided into two cases. If more falls within (0, 1000X), the target region confidence interval is adjusted to be small, and if more falls within (2000X, ∞), the target region confidence interval is adjusted to be large.

[0038] The total size of the image accessed by all shooting devices per day is known, a reasonable target region confidence interval is calculated according to a certain period, and a more reasonable image retention period is calculated, so as to realize dynamic adjustment of the image retention period.

[0039] The technical scheme provided in the embodiment of the application acquires image data collected by shooting devices in a target region, determines sample data, calculates a target region confidence interval based on the sample data, a preset total standard deviation and a preset total confidence, and determines a target region image retention period based on the target region confidence interval and the number of shooting devices in the target region. By executing the technical scheme, the target region image retention period can be dynamically calculated. The image retention period is more reasonable, and the situation that the storage capacity is full before the cleaning condition is reached is avoided.

[0040] Embodiment two

[0041] Figure 2 is a schematic diagram of the configuration process of the image retention period provided in the embodiment two of the application. The embodiment two is further optimized on the basis of the embodiment one. The specific optimization is that the target region image retention period is determined based on the target region confidence interval and the number of shooting devices in the target region, including: determining a division result of a sub-region to which the shooting devices in the target region belong; determining image confidence intervals of at least two sub-regions and the number of shooting devices in the sub-regions; wherein the image confidence interval is used to represent the size of the image data collected by the shooting devices in the sub-region; and configuring a sub-region image retention period according to the image confidence intervals of the at least two sub-regions and the number of shooting devices in the sub-regions. The contents not described in detail in the embodiment are described in detail in the embodiment one. For example,Figure 2 As shown, the method comprises the following steps:

[0042] S210, determining a division result of a sub-region to which the photographing device in the target region belongs;

[0043] In this scheme, the sub-region can be a region composed of partial distribution positions of the photographing devices. The target region comprises at least two sub-regions.

[0044] In this embodiment, the sub-region to which the photographing device in the target region belongs can be divided according to the image data size collected by the photographing device or the distribution position of the photographing device. The sub-region to which the photographing device in the target region belongs can be divided in advance or in real time.

[0045] In this technical scheme, the division result of the sub-region to which the photographing device in the target region belongs can comprise:

[0046] Obtaining the distribution position and the collected image data of the photographing device in the target region;

[0047] According to the distribution position and the image data, determining the division result of the sub-region to which the photographing device belongs, and obtaining at least two sub-regions.

[0048] In this scheme, the image size accessed by each photographing device per day is known, and photographing devices with similar image sizes can be divided into the same sub-region. For example, photographing devices with an image size of (0, 1000) are divided into sub-region 1, photographing devices with an image size of (1000, 2000) are divided into sub-region 2, and so on. The image size accessed by one photographing device per day is also different, so the sub-region divided according to the photographing devices with similar image sizes can change over time and gradually stabilize.

[0049] In this embodiment, in a region, a person or a vehicle passing through one photographing device will also pass through several other photographing devices with a high probability. A certain range of photographing devices can be divided into a sub-region based on this characteristic, and different sub-region 1, sub-region 2, etc. can be obtained. Preferably, the sub-region to which the photographing device belongs can be divided based on the distribution position of the photographing device. The division process can refer to the division result of the sub-region based on the image size to obtain the final sub-region division.

[0050] Exemplarily, Figure 3 is a schematic diagram of sub-region division provided by the second embodiment of the present application, as Figure 3As shown, assuming there are 21 shooting devices in the target area, the shooting devices within a certain range are divided according to the distribution positions: region 1 is device 1 / 2 / 3 / 4, region 2 is device 8 / 9 / 11 / 12 / 13 / 17, region 3 is device 18 / 19 / 21, and region 4 is device 5 / 6 / 7 / 10 / 14 / 15 / 16 / 20.

[0051] According to the image size, the shooting devices close to each other can be divided into: region 1 is device 1 / 21, region 2 is device 2 / 3 / 4 / 8 / 9, region 3 is device 5 / 6 / 10 / 15 / 16 / 17 / 18 / 19 / 20, and region 4 is device 7 / 11 / 12 / 13 / 14.

[0052] According to the distribution position division, and combined with the image size division, the final sub-region division is: region 1 is device 1 / 2 / 3 / 4 / 8 / 9, region 2 is device 7 / 11 / 12 / 13 / 14, region 3 is device 17 / 18 / 19 / 21, and region 4 is device 5 / 6 / 10 / 15 / 16 / 20.

[0053] By dividing the sub-regions, the image retention period of each sub-region can be dynamically calculated, making the image retention period more reasonable and avoiding the situation that the storage capacity is full before the cleaning condition is reached.

[0054] S220, determine the image confidence interval of at least two sub-regions and the number of shooting devices in the sub-region; wherein the image confidence interval is used to represent the image data size collected by the shooting devices in the sub-region;

[0055] In this scheme, the sub-region confidence interval can be calculated based on the image data collected by the shooting devices in the sub-region, and the pre-determined standard deviation and confidence, to represent the image data size collected by the shooting devices in the sub-region. The standard deviation and confidence can be set according to the number of image data.

[0056] Wherein, the number of shooting devices in different sub-regions is different, which can be determined according to the division result of the sub-regions.

[0057] S230, configure the sub-region image retention period according to the image confidence interval of at least two sub-regions and the number of shooting devices in the sub-region.

[0058] In this scheme, the storage space required by the sub-region with a large image confidence interval is large, so a larger image retention period can be set for the sub-region; the storage space required by the sub-region with a small image confidence interval is small, so a smaller image retention period can be set for the sub-region.

[0059] In the embodiment, the image confidence interval of at least two sub-regions and the number of shooting devices in the sub-regions are weighted and summed to construct an image retention period equation to be solved, and the image retention period of each sub-region is configured.

[0060] In the technical solution, the sub-region image retention period is configured according to the image confidence interval and the number of shooting devices in the sub-region, and the sub-region image retention period is configured according to the sub-region confidence parameter, the number of shooting devices, the target region image retention period and the target region confidence parameter.

[0061] The sub-region confidence parameter is determined according to the image confidence interval.

[0062] The sub-region image retention period is configured based on the sub-region confidence parameter, the number of shooting devices, the target region image retention period and the target region confidence parameter.

[0063] In the solution, the sub-region confidence parameter can be the middle value of the sub-region image confidence interval. For example, the image confidence interval is (800, 1200), and the sub-region confidence parameter can be 1000. The middle value of the sub-region image confidence interval can represent the size of the image data collected by the shooting device in the sub-region.

[0064] The number of shooting devices includes the number of sub-region shooting devices and the number of target region shooting devices.

[0065] In the embodiment, the target region confidence parameter can be the middle value of the target region image confidence interval. For example, the target region image confidence interval is (1500, 2000), and the target region confidence parameter can be 1750. The target region confidence interval can be calculated according to the image data collected by the shooting device in the target region and the total standard deviation and total confidence determined in advance.

[0066] The target region image retention period can be calculated according to the image data obtained by the shooting device in the target region and the allocated storage capacity.

[0067] In the solution, the total storage image size can be calculated according to the number of target region shooting devices, the target region confidence parameter and the target region image retention period, and the sub-region image retention period can be dynamically configured based on the total storage image size and the sub-region confidence parameter and the number of sub-region shooting devices.

[0068] Based on the sub-region confidence parameter, the number of shooting devices, the target region image retention period and the target region confidence parameter, the image retention period of each sub-region can be dynamically calculated. The image retention period is more reasonable, and the situation that the storage capacity is full without reaching the cleaning condition is avoided.

[0069] In the technical solution, optionally, based on the sub-region confidence parameter, the number of shooting devices, the target region image retention period and the target region confidence parameter, a sub-region image retention period is configured, comprising:

[0070] Based on the sub-region confidence parameter, the number of shooting devices, the target region image retention period and the target region confidence parameter, a sub-region image retention period equation to be solved is constructed through a preset retention period configuration model;

[0071] According to a preset retention period constraint condition, the image retention period equation to be solved is solved to determine the sub-region image retention period.

[0072] The preset retention period constraint condition can be a condition that the image retention period of the sub-region needs to meet, which can be set according to the target region image retention period. For example, assuming that the sub-region image retention period is z1, z2, z3 and z4, and the target region image retention period is Z, the retention period constraint condition can be set as z1<z2<Z, z4>z3>Z.

[0073] In the scheme, the sub-region confidence parameters and the number of shooting devices of each sub-region are weighted and summed, and the target region confidence parameter, the number of shooting devices of the target region and the target region image retention period are weighted and summed to jointly construct the image retention period equation to be solved. For example, assuming that the target region includes four sub-regions, the shooting device in the target region is X, the target region image retention period is Z, the target region confidence interval is (1500, 2000), and the target region confidence parameter is 1750. Assuming that the number of shooting devices of sub-region 1 is x1, the image confidence interval is (800, 1200); the number of shooting devices of sub-region 2 is x2, the image confidence interval is (1200, 1800); the number of shooting devices of sub-region 3 is x3, the image confidence interval is (1800, 2200); and the number of shooting devices of sub-region 4 is x4, the image confidence interval is (2200, 2800). The image retention period of each sub-region is z1, z2, z3 and z4. The constructed image retention period equation to be solved is:

[0074] 1000x1z1+1500x2z2+2000x3z3+2500x4z4=1750XZ;

[0075] x1+x2+x3+x4=X;

[0076] z1<z2<Z, z4>z3>Z;

[0077] Wherein, 1000, 1500, 2000, 2500 are image confidence parameters of each sub-region, which are determined based on the image confidence interval. z1<z2<Z, z4>z3>Z is a preset retention period constraint condition.

[0078] The image retention period of the sub-area 1 and the sub-area 2 can be calculated by the random value substitution method, and the image retention period of the sub-area 3 and the sub-area 4 can be calculated by the random value substitution method.

[0079] The image retention period of each sub-area is dynamically calculated, so that the image retention period is more reasonable, and the situation that the storage capacity is full without reaching the cleaning condition is avoided.

[0080] In the technical solution, after the image retention period of the sub-area is configured, the method further comprises:

[0081] If the target shooting device exists in the sub-area, the sub-area to which the target shooting device belongs is determined, wherein the target shooting device is determined according to the shooting device access frequency, the image access frequency or the importance of the shooting device;

[0082] According to the sub-area to which the target shooting device belongs, the image retention period of the sub-area is adjusted according to the preset configuration rule.

[0083] In the scheme, the user operation log records the operation of the user, and according to the operation of the user on the shooting device, it is determined which shooting device is frequently focused by the user, and the shooting device can be marked as a target shooting device; the image stored in the storage device, the initial value of the access amount of each image is 0, and the access amount is accumulated by 1 every time it is read. The image access amount in a day is counted regularly every day, and the shooting device corresponding to the image whose access amount exceeds a certain limit value can be marked as a target shooting device; the shooting device which is focused by the user can be directly confirmed as an important shooting device by the user, and the shooting device can be manually marked as a target shooting device.

[0084] After the image retention period of the sub-area is configured, if the user is willing to sacrifice the image retention period of the non-target shooting device and hopes that the image retention period of the sub-area to which the target shooting device belongs is longer, the image retention period of the sub-area can be adjusted according to the preset configuration rule.

[0085] In the embodiment, the target shooting device can be matched with the shooting device in the small area with a longer image retention period. If the matching degree is higher than 90%, no image retention period adjustment is performed; if the matching degree is lower than 90%, the target shooting device can be matched with the shooting device in each small area, and if the matching degree of the small area with the shortened image retention period is higher than the matching degree of the small area with the increased image retention period, the image retention period of the small area with the high matching degree is randomly increased to the expected value of the user, and the image retention period of the small area with the low matching degree is decreased according to the calculation. For example, the image retention period of the sub-area 1 is 5 days, the image retention period of the sub-area 2 is 7 days, and the target shooting device belongs to the sub-area 1, so the image retention period of the sub-area 1 can be adjusted to 7 days according to the expected value of the user, and the image retention period of the sub-area 2 is adjusted to 5 days.

[0086] According to the sub-area to which the important shooting device belongs, the image retention period of the sub-area is dynamically adjusted. Finally, the image retention period of part of the data is reasonably increased. The situation that the storage capacity is full before the cleaning condition is reached is avoided.

[0087] In the technical solution, optionally, after the sub-area image retention period is configured, the method further includes:

[0088] If the number of shooting devices in the sub-area changes, the changed number of shooting devices and the initial number of shooting devices are determined.

[0089] According to a preset retention period adjustment formula, based on the changed number of shooting devices, the initial number of shooting devices, the sub-area image retention period and the pre-determined image data, the final sub-area image retention period is calculated.

[0090] In the solution, when the shooting device is adjusted, the shooting device is increased or decreased, because the sub-area where the shooting device is located is known, the average image size of the shooting device in the sub-area per day is known and relatively stable (i.e. the sub-area confidence interval), the value of the shooting device per day can be estimated, and the image retention period of the sub-area how to adjust is calculated. Optionally, it is known that the initial number of shooting devices in the original sub-area is a, the image size per day is b, and the image retention period is set to c. At this time, the shooting device in the sub-area is increased by d. Then the image size per day of one shooting device is The image size per day of d shooting devices is increased after the shooting device is increased by d. The final calculated sub-area image retention period is

[0091] In the embodiment, the sub-region image retention period is increased due to the increase of the shooting device, and the storage capacity to be occupied is calculated according to the sub-region image retention period and the image access size. If the storage capacity exceeds the capacity of the storage device, an alarm message is sent to remind the user to expand the capacity of the storage device.

[0092] When the shooting device in the sub-region dynamically changes, the image retention period can be dynamically adjusted by recalculating the storage occupation according to the image size of the sub-region. Finally, the image retention period of part of the data is reasonably increased. The situation that the storage capacity is full without reaching the cleaning condition is avoided.

[0093] The technical scheme provided by the embodiment of the application determines the division result of the sub-region to which the shooting device in the target region belongs, and determines the image confidence interval of at least two sub-regions and the number of shooting devices in the sub-region; and configures the image retention period of the sub-region according to the image confidence interval of at least two sub-regions and the number of shooting devices in the sub-region. By performing the technical scheme, the sub-region division of each shooting device is performed, and the image retention period of each sub-region is dynamically calculated. The image retention period is more reasonable, and the situation that the storage capacity is full without reaching the cleaning condition is avoided.

[0094] Embodiment three

[0095] Figure 4 is a structural schematic diagram of the image retention period configuration device provided by the embodiment three of the application, as Figure 4 shown, the image retention period configuration device comprises:

[0096] The sample data determination module 410 acquires image data collected by the shooting device in the target region, and determines sample data.

[0097] The target region image retention period determination module 420 is configured to calculate a target region confidence interval based on the sample data, a preset total standard deviation and a preset total confidence, and determine a target region image retention period based on the target region confidence interval and the number of shooting devices in the target region. The target region confidence interval is used to represent the image data size collected by the shooting device in the target region.

[0098] In the technical scheme, the target region image retention period determination module 420 comprises:

[0099] The division result determination unit is configured to determine the division result of the sub-region to which the shooting device in the target region belongs.

[0100] The sub-region information determination unit is configured to determine the image confidence interval of at least two sub-regions and the number of shooting devices in the sub-region. The image confidence interval is used to represent the image data size collected by the shooting device in the sub-region.

[0101] An image retention period configuration unit is configured to configure a sub-region image retention period according to an image confidence interval of at least two sub-regions and a number of shooting devices in the sub-region.

[0102] In the technical solution, the image retention period configuration unit comprises

[0103] A sub-region confidence parameter determination sub-unit is configured to determine a sub-region confidence parameter according to the image confidence interval.

[0104] A sub-region image retention period configuration sub-unit is configured to configure a sub-region image retention period based on the sub-region confidence parameter, the number of shooting devices, the target region image retention period, and the target region confidence parameter.

[0105] In the technical solution, the sub-region image retention period configuration sub-unit is specifically configured to:

[0106] The sub-region image retention period configuration sub-unit is configured to construct a to-be-solved image retention period equation of the sub-region based on the sub-region confidence parameter, the number of shooting devices, the target region image retention period, and the target region confidence parameter through a preset retention period configuration model.

[0107] The sub-region image retention period configuration sub-unit is configured to solve the to-be-solved image retention period equation according to a preset retention period constraint condition to determine a sub-region image retention period.

[0108] In the technical solution, the division result determination unit is specifically configured to:

[0109] The division result determination unit is configured to obtain a distribution position of a shooting device and image data collected in the target region.

[0110] The division result determination unit is configured to determine a division result of a sub-region to which the shooting device belongs according to the distribution position and the image data, and obtain at least two sub-regions.

[0111] In the technical solution, the target region image retention period determination module 420 further comprises:

[0112] A target shooting device determination unit is configured to determine a sub-region to which a target shooting device belongs if the target shooting device exists in the sub-region, wherein the target shooting device is determined according to a shooting device access frequency, an image access frequency, or a shooting device importance degree.

[0113] A sub-region image retention period adjustment unit is configured to adjust a sub-region image retention period according to a preset configuration rule based on the sub-region to which the target shooting device belongs.

[0114] In the technical solution, the target region image retention period determination module 420 further comprises:

[0115] The number of shooting devices in the sub-region is determined, and the number of changed shooting devices and the initial number of shooting devices are determined if the number of shooting devices in the sub-region changes;

[0116] The sub-region image retention period calculation unit calculates a final sub-region image retention period based on the changed number of shooting devices, the initial number of shooting devices, the sub-region image retention period, and predetermined image data according to a preset retention period adjustment formula.

[0117] The product can execute the method provided in the embodiments of the application, and has the corresponding function modules and beneficial effects of the execution method.

[0118] Embodiment four

[0119] The embodiments of the application also provide a medium containing computer executable instructions, which, when executed by a computer processor, are used to execute an image retention period configuration method, the method comprising:

[0120] Image data collected by shooting devices in a target region is acquired, and sample data is determined;

[0121] A target region confidence interval is calculated based on the sample data, a preset total standard deviation, and a preset total confidence, and a target region image retention period is determined based on the target region confidence interval and the number of shooting devices in the target region; wherein the target region confidence interval is used to represent the size of the image data collected by the shooting devices in the target region.

[0122] Medium - any of various types of memory devices or storage devices. The term "medium" is intended to include an installation medium, such as a CD-ROM, floppy disks, or tape apparatus; computer system memory or random access memory such as DRAM, DDRRAM, SRAM, EDO RAM, Rambus RAM, etc.; non-volatile memory, such as flash memory, magnetic media (e.g., hard disk or optical storage); registers, or other similar types of memory elements, etc. The medium can also include other types of storage or combinations of them. In addition, the medium can be located in the computer system in which the program is executed, or can be located in a different second computer system, which is connected to the computer system through a network (such as the Internet). The second computer system can provide program instructions to the computer for execution. The term "medium" can include two or more media that can reside in different locations (for example, in different computer systems connected through a network). The medium can store program instructions (for example, specifically implemented as a computer program) that can be executed by one or more processors.

[0123] Of course, the medium provided by the embodiment of the present application includes computer executable instructions, which are not limited to the configuration operation of the image retention period as described above, but can also perform the related operations in the configuration method of the image retention period provided by any embodiment of the present application.

[0124] Embodiment five

[0125] The embodiment of the present application provides an electronic device, and the electronic device can integrate the configuration device of the image retention period provided by the embodiment of the present application. Figure 5 Figure 1 is a structural schematic diagram of an electronic device provided by the embodiment five of the present application. As shown in the figure, Figure 5 The embodiment provides an electronic device 500, which includes one or more processors 520 and a storage device 510 for storing one or more programs, when the one or more programs are executed by the one or more processors 520, so that the one or more processors 520 implement the configuration method of the image retention period provided by the embodiment of the present application, and the method includes:

[0126] Obtaining image data collected by a shooting device in a target area, and determining sample data;

[0127] Based on the sample data, a preset total standard deviation and a preset total confidence, a target area confidence interval is calculated, and based on the target area confidence interval and the number of shooting devices in the target area, a target area image retention period is determined; wherein the target area confidence interval is used to represent the size of the image data collected by the shooting device in the target area.

[0128] Of course, those skilled in the art can understand that the processor 520 also implements the technical solutions of the configuration method of the image retention period provided by any embodiment of the present application.

[0129] Figure 5 The electronic device 500 shown is only an example, and should not bring any limitation to the function and use range of the embodiment of the present application.

[0130] As shown in the figure, Figure 5 The electronic device 500 includes a processor 520, a storage device 510, an input device 530 and an output device 540; the number of processors 520 in the electronic device can be one or more, Figure 5 In this embodiment, the processor 520 is taken as an example; the processor 520, the storage device 510, the input device 530 and the output device 540 in the electronic device can be connected through a bus or other ways, Figure 5 In this embodiment, the connection through the bus 550 is taken as an example.

[0131] The storage device 510, as a computer readable medium, can be used to store software programs, computer executable programs and module units, such as program instructions corresponding to the image retention period configuration method in the embodiments of the present application.

[0132] The storage device 510 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system and application programs required by at least one function; the data storage area can store data created according to the use of the terminal and the like. In addition, the storage device 510 can include a high-speed random access memory, and can also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some examples, the storage device 510 can further include a memory remotely arranged with respect to the processor 520, and these remote memories can be connected through a network. Examples of the above network include but are not limited to the Internet, an intranet, a local area network, a mobile communication network and a combination thereof.

[0133] The input device 530 can be used to receive input digital, character information or voice information, and generate key signal input related to user settings and function control of the electronic device. The output device 540 can include a display screen, a speaker and the like electronic device.

[0134] The electronic device provided by the embodiments of the present application can achieve dynamic calculation of the target region image retention period. The image retention period is more reasonable, and the purpose of occupying the storage capacity without reaching the cleaning condition is avoided.

[0135] The configuration device, medium and electronic device of the image retention period provided in the above embodiments can execute the configuration method of the image retention period provided by any of the embodiments of the present application, and have the corresponding function modules and beneficial effects of executing the method. Technical details not described in detail in the above embodiments can be referred to the configuration method of the image retention period provided by any of the embodiments of the present application.

[0136] Note that the above is only the preferred embodiments of the present application and the technical principles applied. Those skilled in the art will understand that the present application is not limited to the specific embodiments described herein, and those skilled in the art can make various obvious changes, re-adjustments and substitutions without departing from the scope of the present application. Therefore, although the present application has been described in more detail through the above embodiments, the present application is not limited to the above embodiments, and can include more other equivalent embodiments without departing from the concept of the present application, and the scope of the present application is determined by the scope of the appended claims.

Claims

1. A method for configuring image retention period, characterized in that, include: Acquire image data captured by imaging devices within the target area to determine sample data; Based on the sample data, the preset total standard deviation, and the preset total confidence level, the confidence interval of the target region is calculated, and the image retention period of the target region is determined based on the confidence interval of the target region and the number of imaging devices in the target region; wherein, the confidence interval of the target region is used to characterize the size of image data collected by the imaging devices in the target region; The determination of the image retention period for the target area, based on the confidence interval of the target area and the number of imaging devices in the target area, includes: Determine the sub-region division results for the shooting equipment within the target area; Determine the image confidence intervals for at least two sub-regions and the number of imaging devices within each sub-region; wherein the image confidence intervals are used to characterize the size of image data acquired by the imaging devices within the sub-region; Based on the image confidence interval, determine the sub-region confidence parameters; The image retention period for the sub-region is configured based on the sub-region confidence parameters, the number of shooting devices, the target region image retention period, and the target region confidence parameters.

2. The method according to claim 1, characterized in that, Based on the sub-region confidence parameters, the number of capturing devices, the target region image retention period, and the target region confidence parameters, the sub-region image retention period is configured, including: Based on the sub-region confidence parameters, the number of shooting devices, the image retention period of the target region, and the target region confidence parameters, the image retention period equation of the sub-region to be solved is constructed through a preset retention period configuration model. Based on the preset retention period constraint, the image retention period equation to be solved is solved to determine the image retention period of the sub-region.

3. The method according to claim 1, characterized in that, The division results of the sub-regions to which the shooting equipment within the target area belongs include: Acquire the distribution locations of imaging devices and the image data collected within the target area; Based on the distribution location and image data, the division result of the sub-region to which the shooting device belongs is determined, resulting in at least two sub-regions.

4. The method according to claim 1, characterized in that, After configuring the image retention period for the sub-region, the method further includes: If a target imaging device exists within a sub-region, then the sub-region to which the target imaging device belongs is determined; wherein, the target imaging device is determined based on the number of times the imaging device is accessed, the number of times an image is accessed, or the importance of the imaging device. The image retention period of the sub-region is adjusted according to the sub-region to which the target shooting device belongs, in accordance with preset configuration rules.

5. The method according to claim 1, characterized in that, After configuring the image retention period for the sub-region, the method further includes: If the number of shooting devices in a sub-region changes, then determine the changed number of shooting devices and the initial number of shooting devices; According to the preset retention period adjustment formula, the final sub-region image retention period is calculated based on the changed number of shooting devices, the initial number of shooting devices, the sub-region image retention period, and the predetermined image data.

6. A configuration device for image retention period, characterized in that, include: The sample data determination module acquires image data collected by the imaging device within the target area and determines the sample data. The target area image retention period determination module is used to calculate the target area confidence interval based on the sample data, the preset total standard deviation, and the preset total confidence level, and to determine the target area image retention period based on the target area confidence interval and the number of imaging devices in the target area; wherein, the target area confidence interval is used to characterize the size of image data collected by the imaging devices in the target area; The target region image retention period determination module includes: The division result determination unit is used to determine the division result of the sub-region to which the shooting device belongs within the target area; A sub-region information determination unit is used to determine the image confidence intervals of at least two sub-regions and the number of imaging devices within each sub-region; wherein, the image confidence interval is used to characterize the size of image data acquired by the imaging devices within the sub-region; The sub-region confidence parameter determination unit is used to determine the sub-region confidence parameter based on the image confidence interval; The sub-region image retention period configuration unit is used to configure the sub-region image retention period based on the sub-region confidence parameters, the number of shooting devices, the target region image retention period, and the target region confidence parameters.

7. A computer-readable medium having a computer program stored thereon, characterized in that, When the program is executed by the processor, it implements the configuration method for the image retention period as described in any one of claims 1-5.

8. An electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the method for configuring the image retention period as described in any one of claims 1-5.

Citation Information

Patent Citations

  • Audio saving method and mobile terminal

    CN106937001A

  • Memory management for complex image analysis

    US20200167891A1