A method for obtaining image vectors for retrieval
By introducing the combination of spatial segmentation and BOF layer in the image vector acquisition method, local feature descriptors are automatically extracted and histogram vectors are calculated, which solves the problems of low image retrieval accuracy and too many parameters in the existing technology, and achieves efficient Image retrieval performance and model lightweighting.
Patent Information
- Application Number
- CN202410662513.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-27
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2044-05-27
AI Technical Summary
Existing image vector acquisition methods are difficult to achieve expected results under conditions such as illumination changes, deformation, occlusion, and cropping, resulting in low image retrieval accuracy, or too many parameters and too large model sizes, resulting in long training and verification processes.
A hybrid aggregated feature index image retrieval model is adopted, including a spatial segmentation layer, a convolution layer and a BOF layer. The image vector is obtained through spatial segmentation and automatic extraction of local feature descriptors, and the radial basis function neurons are used to quantify the output and pass K- means clustering sets the radial basis function center point, calculates the histogram vector to obtain the final image vector, and performs regularization to reduce model complexity.
It improves the performance of image retrieval, reduces the number of network parameters and computational complexity, retains the spatial information of features in the image, reduces storage overhead and calculation volume, and at the same time improves the lightweight model and retrieval accuracy.
Smart Images

Figure CN118227822B
Abstract
Description
Technical Field
[0001] The invention relates to a method for acquiring image vectors for retrieval, and belongs to the technical field of computer vision. Background Art
[0002] Information retrieval technology has always been a hot topic in the field of artificial intelligence research. It allows similar images to be retrieved based on the query image from a huge database through a series of algorithms, and the most similar images are indexed.
[0003] In the early image retrieval methods, traditional methods such as SIFT (Scale-Invariant Feature Transform) + VLAD (Vector of Local Aggregate Descriptors) and SIFT + NetVLAD (Vector of Network Local Aggregate Descriptors) use manually extracted image features, but there is a problem of local information loss, which leads to high storage costs and challenges of too many parameters of convolutional neural networks. In the early days of image retrieval, the focus of research was on extracting global descriptors of images. However, this method is difficult to achieve the expected results under conditions such as illumination changes, deformation, occlusion, and cropping, resulting in low image retrieval accuracy and limiting the application scope of global descriptor algorithms. At this time, the emergence of local feature descriptor extraction methods has largely solved these problems. However, local feature extraction algorithms cannot learn input descriptors. With the significant progress of deep learning in the field of computer vision, convolutional neural network models CNN are used to extract image features. However, although the efficiency and performance of convolutional neural network models in extracting image features are better than traditional feature descriptor extraction methods, there are still problems with too many parameters and large model size of convolutional neural networks.
[0004] The inventors found that existing image vector acquisition methods either have difficulty in achieving the expected results under conditions of lighting changes, deformation, occlusion and cropping, resulting in low image retrieval accuracy, or are unable to learn input descriptors, or have too many parameters and a large model size, resulting in a long training and verification process for existing image vector acquisition methods. Summary of the invention
[0005] The purpose of the present invention is to overcome the deficiencies in the prior art and provide an image vector acquisition method that has the capability of autonomously extracting descriptors and satisfies both lightweight and model retrieval accuracy.
[0006] To achieve the above objectives, the present disclosure is implemented by adopting the following technical solutions:
[0007] In a first aspect, the present disclosure provides a method for obtaining an image vector for retrieval, comprising:
[0008] Get image dataset;
[0009] Input the image dataset into the pre-built hybrid aggregation feature index image retrieval model, and output the image vector for retrieval;
[0010] Wherein, the hybrid aggregate feature index image retrieval model includes a space segmentation layer, a convolution layer and a BOF layer;
[0011] The spatial segmentation layer segments the image dataset according to different spatial segments;
[0012] Image datasets of different spatial segments are input into the convolutional layer to obtain local feature descriptors of different spatial segments;
[0013] Input each local feature descriptor into the BOF (Bag of Features) layer and obtain the corresponding BOF layer output;
[0014] The BOF layer outputs of different local feature descriptors are accumulated into a histogram vector, and the final image vector is obtained according to the histogram vector.
[0015] In some embodiments of the first aspect, the convolutional layer includes a ResNet50 convolutional network module, a Mobilenet_V2 convolutional network module or / and a ConvNeXt convolutional network module.
[0016] In some embodiments of the first aspect, the BOF layer includes a plurality of radial basis function neurons, the radial basis function neurons are used to quantize and output the local feature descriptor, and the method for quantizing the output includes obtaining a VLAD residual of the local feature descriptor;
[0017] Method for obtaining VLAD residuals: input local feature descriptors of different spatial segments and corresponding image data sets into the VLAD layer to obtain VLAD residuals of different spatial segments.
[0018] In some embodiments of the first aspect, the inputting each local feature descriptor into the BOF layer includes presetting a radial basis function center point of the radial basis function neuron, and the method for setting the radial basis function center point is:
[0019] The local feature descriptors are clustered using the K-means clustering method, and the cluster centers are used as the center points of the radial basis functions.
[0020] In some embodiments of the first aspect, the BOF layer output of each local feature descriptor is:
[0021] ;
[0022] In the formula, is the sum of the differences between all radial basis function neurons and the radial basis function center point, that is,i The BOF layer output result of local feature descriptors, i is the counting number of the local feature descriptor, For the i The number of radial basis function neurons corresponding to the local feature descriptor, j is the numbering sequence of radial basis function neurons, For the i The local feature descriptor j The quantized output of radial basis function neurons, It means that the VLAD residual is defined as i The local feature descriptor j Quantized output of radial basis function neurons.
[0023] In some embodiments of the first aspect, the BOF layer outputs of different local feature descriptors are accumulated, and the calculation formula is:
[0024] ;
[0025] In the formula, is the histogram vector, It is the counting number of the output result of the BOF layer. They are the BOF layer output results of different local feature descriptors, Concat is the connection function, K is the total number of local feature descriptors.
[0026] In some embodiments of the first aspect, obtaining a final image vector according to the histogram vector comprises:
[0027] The histogram vector is regularized to obtain a final image vector, and the regularization method includes Intra regularization and / or L2 regularization.
[0028] In a second aspect, the present disclosure further provides an electronic terminal, comprising a processor and a memory connected to the processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the steps of the image vector acquisition method for retrieval as described in any embodiment of the first aspect are performed.
[0029] In a third aspect, the present disclosure further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the image vector acquisition method for retrieval described in any embodiment of the first aspect.
[0030] In a fourth aspect, the present disclosure further provides a computer program product, comprising a computer program / instruction. When the computer program / instruction is executed by a processor, the steps of the image vector acquisition method for retrieval described in any embodiment of the first aspect are implemented.
[0031] Compared with the prior art, the present invention has the following beneficial effects:
[0032] The image vector acquisition method for retrieval provided by the present invention introduces a space segmentation technology before the BOF layer to facilitate the segmentation of space segments for local feature extraction. After the BOF layer quantizes the output, the final feature vector of the image is obtained by splicing the output results of each space segment, thereby effectively improving the performance of image retrieval and reducing the number of parameters in the network, and retaining the spatial information carried by the features in the image; that is, the performance of the model is improved without reducing the accuracy of the image retrieval model, and the storage overhead, calculation amount and the number of convolutional neural network parameters are reduced. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] In order to more clearly illustrate the technical solutions in the present disclosure or the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0034] Figure 1 is a flow chart of the method for obtaining an image vector for retrieval provided in this embodiment;
[0035] Figure 2 yes Figure 1 Schematic diagram of the structure of the hybrid aggregate feature index image retrieval model;
[0036] Figure 3 yes Figure 1 The schematic diagram of the principle of the ResNet50 convolutional network module in this embodiment;
[0037] Figure 4 yes Figure 1 The schematic diagram of the Mobilenet_V2 convolutional network module in this embodiment;
[0038] Figure 5 yes Figure 1 Schematic diagram of the principle of the ConvNeXt convolutional network module in this embodiment. DETAILED DESCRIPTION
[0039] The technical solution of the present invention is described in detail below through the accompanying drawings and specific embodiments. It should be understood that the embodiments of the present invention and the specific features in the embodiments are detailed descriptions of the technical solution of the present invention, rather than limitations on the technical solution of the present invention. The embodiments of the present invention and the technical features in the embodiments may be combined with each other unless there is a conflict.
[0040] The term "and / or" in this article is only a description of the association relationship of the associated objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.
[0041] Embodiment 1
[0042] Figure 1 This is a flow chart of a method for obtaining image vectors for retrieval in the first embodiment of the present invention. This flow chart only shows the logical sequence of the method described in this embodiment. In other possible embodiments of the present invention, different methods may be used without conflict. Figure 1 The steps shown or described are accomplished in the order shown.
[0043] The image vector acquisition method for retrieval provided in this embodiment can be applied to a terminal and can be executed by an electronic device. The device can be implemented by software and / or hardware. The device can be integrated in a terminal, for example, any smart phone, tablet computer or computer device with communication function. Figure 1 The method of this embodiment specifically includes the following steps:
[0044] Get image dataset;
[0045] Input the image dataset into the pre-built hybrid aggregation feature index image retrieval model, and output the image vector for retrieval;
[0046] Wherein, the hybrid aggregate feature index image retrieval model includes a space segmentation layer, a convolution layer and a BOF layer;
[0047] The spatial segmentation layer segments the image dataset according to different spatial segments;
[0048] Image datasets of different spatial segments are input into the convolutional layer to obtain local feature descriptors of different spatial segments;
[0049] Input each local feature descriptor into the BOF layer respectively to obtain the corresponding BOF layer output;
[0050] The BOF layer outputs of different local feature descriptors are accumulated into a histogram vector, and the final image vector is obtained according to the histogram vector.
[0051] It is worth noting that the spatial segmentation layer first performs spatial segmentation on the image dataset. When these segmented image datasets are input into the convolution layer as training sets or validation sets, the number of network parameters in the convolution layer is less than when the unsegmented image dataset is directly input, that is, the introduction of spatial segmentation technology reduces the number of parameters in the convolution layer network. It is worth noting that the local feature descriptions of different spatial segments are accumulated into histogram vectors again after being output by the BOF layer. The histogram vector retains the original spatial information in the image dataset. It is worth noting that in order to reduce the computational complexity, the image dataset is spatially segmented in advance, and the image datasets of different spatial segments are input into the convolution layer separately. The convolution layer does not explicitly consider the spatial layout of the local feature descriptor during feature extraction, which is equivalent to discarding most of the spatial information carried by the local feature descriptor. In order to solve the problem of missing spatial information, the local feature descriptors of different spatial segments can retain the spatial distribution of local features after being accumulated and output by the BOF layer, thereby retaining certain spatial information in the histogram vector. At the same time, the BOF layer has a lower computational complexity than other algorithms with similar functions.
[0052] The image vector acquisition method for retrieval provided in this embodiment improves the retrieval accuracy of the image vector acquired by the method by automatically extracting local feature descriptors of different spatial segments, and also replaces the traditional method of manually extracting local feature descriptors. The number of network parameters of the convolution layer is reduced by segmenting the image data set, and the spatial information is restored by the cumulative output of the BOF layer. The model is lightweight under the premise that the acquired image vector retains the spatial information, and the computational complexity of the image vector acquisition method is reduced. The advantage of computational complexity is particularly evident in the training time spent on the training set and the testing time spent on the test set.
[0053] Embodiment 2
[0054] This embodiment provides a method for obtaining an image vector for retrieval, which is improved on the basis of the first embodiment to enhance the technical effect. For details not provided, please refer to the first embodiment.
[0055] In the first embodiment, in order to solve the problem of missing spatial information, the image data set is spatially segmented in advance. Figure 2, so that the spatial distribution of local features can be retained after the cumulative output of the BOF layer. Optionally, in a further but non-limiting embodiment of the present invention, the hybrid aggregate feature index image retrieval model also includes a VLAD layer, the BOF layer includes a plurality of radial basis function neurons (RBF), the radial basis function neurons are used to quantize and output local feature descriptors, and the method for quantizing the output includes obtaining the VLAD residual of the local feature descriptor; the method for obtaining the VLAD residual is: inputting the local feature descriptor and the image data set of the corresponding spatial segment into the VLAD layer to obtain the VLAD residual of different spatial segments. Among them, Figure 2 In the figure, w: weight, b: bias, D, H, W: the three dimensions of the image dataset.
[0056] Compared with the first embodiment, this embodiment takes into account both accuracy and performance, and uses radial basis function neurons to quantize the image features extracted from the convolution layer, where the behavior of the neurons is consistent with the residual operation of VLAD, and then accumulates them into a histogram vector through BOF. The VLAD algorithm helps to capture the key information of the image. Although the VLAD algorithm has a high computational complexity, the BOF algorithm has a low computational complexity, so the combination of the two balances the computational efficiency.
[0057] The setting parameters of the radial basis function neuron include the setting of the radial basis function center point. Optionally, in a further but non-limiting embodiment of the present invention, the method for setting the radial basis function center point is: feature clustering is performed on the local feature descriptors through the K-means clustering method, and the cluster center is used as the radial basis function center point.
[0058] From the above, it is optional to propose that the output of each local feature descriptor at the BOF layer is:
[0059] ;
[0060] In the formula, is the sum of the differences between all radial basis function neurons and the radial basis function center point, that is, i The BOF layer output result of local feature descriptors, i is the counting number of the local feature descriptor, For the i The number of radial basis function neurons corresponding to the local feature descriptor, j is the numbering sequence of radial basis function neurons, For the i The local feature descriptor j The quantized output of radial basis function neurons, It means that the VLAD residual is defined as i The local feature descriptor j Quantized output of radial basis function neurons.
[0061] After completing the output of multiple local feature descriptors, refer to Figure 2 , and then accumulate the BOF layer outputs of different local feature descriptors to obtain a histogram vector with spatial information. Optionally, the BOF layer outputs of different local feature descriptors are accumulated, and the calculation formula is:
[0062] ;
[0063] In the formula, is the histogram vector, It is the counting number of the output result of the BOF layer. They are the BOF layer output results of different local feature descriptors, Concat is the connection function, K is the total number of local feature descriptors.
[0064] In order to avoid overfitting of the model and improve robustness and generalization ability, this embodiment also uses regularization technology to reduce the complexity of the model. Optionally, the regularization method includes Intra regularization and / or L2 regularization.
[0065] Optionally, in a further but non-limiting embodiment of the present invention, the convolutional layer includes a ResNet50 convolutional network module, a Mobilenet_V2 convolutional network module or / and a ConvNeXt convolutional network module, that is, a local feature descriptor extracted by a convolutional neural network model is used instead of a traditional SIFT (Scale-Invariant Feature Transform) feature as the input of the BOF layer. For the structural diagram of the ResNet50 convolutional network module, the Mobilenet_V2 convolutional network module and the ConvNeXt convolutional network module, see Figure 3 , Figure 4 and Figure 5 . Figure 3 In the figure, BN: batch normalization, RELU: activation function, MAXPOOL: maximum pooling, Conv_blok: convolution bottleneck block, Identity_blok: residual block; Figure 4 In the figure, C, n, s: number of channels, number of convolution kernels, and step size; Figure 5 In the example, ConvNeXt_block: the basic block of the ConvNeXt convolutional network model, dim: the descriptor dimension of the local feature descriptor, h、w : They are the two dimensions of the local feature descriptor.
[0066] This embodiment takes the ResNet50 convolutional network module, the Mobilenet_V2 convolutional network module and the ConvNeXt convolutional network module as examples, and takes the traditional NetVLAD (network local aggregation descriptor vector) model as a control group to compare and verify the technical effect of the image vector acquisition method provided by this embodiment; Pittsburgh30k is used as an experimental data set, and the data set information is shown in Table 1:
[0067] Table 1 Pittsburgh30k dataset information
[0068]
[0069] Among them, Dataset is the dataset, Database is the database, train, test and val are the training set, the validation set after the training model is completed and the test set during the training process, respectively, and Query set is the query set. In order to effectively improve the accuracy and efficiency of image retrieval, so that the system can better cope with different application scenarios and needs, it is necessary to perform some data preprocessing on the original Pittsburgh30k, mainly including: image size normalization, because different image sizes have different features, it is necessary to normalize the size of all images so that feature extraction can be performed at the same scale; image enhancement, improve the quality of the image through histogram equalization and filtering methods, so that feature extraction and similarity calculation are more accurate; you can also reduce the image resolution or crop it to increase the experimental speed.
[0070] Experimental platform: The CPU model used is Intel Xeon Gold 5220R. The GPU model used is NvidiaA100 40G *2, and the system model used is Ubuntu 20.04.5.
[0071] The experiment obtained the recall-25 values of the training set and the test set, the calculation time of 10 rounds of training, and the test time of 1 round. The model accuracy and performance comparison results are shown in Table 2, where the corresponding items of the hybrid aggregation feature index image retrieval model in the image vector acquisition method for retrieval provided in this embodiment are: ResNet50+VLAD_BOF (RVB), Mobilenet_V2+VLAD_BOF (MVB) and ConvNeXt+VLAD_BOF (CVB), and the corresponding comparison items are ResNet50+ NetVLAD, Mobilenet_V2+ NetVLAD and ConvNeXt + NetVLAD, and the comparison item is the classic NetVLAD model.
[0072] Table 2 Comparison of model accuracy and performance
[0073] It is not difficult for those skilled in the art to see that, when the recall-25 values of the training set and the test set are almost unchanged compared to the comparison items, the training time spent on the training set is reduced by 24.07%, 28.87%, and 27.63% respectively compared to the classic NetVLAD; the test time spent on the test set is reduced by 76.02%, 20.34%, and 38.61% respectively compared to the classic NetVLAD. The image vector acquisition method for retrieval provided in this embodiment can effectively reduce the training time, the number of parameters, and the requirements for computing resources. The comparative experimental results show that the image vector acquisition method for retrieval provided in this embodiment has better performance than the traditional method, which verifies the excellent performance of the hybrid aggregate feature index image retrieval model in image retrieval, and is a reliable and practical image retrieval solution.
[0074] The image vector acquisition method for retrieval provided in this embodiment meets the accuracy and efficiency of image retrieval, improves the performance of the model without reducing the accuracy of the image retrieval model, reduces storage overhead, calculation amount and the number of convolutional neural network parameters, thereby improving image retrieval performance in practical applications.
[0075] Embodiment 3
[0076] This embodiment provides an electronic terminal, including a processor and a memory connected to the processor, wherein a computer program is stored in the memory. When the computer program is executed by the processor, the steps of the image vector acquisition method for retrieval provided in Embodiment 1 or 2 are performed.
[0077] This embodiment also provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the steps of the image vector acquisition method for retrieval provided in embodiment one or two are implemented.
[0078] This embodiment also provides a computer program product, including a computer program / instruction, which, when executed by a processor, implements the steps of the image vector acquisition method for retrieval provided in embodiment one or two.
[0079] The electronic terminal, computer-readable storage medium, and computer program product provided in this embodiment have the same technical effects as those of Embodiment 1 or 2, and are not described in detail here.
[0080] It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0081] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0082] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0083] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0084] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the technical principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
[0085] In the description of the present invention, unless otherwise specified, "plurality" means two or more.
[0086] In the description of the present invention, it should be noted that, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood by specific circumstances.
[0087] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the technical principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A method for obtaining an image vector for retrieval, characterized in that: include, Get image dataset; Input the image dataset into the pre-built hybrid aggregation feature index image retrieval model, and output the image vector for retrieval; The hybrid aggregate feature index image retrieval model includes a spatial segmentation layer, a convolution layer and a BOF layer; the BOF layer output of each local feature descriptor is: ; In the formula, is the sum of the differences between all radial basis function neurons and the radial basis function center point, that is, i The BOF layer output result of local feature descriptors, i is the counting number of the local feature descriptor, For the i The number of radial basis function neurons corresponding to the local feature descriptor, j is the numbering sequence of radial basis function neurons, For the i The local feature descriptor j The quantized output of radial basis function neurons, It means that the VLAD residual is defined as i The local feature descriptor j The quantized output of radial basis function neurons; The spatial segmentation layer segments the image dataset according to different spatial segments; Image datasets of different spatial segments are input into the convolutional layer to obtain local feature descriptors of different spatial segments; Input each local feature descriptor into the BOF layer respectively to obtain the corresponding BOF layer output; The BOF layer outputs of different local feature descriptors are accumulated into a histogram vector, and the final image vector is obtained according to the histogram vector.
2. The method for obtaining image vectors for retrieval according to claim 1, characterized in that: The convolutional layer includes a ResNet50 convolutional network module, a Mobilenet_V2 convolutional network module or / and a ConvNeXt convolutional network module.
3. The image vector acquisition method for retrieval according to claim 1, characterized in that: The BOF layer includes a plurality of radial basis function neurons, and the radial basis function neurons are used to quantize and output the local feature descriptor, and the method of quantizing the output includes obtaining the VLAD residual of the local feature descriptor; Method for obtaining VLAD residuals: input local feature descriptors of different spatial segments and corresponding image data sets into the VLAD layer to obtain VLAD residuals of different spatial segments.
4. The image vector acquisition method for retrieval according to claim 3, characterized in that: The step of inputting each local feature descriptor into the BOF layer includes presetting the radial basis function center point of the radial basis function neuron, and the method for setting the radial basis function center point is as follows: The local feature descriptors are clustered using the K-means clustering method, and the cluster centers are used as the center points of the radial basis functions.
5. The method for obtaining image vectors for retrieval according to claim 4, characterized in that: The BOF layer output accumulation of different local feature descriptors is calculated as follows: ; In the formula, is the histogram vector, It is the counting number of the output result of the BOF layer. They are the BOF layer output results of different local feature descriptors, Concat is the connection function, K is the total number of local feature descriptors.
6. The method for obtaining image vectors for retrieval according to claim 1, characterized in that: The method of obtaining the final image vector according to the histogram vector includes: The histogram vector is regularized to obtain a final image vector, and the regularization method includes Intra regularization and / or L2 regularization.
7. An electronic terminal, characterized in that: It comprises a processor and a memory connected to the processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the steps of the image vector acquisition method for retrieval as claimed in any one of claims 1 to 6 are executed.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the image vector acquisition method for retrieval described in any one of claims 1 to 6 are implemented.
9. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instructions are executed by a processor, the steps of the method for obtaining image vectors for retrieval described in any one of claims 1 to 6 are implemented.
