CN105574151A - Image storage method and equipment - Google Patents
Image storage method and equipment Download PDFInfo
- Publication number
- CN105574151A CN105574151A CN201510940189.7A CN201510940189A CN105574151A CN 105574151 A CN105574151 A CN 105574151A CN 201510940189 A CN201510940189 A CN 201510940189A CN 105574151 A CN105574151 A CN 105574151A
- Authority
- CN
- China
- Prior art keywords
- image
- index
- level index
- unique identifier
- globally unique
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/50—Information retrieval; Database structures therefor; File system structures therefor of still image data
- G06F16/51—Indexing; Data structures therefor; Storage structures
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Software Systems (AREA)
Abstract
本发明公开了一种图像存储方法和设备。该方法包括:确定图像的全局唯一标识符,其中所述全局唯一标识符一对一映射到所述图像的存储地址;根据所述图像的附属信息建立并存储所述图像的多级索引,其中,每个上级索引包括用于确定相邻下级索引的值,所述用于确定相邻下级索引的值用于将该上级索引所涉及的图像划分到相应的相邻下级索引,并且最下级索引包括所述图像的全局唯一标识符;以及将所述图像存储到所述图像的全局唯一标识符所映射的所述图像的存储地址。本发明的上述图像存储方法和设备解决了图像检索、显示和删除等管理操作效率低下的问题,相应地取得了提高图像管理效率的有益效果。
The invention discloses an image storage method and equipment. The method includes: determining a globally unique identifier of an image, wherein the globally unique identifier is mapped one-to-one to a storage address of the image; establishing and storing a multi-level index of the image according to the attached information of the image, wherein , each upper-level index includes the value used to determine the adjacent lower-level index, the value used to determine the adjacent lower-level index is used to divide the image involved in the upper-level index into the corresponding adjacent lower-level index, and the lowest-level index including a globally unique identifier of the image; and storing the image to a storage address of the image mapped to the globally unique identifier of the image. The image storage method and device of the present invention solve the problem of low efficiency of management operations such as image retrieval, display and deletion, and accordingly achieve beneficial effects of improving image management efficiency.
Description
技术领域technical field
本发明涉及图像处理领域,具体涉及一种图像存储方法和设备。The invention relates to the field of image processing, in particular to an image storage method and device.
背景技术Background technique
当前是数据大爆炸的时代,每一天都会有诸如文本、图像、声音等大量数据产生。图像作为人类社会活动中最常用的信息载体,其本身包含大量的信息。因此,与文本相比,图像自身就具有数据量大的特点,每个图像都需要较大的存储空间。如果图像非常多,例如上百亿个图像,那么所占的存储空间就会空前巨大。另一方面,图像数据本身规律性不强,难以像文本数据那样被容易地检索出来。We are currently in the era of the data explosion, and a large amount of data such as text, images, and sounds are generated every day. As the most commonly used information carrier in human social activities, images themselves contain a lot of information. Therefore, compared with the text, the image itself has the characteristics of a large amount of data, and each image requires a large storage space. If there are a lot of images, such as tens of billions of images, the storage space occupied will be unprecedentedly large. On the other hand, the regularity of image data itself is not strong, and it is difficult to be easily retrieved like text data.
基于上述原因,在如此大的存储空间中,对图像进行检索、显示和删除等管理操作就会速度非常慢。总之,图像的管理效率低下。Based on the above reasons, in such a large storage space, management operations such as retrieval, display and deletion of images will be very slow. In short, the management of images is inefficient.
发明内容Contents of the invention
鉴于上述问题,提出了本发明以便提供一种克服上述问题或者至少部分地解决上述问题的图像存储方法和设备。In view of the above problems, the present invention is proposed to provide an image storage method and device that overcome the above problems or at least partially solve the above problems.
依据本发明的一个方面,提供了一种图像存储方法,包括:According to one aspect of the present invention, an image storage method is provided, including:
确定图像的全局唯一标识符,其中所述全局唯一标识符一对一映射到所述图像的存储地址;determining a globally unique identifier of an image, wherein the globally unique identifier is one-to-one mapped to a storage address of the image;
根据所述图像的附属信息建立并存储所述图像的多级索引,其中,每个上级索引包括用于确定相邻下级索引的值,所述用于确定相邻下级索引的值用于将该上级索引所涉及的图像划分到相应的相邻下级索引,并且最下级索引包括所述图像的全局唯一标识符;以及Establish and store a multi-level index of the image according to the attached information of the image, wherein each upper-level index includes a value for determining an adjacent lower-level index, and the value for determining an adjacent lower-level index is used to determine the adjacent lower-level index. The images referred to by the upper-level index are divided into corresponding adjacent lower-level indexes, and the lowest-level index includes a globally unique identifier for the image; and
将所述图像存储到所述图像的全局唯一标识符所映射的所述图像的存储地址。storing the image to the storage address of the image mapped by the globally unique identifier of the image.
根据本发明的另一方面,提供了一种图像存储设备,包括:According to another aspect of the present invention, an image storage device is provided, comprising:
确定装置,用于确定图像的全局唯一标识符,其中所述全局唯一标识符一对一映射到所述图像的存储地址;determining means, configured to determine a globally unique identifier of an image, wherein the globally unique identifier is one-to-one mapped to a storage address of the image;
索引装置,用于根据所述图像的附属信息建立并存储所述图像的多级索引,其中,An indexing device, configured to establish and store a multi-level index of the image according to the auxiliary information of the image, wherein,
每个上级索引包括用于确定相邻下级索引的值,所述用于确定相邻下级索引的值用于将该上级索引所涉及的图像划分到相应的相邻下级索引,并且最下级索引包括所述图像的全局唯一标识符;以及Each upper-level index includes a value for determining an adjacent lower-level index that is used to divide the image to which the upper-level index refers to a corresponding adjacent lower-level index, and the lowest-level index includes a globally unique identifier for the image; and
存储装置,用于将所述图像存储到所述图像的全局唯一标识符所映射的所述图像的存储地址。A storage device, configured to store the image to a storage address of the image mapped to the globally unique identifier of the image.
根据本发明的上述图像存储方法和设备利用了多级索引,并且至少存在一个可以索引到其多个下级索引的上级索引。由此解决了现有技术中图像检索、显示和删除等管理操作效率低下的问题,相应地取得了提高图像管理效率的有益效果。The above image storage method and device according to the present invention utilize multi-level indexes, and there is at least one upper-level index that can index to its multiple lower-level indexes. Therefore, the problem of low efficiency of management operations such as image retrieval, display and deletion in the prior art is solved, and the beneficial effect of improving image management efficiency is correspondingly achieved.
上述说明仅是本发明技术方案的概述,为了能够更清楚了解本发明的技术手段,而可依照说明书的内容予以实施,并且为了让本发明的上述和其它目的、特征和优点能够更明显易懂,以下特举本发明的具体实施方式。The above description is only an overview of the technical solution of the present invention. In order to better understand the technical means of the present invention, it can be implemented according to the contents of the description, and in order to make the above and other purposes, features and advantages of the present invention more obvious and understandable , the specific embodiments of the present invention are enumerated below.
附图说明Description of drawings
通过阅读下文优选实施方式的详细描述,各种其他的优点和益处对于本领域普通技术人员将变得清楚明了。附图仅用于示出优选实施方式的目的,而并不认为是对本发明的限制。而且在整个附图中,用相同的参考符号表示相同的部件。在附图中:Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiment. The drawings are only for the purpose of illustrating a preferred embodiment and are not to be considered as limiting the invention. Also throughout the drawings, the same reference numerals are used to designate the same components. In the attached picture:
图1示出了根据本发明一个实施例的图像存储方法的示意性流程图;FIG. 1 shows a schematic flowchart of an image storage method according to an embodiment of the present invention;
图2示出了根据本发明一个实施例的多级索引的示意图;Fig. 2 shows a schematic diagram of a multi-level index according to an embodiment of the present invention;
图3示出了根据本发明另一个实施例的图像存储方法的示意性流程图;FIG. 3 shows a schematic flowchart of an image storage method according to another embodiment of the present invention;
图4示出了根据本发明一个实施例的图像存储设备的示意性框图;以及Figure 4 shows a schematic block diagram of an image storage device according to an embodiment of the present invention; and
图5示出了根据本发明另一个实施例的图像存储设备的示意性框图。Fig. 5 shows a schematic block diagram of an image storage device according to another embodiment of the present invention.
具体实施方式detailed description
下面将参照附图更详细地描述本公开的示例性实施例。虽然附图中显示了本公开的示例性实施例,然而应当理解,可以以各种形式实现本公开而不应被这里阐述的实施例所限制。相反,提供这些实施例是为了能够更透彻地理解本公开,并且能够将本公开的范围完整的传达给本领域的技术人员。Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided for more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.
为了提高图像管理操作的效率,根据本发明的一个方面,提供了一种图像存储方法。该图像存储方法尤其适用于大量图像的存储。图1示出了根据本发明一个实施例的图像存储方法100的示意性流程图。如图1所示,图像存储方法100包括步骤S110、步骤S120和步骤S130。In order to improve the efficiency of image management operations, according to one aspect of the present invention, an image storage method is provided. The image storage method is especially suitable for storing a large number of images. Fig. 1 shows a schematic flowchart of an image storage method 100 according to an embodiment of the present invention. As shown in FIG. 1 , the image storage method 100 includes step S110 , step S120 and step S130 .
在步骤S110中,确定图像的全局唯一标识符。其中,图像的全局唯一标识符一对一映射到图像的存储地址。In step S110, a globally unique identifier of the image is determined. Wherein, the globally unique identifier of the image is mapped one-to-one to the storage address of the image.
每个待存储图像都将被存储到唯一的存储地址。该存储地址可以是磁盘地址,也可以是基于磁盘地址建立的数据库中的地址。全局唯一标识符是整个存储系统中唯一的。全局唯一标识符与图像的存储地址之间是一对一映射关系。Each image to be stored will be stored to a unique storage address. The storage address may be a disk address, or an address in a database established based on the disk address. A globally unique identifier is unique across the entire storage system. There is a one-to-one mapping relationship between the globally unique identifier and the storage address of the image.
具体地,步骤S110可以包括:首先,随机生成一个64位的二进制数,以作为待存储图像的全局唯一标识符。然后,建立该全局唯一标识符与该待存储图像的存储地址之间的一对一的映射。请注意,上述全局唯一标识符的构建方法仅为示例目的,并非本发明的限制。本领域技术人员亦可利用其他手段构建全局唯一标识符。Specifically, step S110 may include: first, randomly generating a 64-bit binary number as a globally unique identifier of the image to be stored. Then, a one-to-one mapping between the globally unique identifier and the storage address of the image to be stored is established. Please note that the above method for constructing the globally unique identifier is for illustrative purposes only, and is not a limitation of the present invention. Those skilled in the art can also use other means to construct a globally unique identifier.
在步骤S120中,根据待存储图像的附属信息建立并存储图像的多级索引。通过该多级索引,对整个图像存储空间进行了多级划分,可以显著提高图像检索、分析和显示等管理操作的效率问题。In step S120, a multi-level index of the image is established and stored according to the attachment information of the image to be stored. Through the multi-level index, the entire image storage space is divided into multiple levels, which can significantly improve the efficiency of management operations such as image retrieval, analysis, and display.
图像的附属信息可包括上述步骤S110中所确定的图像的全局唯一标识符。该全局唯一标识符可以作为上述多级索引的键值。图像的附属信息还可以包括图像采集装置的用户标识符。对于一个图像存储系统来说,其可能需要存储很多用户的图像。可以根据其图像采集装置的用户标识符来识别用户。例如,用户可以用同一应用程序(APP)管理多个图像采集装置。那么可以将用户登录该APP的用户名作为该用户的图像采集装置的用户标识符。图像的附属信息还可以包括图像来源标识符。每个图像都存在其自己的来源,例如特定图像采集装置。图像来源标识符可以是图像采集装置的产品序列号。图像的附属信息还可以包括图像采集日期。The attached information of the image may include the globally unique identifier of the image determined in step S110 above. The globally unique identifier can be used as the key value of the above-mentioned multi-level index. The attached information of the image may also include the user identifier of the image capture device. For an image storage system, it may need to store images of many users. Users can be identified based on the user identifier of their image capture device. For example, a user can manage multiple image acquisition devices with the same application program (APP). Then, the user name of the user logging into the APP may be used as the user identifier of the user's image acquisition device. The accompanying information of the image may also include an image source identifier. Each image exists from its own source, such as a specific image capture device. The image source identifier may be a product serial number of the image capture device. The attached information of the image may also include the image acquisition date.
可以根据图像的附属信息建立图像的多级索引。其中,每个上级索引对应于一个或多个下级索引。上级索引和下级索引是两个相对概念。通过上级索引可以索引到其下级索引。一个上级索引所涉及的图像与其所有下级索引所涉及的图像完全一致。A multi-level index of an image can be established according to the attached information of the image. Wherein, each upper-level index corresponds to one or more lower-level indexes. The upper-level index and the lower-level index are two relative concepts. Through the upper-level index, you can index to its lower-level index. The images involved in a superior index are exactly the same as the images involved in all its subordinate indexes.
至少存在一个对应于多个下级索引的上级索引。由此,可以将上级索引所对应的图像划分给不同的下级索引。在具体示例中,可能绝大多数甚至全部上级索引都对应于多个下级索引。There exists at least one upper-level index corresponding to a plurality of lower-level indexes. Thus, the images corresponding to the upper-level index can be divided into different lower-level indexes. In a specific example, most or even all of the upper-level indexes may correspond to multiple lower-level indexes.
图2示出了根据本发明一个实施例的多级索引的示意图。如图2所示,该多级索引包括两级。图2中最上面的表格表示第一级索引,中间的三个表格表示第二级索引。第一级索引涉及了所存储的所有图像。每个第二级索引包括一部分图像。最下面的柱体表示图像的存储空间,例如不同的服务器集群。Fig. 2 shows a schematic diagram of a multi-level index according to an embodiment of the present invention. As shown in Figure 2, the multi-level index includes two levels. The top table in Figure 2 represents the first-level index, and the three tables in the middle represent the second-level index. The first level index refers to all images stored. Each second-level index includes a portion of images. The bottom bars represent image storage spaces, such as different server clusters.
在多级索引中,每个上级索引包括用于确定相邻下级索引的值。用于确定相邻下级索引的值用于将该上级索引所涉及的图像划分到相应的相邻下级索引。由此,整个多级索引成为不可分割的整体。在具体示例中,每个上级索引可以是个索引表,该索引表可以包括多个列,其中某列的值用于确定相邻下级索引。也就是说,根据该列中的值的不同,将对应的图像划分到不同的相邻下级索引。In a multi-level index, each upper-level index includes values used to determine adjacent lower-level indexes. The value used to determine the adjacent lower-level index is used to divide the images involved in the upper-level index into corresponding adjacent lower-level indexes. Thus, the entire multilevel index becomes an indivisible whole. In a specific example, each upper-level index may be an index table, and the index table may include multiple columns, wherein the value of a certain column is used to determine adjacent lower-level indexes. That is to say, according to different values in the column, the corresponding images are divided into different adjacent lower-level indexes.
仍以图2中所示的多级索引为例,图2中的第一级索引的最后一列中的值是图像的采集日期,其用于确定相邻下级索引。如图2中不同曲线所示,采集日期是“20141020”的图像将被划分到图2中所示的第二级索引中最左边的那个,采集日期是“20141021”的图像将被划分到图2中所示的第二级索引中中间的那个,采集日期是“20141022”的图像将被划分到图2中所示的第二级索引中最右边的那个。Still taking the multi-level index shown in FIG. 2 as an example, the value in the last column of the first-level index in FIG. 2 is the acquisition date of the image, which is used to determine the adjacent lower-level index. As shown by the different curves in Figure 2, the image whose acquisition date is "20141020" will be divided into the leftmost one in the second-level index shown in Figure 2, and the image whose acquisition date is "20141021" will be divided into the The middle one in the second-level index shown in Fig. 2, the image whose acquisition date is "20141022" will be divided into the rightmost one in the second-level index shown in Fig. 2 .
在多级索引中,最下级索引包括图像的全局唯一标识符。换言之,全局唯一标识符位于多级索引的最下端,以建立多级索引和图像的存储空间的联系。In a multi-level index, the lowest-level index includes a globally unique identifier for an image. In other words, the globally unique identifier is located at the bottom of the multi-level index, so as to establish a connection between the multi-level index and the storage space of the image.
在图2所示的多级索引中,全局唯一标识符是该多级索引中的键值,其用单词“Key”来表达。如图2中所示,第二级索引中的“Key”列即存储了该多级索引的全局唯一标识符,其与图像的存储空间一一对应。In the multi-level index shown in FIG. 2 , the globally unique identifier is a key value in the multi-level index, which is expressed by the word "Key". As shown in FIG. 2 , the "Key" column in the second-level index stores the globally unique identifier of the multi-level index, which is in one-to-one correspondence with the storage space of the image.
下面以建立图2所示的二级索引为例,来说明建立多级索引的具体过程。对于待存储图像来说,首先获取其附属信息,附属信息可包括图像采集装置的用户标识符(Uid)、图像来源标识符(Sn)和图像的采集日期(Date)。然后,将图像的附属信息添加到第一级索引。当图像的附属信息与存储系统中现有图像的附属信息相同时,在此步骤中,不再对第一级索引进行重复添加。如图2的第一级索引所示,第一级索引中的第四行可以表示用户标识码为“135”的用户的序列号为“daggsd”的图像采集装置在2014年10月22日采集了图像,并且该图像被存储到了存储系统中。可以理解,第一级索引的每一行中的数据无法表示出对应的图像的个数,仅能表示存储系统中存在具有该附属信息的图像。例如第一级索引中的第四行对应于最右边的第二级索引中的三行数据。最后,根据图像的采集日期,将图像的部分附属信息和全局唯一标识符添加到对应的第二级索引。例如,将采集日期是“20141022”的图像的图像采集装置的用户标识符(Uid)、图像来源标识符(Sn)和全局唯一标识符添加到图2中所示的最右边的第二级索引。因为每个全局唯一标识符是唯一的,所以第二级索引中的每一行都唯一地对应于一个图像。例如,第二级索引中最右边的那个的第一行表示用户标识码为“135”的用户的序列号为“daggsd”的图像采集装置在2014年10月22日所采集的图像存储到了与全局唯一标识符“D”相对应的存储空间。可以理解,用户标识码为“135”的用户的序列号为“daggsd”的图像采集装置在2014年10月22日可能采集了多个图像,这些图像具有互不相同的全局唯一标识符,如图2中最右边的第二级索引中的三行数据所示。The following takes the establishment of the secondary index shown in FIG. 2 as an example to illustrate the specific process of establishing a multi-level index. For the image to be stored, first obtain its auxiliary information, which may include the user identifier (Uid) of the image acquisition device, the image source identifier (Sn) and the acquisition date (Date) of the image. Then, the side information of the image is added to the first-level index. When the auxiliary information of the image is the same as that of the existing image in the storage system, in this step, the first-level index is not added repeatedly. As shown in the first-level index in Figure 2, the fourth line in the first-level index can indicate that the image acquisition device with the serial number "daggsd" of the user whose user identification code is "135" collected on October 22, 2014 image, and the image is stored in the storage system. It can be understood that the data in each row of the first-level index cannot indicate the number of corresponding images, but can only indicate that there are images with the auxiliary information in the storage system. For example, the fourth row in the first-level index corresponds to the three rows of data in the rightmost second-level index. Finally, according to the acquisition date of the image, some of the auxiliary information and the globally unique identifier of the image are added to the corresponding second-level index. For example, add the user identifier (Uid), image source identifier (Sn) and globally unique identifier of the image capture device whose capture date is "20141022" to the rightmost second-level index shown in Figure 2 . Because each GUI is unique, each row in the second-level index uniquely corresponds to an image. For example, the first row of the rightmost one in the second-level index indicates that the user identification code is "135" and the image acquisition device with the serial number "daggsd" of the user is stored on October 22, 2014 in the same The storage space corresponding to the globally unique identifier "D". It can be understood that the image acquisition device with the serial number "daggsd" of the user whose user identification code is "135" may have acquired multiple images on October 22, 2014, and these images have different globally unique identifiers, such as The three rows of data in the rightmost second-level index in Figure 2 are shown.
在步骤S130中,将图像存储到图像的全局唯一标识符所映射的图像的存储地址。这里存储操作的对象是图像数据本身。In step S130, the image is stored to the storage address of the image mapped to the globally unique identifier of the image. The object of the storage operation here is the image data itself.
可以将图像以点阵方式存储。点阵是点的阵列,阵列中的点可以称为图像的像素。还可以用数学方式来存储图像,例如矢量的方式。Images can be stored in dot matrix. A dot matrix is an array of dots, and the dots in the array can be called pixels of an image. Images can also be stored mathematically, for example as vectors.
在另外一个角度,图像可以是各种格式的图像,例如JPG格式、BMP格式等。From another perspective, the image can be in various formats, such as JPG format, BMP format, and so on.
图2中最下面的柱体表示图像的存储空间,例如不同的服务器集群。如图中曲线所示,将第二级索引的“Key”值分别为“A”和“C”的图像存储到第一个服务器集群中对应地址,将第二级索引的“Key”值为“B”的图像存储到第二个服务器集群中对应地址,将第二级索引的“Key”值为“D”的图像存储到第三个服务器集群中对应地址。The bottom column in Figure 2 represents the image storage space, such as different server clusters. As shown in the curve in the figure, store the images whose "Key" values of the second-level index are "A" and "C" respectively in the corresponding addresses in the first server cluster, and set the "Key" values of the second-level index to The image of "B" is stored to the corresponding address in the second server cluster, and the image whose "Key" value of the second-level index is "D" is stored to the corresponding address in the third server cluster.
上述图像存储方法100示出了步骤S110、步骤S120和步骤S130的具体执行顺序。但是,本领域普通技术人员可以理解,所示执行顺序仅为示例,而非限制。例如,步骤S130可以先于步骤S120执行。可选地,步骤S130可以与步骤S120同时执行,以提高图像存储方法100的执行速度。The above image storage method 100 shows the specific execution sequence of step S110, step S120 and step S130. However, those skilled in the art can understand that the execution sequence shown is only an example, not a limitation. For example, step S130 may be performed prior to step S120. Optionally, step S130 can be executed simultaneously with step S120, so as to improve the execution speed of the image storage method 100 .
当对基于上述图像存储方法100所存储的图像进行检索、显示、删除等管理操作时,首先,可以去检索最上级索引,根据最上级索引检索其下级索引。类似地,逐级进行检索,直至检索到最下级索引。最后,根据最下级索引中的图像的全局唯一标识符即可检索到该图像的存储地址,获得该图像。When performing management operations such as retrieval, display, and deletion on the images stored based on the above-mentioned image storage method 100, firstly, the uppermost index can be retrieved, and the lower indexes can be retrieved according to the uppermost index. Similarly, searches are performed level by level until the lowest level index is retrieved. Finally, according to the globally unique identifier of the image in the lowest-level index, the storage address of the image can be retrieved to obtain the image.
上述图像存储方法100利用了多级索引。至少一个上级索引可以索引到多个下级索引,由此解决了现有技术中图像检索、显示、删除等管理操作效率低下的问题,相应地取得了提高图像管理效率的有益效果。The image storage method 100 described above utilizes a multi-level index. At least one upper-level index can index multiple lower-level indexes, thereby solving the problem of low efficiency in image retrieval, display, deletion and other management operations in the prior art, and correspondingly achieving the beneficial effect of improving image management efficiency.
可选地,上述步骤S120中建立图像的多级索引可以进一步包括步骤S121,根据图像的第一组附属信息建立第一级索引。Optionally, establishing the multi-level index of the image in step S120 may further include step S121, establishing a first-level index according to the first group of auxiliary information of the image.
该步骤S121可以具体包括:首先,判断图像的第一组附属信息是否与第一级索引中的图像的第一组附属信息重复。然后,对于没有重复的情况,将图像的第一组附属信息添加到该第一级索引中。如此,避免了第一级索引中出现重复的行,保证了第一级索引的其准确性。This step S121 may specifically include: first, judging whether the first group of auxiliary information of the image overlaps with the first group of auxiliary information of the image in the first-level index. Then, for the case of no duplication, the first set of side information of the image is added to the first-level index. In this way, repeated rows in the first-level index are avoided, and the accuracy of the first-level index is guaranteed.
步骤S120还可以包括步骤S122,根据图像的第二组附属信息建立第二级索引。在此步骤中,将图像的第二组附属信息添加到第二级索引中。由此,所建立的多级索引是二级索引。如上所述,图2示出了根据本发明一个实施例的二级索引的示意图。Step S120 may also include step S122, establishing a second-level index according to the second group of auxiliary information of the image. In this step, a second set of side information of the image is added to the second-level index. Thus, the established multi-level index is a secondary index. As mentioned above, FIG. 2 shows a schematic diagram of a secondary index according to an embodiment of the present invention.
一方面,二级索引所带来的存储量和计算量都较小。另一方面,由于一级索引能够对应于很多个二级索引。也就是说,一级索引的维度可以远远大于二级索引。所以,通过二级索引既可方便地管理全部图像,提高管理效率。On the one hand, the amount of storage and calculation brought by the secondary index is small. On the other hand, since the primary index can correspond to many secondary indexes. That is to say, the dimensions of the primary index can be much larger than that of the secondary index. Therefore, through the secondary index, all images can be conveniently managed and the management efficiency can be improved.
本领域普通技术人员可以理解,还可以建立三级以上索引,其可以支持更大量图像的存储和管理。但这将给存储系统带来存储和计算方面更大的负担。Those skilled in the art can understand that more than three levels of indexes can also be established, which can support the storage and management of a larger number of images. But this will bring a greater burden of storage and computing to the storage system.
根据本发明的一个示例,上述步骤S121建立第一级索引进一步包括:根据图像的第一附属信息和采集日期建立第一级索引。其中,图像的采集日期用于将第一级索引所涉及的图像划分到第二级索引。由此,每个第二级索引中所涉及的图像是同一天所采集的图像。上述步骤S122建立第二级索引进一步包括:根据图像的第一附属信息和全局唯一标识符建立第二级索引。According to an example of the present invention, the establishment of the first-level index in the above-mentioned step S121 further includes: establishing the first-level index according to the first auxiliary information and the acquisition date of the image. Wherein, the collection date of the image is used to divide the images involved in the first-level index into the second-level index. Thus, the images involved in each second-level index are images acquired on the same day. The establishment of the second-level index in the above step S122 further includes: establishing the second-level index according to the first attachment information and the globally unique identifier of the image.
在根据此示例的方案中,根据图像的采集日期的不同,将图像划分到不同的第二级索引。如图2所示的二级索引,第一级索引中包括三列。最后一列“Date”为图像的采集日期,如上所述,其用于确定图像的第二级索引。In the scheme according to this example, the images are divided into different second-level indexes according to different acquisition dates of the images. As the secondary index shown in FIG. 2 , the primary index includes three columns. The last column "Date" is the acquisition date of the image, which is used to determine the second level index of the image as described above.
图像的采集日期是图像的一个重要属性。在多用户的图像的管理系统中,用户可能提出关于特定采集日期的图像的检索和显示等请求。例如,对于一种用于监控特定位置的影像信息的APP,其可能有数以百万计的用户。该APP利用图像采集装置采集了大量的图像。对于用户而言,可能期望回看和检索某一时段的图像。以图像的采集日期来进一步划分图像,可以更方便图像管理。The acquisition date of an image is an important attribute of an image. In a multi-user image management system, users may request retrieval and display of images on a specific acquisition date. For example, for an APP used to monitor image information of a specific location, it may have millions of users. The APP uses an image acquisition device to collect a large number of images. It may be desirable for a user to look back and retrieve images for a certain period of time. The image is further divided by the date of image collection, which can make image management more convenient.
如图2所示的二级索引,上述第一附属信息可以进一步包括图像采集装置的用户标识符(Uid)和/或图像来源标识符(Sn)。这二者也是图像的重要属性之一。当用户提出图像的检索和显示等请求时,希望能快速返回给用户期望的结果。图像采集装置的用户标识符和图像来源标识符是与用户有关的属性,利用它们,可以较快速地定位到用户期望的图像。As the secondary index shown in FIG. 2 , the above-mentioned first auxiliary information may further include a user identifier (Uid) and/or an image source identifier (Sn) of the image acquisition device. These two are also one of the important attributes of images. When a user makes a request for image retrieval and display, it is hoped that the desired result can be quickly returned to the user. The user identifier and image source identifier of the image acquisition device are attributes related to the user, and by using them, the desired image of the user can be located relatively quickly.
图3示出了根据本发明另一实施例的图像存储方法300的示意性流程图。如图3所示,该图像存储方法300包括步骤S310、步骤S320、步骤S330和步骤S340。其中,步骤S310、步骤S320和步骤S330分别与上述图像存储方法100中的相应步骤类似,为了简洁,在此不再赘述。Fig. 3 shows a schematic flowchart of an image storage method 300 according to another embodiment of the present invention. As shown in FIG. 3 , the image storage method 300 includes step S310 , step S320 , step S330 and step S340 . Wherein, step S310 , step S320 and step S330 are respectively similar to corresponding steps in the above-mentioned image storage method 100 , and for the sake of brevity, details are not repeated here.
在步骤S320中,根据图像的附属信息建立并存储图像的多级索引。其中,图像的附属信息包括图像的采集日期。在步骤S340中,根据图像的采集日期删除最先采集的图像和最先采集的图像的索引,以释放存储空间。In step S320, a multi-level index of the image is established and stored according to the attached information of the image. Wherein, the attached information of the image includes the collection date of the image. In step S340, delete the first acquired image and the index of the first acquired image according to the acquisition date of the image, so as to release storage space.
存储系统的存储空间是有限的。如何合理利用这有限的存储空间是个重要问题。对于用户来说,例如上面示例中的用于监控特定位置的影像信息的APP的用户,近期的图像通常是更有价值的。在该步骤S340中,根据图像的采集日期删除最先采集的图像和其索引,保留了对于用户来说更重要的图像,可以在满足用户需求的同时,释放存储空间。The storage space of the storage system is limited. How to make reasonable use of this limited storage space is an important issue. For users, such as the users of the APP used to monitor the image information of a specific location in the above example, recent images are usually more valuable. In this step S340, the first collected image and its index are deleted according to the collection date of the image, and the more important images for the user are retained, which can release storage space while satisfying the user's needs.
可以理解,在上述图像存储方法100和200中,可以将图像的下级索引存储在服务器集群中,该服务器集群与存储其他图像的下级索引的服务器集群不同。图像的下级索引是多个。服务器集群也可以有多个。可以将不同图像的下级索引存储在不同的服务器集群中,由此,可以更合理的利用存储空间。It can be understood that in the above image storage methods 100 and 200, the lower-level index of the image may be stored in a server cluster, which is different from the server cluster storing the lower-level indexes of other images. The lower index of the image is multiple. There can also be multiple server clusters. The lower-level indexes of different images can be stored in different server clusters, thereby making more reasonable use of storage space.
对于某待存储图像来说,其存储地址可以与其他图像的存储地址位于不同的服务器集群。再次回到图2,图像采集装置的用户标识符Uid为“123”、图像来源标识符Sn为“dddddc”并且键值Key为“A”的图像存储在第一个服务器集群,图像采集装置的用户标识符Uid同样为“123”、图像来源标识符Sn为“adadfs”并且键值Key为“B”的图像存储在第二个服务器集群。上述图像存储方法100和200支持将不同图像存储在不同的服务器集群中,通过不同的服务器集群有效扩大了图像的存储空间。For an image to be stored, its storage address may be located in a different server cluster from the storage addresses of other images. Returning to Fig. 2 again, the user identifier Uid of the image acquisition device is "123", the image source identifier Sn is "dddddc" and the image whose key value Key is "A" is stored in the first server cluster, and the image acquisition device's The images whose user identifier Uid is also "123", image source identifier Sn is "adadfs" and key value Key is "B" are stored in the second server cluster. The image storage methods 100 and 200 described above support storing different images in different server clusters, effectively expanding the storage space of images through different server clusters.
根据本发明另一方面,还提供了一种图像存储设备。图4示出了根据本发明一个实施例的图像存储设备400的示意性框图。如图4所示,图像存储设备400包括确定装置410、索引装置420和存储装置430。According to another aspect of the present invention, an image storage device is also provided. Fig. 4 shows a schematic block diagram of an image storage device 400 according to an embodiment of the present invention. As shown in FIG. 4 , the image storage device 400 includes determining means 410 , indexing means 420 and storage means 430 .
确定装置410用于确定图像的全局唯一标识符,其中全局唯一标识符一对一映射到图像的存储地址。The determining means 410 is used for determining the globally unique identifier of the image, wherein the globally unique identifier is mapped one-to-one to the storage address of the image.
索引装置420用于根据图像的附属信息建立并存储图像的多级索引。每个上级索引包括用于确定相邻下级索引的值,该值用于将该上级索引所涉及的图像划分到相应的相邻下级索引。最下级索引包括图像的全局唯一标识符。The indexing device 420 is used for establishing and storing a multi-level index of the image according to the auxiliary information of the image. Each upper-level index includes a value for determining an adjacent lower-level index, and the value is used for dividing the images involved in the upper-level index into corresponding adjacent lower-level indexes. The lowest-level index includes a globally unique identifier for the image.
可选地,索引装置420进一步包括第一索引模块421和第二索引模块422。第一索引模块421用于根据图像的第一组附属信息建立第一级索引。第二索引模块422用于根据图像的第二组附属信息建立第二级索引。Optionally, the indexing device 420 further includes a first indexing module 421 and a second indexing module 422 . The first index module 421 is configured to establish a first-level index according to the first set of auxiliary information of the image. The second index module 422 is used for establishing a second-level index according to the second group of auxiliary information of the image.
可选地,第一索引模块421进一步包括第一索引建立单元,其用于根据图像的第一附属信息和采集日期建立第一级索引,其中,图像的采集日期用于将第一级索引所涉及的图像划分到第二级索引。第二索引模块422进一步包括第二索引建立单元,其用于根据图像的第一附属信息和全局唯一标识符建立第二级索引。Optionally, the first index module 421 further includes a first index establishment unit, which is configured to establish a first-level index according to the first auxiliary information of the image and the acquisition date, wherein the acquisition date of the image is used to convert the first-level index to The images involved are grouped into a second-level index. The second index module 422 further includes a second index building unit, which is used for building a second-level index according to the first attachment information and the globally unique identifier of the image.
第一附属信息可以进一步包括:图像采集装置的用户标识符和/或图像来源标识符。The first auxiliary information may further include: a user identifier and/or an image source identifier of the image acquisition device.
可选地,索引装置420进一步包括索引存储模块,用于将图像的下级索引存储在服务器集群中,其中,该服务器集群与存储其他图像的下级索引的服务器集群不同。Optionally, the indexing device 420 further includes an index storage module, configured to store the lower-level index of the image in a server cluster, wherein the server cluster is different from the server cluster storing the lower-level indexes of other images.
存储装置430用于将图像存储到图像的全局唯一标识符所映射的图像的存储地址。可选地,该图像的存储地址与其他图像的存储地址位于不同的服务器集群。The storage device 430 is used to store the image to the storage address of the image mapped by the globally unique identifier of the image. Optionally, the storage address of the image is located in a different server cluster from the storage addresses of other images.
图5示出了根据本发明另一实施例的图像存储设备500的示意性流程图。如图5所示,该图像存储设备500包括确定装置510、索引装置520和存储装置530和删除装置540。其中,确定装置510、索引装置520和存储装置530分别与上述图像存储设备400中的相应部件类似,为了简洁,在此不再赘述。Fig. 5 shows a schematic flowchart of an image storage device 500 according to another embodiment of the present invention. As shown in FIG. 5 , the image storage device 500 includes determining means 510 , indexing means 520 , storing means 530 and deleting means 540 . Wherein, the determining means 510, the indexing means 520 and the storing means 530 are respectively similar to the corresponding components in the above-mentioned image storage device 400, and for the sake of brevity, details are omitted here.
图像存储设备500中的删除装置540用于根据图像的采集日期删除最先采集的图像和最先采集的图像的索引,以释放存储空间。The deleting unit 540 in the image storage device 500 is configured to delete the first captured image and the index of the first captured image according to the capture date of the image, so as to release storage space.
本领域普通技术人员通过阅读上文关于图像存储方法100和300的详细描述,能够理解上述图像存储设备400和500的结构、实现以及优点,因此这里不再赘述。Those of ordinary skill in the art can understand the structure, implementation and advantages of the image storage devices 400 and 500 above by reading the above detailed descriptions about the image storage methods 100 and 300 , so details are not repeated here.
在此提供的算法和显示不与任何特定计算机、虚拟系统或者其它设备固有相关。各种通用系统也可以与基于在此的示教一起使用。根据上面的描述,构造这类系统所要求的结构是显而易见的。此外,本发明也不针对任何特定编程语言。应当明白,可以利用各种编程语言实现在此描述的本发明的内容,并且上面对特定语言所做的描述是为了披露本发明的最佳实施方式。The algorithms and displays presented herein are not inherently related to any particular computer, virtual system, or other device. Various generic systems can also be used with the teachings based on this. The structure required to construct such a system is apparent from the above description. Furthermore, the present invention is not specific to any particular programming language. It should be understood that various programming languages can be used to implement the content of the present invention described herein, and the above description of specific languages is for disclosing the best mode of the present invention.
在此处所提供的说明书中,说明了大量具体细节。然而,能够理解,本发明的实施例可以在没有这些具体细节的情况下实践。在一些实例中,并未详细示出公知的方法、结构和技术,以便不模糊对本说明书的理解。In the description provided herein, numerous specific details are set forth. However, it is understood that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure the understanding of this description.
类似地,应当理解,为了精简本公开并帮助理解各个发明方面中的一个或多个,在上面对本发明的示例性实施例的描述中,本发明的各个特征有时被一起分组到单个实施例、图、或者对其的描述中。然而,并不应将该公开的方法解释成反映如下意图:即所要求保护的本发明要求比在每个权利要求中所明确记载的特征更多的特征。更确切地说,如下面的权利要求书所反映的那样,发明方面在于少于前面公开的单个实施例的所有特征。因此,遵循具体实施方式的权利要求书由此明确地并入该具体实施方式,其中每个权利要求本身都作为本发明的单独实施例。Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, in order to streamline this disclosure and to facilitate an understanding of one or more of the various inventive aspects, various features of the invention are sometimes grouped together in a single embodiment, figure, or its description. This method of disclosure, however, is not to be interpreted as reflecting an intention that the claimed invention requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the Detailed Description are hereby expressly incorporated into this Detailed Description, with each claim standing on its own as a separate embodiment of this invention.
本领域那些技术人员可以理解,可以对实施例中的设备中的模块进行自适应性地改变并且把它们设置在与该实施例不同的一个或多个设备中。可以把实施例中的模块或单元或组件组合成一个模块或单元或组件,以及此外可以把它们分成多个子模块或子单元或子组件。除了这样的特征和/或过程或者单元中的至少一些是相互排斥之外,可以采用任何组合对本说明书(包括伴随的权利要求、摘要和附图)中公开的所有特征以及如此公开的任何方法或者设备的所有过程或单元进行组合。除非另外明确陈述,本说明书(包括伴随的权利要求、摘要和附图)中公开的每个特征可以由提供相同、等同或相似目的的替代特征来代替。Those skilled in the art can understand that the modules in the device in the embodiment can be adaptively changed and arranged in one or more devices different from the embodiment. Modules or units or components in the embodiments may be combined into one module or unit or component, and furthermore may be divided into a plurality of sub-modules or sub-units or sub-assemblies. All features disclosed in this specification (including accompanying claims, abstract and drawings) and any method or method so disclosed may be used in any combination, except that at least some of such features and/or processes or units are mutually exclusive. All processes or units of equipment are combined. Each feature disclosed in this specification (including accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
此外,本领域的技术人员能够理解,尽管在此所述的一些实施例包括其它实施例中所包括的某些特征而不是其它特征,但是不同实施例的特征的组合意味着处于本发明的范围之内并且形成不同的实施例。例如,在下面的权利要求书中,所要求保护的实施例的任意之一都可以以任意的组合方式来使用。Furthermore, those skilled in the art will understand that although some embodiments described herein include some features included in other embodiments but not others, combinations of features from different embodiments are meant to be within the scope of the invention. and form different embodiments. For example, in the following claims, any of the claimed embodiments may be used in any combination.
本发明的各个部件实施例可以以硬件实现,或者以在一个或者多个处理器上运行的软件模块实现,或者以它们的组合实现。本领域的技术人员应当理解,可以在实践中使用微处理器或者数字信号处理器(DSP)来实现根据本发明实施例的图像存储设备中的一些或者全部部件的一些或者全部功能。本发明还可以实现为用于执行这里所描述的方法的一部分或者全部的设备或者装置程序(例如,计算机程序和计算机程序产品)。这样的实现本发明的程序可以存储在计算机可读介质上,或者可以具有一个或者多个信号的形式。这样的信号可以从因特网网站上下载得到,或者在载体信号上提供,或者以任何其他形式提供。The various component embodiments of the present invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art should understand that a microprocessor or a digital signal processor (DSP) may be used in practice to implement some or all functions of some or all components in the image storage device according to the embodiments of the present invention. The present invention can also be implemented as an apparatus or an apparatus program (for example, a computer program and a computer program product) for performing a part or all of the methods described herein. Such a program for realizing the present invention may be stored on a computer-readable medium, or may be in the form of one or more signals. Such a signal may be downloaded from an Internet site, or provided on a carrier signal, or provided in any other form.
应该注意的是上述实施例对本发明进行说明而不是对本发明进行限制,并且本领域技术人员在不脱离所附权利要求的范围的情况下可设计出替换实施例。在权利要求中,不应将位于括号之间的任何参考符号构造成对权利要求的限制。单词“包含”不排除存在未列在权利要求中的元件或步骤。位于元件之前的单词“一”或“一个”不排除存在多个这样的元件。本发明可以借助于包括有若干不同元件的硬件以及借助于适当编程的计算机来实现。在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具体体现。单词第一、第二、以及第三等的使用不表示任何顺序。可将这些单词解释为名称。It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention can be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In a unit claim enumerating several means, several of these means can be embodied by one and the same item of hardware. The use of the words first, second, and third, etc. does not indicate any order. These words can be interpreted as names.
本发明实施例公开了A1、一种图像存储方法,包括:The embodiment of the present invention discloses A1, an image storage method, comprising:
确定图像的全局唯一标识符,其中所述全局唯一标识符一对一映射到所述图像的存储地址;determining a globally unique identifier of an image, wherein the globally unique identifier is one-to-one mapped to a storage address of the image;
根据所述图像的附属信息建立并存储所述图像的多级索引,其中,每个上级索引包括用于确定相邻下级索引的值,所述用于确定相邻下级索引的值用于将该上级索引所涉及的图像划分到相应的相邻下级索引,并且最下级索引包括所述图像的全局唯一标识符;以及Establish and store a multi-level index of the image according to the attached information of the image, wherein each upper-level index includes a value for determining an adjacent lower-level index, and the value for determining an adjacent lower-level index is used to determine the adjacent lower-level index. The images referred to by the upper-level index are divided into corresponding adjacent lower-level indexes, and the lowest-level index includes a globally unique identifier for the image; and
将所述图像存储到所述图像的全局唯一标识符所映射的所述图像的存储地址。storing the image to the storage address of the image mapped by the globally unique identifier of the image.
A2、如A1所述的图像存储方法,所述建立所述图像的多级索引进一步包括:A2, the image storage method as described in A1, said establishment of the multi-level index of the image further includes:
根据所述图像的第一组附属信息建立第一级索引;以及establishing a first-level index according to a first set of auxiliary information of the image; and
根据所述图像的第二组附属信息建立第二级索引。A second level index is established according to the second group of auxiliary information of the image.
A3、如A2所述的图像存储方法,A3, the image storage method as described in A2,
所述建立第一级索引进一步包括:The establishment of the first-level index further includes:
根据所述图像的第一附属信息和采集日期建立所述第一级索引,其中,所述图像的采集日期用于将所述第一级索引所涉及的图像划分到所述第二级索引;Establishing the first-level index according to the first subsidiary information and collection date of the image, wherein the collection date of the image is used to divide the images involved in the first-level index into the second-level index;
所述建立第二级索引进一步包括:The establishment of the second-level index further includes:
根据所述图像的第一附属信息和全局唯一标识符建立所述第二级索引。The second level index is established according to the first attachment information and the globally unique identifier of the image.
A4、如A3所述的图像存储方法,所述第一附属信息进一步包括:图像采集装置的用户标识符和/或图像来源标识符。A4. The image storage method according to A3, the first auxiliary information further includes: a user identifier and/or an image source identifier of the image acquisition device.
A5、如A3或A4所述的图像存储方法,所述方法进一步包括:A5, the image storage method as described in A3 or A4, described method further comprises:
根据图像的采集日期删除最先采集的图像和所述最先采集的图像的索引,以释放存储空间。The first acquired image and the index of the first acquired image are deleted according to the acquisition date of the image, so as to release storage space.
A6、如A1至A4任一项所述的图像存储方法,所述存储所述图像的多级索引进一步包括:A6. The image storage method according to any one of A1 to A4, the storing the multi-level index of the image further includes:
将所述图像的下级索引存储在服务器集群中,其中,所述服务器集群与存储其他图像的下级索引的服务器集群不同。The lower-level index of the image is stored in a server cluster, wherein the server cluster is different from the server cluster storing lower-level indexes of other images.
A7、如A1至A4任一项所述的图像存储方法,所述图像的存储地址与其他图像的存储地址位于不同的服务器集群。A7. The image storage method according to any one of A1 to A4, wherein the storage address of the image is located in a different server cluster from the storage addresses of other images.
本发明实施例还公开了B8、一种图像存储设备,包括:The embodiment of the present invention also discloses B8, an image storage device, comprising:
确定装置,用于确定图像的全局唯一标识符,其中所述全局唯一标识符一对一映射到所述图像的存储地址;determining means, configured to determine a globally unique identifier of an image, wherein the globally unique identifier is one-to-one mapped to a storage address of the image;
索引装置,用于根据所述图像的附属信息建立并存储所述图像的多级索引,其中,An indexing device, configured to establish and store a multi-level index of the image according to the auxiliary information of the image, wherein,
每个上级索引包括用于确定相邻下级索引的值,所述用于确定相邻下级索引的值用于将该上级索引所涉及的图像划分到相应的相邻下级索引,并且最下级索引包括所述图像的全局唯一标识符;以及Each upper-level index includes a value for determining an adjacent lower-level index that is used to divide the image to which the upper-level index refers to a corresponding adjacent lower-level index, and the lowest-level index includes a globally unique identifier for the image; and
存储装置,用于将所述图像存储到所述图像的全局唯一标识符所映射的所述图像的存储地址。A storage device, configured to store the image to a storage address of the image mapped to the globally unique identifier of the image.
B9、如B8所述的图像存储设备,所述索引装置进一步包括:B9, the image storage device as described in B8, the indexing device further includes:
第一索引模块,用于根据所述图像的第一组附属信息建立第一级索引;以及A first index module, configured to establish a first-level index according to the first group of auxiliary information of the image; and
第二索引模块,用于根据所述图像的第二组附属信息建立第二级索引。The second index module is configured to establish a second-level index according to the second group of auxiliary information of the image.
B10、如B9所述的图像存储设备,B10, the image storage device as described in B9,
所述第一索引模块进一步包括:The first indexing module further includes:
第一索引建立单元,用于根据所述图像的第一附属信息和采集日期建立所述第一级索引,其中,所述图像的采集日期用于将所述第一级索引所涉及的图像划分到所述第二级索引;A first index establishment unit, configured to establish the first-level index according to the first auxiliary information and acquisition date of the image, wherein the acquisition date of the image is used to divide the images involved in the first-level index to the second level index;
所述第二索引模块进一步包括:The second indexing module further includes:
第二索引建立单元,用于根据所述图像的第一附属信息和全局唯一标识符建立所述第二级索引。A second index building unit, configured to build the second-level index according to the first attachment information and the globally unique identifier of the image.
B11、如B10所述的图像存储设备,所述第一附属信息进一步包括:图像采集装置的用户标识符和/或图像来源标识符。B11. The image storage device according to B10, the first auxiliary information further includes: a user identifier and/or an image source identifier of the image acquisition device.
B12、如B10或B11所述的图像存储设备,所述设备进一步包括:B12, the image storage device as described in B10 or B11, said device further includes:
删除装置,用于根据图像的采集日期删除最先采集的图像和所述最先采集的图像的索引,以释放存储空间。The deleting device is used for deleting the first collected image and the index of the first collected image according to the collection date of the image, so as to release the storage space.
Claims (10)
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510940189.7A CN105574151B (en) | 2015-12-16 | 2015-12-16 | Image storage method and device |
| PCT/CN2016/106805 WO2017101643A1 (en) | 2015-12-16 | 2016-11-22 | Method and device for image storage |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510940189.7A CN105574151B (en) | 2015-12-16 | 2015-12-16 | Image storage method and device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN105574151A true CN105574151A (en) | 2016-05-11 |
| CN105574151B CN105574151B (en) | 2019-08-06 |
Family
ID=55884282
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201510940189.7A Active CN105574151B (en) | 2015-12-16 | 2015-12-16 | Image storage method and device |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN105574151B (en) |
| WO (1) | WO2017101643A1 (en) |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2017101643A1 (en) * | 2015-12-16 | 2017-06-22 | 北京奇虎科技有限公司 | Method and device for image storage |
| CN108304331A (en) * | 2018-01-30 | 2018-07-20 | 浙江鸿泉车联网有限公司 | Circle queue formula date storage method based on NorFlash and device |
| CN110362575A (en) * | 2019-07-04 | 2019-10-22 | 浙江大华技术股份有限公司 | A kind of method and device for the global index generating data |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110968555B (en) * | 2018-09-30 | 2023-07-04 | 北京国双科技有限公司 | Dimension data processing method and device |
| CN112307035B (en) * | 2020-11-26 | 2024-01-05 | 深圳云天励飞技术股份有限公司 | Method and device for managing characteristic value ID, electronic equipment and storage medium |
Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6629105B1 (en) * | 2000-02-19 | 2003-09-30 | Novell, Inc. | Facilitating user administration of directory trees |
| CN101398869A (en) * | 2008-10-07 | 2009-04-01 | 深圳市蓝韵实业有限公司 | Mass data storage means |
| CN101404029A (en) * | 2008-11-04 | 2009-04-08 | 深圳市蓝韵实业有限公司 | DICOM image file storage method |
| CN101833986A (en) * | 2010-05-20 | 2010-09-15 | 哈尔滨工业大学 | A method for creating a three-level audio index and an audio retrieval method |
| CN103092848A (en) * | 2011-10-28 | 2013-05-08 | 浙江大华技术股份有限公司 | Method for storing and retrieving pictures |
| CN104298747A (en) * | 2014-10-13 | 2015-01-21 | 福建星海通信科技有限公司 | Storage method and retrieval method of massive images |
| CN104679744A (en) * | 2013-11-27 | 2015-06-03 | 常州校果信息服务有限公司 | Storage optimization method of PACS (Picture Archiving and Communication System) |
Family Cites Families (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103488709B (en) * | 2013-09-09 | 2017-06-16 | 东软集团股份有限公司 | A kind of index establishing method and system, search method and system |
| CN103577604B (en) * | 2013-11-20 | 2018-07-06 | 电子科技大学 | A kind of image index structure for Hadoop distributed environments |
| CN105574151B (en) * | 2015-12-16 | 2019-08-06 | 北京奇虎科技有限公司 | Image storage method and device |
-
2015
- 2015-12-16 CN CN201510940189.7A patent/CN105574151B/en active Active
-
2016
- 2016-11-22 WO PCT/CN2016/106805 patent/WO2017101643A1/en active Application Filing
Patent Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6629105B1 (en) * | 2000-02-19 | 2003-09-30 | Novell, Inc. | Facilitating user administration of directory trees |
| CN101398869A (en) * | 2008-10-07 | 2009-04-01 | 深圳市蓝韵实业有限公司 | Mass data storage means |
| CN101404029A (en) * | 2008-11-04 | 2009-04-08 | 深圳市蓝韵实业有限公司 | DICOM image file storage method |
| CN101833986A (en) * | 2010-05-20 | 2010-09-15 | 哈尔滨工业大学 | A method for creating a three-level audio index and an audio retrieval method |
| CN103092848A (en) * | 2011-10-28 | 2013-05-08 | 浙江大华技术股份有限公司 | Method for storing and retrieving pictures |
| CN104679744A (en) * | 2013-11-27 | 2015-06-03 | 常州校果信息服务有限公司 | Storage optimization method of PACS (Picture Archiving and Communication System) |
| CN104298747A (en) * | 2014-10-13 | 2015-01-21 | 福建星海通信科技有限公司 | Storage method and retrieval method of massive images |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2017101643A1 (en) * | 2015-12-16 | 2017-06-22 | 北京奇虎科技有限公司 | Method and device for image storage |
| CN108304331A (en) * | 2018-01-30 | 2018-07-20 | 浙江鸿泉车联网有限公司 | Circle queue formula date storage method based on NorFlash and device |
| CN110362575A (en) * | 2019-07-04 | 2019-10-22 | 浙江大华技术股份有限公司 | A kind of method and device for the global index generating data |
Also Published As
| Publication number | Publication date |
|---|---|
| WO2017101643A1 (en) | 2017-06-22 |
| CN105574151B (en) | 2019-08-06 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP7046172B2 (en) | Computer implementation methods, computer program products, and systems for storing records in shard database shard tables, computer implementation methods, computer program products, and systems for retrieving records from shard database shard tables. System, as well as a system for storing shard databases | |
| CN111931097B (en) | Information display method, device, electronic device and storage medium | |
| EP3188043B1 (en) | Indirect filtering in blended data operations | |
| JP6542909B2 (en) | File operation method and apparatus | |
| CN105574151B (en) | Image storage method and device | |
| CN110291518A (en) | Merging tree garbage indicators | |
| CN104881466B (en) | The processing of data fragmentation and the delet method of garbage files and device | |
| CN110383261A (en) | Stream selection for multi-stream storage | |
| CN110268399A (en) | Merge tree modification for maintenance operations | |
| CN107977396B (en) | A kind of updating method and table data updating device of data table of KeyValue database | |
| CN104462421B (en) | Multi-tenant extended method based on key-value database | |
| CN111401512A (en) | Method and system for convolution in a neural network with variable expansion ratio | |
| JP2012510689A5 (en) | ||
| WO2017096892A1 (en) | Index construction method, search method, and corresponding device, apparatus, and computer storage medium | |
| EP3188042A1 (en) | System and method for performing blended data operations | |
| CN104052824B (en) | Distributed caching method and system | |
| CN105760553A (en) | Data management method and device | |
| CN107256233A (en) | A kind of date storage method and device | |
| US10229142B2 (en) | Method and system for handling binary large objects | |
| CN110532425A (en) | Video data placement formula storage method, device, computer equipment and storage medium | |
| CN106503260B (en) | A method and device for improving the effective storage space of a database | |
| CN110598072B (en) | Feature data aggregation method and device | |
| CN110928895A (en) | A method, device and equipment for data query and data table establishment | |
| US10157216B2 (en) | Data management system and data management method | |
| CN116049180B (en) | Tenant data processing method and device for Paas platform |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant | ||
| TR01 | Transfer of patent right |
Effective date of registration: 20220726 Address after: Room 801, 8th floor, No. 104, floors 1-19, building 2, yard 6, Jiuxianqiao Road, Chaoyang District, Beijing 100015 Patentee after: BEIJING QIHOO TECHNOLOGY Co.,Ltd. Address before: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park) Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd. Patentee before: Qizhi software (Beijing) Co.,Ltd. |
|
| TR01 | Transfer of patent right |