Image content object positioning method and its device, equipment, medium, and product

Through the analysis of deep semantic information feature maps and similarity matrices, we can achieve efficient positioning of unknown products in e-commerce images, solve the problem of insufficient positioning accuracy and versatility in existing technologies, and reduce labeling and training costs.

CN114140626BActive Publication Date: 2024-09-20GUANGZHOU HUADUO NETWORK TECH
View PDF 3 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

In the field of e-commerce, existing image positioning technology has poor migration capabilities and versatility due to various product categories, different image forms, different clarity and viewing angles, and cannot effectively locate unknown products.

Method used

By obtaining the deep semantic information feature map of the target image, calculating the similarity between plane points, constructing a similarity state matrix, pre-selecting seed plane points, and counting the similarity and value to determine the item area, the positioning of image content items is achieved.

Benefits of technology

It improves the accuracy and versatility of image positioning, reduces manual annotation and training costs, is compatible with multiple content items and different product images, and is suitable for the e-commerce field.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114140626B
    Figure CN114140626B
Patent Text Reader

Abstract

The present application discloses a method for locating an object in an image content and its device, equipment, medium, and product, the method comprising: obtaining a feature map of a target image, the feature map being composed of a plurality of plane points, each of which is a high-dimensional vector; calculating the similarity between two plane points, constructing a similarity state matrix with the similarity, so that the elements in the similarity state matrix represent the similarity or dissimilarity between the plane points corresponding to its row coordinates and the plane points corresponding to its column coordinates; preselecting a plurality of plane points from few to many according to the number of similar plane points to form a preliminary set, searching for plane points similar to the seed plane point with the least similar plane points to form a seed set; calculating the sum of the similarities between each plane point in the feature map and all the plane points in the seed set, and determining that the corresponding plane point belongs to the object area when the sum is greater than a preset threshold. The present application can realize the effective positioning of the content items in the target image, and has wide versatility.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of image recognition technology, and in particular to a method for locating an item in an image content and a corresponding device, computer equipment, computer-readable storage medium, and computer program product. Background Art

[0002] Image positioning technology is a basic work in image recognition technology. In reality, a large number of application scenarios require the use of image positioning technology, including face recognition, object recognition, etc. By identifying the content object from the picture, the corresponding image of the content object can be cropped, and further other tasks such as image retrieval, matching, and annotation can be performed on the image of the content object. In the context of the rapid development of artificial intelligence technology, it can also be used to provide various neural network models with accurately expressed content object pictures for training the corresponding neural network models.

[0003] In the exemplary e-commerce application field, related image recognition technologies such as product identification and product retrieval are very important links, which are crucial for the subsequent related analysis of products, and product positioning is the primary link in product identification and retrieval.

[0004] Current object location technology requires a lot of manual annotation to train the location model. On the one hand, considering the huge number of e-commerce product categories, it is unrealistic to manually locate and annotate every category of product, and the corresponding cost is very high. On the other hand, unlike facial images, which have obvious common features, the various product images in the e-commerce field have different shapes, and the quality of product images is often uneven due to the influence of clarity, shooting angle, object size, background noise, etc.

[0005] Therefore, it can be seen that various reasons lead to the poor migration ability and versatility of various widely used positioning models, and they cannot effectively locate unknown products. Therefore, it is necessary to explore a new type of image positioning technology to meet the needs of related fields. Summary of the invention

[0006] The primary purpose of the present application is to solve at least one of the above problems and to provide an image content item positioning method and its corresponding device, computer equipment, computer-readable storage medium, and computer program product.

[0007] In order to meet the various objectives of this application, this application adopts the following technical solutions:

[0008] A method for locating an image content item provided for one of the purposes of the present application comprises the following steps:

[0009] Obtaining a feature map representing deep semantic information of a target image, wherein the feature map is composed of a plurality of plane points, each of which is a high-dimensional vector;

[0010] Calculate the similarity between two plane points, and construct a similarity state matrix based on the similarity, so that each element in the similarity state matrix represents the similarity or dissimilarity between the plane point corresponding to its row coordinate and the plane point corresponding to its column coordinate;

[0011] Preselect multiple plane points from few to many according to the number of similar plane points to form a preliminary set, and search in the preliminary set for plane points similar to the seed plane point with the least similar plane points to form a seed set;

[0012] The sum of similarities between each plane point in the feature map and all plane points in the seed set is calculated. When the sum is greater than a preset threshold, the corresponding plane point is determined to belong to the object area, and the image corresponding to the object area is obtained.

[0013] In a further embodiment, obtaining a feature map representing deep semantic information of a target image includes the following steps:

[0014] Get the target image;

[0015] The target image is cut into multiple segmented images using a pre-trained image feature interaction model and the image feature vectors are extracted respectively.

[0016] Using the image feature interaction model to perform feature interaction on the image feature vectors of the segmented image to obtain an intermediate vector;

[0017] The image feature interaction model is used to normalize the intermediate vector into a feature map, so that the feature map is composed of multiple plane points, and each plane point is a high-dimensional vector.

[0018] In a further embodiment, the similarity between two plane points is calculated, and a similarity state matrix is ​​constructed based on the similarity, including the following steps:

[0019] Calculate the similarity between two plane points in the feature graph, and construct a corresponding similarity value matrix, in which each element stores the similarity value between the plane point corresponding to its row coordinate and the plane point corresponding to its column coordinate;

[0020] A corresponding similarity state matrix is ​​constructed according to the similarity value matrix, wherein each element in the similarity state matrix represents the similarity or dissimilarity between the plane point corresponding to its row coordinate and the plane point corresponding to its column coordinate.

[0021] In a preferred embodiment, the similarity values ​​in the similarity value matrix are normalized to the interval [-1, 1], and the value 1 in the similarity state matrix represents similarity, and the value 0 represents dissimilarity.

[0022] In a further embodiment, a plurality of plane points are preselected from a small number to a large number according to the number of similar plane points to form a preliminary set, and plane points similar to the seed plane point with the least similar plane points are searched in the preliminary set to form a seed set, including the following steps:

[0023] According to the similarity state matrix, the total point similarity of each plane point in the feature map is counted, wherein the total point similarity represents the total number of plane points similar to the plane point, and a similarity total sequence consisting of the similarity totals of each plane point is obtained;

[0024] Reversely sort the similarity total amount sequence, and preselect a plurality of plane points of a specified number from the least to the most according to the point similarity total amount, to construct a preliminary set;

[0025] The plane point with the smallest total point similarity in the preliminary set is determined as a seed point, and all plane points similar to the seed point are selected from the preliminary set to construct a seed set.

[0026] In a further embodiment, the sum of similarities between each plane point in the feature map and all plane points in the seed set is calculated. When the sum is greater than a preset threshold, it is determined that the corresponding plane point belongs to the object area, and an image corresponding to the object area is obtained, including the following steps:

[0027] According to the similarity value matrix, the sum of similarities between each plane point in the feature map and all plane points in the seed set is calculated;

[0028] Determine whether the sum is greater than a preset threshold value, and when the sum is greater than the preset threshold value, determine that the corresponding plane point belongs to the object area;

[0029] A corresponding image is extracted from the target image according to the object region as a content item image.

[0030] In a specific embodiment, extracting a corresponding image from the target image according to the object area includes the following steps:

[0031] For each object region, determine whether the object region overlaps with the target image. If not, the object region is considered valid. After the feature values ​​of the plane points of the object region in the feature map are cleared to zero, the whole process of determining the object region is restarted to iteratively determine the object region.

[0032] If the current object region overlaps with the target image, the object region is determined to be invalid, and the iteration to determine the object region is stopped;

[0033] One or more corresponding content item images are extracted from the target image according to the item regions determined to be valid.

[0034] An image content object positioning device provided to meet one of the purposes of the present application includes: an image conversion module, a similarity construction module, a neighborhood screening module, and an object positioning module, wherein the image conversion module is used to obtain a feature map representing deep semantic information of a target image, the feature map is composed of multiple plane points, and each plane point is a high-dimensional vector; the similarity construction module is used to calculate the similarity between two plane points, and construct a similarity state matrix based on the similarity, so that each element in the similarity state matrix represents the similarity or dissimilarity between the plane point corresponding to its row coordinate and the plane point corresponding to its column coordinate; the neighborhood screening module is used to pre-select multiple plane points from few to many according to the number of similar plane points to form a preliminary set, and search in the preliminary set for plane points similar to the seed plane point with the least similar plane points to form a seed set; the object positioning module is used to count the sum of the similarities between each plane point in the feature map and all the plane points in the seed set, and when the sum is greater than a preset threshold, it is determined that the corresponding plane point belongs to an object area, and the image corresponding to the object area is obtained.

[0035] In a further embodiment, the image conversion module includes: an image acquisition submodule, used to acquire a target image; a feature encoding submodule, used to cut the target image into multiple subdivided images using a pre-trained image feature interaction model and extract image feature vectors respectively; a feature interaction submodule, used to perform feature interaction on the image feature vectors of the subdivided images using the image feature interaction model to obtain an intermediate vector; and a normalization processing submodule, used to normalize the intermediate vector into a feature map using the image feature interaction model, so that the feature map is composed of multiple plane points, and each plane point is a high-dimensional vector.

[0036] In a further embodiment, the similarity construction module includes: a numerical matrix submodule, which is used to calculate the similarity between each pair of plane points in the feature map and construct a corresponding similarity numerical matrix, in which each element stores the similarity value between the plane point corresponding to its row coordinate and the plane point corresponding to its column coordinate; a state matrix submodule, which is used to construct a corresponding similarity state matrix based on the similarity numerical matrix, in which each element in the similarity state matrix represents the similarity or dissimilarity between the plane point corresponding to its row coordinate and the plane point corresponding to its column coordinate.

[0037] In a preferred embodiment, the similarity values ​​in the similarity value matrix are normalized to the interval [-1, 1], and the value 1 in the similarity state matrix represents similarity, and the value 0 represents dissimilarity.

[0038] In a further embodiment, the neighborhood screening module includes: a similarity statistics submodule, which is used to count the total amount of point similarity of each plane point in the feature map according to the similarity state matrix, wherein the total amount of point similarity represents the total number of plane points similar to the plane point, and obtains a similarity total amount sequence composed of the similarity totals of each plane point; a region rough selection submodule, which is used to reversely sort the similarity total amount sequence, and pre-select a rated number of multiple plane points from small to large according to the point similarity total amount, and construct them into a preliminary set; a neighborhood selection submodule, which is used to determine the plane point with the smallest total amount of point similarity in the preliminary set as a seed point, and select all plane points similar to the seed point from the preliminary set to construct a seed set.

[0039] In a further embodiment, the object positioning module includes: a similarity determination submodule, which is used to calculate the sum of the similarities between each plane point in the feature map and all plane points in the seed set according to the similarity value matrix; a region selection submodule, which is used to determine whether the sum is greater than a preset threshold value. When the sum is greater than the preset threshold value, it is determined that the corresponding plane point belongs to the object region; and a cutout processing submodule, which is used to extract the corresponding image from the target image according to the object region as the content object image.

[0040] In a specific embodiment, the cutout processing submodule includes: a valid determination unit, which is used to determine whether each item area overlaps with the target image, and if not, determine that the item area is valid, clear the feature value of the plane point of the item area in the feature map, and then restart the whole process of determining the item area to iteratively determine the item area; an invalid determination unit, which is used to determine that the item area is invalid if the current item area overlaps with the target image, and stop iteratively determining the item area; and a cutout extraction unit, which is used to extract one or more corresponding content item images from the target image according to the item area determined to be valid.

[0041] A computer device provided to meet one of the purposes of the present application includes a central processing unit and a memory, wherein the central processing unit is used to call and run a computer program stored in the memory to execute the steps of the image content item locating method described in the present application.

[0042] A computer-readable storage medium is provided to meet another purpose of the present application, which stores a computer program implemented according to the image content object positioning method in the form of computer-readable instructions. When the computer program is called and executed by a computer, the steps included in the method are executed.

[0043] A computer program product provided to meet another purpose of the present application includes a computer program / instruction, which implements the steps of the method described in any embodiment of the present application when executed by a processor.

[0044] Compared with the prior art, the advantages of this application are as follows:

[0045] First, based on the feature map of the deep semantic representation of the target image, the present application regards each high-dimensional vector therein as a plane point for similarity calculation, and then determines a seed set from the plane points with fewer similar plane points based on the similarity of each plane point. This is actually equivalent to determining a candidate area from the feature map, and then determining the plane points in the feature map belonging to the object area based on the overall similarity between each plane point in the feature map and each plane point in the seed set, thereby determining the object area. Accordingly, the present application utilizes the similarity of the same content items in the image and adopts statistical means rather than manual annotation or neural network models to effectively determine the object area in the target image, which is more efficient and can save a lot of annotation or training costs.

[0046] Secondly, the present application technically first determines a preliminary set composed of multiple plane points, which are plane points with a relatively small total amount of point similarity. Then, a seed plane point with a minimum total amount of point similarity is used to find other plane points similar to the seed plane point in the preliminary set, thereby constructing a seed set. This seed set is equivalent to representing a common feature composed of similar plane points. Based on this, each plane point in the feature map is further traversed, and the similarity and value of each plane point with each plane point in the seed set are used as a measurement standard. The plane points in the feature map that are generally similar to the plane points in the seed set are determined to be plane points of the object area, thereby confirming the image corresponding to the object area point by point. This method utilizes the deep semantic similarity between plane points, effectively shields interference factors such as background noise, clarity, image size, and shooting angle, and can locate the object area more accurately.

[0047] In addition, unlike the use of neural network models to locate image items, based on the implementation principle of the present application, the positioning of content items in the image does not need to rely on the similar features of the training samples, but can be achieved by operating at the pixel level. Therefore, for the content item positioning of product images in the e-commerce field, it can be compatible with the situation where the product image contains multiple content items and is compatible with different product images containing different content items. It has a wider range of versatility and is more suitable for the e-commerce field than the existing technology. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:

[0049] Figure 1A flowchart of a typical embodiment of the image content item positioning method of the present application;

[0050] Figure 2 Schematic diagram of the process of obtaining a feature map of a target image according to an embodiment of the present application;

[0051] Figure 3 Schematic diagram of the process of obtaining a seed set according to a similar state matrix in an embodiment of the present application;

[0052] Figure 4 A schematic diagram of a process of determining an object region based on a seed set in an embodiment of the present application;

[0053] Figure 5 A flowchart of a process of applying an iterative mechanism in an embodiment of the present application;

[0054] Figure 6 This is a principle block diagram of the image content object locating device of the present application;

[0055] Figure 7 A schematic diagram of the structure of a computer device used in this application. DETAILED DESCRIPTION

[0056] The embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present application, and cannot be interpreted as limiting the present application.

[0057] It will be understood by those skilled in the art that, unless expressly stated, the singular forms "one", "said", and "the" used herein may also include plural forms. It should be further understood that the term "comprising" used in the specification of the present application refers to the presence of the features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or groups thereof. It should be understood that when we refer to an element as being "connected" or "coupled" to another element, it may be directly connected or coupled to the other element, or there may be an intermediate element. In addition, the "connection" or "coupling" used herein may include wireless connection or wireless coupling. The term "and / or" used herein includes all or any unit and all combinations of one or more associated listed items.

[0058] It will be understood by those skilled in the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as those generally understood by those skilled in the art to which this application belongs. It should also be understood that terms such as those defined in general dictionaries should be understood to have meanings consistent with those in the context of the prior art, and will not be interpreted with idealized or overly formal meanings unless specifically defined as here.

[0059] It will be understood by those skilled in the art that the "client", "terminal" and "terminal device" used herein include both devices with wireless signal receivers, which are devices with only wireless signal receivers without transmission capabilities, and devices with receiving and transmitting hardware, which are devices with receiving and transmitting hardware capable of two-way communication on a two-way communication link. Such devices may include: cellular or other communication devices such as personal computers, tablet computers, which have single-line displays or multi-line displays or cellular or other communication devices without multi-line displays; PCS (Personal Communications Service, personal communication system), which can combine voice, data processing, fax and / or data communication capabilities; PDA (Personal Digital Assistant, personal digital assistant), which may include a radio frequency receiver, pager, Internet / intranet access, web browser, notepad, calendar and / or GPS (Global Positioning System, global positioning system) receiver; conventional laptop and / or palmtop computers or other devices, which have and / or include a conventional laptop and / or palmtop computer or other device with and / or including a radio frequency receiver. The "client", "terminal" and "terminal device" used herein may be portable, transportable, installed in a vehicle (air, sea and / or land), or suitable for and / or configured to run locally, and / or in a distributed form, at any other location on the earth and / or in space. The "client", "terminal" and "terminal device" used herein may also be a communication terminal, an Internet terminal, a music / video playing terminal, for example, a PDA, a MID (Mobile Internet Device) and / or a mobile phone with a music / video playing function, or a smart TV, a set-top box and other devices.

[0060] The hardware referred to by the names such as "server", "client", and "service node" in this application is essentially an electronic device with the equivalent capabilities of a personal computer. It is a hardware device with the necessary components revealed by the von Neumann principle, such as a central processing unit (including an arithmetic unit and a controller), a memory, an input device, and an output device. The computer program is stored in its memory, and the central processing unit calls the program stored in the external memory into the internal memory for execution, executes the instructions in the program, and interacts with the input and output devices to complete specific functions.

[0061] It should be pointed out that the concept of "server" referred to in this application can also be extended to the case of server clusters. According to the network deployment principle understood by those skilled in the art, the servers should be logically divided. In physical space, these servers can be independent of each other but can be called through interfaces, or integrated into a physical computer or a set of computer clusters. Those skilled in the art should understand this flexibility, and should not use it to restrict the implementation of the network deployment method of this application.

[0062] Unless expressly specified, one or more technical features of the present application can be deployed on a server for implementation and accessed by a client through a remote call to obtain an online service interface provided by the server, or can be directly deployed and run on a client for access.

[0063] The neural network models referenced or may be referenced in this application, unless expressly specified, can be deployed on a remote server and remotely called on the client, or can be deployed and directly called on a client with sufficient device capabilities. In some embodiments, when it runs on the client, its corresponding intelligence can be obtained through transfer learning to reduce the requirements for the client's hardware operating resources and avoid excessive occupation of the client's hardware operating resources.

[0064] Unless explicitly specified, the various data involved in this application can be stored remotely on a server or on a local terminal device, as long as it is suitable for being called by the technical solution of this application.

[0065] Those skilled in the art should be aware that, although the various methods of the present application are described based on the same concept and thus present commonality to each other, unless otherwise specified, these methods can be independently executed. Similarly, for each embodiment disclosed in the present application, they are all proposed based on the same inventive concept, therefore, concepts with the same expression, and concepts that are appropriately changed for convenience despite different expressions, should be understood as equivalent.

[0066] Unless the mutually exclusive relationship between the embodiments to be disclosed in this application is explicitly stated, the relevant technical features involved in each embodiment can be cross-combined to flexibly construct a new embodiment, as long as such combination does not deviate from the creative spirit of this application and can meet the needs of the prior art or solve certain deficiencies in the prior art. Those skilled in the art should be aware of this flexibility.

[0067] The image content object positioning method of the present application can be programmed into a computer program product and deployed in a client or server for execution, so that the method can be executed by accessing an interface opened after the computer program product is executed and performing human-computer interaction with the computer program product through a graphical user interface.

[0068] The application scenario exemplified in this application is an application scenario in the e-commerce field where content items in product images need to be located. In this scenario, when product images need to be retrieved and matched for the needs of product classification, image search, source matching, advertising recommendation, etc., the technical solution of this application is first applied to the product images for pre-processing of content item positioning to obtain the corresponding content item image, and then the content item image is transmitted to various neural network models that meet the corresponding needs for further image recognition, and the tasks that meet the corresponding needs are performed according to the image feature vector of image recognition to obtain the corresponding results. In addition, the technical solution of this application can be used in many other application scenarios to identify the image corresponding to the content item in any picture. Therefore, it can be understood that although the technical solution of this application performs better in the e-commerce field when locating the content item of product images, it itself has wide versatility and can be transferred to related application scenarios in any other field.

[0069] See also Figure 1 In a typical embodiment, the image content item positioning method of the present application includes the following steps:

[0070] Step S1100: Obtain a feature map representing deep semantic information of the target image, wherein the feature map is composed of a plurality of plane points, each of which is a high-dimensional vector:

[0071] For the target image that needs to locate the content item, a pre-trained neural network model can be used to extract its deep semantic information to obtain its corresponding feature map. The feature map can be adapted to the input of the target image and extracted in real time using the neural network model, or it can be pre-extracted by the neural network model and stored in the database, and can be directly called when implementing the technical solution of the present application.

[0072] In the case of real-time acquisition of the feature map of the target image, the target image can be uploaded by the user in real time or called from a specified gallery. The target image can be a picture of any scale and compatible with multiple formats, such as JPG, PNG, etc.

[0073] The feature map is the result of representation learning of the deep semantic information of the target image, and is usually represented as a three-dimensional feature matrix of length*width*height, and each element in the feature matrix stores the corresponding eigenvalue of the element. In this application, the surface of length*width is defined as a point plane, and the point plane is composed of a number of plane points of length*width. Each plane point has a high-dimensional vector with a dimension corresponding to the number of elements in the height direction, that is, each high-dimensional vector represented along the height direction is regarded as a plane point. The height direction, in other alternative terms in this field, can also be referred to as an image channel. In theory, the output of the feature map can be determined according to the normalized output specifications of the corresponding neural network model. For example, in one specification, a feature map of a scale of 16*16*384 can be output. Those skilled in the art can understand that the appropriate changes in the specifications of the feature map in the three dimensions of length, width and height do not affect the implementation of this application.

[0074] The neural network model generally adopts a model based on a convolutional neural network, including but not limited to an application-oriented neural network model based on a basic network model architecture such as CNN and RNN, such as Resnet, VisionTransformer (ViT), EfficientNet, etc. In theory, any neural network model that can extract the deep semantic information of the target image and obtain the corresponding feature vector represented by a three-dimensional feature matrix as a feature map can be used in this application as a tool for preparing the feature map. For this, technicians in this field can flexibly choose.

[0075] Step S1200: Calculate the similarity between two plane points, and construct a similarity state matrix based on the similarity, so that each element in the similarity state matrix represents the similarity or dissimilarity between the plane point corresponding to its row coordinate and the plane point corresponding to its column coordinate:

[0076] To implement this step, refer to the following process:

[0077] Step S1210, calculate the similarity between the two plane points in the feature map, and construct a corresponding similarity value matrix, in which each element stores the similarity value between the plane point corresponding to its row coordinate and the plane point corresponding to its column coordinate:

[0078] Taking a feature map of 16*16*384 scale as an example, there are 16*16=256 plane points. Therefore, the similarity between the two plane points is calculated to obtain the corresponding similarity values. These similarity values ​​can be stored in a square matrix array to store the similarity values ​​between the two plane points in the form of a square matrix. In combination with this example, the scale specification of the square matrix is ​​256*256.

[0079] When calculating the similarity value, any algorithm such as cosine similarity algorithm, Euclidean distance algorithm, Pearson correlation coefficient algorithm, Tanimoto coefficient algorithm, Jaccard similarity coefficient algorithm, etc. can be used for calculation. For the convenience of calculation, the similarity value can be normalized. For example, in this embodiment, the similarity value can be normalized to a specific value within the value space range of [-1,1].

[0080] To facilitate visual understanding, it can be regarded as a similar numerical matrix, whose row coordinates and column coordinates are arranged in the same order according to each of the plane points. Subsequent operations can perform matrix transformation calculations based on the corresponding structure of this similar numerical matrix, thereby ensuring the operational efficiency of the present application.

[0081] Step S1220: construct a corresponding similarity state matrix according to the similarity value matrix, wherein each element in the similarity state matrix represents the similarity or dissimilarity between the plane point corresponding to its row coordinate and the plane point corresponding to its column coordinate:

[0082] For the convenience of operation, a similar state matrix is ​​constructed corresponding to the similar value matrix. The similar state matrix is ​​also represented in the form of a square matrix array, so its row coordinates and column coordinates are also arranged in the same order according to the plane points, wherein each element can represent in numerical form whether the plane point corresponding to its row coordinate and the plane point corresponding to its column coordinate are similar. Specifically, according to whether the similarity value between the two plane points in the similar value matrix exceeds the preset threshold, it is determined whether the elements corresponding to the two plane points store the numerical values ​​representing similarity or the numerical values ​​representing dissimilarity. For example, when the similarity value is normalized to the numerical space of [-1,1], the preset threshold can be set to 0. Accordingly, when making a judgment, if the similarity value of the two plane points is greater than 0, the value of the corresponding element in the similar state matrix is ​​stored as 1, otherwise it is stored as 0. Therefore, if the value in the element is 1, it means that the two plane points corresponding to the element are similar, and if the value in the element is 0, it means that the two plane points corresponding to the element are not similar.

[0083] Step S1200 is implemented through step S1210 to step S1220, but the principle disclosed by this process can be flexibly implemented by those skilled in the art. For example, those skilled in the art can use a variety of data structures to implement the same function without being limited by the data structure of the array. Accordingly, the normalized value space of the similarity value and the preset threshold used to determine whether similarity is formed can also be flexibly implemented by those skilled in the art in theory. Therefore, those skilled in the art should understand that the explanation of step S1200 should not be limited by the above process.

[0084] Step S1300: preselect multiple plane points from the least to the most according to the number of similar plane points to form a preliminary set, and search in the preliminary set for plane points similar to the seed plane point with the least similar plane points to form a seed set:

[0085] In order to determine a preliminary range, a preliminary set consisting of multiple plane points can be determined based on the similar state matrix. Specifically, statistics can be first performed based on the values ​​of each element in the similar state matrix to calculate the total point similarity of similar plane points owned by each plane point. Specifically, the total point similarity of the plane points corresponding to the row can be determined by counting the number of elements storing the value 1 in each row (or column) of the similar state matrix, thereby obtaining a similarity total sequence. Then, according to the similarity total sequence, according to the rated number, some plane points are selected from the least to the most according to the point similarity total, and these plane points are constructed into the preliminary set. The rated number can be flexibly selected by those skilled in the art, and it is generally recommended to adopt a middle value. For example, in combination with the aforementioned example of 256 plane points, the rated value can be set to any value between 100 and 150. Of course, values ​​outside this range are also allowed, but if the seeds in the preliminary set are too close to 0 or too close to the total number of plane points in the feature map, then there are too few or too many plane points in the preliminary set, which may cause the algorithm to be inefficient for determining the object area. Therefore, the rated value can be flexibly determined by those skilled in the art based on the principles disclosed herein or their prior knowledge or experimental results.

[0086] The preliminary set defines an appropriate range for the subsequent determination of the seed set, so as to avoid the construction of the seed set being too small or too large.

[0087] In order to determine the plane point corresponding to the object area, the seed set is constructed first. In the process of constructing the seed set, the plane point with the least similar plane points is first determined from the preliminary set, that is, a plane point corresponding to the minimum similarity total value of the points in the similarity total amount sequence is determined, and the plane point is used as the seed plane point.

[0088] After the seed plane point is determined, the plane point similar to the seed plane point in the preliminary set is searched according to the similar state matrix. Specifically, the plane point that belongs to the preliminary set and has an element value of 1 associated with the seed plane point can be found, and the found plane point is used as the element of the seed set. After the traversal of the plane points of the preliminary set is completed, the plane points in the preliminary set that belong to the seed set can be screened out and stored in the seed set.

[0089] At this point, a corresponding seed set is obtained, which includes multiple plane points. According to statistical principles, it can be understood that the plane points in the seed set are usually less than the plane points in the preliminary set. The plane points in the seed set are all plane points similar to the seed plane points. Therefore, in the image, the seed set frames some plane points in the feature map that have significant adjacent and similar relationships in features, which can be used as reference information to determine whether other plane points on the feature map are close to them.

[0090] Step S1400: Calculate the sum of similarities between each plane point in the feature map and all plane points in the seed set. When the sum is greater than a preset threshold, determine that the corresponding plane point belongs to the object area, and obtain the image corresponding to the object area:

[0091] The plane points in the seed set are not enough to define the corresponding object area, so the whole feature map is expanded to make further judgments. To this end, for each plane point in the feature map, the sum of the similarities between each plane point and all the plane points in the seed set can be counted by querying the similarity value matrix. If this sum is still greater than the preset threshold, it is judged to be similar to the plane points in the seed set, so that the corresponding plane point in the feature map is included in the object area. The preset threshold referred to here is the same as the preset threshold used to determine the element representation value in the similarity state matrix. Therefore, the two can use the same setting. For example, when the similarity value has been pre-normalized to the interval [-1,1], the preset threshold can be set to 0.

[0092] After traversing all the plane points of the entire feature map and determining the plane points that belong to the item area or do not belong to the item area, the corresponding item area can be obtained in theory. Further, through appropriate conversion, the scale of the item area can be mapped to the selected box in the target image, and the area corresponding to the target image can be cropped according to the selected box to obtain the image corresponding to the item area as the corresponding content item image. The content item image can meet the needs of different tasks and is used to achieve classification, matching, retrieval, etc. after feature extraction.

[0093] As for the process of converting the item area into the selected box, it can be flexibly implemented by those skilled in the art according to the actual situation. For example, if the original image of the target image is N*N and the output feature map is 16*16*384, it is correspondingly reduced to 1 / 16 size. Based on this, after determining the coordinates of the corresponding box in the feature map according to the plane point to which the item area belongs, the coordinates are correspondingly magnified 16 times and mapped to the target image, the range of the corresponding content item image can be determined, and the corresponding content item image can be obtained by cropping accordingly.

[0094] Through the disclosure of this typical embodiment, it is not difficult to see that the present application has many positive advantages over the prior art, including but not limited to:

[0095] First, based on the feature map of the deep semantic representation of the target image, the present application regards each high-dimensional vector therein as a plane point for similarity calculation, and then determines a seed set from the plane points with fewer similar plane points based on the similarity of each plane point. This is actually equivalent to determining a candidate area from the feature map, and then determining the plane points in the feature map belonging to the object area based on the overall similarity between each plane point in the feature map and each plane point in the seed set, thereby determining the object area. Accordingly, the present application utilizes the similarity of the same content items in the image and adopts statistical means rather than manual annotation or neural network models to effectively determine the object area in the target image, which is more efficient and can save a lot of annotation or training costs.

[0096] Secondly, the present application technically first determines a preliminary set composed of multiple plane points, which are plane points with a relatively small total amount of point similarity. Then, a seed plane point with a minimum total amount of point similarity is used to find other plane points similar to the seed plane point in the preliminary set, thereby constructing a seed set. This seed set is equivalent to representing a common feature composed of similar plane points. Based on this, each plane point in the feature map is further traversed, and the similarity and value of each plane point with each plane point in the seed set are used as a measurement standard. The plane points in the feature map that are generally similar to the plane points in the seed set are determined to be plane points of the object area, thereby confirming the image corresponding to the object area point by point. This method utilizes the deep semantic similarity between plane points, effectively shields interference factors such as background noise, clarity, image size, and shooting angle, and can locate the object area more accurately.

[0097] In addition, unlike the use of neural network models to locate image items, based on the implementation principle of the present application, the positioning of content items in the image does not need to rely on the similar features of the training samples, but can be achieved by operating at the pixel level. Therefore, for the content item positioning of product images in the e-commerce field, it can be compatible with the situation where the product image contains multiple content items and is compatible with different product images containing different content items. It has a wider range of versatility and is more suitable for the e-commerce field than the existing technology.

[0098] See also Figure 2 In a further embodiment, the step S1100 of obtaining a feature map representing deep semantic information of a target image comprises the following steps:

[0099] Step S1110: Acquire target image:

[0100] In this embodiment, feature extraction is performed directly based on the target image, and for this purpose, the target image can be called from a database or obtained in real time. The target image can be a product image submitted or stored by a user on an e-commerce platform. Preferably, the target image can be pre-cropped to a standard specification, such as a 224*224 pixel specification.

[0101] Step S1120: Use the pre-trained image feature interaction model to cut the target image into multiple subdivided images and extract image feature vectors respectively:

[0102] In this embodiment, an image feature interaction model is used to extract a feature map from the target image.

[0103] The image feature interaction model, this embodiment recommends the use of the ViT model, that is, the Vision Transformer neural network model for obtaining the feature map of the target image. The various data of the measured performance of the neural network model are relatively excellent. The model adopts the principle of self-supervised learning. After being trained to a convergence state with a large number of commodity pictures, it can learn the corresponding deep semantic information representation ability, and is suitable for extracting the corresponding image feature vector, that is, the feature map, from the commodity picture as the target image. According to the characteristics of the model, in its training idea, the teacher network is used to supervise the training of the student network. Both networks use the DeiT model, and the representation learning of the student network is guided by the output of the teacher network. The weight of the teacher network is updated by the sliding average of the weight of the student network. In this regard, those skilled in the art should know, so I will not elaborate. In short, after self-supervised training, the model can learn the ability to extract feature maps from the target image. Since the ViT model can realize self-supervised learning, its training process also does not need to rely on manual annotation, which can greatly save the deployment cost of the technical solution of this application.

[0104] According to the inherent functions of the ViT model, the target image input therein is first cut into multiple segmented images, and then image feature vectors are extracted from these segmented images, and these image feature vectors are spliced ​​into a comprehensive feature vector, so as to implement feature interaction on all image feature vectors on this basis.

[0105] Step S1130: Use the image feature interaction model to perform feature interaction on the image feature vectors of the segmented image to obtain an intermediate vector:

[0106] Similarly, according to the inherent functions of the ViT model, based on the multi-layer self-attention mechanism, feature interaction is implemented on the comprehensive feature vector, that is, feature interaction between the various image feature vectors is realized, so as to obtain the corresponding intermediate vector.

[0107] Step S1140: normalize the intermediate vector into a feature map using the image feature interaction model, so that the feature map is composed of multiple plane points, each of which is a high-dimensional vector:

[0108] According to the inherent function of the ViT model, the intermediate vector is finally normalized into a three-dimensional feature matrix representation, that is, a feature map corresponding to the target image is obtained. As mentioned above, the feature map is composed of multiple plane points, each of which is a high-dimensional vector.

[0109] This embodiment uses an image feature interaction model to achieve deep interaction between deep semantic features of the target image and obtain a corresponding feature map. The feature map better represents the target image and lays a solid foundation for the subsequent determination of the object area. The use of the ViT model as the image feature interaction model can further save the training cost of the model, thereby making the technical solution of the present application easier to implement.

[0110] See also Figure 3 In a further embodiment, the step S1300, preselecting a plurality of plane points from few to many according to the number of similar plane points to form a preliminary set, searching in the preliminary set for plane points similar to the seed plane point with the least similar plane points to form a seed set, comprises the following steps:

[0111] Step S1310: According to the similarity state matrix, the total point similarity of each plane point in the feature map is counted, and the total point similarity represents the total number of plane points similar to the plane point, and a similarity total sequence consisting of the similarity totals of each plane point is obtained:

[0112] On the basis of obtaining the similarity state matrix, when counting the total amount of point similarity of each plane point in the feature map, a one-dimensional array can be used to store the total amount of point similarity of each plane point, and the one-dimensional array constitutes an actual total amount sequence.

[0113] In fact, in the similarity state matrix, each row represents the similarity or dissimilarity between the plane point corresponding to its row coordinates and all the corresponding plane points. Therefore, for each plane point in the feature map, the total number of similar elements in the corresponding row is counted (the similarity is determined based on the value 1 in the example), and the total amount of point similarity possessed by the plane point corresponding to the row coordinates can be determined.

[0114] Step S1320, sorting the similarity total amount sequence in reverse order, preselecting a plurality of plane points of a specified number from small to large based on the point similarity total amount, and constructing a preliminary set;

[0115] Then, according to the value of each element in the one-dimensional data, that is, the total amount of point similarity, the one-dimensional array is reversely sorted, that is, sorted from small to large according to the total amount of point similarity, and the order of the plane points in the similarity total amount sequence is reorganized, thereby, from small to large, a rated number of plane points can be selected, so that these plane points are constructed into a preliminary set. According to the above example of the present application, the rated number can be flexibly determined, for example, the first 120 plane points in the reverse sequence can be used to construct the preliminary set.

[0116] Step S1330: determine the plane point with the smallest total amount of point similarity in the preliminary set as a seed point, and select all plane points similar to the seed point from the preliminary set to construct a seed set:

[0117] Furthermore, from the preliminary set, the plane point with the smallest total point similarity is determined as the seed point, and then the similar state matrix and the row corresponding to the seed point are traversed to determine the elements similar to it, and the column coordinates corresponding to each element are determined, thereby determining the plane points corresponding to each column coordinate to construct the seed set. The seed set further defines a subset of plane points with similar relationships, which facilitates the subsequent similarity comparison of each plane point in the feature map, so as to determine the corresponding object area.

[0118] This embodiment discloses in a more specific way the process of determining a seed set based on a similar state matrix. It is not difficult to see from the above disclosure that the technical solution of the present application is very efficient and fast in calculation, and is particularly suitable for processing batch data. Therefore, the technical solution of the present application is very suitable for locating content items in product images in the e-commerce field.

[0119] See also Figure 4 In a further embodiment, the step S1400, calculating the sum of similarities between each plane point in the feature map and all plane points in the seed set, and when the sum is greater than a preset threshold, determining that the corresponding plane point belongs to the object area, and obtaining an image corresponding to the object area, comprises the following steps:

[0120] Step S1410: According to the similarity value matrix, the sum of similarities between each plane point in the feature map and all plane points in the seed set is calculated:

[0121] This embodiment is based on the seed set, and compares the similarity relationship between these plane points and the plane points in the seed set by traversing each plane point in the entire feature map. Therefore, for each plane point in the feature map, based on the similarity value matrix, the similarity values ​​corresponding to each plane point belonging to the seed set are searched in the row corresponding to the plane point in the similarity value matrix, and then these similarity values ​​are directly added to obtain the corresponding sum value. Based on this, the sum value corresponding to each plane point in the feature map can be obtained by statistics.

[0122] Step S1420: determine whether the sum is greater than a preset threshold. When the sum is greater than the preset threshold, it is determined that the corresponding plane point belongs to the object area.

[0123] On the basis of obtaining the similarity and value of each plane point in the feature map relative to the plane point in the seed set, the preset threshold for determining whether similarity is mentioned above can be applied to compare with the sum value. When the sum value is greater than the preset threshold value, it can be determined that the plane point in the feature map corresponding to the sum value belongs to the object area. Of course, if the sum value is less than the preset threshold value, it means that the corresponding plane point does not belong to the object area.

[0124] Step S1430: extracting a corresponding image from the target image according to the object region as a content object image:

[0125] Referring to what has been disclosed above, after the object area is determined, the box coordinates in the feature map of the object area can be determined based on the plane points in the feature map. Then, based on the scaling factor between the target image and the feature map, the box coordinates can be mapped to the target image to form a selected box. At this point, the content object image corresponding to the selected box can be extracted from the target image.

[0126] It can be seen from this embodiment that the entire process of determining the item area can be quickly calculated based on the matrix, and the entire calculation process is very efficient and fast, and is particularly suitable for processing batch data. Therefore, the technical solution of this application is very suitable for locating content items in product images in the e-commerce field.

[0127] In some special cases, there may be multiple items in the target image. Therefore, based on any of the aforementioned embodiments of the present application, a function suitable for locating multiple item areas from the same target image to extract multiple content item images can be further expanded. In some special cases, it is also allowed that there are no items in the target image, resulting in the inability to identify a valid item area. Similarly, in some special cases, it is not ruled out that the identified item area covers the full size of the target image, resulting in invalid actual positioning. Therefore, these situations can be compatible with further embodiments.

[0128] To do this, see Figure 5 In a specific embodiment, the step S1430 of extracting a corresponding image from the target image according to the object area includes the following steps:

[0129] Step S1431: for each object region, determine whether the object region overlaps with the target image. If not, the object region is determined to be valid. After the feature value of the plane point of the object region in the feature map is cleared to zero, the whole process of determining the object region is restarted to iteratively determine the object region:

[0130] After an object region is determined through the steps of any of the aforementioned embodiments, it is first possible to determine whether the current object region overlaps with the target image based on all the plane points possessed by the object region. A more convenient example method is to determine whether the object region contains the plane points at the upper left corner and the lower right corner of the feature image, and at the same time determine whether it contains the plane points at the lower left corner and the upper right corner of the feature image. When either of the two is true, it can be determined that the object region overlaps with the target image. When both are false, it can be determined that the target image does not overlap with the current object region.

[0131] If the target image does not overlap with the current item area, the current item area can be confirmed to be valid, which means that it can be mapped to the target image to extract the corresponding content item image. Therefore, in order to facilitate the continued positioning of other possible content items in the target image, the feature values ​​of each plane point belonging to the item area in the feature map can be cleared to zero.

[0132] After clearing the feature values ​​of the plane points of the confirmed object area in the feature map, the steps from step S1200 to step S1400 of the present application can be iterated, which of course also includes the corresponding specific steps of the aforementioned embodiments, so as to locate the next object area, thereby continuously iterating.

[0133] Step S1432: If the current object region overlaps with the target image, the object region is determined to be invalid, and the iteration to determine the object region is stopped:

[0134] When performing the judgment in the previous step, if the current object region overlaps with the target image, the current object region can be judged as an invalid region, because the judgment process does not play the role of locating a valid object region, indicating that there is no object region in the target image. This situation includes the situation where the next object region is not found after one or more object regions have been determined in advance, and also includes the situation where no object region is determined from beginning to end.

[0135] Therefore, in combination with step S1431 and step S1432, it can be seen that after the iteration mechanism takes effect, this embodiment can locate multiple object areas from the same target image and can accommodate multiple abnormal situations.

[0136] Step S1433: extract one or more corresponding content item images from the target image according to the item regions determined to be valid:

[0137] In combination with the above, after valid item regions are determined, no matter how many item regions there are, each item region can be mapped to the target image according to the method disclosed in the above, and the selected frame corresponding to each content item can be obtained. Then, the corresponding content item image can be cropped from the target image according to each selected frame. In particular, each item region is allowed to partially overlap, so as to adapt to the situation where multiple items in the target image generate image intersections.

[0138] This embodiment realizes the recognition of multiple object areas in the same target image through an iterative mechanism, and is compatible with adaptive processing of the situation where there are no content items in the target image or the content items occupy the entire target image frame. It can be seen that the present application can realize efficient recognition of multiple content items in the target image, can accurately locate the corresponding content item images from the target image, and is convenient for extracting the content item images therein to serve downstream tasks, thereby meeting the needs of various application scenarios.

[0139] See also Figure 6, an image content object positioning device provided for one of the purposes of the present application, comprising: an image conversion module 1100, a similarity construction module 1200, a neighborhood screening module 1300, and an object positioning module 1400, wherein the image conversion module 1100 is used to obtain a feature map representing deep semantic information of a target image, wherein the feature map is composed of a plurality of plane points, each of which is a high-dimensional vector; the similarity construction module 1200 is used to calculate the similarity between two plane points, and construct a similarity state matrix based on the similarity, so that each element in the similarity state matrix Characterize the similarity or dissimilarity between the plane point corresponding to its row coordinates and the plane point corresponding to its column coordinates; the neighborhood screening module 1300 is used to pre-select multiple plane points from few to many according to the number of similar plane points to form a preliminary set, and find plane points similar to the seed plane point with the least similar plane points in the preliminary set to form a seed set; the object positioning module 1400 is used to calculate the sum of the similarities between each plane point in the feature map and all the plane points in the seed set, and when the sum is greater than a preset threshold, it is determined that the corresponding plane point belongs to the object area, and the corresponding image of the object area is obtained.

[0140] In a further embodiment, the image conversion module 1100 includes: an image acquisition submodule, used to acquire a target image; a feature encoding submodule, used to cut the target image into multiple subdivided images using a pre-trained image feature interaction model and extract image feature vectors respectively; a feature interaction submodule, used to perform feature interaction on the image feature vectors of the subdivided images using the image feature interaction model to obtain an intermediate vector; and a normalization processing submodule, used to normalize the intermediate vector into a feature map using the image feature interaction model, so that the feature map is composed of multiple plane points, and each plane point is a high-dimensional vector.

[0141] In a further embodiment, the similarity construction module 1200 includes: a numerical matrix submodule, used to calculate the similarity between each pair of plane points in the feature map, and construct a corresponding similarity numerical matrix, in which each element stores the similarity value between the plane point corresponding to its row coordinate and the plane point corresponding to its column coordinate; a state matrix submodule, used to construct a corresponding similarity state matrix based on the similarity numerical matrix, in which each element in the similarity state matrix represents the similarity or dissimilarity between the plane point corresponding to its row coordinate and the plane point corresponding to its column coordinate.

[0142] In a preferred embodiment, the similarity values ​​in the similarity value matrix are normalized to the interval [-1, 1], and the value 1 in the similarity state matrix represents similarity, and the value 0 represents dissimilarity.

[0143] In a further embodiment, the neighborhood screening module 1300 includes: a similarity statistics submodule, which is used to count the total amount of point similarity of each plane point in the feature map according to the similarity state matrix, wherein the total amount of point similarity represents the total number of plane points similar to the plane point, and obtains a similarity total amount sequence composed of the similarity totals of each plane point; a region rough selection submodule, which is used to reversely sort the similarity total amount sequence, and pre-select a rated number of multiple plane points from small to large according to the point similarity total amount, and construct them into a preliminary set; a neighborhood selection submodule, which is used to determine the plane point with the smallest total amount of point similarity in the preliminary set as a seed point, and select all plane points similar to the seed point from the preliminary set to construct a seed set.

[0144] In a further embodiment, the object positioning module 1400 includes: a similarity determination submodule, which is used to calculate the sum of the similarities between each plane point in the feature map and all plane points in the seed set according to the similarity value matrix; a region selection submodule, which is used to determine whether the sum is greater than a preset threshold value. When the sum is greater than the preset threshold value, it is determined that the corresponding plane point belongs to the object region; and a cutout processing submodule, which is used to extract the corresponding image from the target image according to the object region as the content object image.

[0145] In a specific embodiment, the cutout processing submodule includes: a valid determination unit, which is used to determine whether each item area overlaps with the target image, and if not, determine that the item area is valid, clear the feature value of the plane point of the item area in the feature map, and then restart the whole process of determining the item area to iteratively determine the item area; an invalid determination unit, which is used to determine that the item area is invalid if the current item area overlaps with the target image, and stop iteratively determining the item area; and a cutout extraction unit, which is used to extract one or more corresponding content item images from the target image according to the item area determined to be valid.

[0146] In order to solve the above technical problems, the present application also provides a computer device. Figure 7As shown, a schematic diagram of the internal structure of a computer device. The computer device includes a processor, a computer-readable storage medium, a memory, and a network interface connected via a system bus. Among them, the computer-readable storage medium of the computer device stores an operating system, a database, and computer-readable instructions. The database may store a control information sequence. When the computer-readable instructions are executed by the processor, the processor can implement a method for locating image content items. The processor of the computer device is used to provide computing and control capabilities to support the operation of the entire computer device. The memory of the computer device may store computer-readable instructions. When the computer-readable instructions are executed by the processor, the processor can execute the image content item locating method of the present application. The network interface of the computer device is used to connect and communicate with a terminal. Those skilled in the art can understand that Figure 7 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0147] In this embodiment, the processor is used to execute Figure 6 The memory stores the program code and various data required to execute the above modules or submodules. The network interface is used to transmit data between user terminals or servers. The memory in this embodiment stores the program code and data required to execute all modules / submodules in the image content object positioning device of the present application, and the server can call the program code and data of the server to execute the functions of all submodules.

[0148] The present application also provides a storage medium storing computer-readable instructions. When the computer-readable instructions are executed by one or more processors, the one or more processors execute the steps of the image content item locating method of any embodiment of the present application.

[0149] The present application also provides a computer program product, including a computer program / instruction, which implements the steps of the method described in any embodiment of the present application when executed by one or more processors.

[0150] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments of the present application can be implemented by instructing the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, the aforementioned storage medium can be a computer-readable storage medium such as a disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).

[0151] In summary, the present application can achieve effective positioning of content items in a target image, facilitate extraction of corresponding content item images from the target image, and can serve a variety of application scenarios including the e-commerce field, and has wide versatility.

[0152] Those skilled in the art will appreciate that the various operations, methods, steps, measures, and schemes in the processes discussed in this application may be alternated, altered, combined, or deleted. Further, other steps, measures, and schemes in the various operations, methods, and processes discussed in this application may also be alternated, altered, rearranged, decomposed, combined, or deleted. Further, the steps, measures, and schemes in the prior art that are similar to those disclosed in this application may also be alternated, altered, rearranged, decomposed, combined, or deleted.

[0153] The above description is only a partial implementation method of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.

Claims

1. A method for locating an item in an image, characterized in that: The steps include: Obtaining a feature map representing deep semantic information of the target image, wherein the feature map is composed of multiple plane points, each of which is a high-dimensional vector; Calculate the similarity between two plane points, and construct a similarity state matrix based on the similarity, so that each element in the similarity state matrix represents the similarity or dissimilarity between the plane point corresponding to its row coordinate and the plane point corresponding to its column coordinate; Preselecting a plurality of plane points from few to many based on the number of similar plane points to form a preliminary set, searching in the preliminary set for plane points similar to the seed plane point with the least similar plane points to form a seed set; The sum of the similarities between each plane point in the feature map and all plane points in the seed set is calculated. When the sum is greater than a preset threshold, the corresponding plane point is determined to belong to the object area, and the image corresponding to the object area is obtained.

2. The image content item positioning method according to claim 1, characterized in that: Obtaining a feature map representing the deep semantic information of the target image includes the following steps: Acquire the target image; A pre-trained image feature interaction model is used to cut the target image into multiple segmented images and extract image feature vectors for each segmented image. Performing feature interaction on the image feature vectors of the segmented image using the image feature interaction model to obtain an intermediate vector; The image feature interaction model is used to normalize the intermediate vector into a feature map, so that the feature map is composed of multiple plane points, and each plane point is a high-dimensional vector.

3. The image content item positioning method according to claim 1, characterized in that: Calculate the similarity between two plane points and construct a similarity state matrix based on the similarity, including the following steps: Calculating the similarity between two plane points in the feature map and constructing a corresponding similarity value matrix, wherein each element in the similarity value matrix stores the similarity value between the plane point corresponding to its row coordinate and the plane point corresponding to its column coordinate; A corresponding similarity state matrix is ​​constructed according to the similarity value matrix, wherein each element in the similarity state matrix represents the similarity or dissimilarity between the plane point corresponding to its row coordinate and the plane point corresponding to its column coordinate.

4. The image content item positioning method according to claim 3, characterized in that: The similarity values ​​in the similarity value matrix are normalized to the interval [-1, 1]. In the similarity state matrix, a value of 1 indicates similarity, and a value of 0 indicates dissimilarity.

5. The image content item positioning method according to claim 1, characterized in that: A plurality of plane points are preselected from a small number to a large number based on the number of similar plane points to form a preliminary set, and plane points similar to the seed plane point with the least similar plane points are searched in the preliminary set to form a seed set, including the following steps: According to the similarity state matrix, the total point similarity of each plane point in the feature map is counted, where the total point similarity represents the total number of plane points similar to the plane point, and a similarity total sequence consisting of the similarity sums of the respective plane points is obtained; Reversely sorting the similarity total amount sequence, preselecting a predetermined number of plane points from the smallest to the largest point similarity total amount, and constructing a preliminary set; The plane point with the smallest total point similarity in the preliminary set is determined as a seed point, and all plane points similar to the seed point are selected from the preliminary set to construct a seed set.

6. The image content item positioning method according to claim 3, characterized in that: The sum of the similarities between each plane point in the feature map and all plane points in the seed set is calculated. When the sum is greater than a preset threshold, the corresponding plane point is determined to belong to the object area, and the image corresponding to the object area is obtained, including the following steps: According to the similarity value matrix, the sum of similarities between each plane point in the feature map and all plane points in the seed set is counted; Determine whether the sum is greater than a preset threshold. If the sum is greater than the preset threshold, it is determined that the corresponding plane point belongs to the object area. A corresponding image is extracted from the target image according to the item region as a content item image.

7. The image content item positioning method according to claim 6, characterized in that: Extracting a corresponding image from the target image according to the object area includes the following steps: For each object region, determine whether the object region overlaps with the target image. If not, the object region is considered valid. After the feature values ​​of the plane points of the object region in the feature map are reset to zero, the entire process of determining the object region is restarted to iteratively determine the object region. If the current object region overlaps with the target image, the object region is determined to be invalid and the iteration to determine the object region is stopped; One or more corresponding content item images are extracted from the target image according to the item regions determined to be valid.

8. A computer device comprising a central processing unit and a memory, characterized in that: The central processing unit is configured to call and run a computer program stored in the memory to execute the steps of the method according to any one of claims 1 to 7.

9. A computer-readable storage medium, characterized in that It stores a computer program implemented according to the method described in any one of claims 1 to 7 in the form of computer-readable instructions, and when the computer program is called and executed by a computer, the steps included in the corresponding method are executed.

10. 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 described in any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Target detection method and system

    CN111914874A

  • Trademark pattern matching method and corresponding device, equipment and medium

    CN113569933A

  • Method and system for identifying citations within regulatory content

    US10956673B1