




技术领域technical field
本申请实施例涉及图像清理技术领域,尤其涉及一种图像留存期的配置方法、装置、介质及电子设备。The embodiments of the present application relate to the technical field of image cleaning, and in particular to a configuration method, device, medium, and electronic equipment for an image retention period.
背景技术Background technique
当前平安城市项目逐渐趋向于海量接入,大量前端图片接入的不确定性,还有图片接入的瞬时突发性,给图片存储清理带来了极大的困难。由于每天接入的图片总大小都不一定,当存储空间固定,留存期设置确定后,可能会出现留存期还未到达,存储空间已被占满的问题。这样会造成新的图片数据接入无法写入存储,最终导致数据接入失败。The current safe city project is gradually tending to mass access, the uncertainty of a large number of front-end image access, and the instantaneous and sudden nature of image access have brought great difficulties to image storage and cleaning. Since the total size of the pictures accessed every day is not constant, when the storage space is fixed and the storage period is set, there may be a problem that the storage space is full before the storage period is reached. This will cause the new picture data access to fail to be written to the storage, and eventually lead to data access failure.
当前图像留存期是手动配置的,固定不变。清理策略为:每天定时扫描存储容量,若所占用的存储空间满足开始清理的存储容量占比且也超过留存期,则开始清理最老的图片,按天清理,直到达到结束清理的存储容量占比后停止清理。The current image retention period is manually configured and fixed. The cleaning strategy is: scan the storage capacity regularly every day. If the occupied storage space meets the storage capacity ratio of the start cleaning and exceeds the retention period, then start to clean up the oldest pictures, and clean up on a daily basis until the storage capacity ratio of the end cleaning is reached. After that stop cleaning.
这种方式,图像留存期是固定的,无法满足图片大小和图片量动态变化造成的图片总大小突发情况下的图片存储。In this way, the image retention period is fixed, which cannot meet the image storage in the case of a sudden change in the total size of the image caused by the dynamic change of the image size and image volume.
发明内容Contents of the invention
本申请实施例提供一种图像留存期的配置方法、装置、介质及电子设备,可以动态计算目标区域图像留存期。使得图像留存期更为合理,避免了出现未达到清理条件存储容量就占满的情况。Embodiments of the present application provide a method, device, medium, and electronic device for configuring an image retention period, which can dynamically calculate the retention period of an image in a target area. This makes the image retention period more reasonable and avoids the situation where the storage capacity is full before the cleaning condition is met.
第一方面,本申请实施例提供了一种图像留存期的配置方法,该方法包括:In the first aspect, the embodiment of the present application provides a method for configuring an image retention period, the method includes:
获取目标区域内拍摄设备采集的图像数据,确定样本数据;Obtain the image data collected by the shooting equipment in the target area, and determine the sample data;
基于所述样本数据、预设总标准偏差和预设总置信度,计算得到目标区域置信区间,并基于所述目标区域置信区间和目标区域拍摄设备数量,确定目标区域图像留存期;其中,所述目标区域置信区间用于表征目标区域内拍摄设备采集的图像数据大小。Based on the sample data, the preset total standard deviation and the preset total confidence, calculate the target area confidence interval, and determine the target area image retention period based on the target area confidence interval and the number of shooting devices in the target area; wherein, the target area image retention period is determined; The confidence interval of the target area is used to characterize the size of the image data collected by the shooting device in the target area.
第二方面,本申请实施例提供了一种图像留存期的配置装置,该装置包括:In the second aspect, the embodiment of the present application provides an image retention period configuration device, the device includes:
样本数据确定模块,获取目标区域内拍摄设备采集的图像数据,确定样本数据;The sample data determination module acquires the image data collected by the shooting equipment in the target area, and determines the sample data;
目标区域图像留存期确定模块,用于基于所述样本数据、预设总标准偏差和预设总置信度,计算得到目标区域置信区间,并基于所述目标区域置信区间和目标区域拍摄设备数量,确定目标区域图像留存期;其中,所述目标区域置信区间用于表征目标区域内拍摄设备采集的图像数据大小。The target area image retention period determination module is used to calculate the confidence interval of the target area based on the sample data, the preset total standard deviation and the preset total confidence level, and based on the target area confidence interval and the number of shooting devices in the target area, Determine the target area image retention period; wherein, the target area confidence interval is used to characterize the size of the image data collected by the shooting device in the target area.
第三方面,本申请实施例提供了一种计算机可读介质,其上存储有计算机程序,该程序被处理器执行时实现如本申请实施例所述的图像留存期的配置方法。In a third aspect, the embodiment of the present application provides a computer-readable medium on which a computer program is stored, and when the program is executed by a processor, the method for configuring the image retention period as described in the embodiment of the present application is implemented.
第四方面,本申请实施例提供了一种电子设备,包括存储器,处理器及存储在存储器上并可在处理器运行的计算机程序,所述处理器执行所述计算机程序时实现如本申请实施例所述的图像留存期的配置方法。In the fourth aspect, the embodiment of the present application provides an electronic device, including a memory, a processor, and a computer program stored on the memory and executable by the processor, and when the processor executes the computer program, the computer program implemented in the present application is implemented. How to configure the image retention period described in the example.
本申请实施例所提供的技术方案,获取目标区域内拍摄设备采集的图像数据,确定样本数据,基于样本数据、预设总标准偏差和预设总置信度,计算得到目标区域置信区间,并基于目标区域置信区间和目标区域拍摄设备数量,确定目标区域图像留存期。本技术方案,可以动态计算目标区域图像留存期。使得图像留存期更为合理,避免了出现未达到清理条件存储容量就占满的情况。The technical solution provided by the embodiment of the present application obtains the image data collected by the shooting equipment in the target area, determines the sample data, and calculates the confidence interval of the target area based on the sample data, the preset total standard deviation and the preset total confidence degree, and based on The confidence interval of the target area and the number of shooting devices in the target area determine the image retention period of the target area. This technical solution can dynamically calculate the retention period of the image in the target area. This makes the image retention period more reasonable and avoids the situation where the storage capacity is full before the cleaning condition is met.
附图说明Description of drawings
图1是本申请实施例一提供的图像留存期的配置方法的流程图;FIG. 1 is a flowchart of a method for configuring an image retention period provided in Embodiment 1 of the present application;
图2是本申请实施例二提供的图像留存期的配置过程的示意图;FIG. 2 is a schematic diagram of the configuration process of the image retention period provided in
图3是本申请实施例二提供的子区域划分的示意图;FIG. 3 is a schematic diagram of sub-region division provided by
图4是本申请实施例三提供的图像留存期的配置装置的结构示意图;FIG. 4 is a schematic structural diagram of an image retention period configuration device provided in Embodiment 3 of the present application;
图5是本申请实施例五提供的一种电子设备的结构示意图。FIG. 5 is a schematic structural diagram of an electronic device provided in Embodiment 5 of the present application.
具体实施方式Detailed ways
下面结合附图和实施例对本申请作进一步的详细说明。可以理解的是,此处所描述的具体实施例仅仅用于解释本申请,而非对本申请的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与本申请相关的部分而非全部结构。The application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present application, but not to limit the present application. In addition, it should be noted that, for the convenience of description, only some structures related to the present application are shown in the drawings but not all structures.
在更加详细地讨论示例性实施例之前应当提到的是,一些示例性实施例被描述成作为流程图描绘的处理或方法。虽然流程图将各步骤描述成顺序的处理,但是其中的许多步骤可以被并行地、并发地或者同时实施。此外,各步骤的顺序可以被重新安排。当其操作完成时所述处理可以被终止,但是还可以具有未包括在附图中的附加步骤。所述处理可以对应于方法、函数、规程、子例程、子程序等等。Before discussing the exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although the flowcharts describe the steps as sequential processing, many of the steps may be performed in parallel, concurrently, or simultaneously. Additionally, the order of steps may be rearranged. The process may be terminated when its operations are complete, but may also have additional steps not included in the figure. The processing may correspond to a method, function, procedure, subroutine, subroutine, or the like.
实施例一Embodiment one
图1是本申请实施例一提供的图像留存期的配置方法的流程图,本实施例可适用于对图像留存期进行动态设置的情况,该方法可以由本申请实施例所提供的图像留存期的配置装置执行,该装置可以由软件和/或硬件的方式来实现,并可集成于用于存储空间清理的智能终端等设备中。Figure 1 is a flow chart of the configuration method of the image retention period provided in Embodiment 1 of the present application. This embodiment is applicable to the situation where the image retention period is dynamically set. This method can be determined by the image retention period provided in the embodiment of the application The configuration device is executed, and the device can be implemented by software and/or hardware, and can be integrated into devices such as smart terminals used for storage space cleaning.
如图1所示,所述图像留存期的配置方法包括:As shown in Figure 1, the configuration method of the image retention period includes:
S110、获取目标区域内拍摄设备采集的图像数据,确定样本数据;S110. Obtain the image data collected by the shooting device in the target area, and determine the sample data;
其中,拍摄设备可以是相机、前端IPC、摄像头等各种设备,用于采集图像数据,并将图像数据上传至存储设备进行存储。Wherein, the photographing device may be various devices such as a camera, a front-end IPC, and a camera, and is used for collecting image data and uploading the image data to a storage device for storage.
在本方案中,目标区域可以是指由所有拍摄设备的分布位置构成的区域。In this solution, the target area may refer to an area formed by the distribution positions of all shooting devices.
在本实施例中,每个拍摄设备上报的结构化属性数据中可以携带图像大小,如果拍摄设备上报的每条数据都携带了图像大小,可以根据上报的数据时间和图像大小,得出实际每个拍摄设备每天接入的图像大小和所有拍摄设备每天接入的图像总大小。并按周每天进行记录,将获得的图像数据作为样本数据。其中,图像大小用于表征图像文件占据存储空间的多少,比如文件大小100k,指的是这个图像文件占用存储空间大小是100KB。In this embodiment, the structured attribute data reported by each shooting device can carry the image size. If each piece of data reported by the shooting device carries the image size, the actual The size of images accessed by a shooting device every day and the total size of images accessed by all shooting devices every day. And record it every day of the week, and use the obtained image data as sample data. Wherein, the image size is used to represent how much storage space the image file occupies, for example, the file size is 100k, which means that the storage space occupied by the image file is 100KB.
S120、基于所述样本数据、预设总标准偏差和预设总置信度,计算得到目标区域置信区间,并基于所述目标区域置信区间和目标区域拍摄设备数量,确定目标区域图像留存期;其中,所述目标区域置信区间用于表征目标区域内拍摄设备采集的图像数据大小。S120. Calculate the confidence interval of the target area based on the sample data, the preset total standard deviation, and the preset total confidence level, and determine the target area image retention period based on the target area confidence interval and the number of shooting devices in the target area; wherein , the confidence interval of the target area is used to characterize the size of the image data collected by the shooting device in the target area.
其中,总标准偏差和总置信度可以根据图像数据的数量进行设置。例如,图像数据的数量为100,可以设置总标准偏差为10%;图像数据的数量为500,可以设置总标准偏差为5%;图像数据的数量为1200,可以设置总标准偏差为3%。其中,总置信度可以设置为90%。Wherein, the total standard deviation and the total confidence can be set according to the amount of image data. For example, if the number of image data is 100, the total standard deviation can be set to 10%; if the number of image data is 500, the total standard deviation can be set to 5%; Wherein, the total confidence level can be set as 90%.
在本方案中,目标区域置信区间可以用于表征目标区域内拍摄设备采集的图像数据大小,目标区域置信区间满足总置信度要求。例如,目标区域置信区间是(1000,2000),即拍摄设备获得的图像数据的大小在1000-2000范围内。即目标区域置信区间为(1000,2000),总置信度为90%。In this solution, the confidence interval of the target area can be used to represent the size of the image data collected by the shooting device in the target area, and the confidence interval of the target area meets the requirements of the total confidence. For example, the confidence interval of the target area is (1000, 2000), that is, the size of the image data obtained by the shooting device is within the range of 1000-2000. That is, the confidence interval of the target area is (1000, 2000), and the total confidence level is 90%.
可选的,假设目标区域内拍摄设备采集的图像数据其平均值为μ,总标准偏差为δ,总置信度为α,则目标区域置信区间为(μ-Zα/2σ,μ+Zα/2σ)。其中,Zα/2σ即为对应的总标准偏差。Optionally, assuming that the average value of the image data collected by the shooting equipment in the target area is μ, the total standard deviation is δ, and the total confidence is α, then the confidence interval of the target area is (μ-Zα/2 σ,μ+Zα/2 σ). Among them, Zα/2 σ is the corresponding total standard deviation.
其中,图像留存期可以用于表征存储设备中存储的图像保留期限。若所占用的存储空间满足开始清理的存储容量占比且也超过图像留存期时,则开始清理最老的图像。其中,开始清理的存储容量占比可以根据存储设备的容量进行设定。其中,图像留存期的配置需要满足最小留存期的要求。最小留存期可以根据存储设备的需求进行设定。Wherein, the image retention period may be used to represent the retention period of images stored in the storage device. If the occupied storage space satisfies the proportion of the storage capacity to be cleaned up and the image retention period is exceeded, the oldest image will be cleaned up. Wherein, the proportion of the storage capacity to be cleaned up can be set according to the capacity of the storage device. Among them, the configuration of the image retention period needs to meet the requirements of the minimum retention period. The minimum retention period can be set according to the requirements of the storage device.
可选的,假设目标区域拍摄设备数量为X,目标区域置信区间是(1000,2000)则接入图片总大小为1500X。假设分配的存储容量为Y,则目标区域图像留存期为Y/1500X。Optionally, assuming that the number of shooting devices in the target area is X, and the confidence interval of the target area is (1000, 2000), the total size of the access pictures is 1500X. Assuming that the allocated storage capacity is Y, the image retention period of the target area is Y/1500X.
在本实施例中,可以根据置信度高的目标区域置信区间来计算目标区域图像留存期,并设置目标区域图像留存期。一般而言,若目标区域图像置信区间往大了调,则目标区域图像留存期要减少;若目标区域置信区间往小了调,则目标区域图像留存期要增加。例如,目标区域图像置信区间(1000X,2000X),一周内若超过四天的天数都落在该目标区域置信区间内,则认为初始估计的总置信度和目标区域置信区间是较为可靠的;若落在目标区域图像置信区间外的多,总置信度偏低,则认为初始估计的目标区域置信区间不可靠。In this embodiment, the target area image retention period may be calculated according to the target area confidence interval with high confidence, and the target area image retention period may be set. Generally speaking, if the confidence interval of the target region image is adjusted larger, the retention period of the target region image will be reduced; if the target region confidence interval is adjusted smaller, the retention period of the target region image will be increased. For example, the image confidence interval of the target area (1000X, 2000X), if more than four days in a week fall within the confidence interval of the target area, it is considered that the total confidence of the initial estimate and the confidence interval of the target area are relatively reliable; if If many fall outside the image confidence interval of the target area and the total confidence is low, the initially estimated confidence interval of the target area is considered to be unreliable.
目标区域置信区间是可靠的,则无需调整。If the target region confidence interval is reliable, no adjustment is required.
目标区域置信区间不可靠分为两种情况。若落在(0,1000X)中较多,则目标区域置信区间要往小调整,若落在(2000X,∞)中较多,则目标区域置信区间要往大调整。There are two cases where the target region confidence interval is unreliable. If it falls more in (0,1000X), then the confidence interval of the target area should be adjusted smaller; if it falls more in (2000X, ∞), the confidence interval of the target area should be adjusted larger.
已知所有拍摄设备每天接入的图像总大小,按照一定周期计算得出合理的目标区域置信区间,从而计算得出更为合理的图像留存期,实现动态调整图像留存期。Knowing the total size of images accessed by all shooting devices every day, a reasonable confidence interval of the target area can be calculated according to a certain period, so as to calculate a more reasonable image retention period and realize dynamic adjustment of the image retention period.
本申请实施例所提供的技术方案,获取目标区域内拍摄设备采集的图像数据,确定样本数据,基于样本数据、预设总标准偏差和预设总置信度,计算得到目标区域置信区间,并基于目标区域置信区间和目标区域拍摄设备数量,确定目标区域图像留存期。通过执行本技术方案,可以动态计算目标区域图像留存期。使得图像留存期更为合理,避免了出现未达到清理条件存储容量就占满的情况。The technical solution provided by the embodiment of the present application obtains the image data collected by the shooting equipment in the target area, determines the sample data, and calculates the confidence interval of the target area based on the sample data, the preset total standard deviation and the preset total confidence degree, and based on The confidence interval of the target area and the number of shooting devices in the target area determine the image retention period of the target area. By implementing the technical solution, the retention period of the image in the target area can be dynamically calculated. This makes the image retention period more reasonable and avoids the situation where the storage capacity is full before the cleaning condition is met.
实施例二Embodiment two
图2是本申请实施例二提供的图像留存期的配置过程的示意图,本实施例二在实施例一的基础上进行进一步地优化。具体优化为:基于所述目标区域置信区间和目标区域拍摄设备数量,确定目标区域图像留存期,包括:确定对目标区域内拍摄设备所属子区域的划分结果;确定至少两个子区域的图像置信区间和子区域内拍摄设备数量;其中,所述图像置信区间用于表征子区域内拍摄设备采集的图像数据大小;根据至少两个子区域的图像置信区间和子区域内拍摄设备数量,配置子区域图像留存期。其中,未在本实施例中详尽描述的内容详见实施例一。如图2所示,该方法包括以下步骤:FIG. 2 is a schematic diagram of the configuration process of the image retention period provided by the second embodiment of the present application. The second embodiment is further optimized on the basis of the first embodiment. The specific optimization is: based on the confidence interval of the target area and the number of shooting devices in the target area, determine the image retention period of the target area, including: determining the division result of the sub-area to which the shooting equipment belongs in the target area; determining the image confidence intervals of at least two sub-areas and the number of shooting devices in the sub-region; wherein, the image confidence interval is used to characterize the size of the image data collected by the shooting device in 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, configure the sub-region image retention period . Wherein, details that are not described in detail in this embodiment can be found in Embodiment 1. As shown in Figure 2, the method includes the following steps:
S210、确定对目标区域内拍摄设备所属子区域的划分结果;S210. Determine the division result of the sub-area to which the shooting device belongs in the target area;
在本方案中,子区域可以是由部分拍摄设备的分布位置构成的区域。目标区域包括至少两个子区域。In this solution, the sub-area may be an area formed by the distribution positions of some shooting devices. The target area includes at least two sub-areas.
在本实施例中,可以根据拍摄设备采集的图像数据大小或者拍摄设备的分布位置对目标区域内的拍摄设备所属子区域进行划分。其中,对目标区域内的拍摄设备所属子区域可以预先进行划分,也可以实时进行划分。In this embodiment, the sub-area to which the photographing device belongs in the target area may be divided according to the size of the image data collected by the photographing device or the distribution position of the photographing device. Wherein, the sub-area to which the photographing device belongs in the target area may be divided in advance, or may be divided in real time.
在本技术方案中,可选的,确定目标区域内的拍摄设备所属的子区域的划分结果,包括:In this technical solution, optionally, determining the division result of the sub-area to which the shooting device in the target area belongs includes:
获取目标区域内拍摄设备的分布位置和采集的图像数据;Obtain the distribution position of the shooting equipment and the collected image data in the target area;
根据所述分布位置和图像数据,确定拍摄设备所属子区域的划分结果,得到至少两个子区域。According to the distribution position and the image data, the division result of the sub-area to which the shooting device belongs is determined, and at least two sub-areas are obtained.
在本方案中,已知每个拍摄设备每天接入的图像大小,我们可以将图像大小相近的拍摄设备划分为同一个小区域。例如,把图像大小为(0,1000)的划分为子区域1,图像大小为(1000,2000)的划分为子区域2,以此类推,划分为不同的子区域。其中,1个拍摄设备每天接入的图像大小也是不同的,所以按照图像大小相近的拍摄设备进行划分的子区域可能会随着时间的推移而发生改变,逐渐趋于稳定。In this solution, given the size of the images that each shooting device receives every day, we can divide the shooting devices with similar image sizes into the same small area. For example, the image size of (0,1000) is divided into sub-region 1, the image size of (1000,2000) is divided into
在本实施例中,一个区域内,人或车经过其中一个拍摄设备,大概率也会经过另外几个拍摄设备,利用该特性也可以将一定范围的拍摄设备划分到一个子区域,以此可划分得到不同的子区域1、子区域2等。优选的,可以基于拍摄设备的分布位置对拍摄设备所属子区域进行划分。划分过程中可以参考基于图像大小进行子区域的划分结果,得到最终的子区域划分。In this embodiment, if a person or vehicle passes by one of the shooting devices in an area, there is a high probability that they will pass by several other shooting devices. Using this feature, a certain range of shooting devices can also be divided into a sub-area, so that The division results in different sub-areas 1, sub-areas 2, and so on. Preferably, the sub-regions to which the shooting devices belong can be divided based on the distribution positions of the shooting devices. During the division process, the result of sub-region division based on the image size can be referred to to obtain the final sub-region division.
示例性的,图3是本申请实施例二提供的子区域划分的示意图,如图3所示,假设目标区域内有21个拍摄设备,按照分布位置将一定范围内拍摄设备进行划分为:区域1为设备1/2/3/4,区域2为设备8/9/11/12/13/17,区域3为设备18/19/21,区域4为设备5/6/7/10/14/15/16/20。Exemplarily, FIG. 3 is a schematic diagram of sub-area division provided by
按照图像大小可以将相近的拍摄设备划分为:区域1为设备1/21,区域2为设备2/3/4/8/9,区域3为设备5/6/10/15/16/17/18/19/20,区域4为设备7/11/12/13/14。According to the image size, similar shooting equipment can be divided into: area 1 is equipment 1/21,
根据分布位置划分为主,并结合图像大小划分,则最终的子区域划分为:区域1为设备1/2/3/4/8/9,区域2为设备7/11/12/13/14,区域3为设备17/18/19/21,区域4为设备5/6/10/15/16/20。According to the distribution position, combined with the image size, the final sub-area is divided into: area 1 is device 1/2/3/4/8/9,
通过对子区域进行划分,可以动态计算每个子区域的图像留存期。使得图像留存期更为合理,避免了出现未达到清理条件存储容量就占满的情况。By dividing sub-regions, the image retention period of each sub-region can be dynamically calculated. This makes the image retention period more reasonable and avoids the situation where the storage capacity is full before the cleaning condition is met.
S220、确定至少两个子区域的图像置信区间和子区域内拍摄设备数量;其中,所述图像置信区间用于表征子区域内拍摄设备采集的图像数据大小;S220. Determine the image confidence intervals of at least two sub-areas and the number of shooting devices in the sub-areas; wherein, the image confidence intervals are used to represent the size of image data collected by the shooting devices in the sub-areas;
在本方案中,可以基于子区域内拍摄设备采集的图像数据、以及预先确定的标准偏差和置信度,计算得到子区域置信区间,以用于表征该子区域内拍摄设备采集的图像数据大小。其中,标准偏差和置信度可以根据图像数据的数量进行设置。In this solution, based on the image data collected by the shooting device in the sub-region, and the predetermined standard deviation and confidence level, the confidence interval of the sub-region can be calculated to characterize the size of the image data collected by the shooting device in the sub-region. Among them, the standard deviation and the confidence level can be set according to the amount of image data.
其中,不同子区域内拍摄设备数量是不同的,可以根据子区域的划分结果确定各个子区域内拍摄设备数量。Wherein, the number of shooting devices in different sub-regions is different, and the number of shooting devices in each sub-region can be determined according to the division result of the sub-regions.
S230、根据至少两个子区域的图像置信区间和子区域内拍摄设备数量,配置子区域图像留存期。S230. Configure a sub-region image retention period according to the image confidence intervals of at least two sub-regions and the number of shooting devices in the sub-regions.
在本方案中,图像置信区间大的子区域所需的存储空间要大,那么可以给该子区域设置更大的图像留存期;图像置信区间小的子区域所需的存储空间要小,那么可以给该子区域设置更小的图像留存期。In this scheme, the storage space required for a sub-region with a large image confidence interval is large, so a larger image retention period can be set for this sub-region; the storage space required for a sub-region with a small image confidence interval is small, then A smaller image retention period can be set for this sub-region.
在本实施例中,可以将至少两个子区域的图像置信区间和子区域内拍摄设备数量进行加权求和,构建待求解图像留存期方程,配置各个子区域的图像留存期。In this embodiment, the image confidence intervals of at least two sub-regions and the number of shooting devices in the sub-regions can be weighted and summed to construct an image retention period equation to be solved, and configure the image retention period of each sub-region.
在本技术方案中,可选的,根据所述图像置信区间和子区域内拍摄设备数量,配置子区域图像留存期,包括:In this technical solution, optionally, according to the image confidence interval and the number of shooting devices in the sub-area, configure the sub-area image retention period, including:
根据所述图像置信区间,确定子区域置信参数;Determine sub-region confidence parameters according to the image confidence interval;
基于所述子区域置信参数、拍摄设备数量、目标区域图像留存期以及目标区域置信参数,配置子区域图像留存期。Based on the sub-region confidence parameters, the number of shooting devices, the target region image retention period, and the target region confidence parameters, the sub-region image retention period is configured.
在本方案中,子区域置信参数可以是指子区域图像置信区间的中间值。例如,图像置信区间为(800,1200),则子区域置信参数可以是1000。子区域图像置信区间的中间值能够代表该子区域内拍摄设备采集的图像数据的大小。In this solution, the subregion confidence parameter may refer to an intermediate value of the confidence interval of the subregion image. For example, if the image confidence interval is (800, 1200), then the sub-region confidence parameter may be 1000. The median value of the image confidence interval of the sub-region can represent the size of the image data collected by the shooting device in the sub-region.
其中,拍摄设备数量包括子区域拍摄设备数量和目标区域拍摄设备数量。Wherein, the number of shooting devices includes the number of shooting devices in the sub-area and the number of shooting devices in the target area.
在本实施例中,目标区域置信参数可以是指目标区域图像置信区间的中间值。例如,目标区域图像置信区间为(1500,2000),则目标区域置信参数可以是1750。目标区域置信区间可以根据目标区域内拍摄设备采集的图像数据以及预先确定的总标准偏差和总置信度进行计算得到。In this embodiment, the target region confidence parameter may refer to an intermediate value of the target region image confidence interval. For example, if the target region image confidence interval is (1500, 2000), then the target region confidence parameter may be 1750. The confidence interval of the target area can be calculated according to the image data collected by the shooting device in the target area and the predetermined total standard deviation and total confidence.
其中,目标区域图像留存期可以根据目标区域内拍摄设备获取的图像数据,以及分配的存储容量进行计算得到。Wherein, the retention period of the image in the target area can be calculated according to the image data acquired by the shooting device in the target area and the allocated storage capacity.
在本方案中,可以根据目标区域拍摄设备数量、目标区域置信参数以及目标区域图像留存期,计算得到总存储图像大小,并基于总存储图像大小和子区域置信参数、子区域拍摄设备数量,动态配置子区域图像留存期。In this solution, the total stored image size can be calculated according to the number of shooting devices in the target area, the confidence parameters of the target area, and the image retention period of the target area, and dynamically configured based on the total stored image size, confidence parameters of sub-regions, and the number of shooting devices in sub-regions 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, the image retention period of each sub-region can be dynamically calculated. This makes the image retention period more reasonable and avoids the situation where the storage capacity is full before the cleaning condition is met.
在本技术方案中,可选的,基于所述子区域置信参数、拍摄设备数量、目标区域图像留存期以及目标区域置信参数,配置子区域图像留存期,包括:In this technical solution, optionally, based on the sub-region confidence parameters, the number of shooting devices, the target region image retention period and the target region confidence parameters, configure the sub-region image retention period, including:
基于所述子区域置信参数、拍摄设备数量、目标区域图像留存期以及目标区域置信参数,通过预设留存期配置模型构建子区域的待求解图像留存期方程;Based on the confidence parameters of the sub-region, the number of shooting devices, the image retention period of the target region, and the confidence parameter of the target region, the image retention period equation to be solved for the sub-region is constructed through a preset retention period configuration model;
依据预设留存期约束条件,对所述待求解图像留存期方程进行求解,确定子区域图像留存期。Solving the image retention equation to be solved according to the preset retention period constraint conditions to determine the sub-region image retention period.
其中,预设留存期约束条件可以是指子区域的图像留存期需要满足的条件,可以根据目标区域图像留存期进行设置。例如,假设子区域图像留存期为z1、z2、z3、z4,目标区域图像留存期为Z,则留存期约束条件可以设置为z1<z2<Z,z4>z3>Z。Wherein, the preset retention period constraint condition may refer to a condition that the image retention period of the sub-area needs to meet, and may be set according to the image retention period of the target area. For example, assuming that the retention periods of sub-region images are z1, z2, z3, z4, and the retention period of target region images is Z, the retention period constraints can be set as z1<z2<Z, z4>z3>Z.
在本方案中,可以将各子区域置信参数和子区域拍摄设备数量进行加权求和,以及将目标区域置信参数、目标区域拍摄设备数量和目标区域图像留存期进行加权求和,共同构建待求解图像留存期方程。例如,假设目标区域包括4个子区域,目标区域内拍摄设备为X,目标区域图像留存期为Z,目标区域置信区间为(1500,2000),目标区域置信参数为1750。再假设子区域1的拍摄设备数为x1,图像置信区间为(800,1200);子区域2的拍摄设备数为x2,图像置信区间为(1200,1800);子区域3的拍摄设备数为x3,图像置信区间为(1800,2200);子区域4的拍摄设备数为x4,图像置信区间为(2200,2800)。每个子区域的图像留存期为z1、z2、z3、z4。构建的待求解图像留存期方程为:In this scheme, the weighted summation of the confidence parameters of each sub-region and the number of shooting devices in the sub-regions, and the weighted summation of the confidence parameters of the target region, the number of shooting devices in the target region, and the retention period of the image in the target region can be carried out to jointly construct the image to be solved Retention Equation. For example, suppose the target area includes 4 sub-areas, the shooting device in the target area is X, the image retention period of the target area is Z, the confidence interval of the target area is (1500, 2000), and the confidence parameter of the target area is 1750. Then assume that the number of shooting devices in sub-region 1 is x1, and the image confidence interval is (800, 1200); the number of shooting devices in
1000x1z1+1500x2z2+2000x3z3+2500x4z4=1750XZ;1000x1z1+1500x2z2+2000x3z3+2500x4z4=1750XZ;
x1+x2+x3+x4=X;x1+x2+x3+x4=X;
z1<z2<Z,z4>z3>Z;z1<z2<Z, z4>z3>Z;
其中,1000、1500、2000、2500分为为各个子区域的图像置信参数,基于图像置信区间确定的。z1<z2<Z,z4>z3>Z为预设留存期约束条件。Among them, 1000, 1500, 2000, and 2500 are divided into image confidence parameters for each sub-region, which are determined based on the image confidence interval. z1<z2<Z, z4>z3>Z is the default retention period constraints.
通过随机值代入法可以算出子区域1和子区域2要缩短多少天的图像留存期,子区域3和子区域4要增加多少天的图像留存期。The random value substitution method can be used to calculate how many days the image retention period of sub-region 1 and
通过动态计算每个子区域的图像留存期。使得图像留存期更为合理,避免了出现未达到清理条件存储容量就占满的情况。By dynamically calculating the image retention period of each sub-region. This makes the image retention period more reasonable and avoids the situation where the storage capacity is full before the cleaning condition is met.
在本技术方案中,可选的,在配置子区域图像留存期之后,所述方法还包括:In this technical solution, optionally, after configuring the sub-region image retention period, the method further includes:
若子区域内存在目标拍摄设备,则确定所述目标拍摄设备所属的子区域;其中,所述目标拍摄设备是根据拍摄设备访问次数、图像访问次数或拍摄设备重要程度进行确定的;If there is a target shooting device in the sub-area, then determine the sub-area to which the target shooting device belongs; wherein, the target shooting device is determined according to the number of visits to the shooting device, the number of image visits, or the importance of the shooting device;
根据所述目标拍摄设备所属的子区域,按照预设配置规则调整子区域图像留存期。According to the sub-area to which the target shooting device belongs, the sub-area image retention period is adjusted according to preset configuration rules.
在本方案中,用户操作日志记录了用户的操作,根据用户对拍摄设备的操作得出哪些拍摄设备用户经常关注,可以将其标记为目标拍摄设备;存储在存储设备中的图像,每张图像访问量初始值为0,每被读取一次则访问量累计加1。每天定时统计一天内图像访问量情况,得到访问量超过一定限定值的图像对应的拍摄设备,可以将其标记为目标拍摄设备;用户重点关注的拍摄设备可以人为直接确认为重要拍摄设备,可以手动将其标记为目标拍摄设备。In this solution, the user operation log records the user's operations, and according to the user's operation on the shooting device, which shooting device the user often pays attention to can be marked as the target shooting device; the image stored in the storage device, each image The initial value of the number of visits is 0, and the number of visits will increase by 1 every time it is read. Regularly count the number of image visits in a day every day, and get the shooting device corresponding to the image with the number of visits exceeding a certain limit, which can be marked as the target shooting device; the shooting device that the user pays attention to can be directly confirmed as an important shooting device manually Mark it as the target capture device.
其中,在配置子区域图像留存期后,若用户愿意牺牲非目标拍摄设备的图像留存期时长,希望目标拍摄设备所属子区域的图像留存期时长长一点,则可以根据预设配置规则调整子区域的图像留存期。Among them, after configuring the sub-area image retention period, if the user is willing to sacrifice the length of the image retention period of the non-target shooting device and wants the image retention period of the sub-region to which the target shooting device belongs to be longer, then the sub-region can be adjusted according to the preset configuration rules image retention period.
在本实施例中,可以将目标拍摄设备匹配留存期较长的小区域中的拍摄设备。如果匹配度高于90%,则不进行图像留存期调整;如果匹配度小于90%,可以将目标拍摄设备跟每个小区域中的拍摄设备进行匹配,若图像留存期缩短的小区域的匹配度有高于图像留存期增加的小区域的匹配度的情况,则将匹配度高的小区域的图像留存期随机增加到用户的期望值,而对应匹配度低的小区域就根据计算减小图像留存期。例如,子区域1的图像留存期为5天、子区域2的图像留存期为7天,目标拍摄设备所属子区域为子区域1,则可以根据用户期望值调整子区域1的图像留存期为7天,调整子区域2的图像留存期为5天。In this embodiment, the target shooting device can be matched with shooting devices in a small area with a long retention period. If the matching degree is higher than 90%, the image retention period adjustment will not be performed; if the matching degree is less than 90%, the target shooting device can be matched with the shooting device in each small area, if the matching of the small area with shortened image retention period If the matching degree is higher than the matching degree of the small area with increased image retention period, the image retention period of the small area with high matching degree is randomly increased to the user's expectation, and the corresponding small area with low matching degree is reduced according to the calculation. retention period. For example, if the image retention period of sub-area 1 is 5 days, the image retention period of
根据重要拍摄设备所属子区域情况,动态调整子区域的图像留存期。最终使得部分数据的图像留存期合理增长。避免了出现未达到清理条件存储容量就占满的情况。According to the situation of the sub-region to which important shooting equipment belongs, dynamically adjust the image retention period of the sub-region. Finally, the image retention period of some data can be reasonably increased. It avoids the situation that the storage capacity is full before the cleaning condition is met.
在本技术方案中,可选的,在配置子区域图像留存期之后,所述方法还包括:In this technical solution, optionally, after configuring the sub-region image retention period, the method further includes:
若子区域内的拍摄设备数量发生变化,则确定变化拍摄设备数量和初始拍摄设备数量;If the number of shooting equipment in the sub-area changes, determine the changed number of shooting equipment and the initial number of shooting equipment;
按照预设留存期调整公式,基于所述变化拍摄设备数量、初始拍摄设备数量、子区域图像留存期和预先确定的图像数据,计算得到最终的子区域图像留存期。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.
在本方案中,当进行拍摄设备的调整,增加或减少拍摄设备的时,由于知道该拍摄设备所处的子区域,而该子区域内拍摄设备平均一天的图像大小可知且较为稳定(即子区域置信区间),可以估计该值也为增加或减少拍摄设备的一天图像大小,计算出该子区域的图像留存期该如何调整。可选的,已知原来子区域中有初始拍摄设备数为a,一天图像大小为b,图像留存期设置为c,此时该子区域增加了拍摄设备为d。则1个拍摄设备一天图像大小为增加d个拍摄设备后一天增加的图像大小为最终计算所得子区域图像留存期为In this scheme, when the adjustment of the shooting equipment is carried out, when increasing or decreasing the number of the shooting equipment, since the sub-area where the shooting equipment is known, the image size of the shooting equipment in the sub-area is known and relatively stable (ie, the sub-area Regional confidence interval), it can be estimated that this value is also to increase or decrease the one-day image size of the shooting device, and calculate how to adjust the image retention period of the sub-region. Optionally, it is known that the number of initial shooting devices in the original sub-region is a, the image size of one day is b, and the image retention period is set as c. At this time, the number of shooting devices added to the sub-region is d. Then the image size of one shooting device per day is The image size increased one day after adding d shooting devices is The final calculated sub-region image retention period is
在本实施例中,由于拍摄设备增加,子区域图像留存期要增加,此时根据子区域图像留存期和图像接入大小计算要占用的存储容量,如果超过存储设备的容量,则发送告警消息,提醒用户需要对存储设备容量进行扩容。In this embodiment, due to the increase of shooting equipment, the retention period of sub-region images will increase. At this time, the storage capacity to be occupied is calculated according to the retention period of sub-region images and the size of image access. If the capacity of the storage device is exceeded, an alarm message will be sent to remind the user that the capacity of the storage device needs to be expanded.
当子区域中拍摄设备动态变化时,可根据该子区域的图像大小重新计算存储占用情况动态调整图像留存期。最终使得部分数据的图像留存期合理增长。避免了出现未达到清理条件存储容量就占满的情况。When the shooting equipment in the sub-area changes dynamically, the image retention period can be dynamically adjusted according to the image size of the sub-area by recalculating the storage occupancy. Finally, the image retention period of some data can be reasonably increased. It avoids the situation that the storage capacity is full before the cleaning condition is met.
本申请实施例所提供的技术方案,确定对目标区域内拍摄设备所属子区域的划分结果,并确定至少两个子区域的图像置信区间和子区域内拍摄设备数量;根据至少两个子区域的图像置信区间和子区域内拍摄设备数量,配置子区域的图像留存期。通过执行本技术方案对各拍摄设备进行子区域划分,动态计算每个子区域的图像留存期。使得图像留存期更为合理,避免了出现未达到清理条件存储容量就占满的情况。The technical solution provided by the embodiment of the present application determines the division result of the sub-area to which the shooting equipment belongs in the target area, and determines the image confidence interval of at least two sub-areas and the number of shooting equipment in the sub-area; according to the image confidence interval of at least two sub-areas and the number of shooting devices in the sub-area, configure the image retention period of the sub-area. By implementing the technical solution, each shooting device is divided into sub-regions, and the image retention period of each sub-region is dynamically calculated. This makes the image retention period more reasonable and avoids the situation where the storage capacity is full before the cleaning condition is met.
实施例三Embodiment three
图4是本申请实施例三提供的图像留存期的配置装置的结构示意图,如图4所示,图像留存期的配置装置包括:Fig. 4 is a schematic structural diagram of an image retention period configuration device provided in Embodiment 3 of the present application. As shown in Fig. 4, the image retention period configuration device includes:
样本数据确定模块410,获取目标区域内拍摄设备采集的图像数据,确定样本数据;The sample
目标区域图像留存期确定模块420,用于基于所述样本数据、预设总标准偏差和预设总置信度,计算得到目标区域置信区间,并基于所述目标区域置信区间和目标区域拍摄设备数量,确定目标区域图像留存期;其中,所述目标区域置信区间用于表征目标区域内拍摄设备采集的图像数据大小。The target area image retention
在本技术方案中,可选的,目标区域图像留存期确定模块420,包括:In this technical solution, optionally, the target area image retention
划分结果确定单元,用于确定对目标区域内拍摄设备所属子区域的划分结果;A division result determining unit, configured to determine the division result of the sub-area to which the photographing device belongs in the target area;
子区域信息确定单元,用于确定至少两个子区域的图像置信区间和子区域内拍摄设备数量;其中,所述图像置信区间用于表征子区域内拍摄设备采集的图像数据大小;A sub-region information determination unit, configured to determine 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 image data collected by the shooting devices in the sub-regions;
图像留存期配置单元,用于根据至少两个子区域的图像置信区间和子区域内拍摄设备数量,配置子区域图像留存期。The image retention period configuration unit is configured to configure the sub-region image retention period according to the image confidence intervals of at least two sub-regions and the number of shooting devices in the sub-regions.
在本技术方案中,可选的,图像留存期配置单元,包括In this technical solution, optionally, the image retention configuration unit includes
子区域置信参数确定子单元,用于根据所述图像置信区间,确定子区域置信参数;A sub-region confidence parameter determination subunit, configured to determine a sub-region confidence parameter according to the image confidence interval;
子区域图像留存期配置子单元,用于基于所述子区域置信参数、拍摄设备数量、目标区域图像留存期以及目标区域置信参数,配置子区域图像留存期。The sub-region image retention period configuration subunit is configured 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.
在本技术方案中,可选的,子区域图像留存期配置子单元,具体用于:In this technical solution, optionally, the sub-region image retention period configuration subunit is specifically used for:
基于所述子区域置信参数、拍摄设备数量、目标区域图像留存期以及目标区域置信参数,通过预设留存期配置模型构建子区域的待求解图像留存期方程;Based on the confidence parameters of the sub-region, the number of shooting devices, the image retention period of the target region, and the confidence parameter of the target region, the image retention period equation to be solved for the sub-region is constructed through a preset retention period configuration model;
依据预设留存期约束条件,对所述待求解图像留存期方程进行求解,确定子区域图像留存期。Solving the image retention equation to be solved according to the preset retention period constraint conditions to determine the sub-region image retention period.
在本技术方案中,可选的,划分结果确定单元,具体用于:In this technical solution, optionally, the division result determination unit is specifically used for:
获取目标区域内拍摄设备的分布位置和采集的图像数据;Obtain the distribution position of the shooting equipment and the collected image data in the target area;
根据所述分布位置和图像数据,确定拍摄设备所属子区域的划分结果,得到至少两个子区域。According to the distribution position and the image data, the division result of the sub-area to which the shooting device belongs is determined, and at least two sub-areas are obtained.
在本技术方案中,可选的,目标区域图像留存期确定模块420,还包括:In this technical solution, optionally, the target area image retention
目标拍摄设备确定单元,用于若子区域内存在目标拍摄设备,则确定所述目标拍摄设备所属的子区域;其中,所述目标拍摄设备是根据拍摄设备访问次数、图像访问次数或拍摄设备重要程度进行确定的;A target shooting device determination unit, configured to determine the sub-area to which the target shooting device belongs if there is a target shooting device in the sub-area; wherein, the target shooting device is determined according to the number of times the shooting device visits, the number of image accesses, or the importance of the shooting device determined;
子区域图像留存期调整单元,用于根据所述目标拍摄设备所属的子区域,按照预设配置规则调整子区域图像留存期。The sub-region image retention period adjustment unit is configured to adjust the sub-region image retention period according to preset configuration rules according to the sub-region to which the target shooting device belongs.
在本技术方案中,可选的,目标区域图像留存期确定模块420,还包括:In this technical solution, optionally, the target area image retention
拍摄设备数量确定单元,用于若子区域内的拍摄设备数量发生变化,则确定变化拍摄设备数量和初始拍摄设备数量;The unit for determining the number of shooting devices is used to determine the number of changing shooting devices and the initial number of shooting devices if the number of shooting devices in the sub-area changes;
子区域图像留存期计算单元,用于按照预设留存期调整公式,基于所述变化拍摄设备数量、初始拍摄设备数量、子区域图像留存期和预先确定的图像数据,计算得到最终的子区域图像留存期。The sub-region image retention period calculation unit is used to calculate and obtain the final sub-region image according to the preset retention period adjustment formula based on the number of changing shooting devices, the initial number of shooting devices, the sub-region image retention period and predetermined image data retention period.
上述产品可执行本申请实施例所提供的方法,具备执行方法相应的功能模块和有益效果。The above-mentioned products can execute the method provided by the embodiment of the present application, and have corresponding functional modules and beneficial effects for executing the method.
实施例四Embodiment four
本申请实施例还提供一种包含计算机可执行指令的介质,所述计算机可执行指令在由计算机处理器执行时用于执行一种图像留存期的配置方法,该方法包括:The embodiment of the present application also provides a medium containing computer-executable instructions, the computer-executable instructions are used to implement a method for configuring an image retention period when executed by a computer processor, and the method includes:
获取目标区域内拍摄设备采集的图像数据,确定样本数据;Obtain the image data collected by the shooting equipment in the target area, and determine the sample data;
基于所述样本数据、预设总标准偏差和预设总置信度,计算得到目标区域置信区间,并基于所述目标区域置信区间和目标区域拍摄设备数量,确定目标区域图像留存期;其中,所述目标区域置信区间用于表征目标区域内拍摄设备采集的图像数据大小。Based on the sample data, the preset total standard deviation and the preset total confidence, calculate the target area confidence interval, and determine the target area image retention period based on the target area confidence interval and the number of shooting devices in the target area; wherein, the target area image retention period is determined; The confidence interval of the target area is used to characterize the size of the image data collected by the shooting device in the target area.
介质——任何的各种类型的存储器设备或存储设备。术语“介质”旨在包括:安装介质,例如CD-ROM、软盘或磁带装置;计算机系统存储器或随机存取存储器,诸如DRAM、DDRRAM、SRAM、EDO RAM,兰巴斯(Rambus)RAM等;非易失性存储器,诸如闪存、磁介质(例如硬盘或光存储);寄存器或其它相似类型的存储器元件等。介质可以还包括其它类型的存储器或其组合。另外,介质可以位于程序在其中被执行的计算机系统中,或者可以位于不同的第二计算机系统中,第二计算机系统通过网络(诸如因特网)连接到计算机系统。第二计算机系统可以提供程序指令给计算机用于执行。术语“介质”可以包括可以驻留在不同位置中(例如在通过网络连接的不同计算机系统中)的两个或更多介质。介质可以存储可由一个或多个处理器执行的程序指令(例如具体实现为计算机程序)。medium - any of various types of memory or storage devices. The term "media" is intended to include: installation media, such as CD-ROM, floppy disk, or tape drives; computer system memory or random access memory, such as DRAM, DDRRAM, SRAM, EDO RAM, Rambus RAM, etc.; Volatile memory, such as flash memory, magnetic media (eg hard disk or optical storage); registers or other similar types of memory elements, etc. The media may also include other types of memory, or combinations thereof. In addition, the medium may be located in the computer system in which the program is executed, or may be located in a different second computer system connected to the computer system through a network such as the Internet. The second computer system may provide program instructions to the computer for execution. The term "medium" may include two or more media that may reside in different locations, such as in different computer systems connected by a network. A medium may store program instructions (eg, embodied as a computer program) executable by one or more processors.
当然,本申请实施例所提供的一种包含计算机可执行指令的介质,其计算机可执行指令不限于如上所述的图像留存期的配置操作,还可以执行本申请任意实施例所提供的图像留存期的配置方法中的相关操作。Of course, a medium containing computer-executable instructions provided in the embodiments of the present application, the computer-executable instructions are not limited to the configuration operation of the image retention period as described above, and can also perform the image retention provided in any embodiment of the application. Related operations in the configuration method of the period.
实施例五Embodiment five
本申请实施例提供了一种电子设备,该电子设备中可集成本申请实施例提供的图像留存期的配置装置。图5是本申请实施例五提供的一种电子设备的结构示意图。如图5所示,本实施例提供了一种电子设备500,其包括:一个或多个处理器520;存储装置510,用于存储一个或多个程序,当所述一个或多个程序被所述一个或多个处理器520执行,使得所述一个或多个处理器520实现本申请实施例所提供的图像留存期的配置方法,该方法包括:The embodiment of the present application provides an electronic device, and the device for configuring the image retention period provided in the embodiment of the present application can be integrated into the electronic device. FIG. 5 is a schematic structural diagram of an electronic device provided in Embodiment 5 of the present application. As shown in FIG. 5 , this embodiment provides an
获取目标区域内拍摄设备采集的图像数据,确定样本数据;Obtain the image data collected by the shooting equipment in the target area, and determine the sample data;
基于所述样本数据、预设总标准偏差和预设总置信度,计算得到目标区域置信区间,并基于所述目标区域置信区间和目标区域拍摄设备数量,确定目标区域图像留存期;其中,所述目标区域置信区间用于表征目标区域内拍摄设备采集的图像数据大小。Based on the sample data, the preset total standard deviation and the preset total confidence, calculate the target area confidence interval, and determine the target area image retention period based on the target area confidence interval and the number of shooting devices in the target area; wherein, the target area image retention period is determined; The confidence interval of the target area is used to characterize the size of the image data collected by the shooting device in the target area.
当然,本领域技术人员可以理解,处理器520还实现本申请任意实施例所提供的图像留存期的配置方法的技术方案。Of course, those skilled in the art can understand that the
图5显示的电子设备500仅仅是一个示例,不应对本申请实施例的功能和使用范围带来任何限制。The
如图5所示,该电子设备500包括处理器520、存储装置510、输入装置530和输出装置540;电子设备中处理器520的数量可以是一个或多个,图5中以一个处理器520为例;电子设备中的处理器520、存储装置510、输入装置530和输出装置540可以通过总线或其他方式连接,图5中以通过总线550连接为例。As shown in Figure 5, the
存储装置510作为一种计算机可读介质,可用于存储软件程序、计算机可执行程序以及模块单元,如本申请实施例中的图像留存期的配置方法对应的程序指令。The
存储装置510可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序;存储数据区可存储根据终端的使用所创建的数据等。此外,存储装置510可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他非易失性固态存储器件。在一些实例中,存储装置510可进一步包括相对于处理器520远程设置的存储器,这些远程存储器可以通过网络连接。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The
输入装置530可用于接收输入的数字、字符信息或语音信息,以及产生与电子设备的用户设置以及功能控制有关的键信号输入。输出装置540可包括显示屏、扬声器等电子设备。The
本申请实施例提供的电子设备,可以达到动态计算目标区域图像留存期。使得图像留存期更为合理,避免了出现未达到清理条件存储容量就占满的目的。The electronic device provided by the embodiment of the present application can dynamically calculate the retention period of the image of the target area. This makes the image retention period more reasonable, and avoids the purpose that the storage capacity will be full before the cleaning condition is met.
上述实施例中提供的图像留存期的配置装置、介质及电子设备可执行本申请任意实施例所提供的图像留存期的配置方法,具备执行该方法相应的功能模块和有益效果。未在上述实施例中详尽描述的技术细节,可参见本申请任意实施例所提供的图像留存期的配置方法。The image retention period configuration device, medium and electronic equipment provided in the above embodiments can implement the image retention period configuration method provided in any embodiment of the present application, and have corresponding functional modules and beneficial effects for executing the method. For technical details not exhaustively described in the above embodiments, refer to the method for configuring the image retention period provided in any embodiment of the present application.
注意,上述仅为本申请的较佳实施例及所运用技术原理。本领域技术人员会理解,本申请不限于这里所述的特定实施例,对本领域技术人员来说能够进行各种明显的变化、重新调整和替代而不会脱离本申请的保护范围。因此,虽然通过以上实施例对本申请进行了较为详细的说明,但是本申请不仅仅限于以上实施例,在不脱离本申请构思的情况下,还可以包括更多其他等效实施例,而本申请的范围由所附的权利要求范围决定。Note that the above are only preferred embodiments and technical principles used in this application. Those skilled in the art will understand that the present application is not limited to the specific embodiments described herein, and various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the protection scope of the present application. Therefore, although the present application has been described in detail through the above embodiments, the present application is not limited to the above embodiments, and can also include more other equivalent embodiments without departing from the concept of the present application, and the present application The scope is determined by the scope of the appended claims.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202111233545.3ACN116010357A (en) | 2021-10-22 | 2021-10-22 | Method, device, medium and electronic equipment for configuring image retention period |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202111233545.3ACN116010357A (en) | 2021-10-22 | 2021-10-22 | Method, device, medium and electronic equipment for configuring image retention period |
| Publication Number | Publication Date |
|---|---|
| CN116010357Atrue CN116010357A (en) | 2023-04-25 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202111233545.3APendingCN116010357A (en) | 2021-10-22 | 2021-10-22 | Method, device, medium and electronic equipment for configuring image retention period |
| Country | Link |
|---|---|
| CN (1) | CN116010357A (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2024234672A1 (en)* | 2023-05-16 | 2024-11-21 | 浙江宇视科技有限公司 | Data storage method and apparatus, electronic device, and storage medium |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106937001A (en)* | 2017-04-20 | 2017-07-07 | 维沃移动通信有限公司 | A kind of audio store method and mobile terminal |
| CN110651240A (en)* | 2018-03-26 | 2020-01-03 | 深圳市大疆创新科技有限公司 | Remaining storage amount processing method, photographing apparatus, and computer-readable storage medium |
| US20200167891A1 (en)* | 2018-11-23 | 2020-05-28 | International Business Machines Corporation | Memory management for complex image analysis |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106937001A (en)* | 2017-04-20 | 2017-07-07 | 维沃移动通信有限公司 | A kind of audio store method and mobile terminal |
| CN110651240A (en)* | 2018-03-26 | 2020-01-03 | 深圳市大疆创新科技有限公司 | Remaining storage amount processing method, photographing apparatus, and computer-readable storage medium |
| US20200167891A1 (en)* | 2018-11-23 | 2020-05-28 | International Business Machines Corporation | Memory management for complex image analysis |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2024234672A1 (en)* | 2023-05-16 | 2024-11-21 | 浙江宇视科技有限公司 | Data storage method and apparatus, electronic device, and storage medium |
| Publication | Publication Date | Title |
|---|---|---|
| CN104333708B (en) | Photographing method, photographing device and terminal | |
| CN109360166B (en) | Image processing method and device, electronic equipment and computer readable medium | |
| CN107436835B (en) | Access control method and device | |
| US20220109719A1 (en) | Information sharing method and apparatus | |
| CN114067274B (en) | Control method and device of image acquisition device and electronic device | |
| CN116010357A (en) | Method, device, medium and electronic equipment for configuring image retention period | |
| CN110807983B (en) | Area adjustment method and device of electronic map and electronic equipment | |
| CN116208862A (en) | Self-adaptive image processing method, system, electronic device and storage medium | |
| CN111552548A (en) | Task processing method and device, electronic equipment and machine-readable storage medium | |
| CN114650361A (en) | Shooting mode determining method and device, electronic equipment and storage medium | |
| CN107945202B (en) | Image segmentation method, device and computing device based on adaptive threshold | |
| CN110298004A (en) | Target object cache management method, system and device and electronic equipment | |
| CN112115382B (en) | Data processing method and device, storage medium and electronic device | |
| CN117539407B (en) | Data storage method, electronic device, and computer-readable storage medium | |
| WO2024213065A1 (en) | Resource control method and apparatus, and device | |
| CN116193267A (en) | Exposure adjustment method, device, medium and electronic equipment | |
| CN117041161A (en) | Service request processing method, device, computer equipment and storage medium | |
| CN111722823A (en) | Method and device for self-adapting screen resolution, storage medium and electronic equipment | |
| CN110929102B (en) | Data processing method and device and electronic equipment | |
| CN111966876B (en) | Method for generating disaster map based on NodeJs timing | |
| JP2018180125A (en) | Image projection apparatus, image projection method and image projection program | |
| CN114219886A (en) | A virtual scene rendering method, device, electronic device and storage medium | |
| CN112925478A (en) | Camera storage space control method, intelligent terminal and computer readable storage medium | |
| WO2017177407A1 (en) | Method and apparatus for setting exposure duration, and photographic device | |
| JP5904973B2 (en) | Information processing apparatus and program |
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination |