Method, device, electronic device and medium for determining product information

By extracting and matching image attribute parameters and using the Seq2Seq probability graph model, we solve the problem that users in e-commerce platforms can only search for products through text input, realize automatic matching of image search product information, and meet the user's need to quickly obtain product information. .

CN113657273BActive Publication Date: 2024-09-27CHINA PING AN PROPERTY INSURANCE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110945242.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-08-17
Publication Date
2024-09-27
Estimated Expiration
2041-08-17

AI Technical Summary

Technical Problem

In existing e-commerce platforms, users can only search for products through text input, resulting in a single method of obtaining product information that lacks autonomy and speed.

Method used

By obtaining the image sent by the target terminal containing the product to be searched, the attribute parameters in the image are extracted, and the Seq2Seq probability graph model is used to match the image in the product database, and the successfully matched product information is sent.

Benefits of technology

It realizes automatic retrieval and matching of product databases based on the image content characteristics and visual characteristics uploaded by users, meeting the user's needs for shooting and searching and quickly finding related products.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113657273B
    Figure CN113657273B
Patent Text Reader

Abstract

The present application discloses a method, device, electronic device and medium for determining product information. In the present application, a target image containing a product image to be searched sent by a target terminal can be obtained, and the product image to be searched contained in the target image can be extracted to obtain corresponding attribute parameters, and then the Seq2Seq probability graph model is used to calculate the probability value that the product image to be searched and each product image in the product database are the same product image; the product image whose probability value exceeds a preset threshold is used as the target product image; and the product information corresponding to the target product image is sent to the target terminal. By applying the technical solution of the present application, it is possible to automatically retrieve and match the content features and visual features in the image to be searched uploaded by the user with the preset product image database, thereby providing the product information corresponding to the uploaded image. It meets the problem of users' needs to search and find related products quickly as they shoot.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to image processing technology, and in particular to a method, device, electronic device and medium for determining product information. Background Art

[0002] With the rapid development of computer processing technology, various Internet-based e-commerce platforms have been increasingly accepted by consumers.

[0003] Among them, in the current e-commerce platforms, consumers mostly search for the goods they need by entering text, for example, entering the store name, store link, product name or product category. However, this search method does not give consumers much autonomy, and consumers are passive in accepting it. In addition, users are sometimes unable or unwilling to use text to search for goods when shopping.

[0004] Therefore, how to design a method that allows users to quickly obtain product information has become a problem that needs to be solved. Summary of the invention

[0005] The embodiments of the present application provide a method, device, electronic device and medium for determining product information. The present application is used to solve the problem in the related art that users can only search for product information by text input, which results in a single acquisition method.

[0006] According to one aspect of an embodiment of the present application, a method for determining product information is provided, characterized in that it includes:

[0007] Acquire a target image including an image of a product to be searched and sent by a target terminal, wherein the target image is used to acquire product information of the product to be searched;

[0008] Extracting the to-be-searched commodity image contained in the target image, and obtaining attribute parameters corresponding to the to-be-searched commodity image, wherein the attribute parameters are used to characterize the image size, image color, and image outline of the to-be-searched commodity image;

[0009] Using a Seq2Seq probability graph model and the attribute parameters, calculating a probability value that the product image to be searched and each product image in the product database are the same product image;

[0010] The product image whose probability value exceeds a preset threshold is used as a target product image that successfully matches the product image to be searched;

[0011] The commodity information corresponding to the target commodity image recorded in the commodity database is sent to the target terminal.

[0012] Optionally, in another embodiment of the method of the present application, the step of obtaining a target image including the image of the product to be searched and sent by the target terminal includes:

[0013] If it is detected that the target image contains multiple product images, determine the image ratio of each product image to the target image;

[0014] The product images whose image ratios meet the preset conditions are used as the product images to be searched.

[0015] Optionally, in another embodiment of the above method of the present application, before acquiring the target image including the image of the product to be searched sent by the target terminal, the method further includes:

[0016] Collect multiple sample product images and product information corresponding to each sample product image;

[0017] Performing a preset processing operation on the plurality of sample commodity images to obtain sample processed images, wherein the preset processing operation includes image deformation and image rendering;

[0018] Extracting grayscale information and edge information of each sample processed image to form a grayscale image information set;

[0019] After associating the grayscale image information set and the corresponding commodity information, the commodity database is generated.

[0020] Optionally, in another embodiment of the method of the present application, performing a preset processing operation on the plurality of sample product images to obtain sample processed images includes:

[0021] Flipping the sample product image at a random angle along the horizontal axis and at a random angle along the vertical axis to obtain a flipped image;

[0022] Randomly translate the flipped image in the horizontal direction by at least one pixel, and randomly translate the image in the vertical direction by at least one pixel, to obtain a translated image;

[0023] The translated image is rendered in a preset rendering mode to obtain the sample processed image.

[0024] Optionally, in another embodiment of the method of the present application, the step of extracting grayscale information and edge information of each sample processed image to form a grayscale image information set includes:

[0025] Using a grayscale algorithm, each of the sample processed images is sequentially divided into a first color channel, a second color channel, and a third color channel to obtain a grayscale image corresponding to the sample processed image;

[0026] Using the DnCNN neural network model, removing noise data of each color channel in the sample processed image;

[0027] Using the Sobel operator to extract the horizontal information and gradient information of the grayscale image after the noise is removed, to obtain a grayscale image to be processed;

[0028] The edge information of the grayscale image to be processed is extracted using the Prewitt operator to form the grayscale image information set.

[0029] Optionally, in another embodiment of the method of the present application, the probability value that the to-be-searched product image and each product image in the product database are the same product image is calculated using the following formula:

[0030] P(s,p,o)=P(s)P(o|s)P(p|s,o);

[0031] Where P(s,p,o) is the probability value, s corresponds to the image size parameter, o corresponds to the image color parameter, and p corresponds to the image contour parameter.

[0032] Optionally, in another embodiment of the above method of the present application, after acquiring the target image including the image of the product to be searched sent by the target terminal, the method further includes:

[0033] Based on the image network detection model, feature recognition is performed on the target image to obtain a commodity feature parameter corresponding to the target image, wherein the commodity feature parameter corresponds to at least one of a size feature, a color feature, and a contour feature;

[0034] Based on the commodity feature parameters, the to-be-searched commodity image contained in the target image is extracted.

[0035] According to another aspect of the embodiment of the present application, a device for determining product information is provided, characterized in that it includes:

[0036] An acquisition module is configured to acquire a target image including an image of a product to be searched and sent by a target terminal, wherein the target image is used to acquire product information of the product to be searched;

[0037] an extraction module, configured to extract the to-be-searched commodity image contained in the target image, and obtain attribute parameters corresponding to the to-be-searched commodity image, wherein the attribute parameters are used to characterize the image size, image color and image outline of the to-be-searched commodity image;

[0038] A calculation module is configured to calculate a probability value that the to-be-searched product image and each product image in the product database are the same product image by using a Seq2Seq probability graph model and the attribute parameters;

[0039] A matching module, configured to use the product image whose probability value exceeds a preset threshold as a target product image that successfully matches the product image to be searched;

[0040] The sending module is configured to send the commodity information corresponding to the target commodity image recorded in the commodity database to the target terminal.

[0041] According to another aspect of the embodiments of the present application, an electronic device is provided, including:

[0042] A memory for storing executable instructions; and

[0043] A display is used to display with the memory to execute the executable instructions to complete the operation of any of the above methods for determining product information.

[0044] According to another aspect of an embodiment of the present application, a computer-readable storage medium is provided for storing computer-readable instructions, and when the instructions are executed, the operations of any of the above-mentioned methods for determining product information are performed.

[0045] In the present application, a target image containing an image of a product to be searched and sent by a target terminal can be obtained, and the target image is used to obtain product information of the product to be searched; the image of the product to be searched contained in the target image is extracted, and the attribute parameters corresponding to the image of the product to be searched are obtained, and the Seq2Seq probability graph model and the attribute parameters are used to calculate the probability value that the image of the product to be searched and each product image in the product database are the same product image; the product image whose probability value exceeds the preset threshold is used as the target product image that successfully matches the image of the product to be searched; and the product information corresponding to the target product image is sent to the target terminal. By applying the technical solution of the present application, it is possible to automatically retrieve and match the image to be searched uploaded by the user with the preset product image database according to the content features and visual features in the image to be searched, thereby providing the product information corresponding to the uploaded image. It meets the needs of users to search and quickly find related products.

[0046] The technical solution of the present application is further described in detail below through the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] The accompanying drawings, which constitute a part of the specification, illustrate embodiments of the present application and, together with the description, serve to explain the principles of the present application.

[0048] The present application can be more clearly understood from the following detailed description with reference to the accompanying drawings, in which:

[0049] Figure 1 A schematic diagram of a system for determining product information proposed in this application;

[0050] Figure 2 A schematic diagram of a method for determining product information proposed in this application;

[0051] Figure 3 A schematic diagram of the structure of the electronic device for determining product information proposed in this application;

[0052] Figure 4 This is a schematic diagram of the structure of an electronic device for determining product information proposed in this application. DETAILED DESCRIPTION

[0053] Various exemplary embodiments of the present application will now be described in detail with reference to the accompanying drawings. It should be noted that unless otherwise specifically stated, the relative arrangement of components and steps, numerical expressions and numerical values ​​set forth in these embodiments do not limit the scope of the present application.

[0054] At the same time, it should be understood that for the convenience of description, the sizes of the various parts shown in the drawings are not drawn according to the actual proportional relationship.

[0055] The following description of at least one exemplary embodiment is merely illustrative in nature and is not intended to limit the present application, its application, or uses.

[0056] Technologies, methods, and equipment known to ordinary technicians in the relevant art may not be discussed in detail, but where appropriate, the technologies, methods, and equipment should be considered as part of the specification.

[0057] It should be noted that like reference numerals and letters refer to similar items in the following figures, and therefore, once an item is defined in one figure, it need not be further discussed in subsequent figures.

[0058] In addition, the technical solutions between the various embodiments of the present application can be combined with each other, but it must be based on the fact that ordinary technicians in the field can implement it. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such combination of technical solutions does not exist and is not within the scope of protection required by this application.

[0059] It should be noted that all directional indications in the embodiments of the present application (such as up, down, left, right, front, back, etc.) are only used to explain the relative position relationship, movement status, etc. between the components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication will also change accordingly.

[0060] Combine the following Figure 1-Figure 2To describe the method for determining commodity information according to the exemplary embodiment of the present application. It should be noted that the following application scenarios are only shown to facilitate understanding of the spirit and principle of the present application, and the embodiments of the present application are not limited in this respect. On the contrary, the embodiments of the present application can be applied to any applicable scenario.

[0061] Figure 1 A schematic diagram of an exemplary system architecture 100 is shown to which the method for determining product information or the apparatus for determining product information according to the embodiments of the present application can be applied.

[0062] like Figure 1 As shown, the system architecture 100 may include one or more of terminal devices 101, 102, 103, a network 104, and a server 105. The network 104 is used to provide a medium for communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links, or optical fiber cables, etc.

[0063] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. According to the implementation requirements, there may be any number of terminal devices, networks and servers. For example, the server 105 may be a server cluster composed of multiple servers.

[0064] Users can use terminal devices 101, 102, 103 to interact with server 105 through network 104 to receive or send messages, etc. Terminal devices 101, 102, 103 can be various electronic devices with display screens, including but not limited to smart phones, tablet computers, portable computers, desktop computers, etc.

[0065] The terminal devices 101, 102, and 103 in the present application may be terminal devices that provide various services. For example, a user may use the terminal device 103 (which may also be the terminal device 101 or 102) to: obtain a target image containing a product image to be searched sent by a target terminal, the target image being used to obtain product information of the product to be searched; extract the product image to be searched contained in the target image, and obtain attribute parameters corresponding to the product image to be searched, the attribute parameters being used to characterize the image size, image color, and image contour of the product image to be searched; calculate the probability value that the product image to be searched and each product image in the product database are the same product image by using a Seq2Seq probability graph model and the attribute parameters; use the product image whose probability value exceeds a preset threshold as a target product image that successfully matches the product image to be searched; and send the product information corresponding to the target product image recorded in the product database to the target terminal.

[0066] It should be noted here that the method for determining product information provided in the embodiment of the present application can be executed by one or more of the terminal devices 101, 102, 103, and / or the server 105. Accordingly, the device for determining product information provided in the embodiment of the present application is generally arranged in the corresponding terminal device, and / or the server 105, but the present application is not limited to this.

[0067] The present application also proposes a method, device, target terminal and medium for determining commodity information.

[0068] Figure 1 The following schematically shows a flow chart of a method for determining product information according to an embodiment of the present application. Figure 1 As shown, the method includes:

[0069] S101, obtaining a target image including an image of a product to be searched and sent by a target terminal, wherein the target image is used to obtain product information of the product to be searched.

[0070] First of all, it should be noted that the target terminal is not specifically limited in this application, for example, it can be a smart device or a server. Among them, the smart device can be a PC (Personal Computer), or a smart phone, tablet computer, e-book reader, MP3 (Moving Picture Experts Group Audio Layer III, dynamic image expert compression standard audio layer 3) player, MP4 (Moving Picture Experts Group Audio Layer IV, dynamic image expert compression standard audio layer 4) player, portable computer and other mobile terminal devices with display function, etc.

[0071] In order to avoid the problem in the prior art that users can only obtain product information through text input, resulting in a poor experience, the present application proposes a method that can use images containing products as an input method.

[0072] S102, extracting the to-be-searched product image contained in the target image, and obtaining attribute parameters corresponding to the to-be-searched product image, where the attribute parameters are used to characterize the image size, image color, and image outline of the to-be-searched product image.

[0073] First, the process of extracting the target product image can be to first determine the type of the target product, for example, first determine it as an electronic product, a book, a vehicle, etc. Then, according to the product type, the image detection model and other means are used to extract it.

[0074] Furthermore, the present application may also utilize an image detection model to identify at least one of the size characteristics, color characteristics, and contour characteristics of a product, and perform image extraction after determining the type of product based on the size characteristics, color characteristics, and contour characteristics of the product.

[0075] Among them, the image detection model can be, for example, a convolutional neural network (CNN). Convolutional neural networks are a type of feedforward neural networks that include convolution calculations and have a deep structure, and are one of the representative algorithms of deep learning. Convolutional neural networks have representation learning capabilities and can perform translation-invariant classification of input information according to their hierarchical structure. Thanks to the powerful feature representation capabilities of CNN (convolutional neural network) for images, it has achieved remarkable results in image classification, object detection, semantic segmentation and other fields.

[0076] Furthermore, the present application can use a CNN neural network model to detect the feature information of the image of the product to be searched in the target image, and then extract the image of the product to be searched after feature recognition. Among them, the target image needs to be input into a preset convolutional neural network model, and the output of the last fully connected layer (FC, fully connected layer) of the convolutional neural network model is used as the recognition result of the feature data of the image of the product to be searched corresponding to the target image. So that the image of the product to be searched can be extracted later based on the recognition result.

[0077] Furthermore, after extracting the product image to be searched contained in the image, the product image to be searched can be compared with multiple product images in the product database for relevance, and a target product image that successfully matches the product image to be searched can be determined based on the comparison results.

[0078] S103, using the Seq2Seq probability graph model and attribute parameters, calculating the probability value that the product image to be searched and each product image in the product database are the same product image.

[0079] S104: taking the product image whose probability value exceeds the preset threshold as the target product image that successfully matches the product image to be searched.

[0080] For example, the feature vector output by the target product image and the feature vectors output by each product image to be compared may be determined first, and the feature distance between the image to be compared and the target product image may be determined, and the image with the smallest distance may be selected as the product image with the highest correlation.

[0081] Among them, the correlation comparison can be obtained according to the following formula:

[0082]

[0083] Among them, R(x,y) represents the correlation comparison result between the image to be compared and the target product image.

[0084] x, x', x", and x+x' respectively represent different horizontal vector coordinates of multiple product images in the product database and the target product image;

[0085] y, y', y", y+y' respectively represent different vertical vector coordinates of the image to be compared and the target product image;

[0086] ∑x',y'(T'(x',y')·I'(x+x',y+y') represents the covariance between the image to be compared and the target product image;

[0087] ∑x',y'I'(x+x',y+y') 2 Represents the variance between the image and the target product image.

[0088] Furthermore, after extracting the target product image contained in the image, the present application can also compare the preset product images to be compared with the target product image for correlation, wherein the correlation comparison can be obtained by comparing the feature vectors of the two.

[0089] S105, sending the commodity information corresponding to the target commodity image recorded in the commodity database to the target terminal.

[0090] Among them, in order to avoid the problem of poor experience caused by the user's only being able to obtain product information through text input in the prior art, this application proposes a method that can use images containing products as an input method. After the server receives a search image containing a product image, it can automatically extract the product image, and after using the attribute information of each product stored in the database, obtain the product information corresponding to the product image from the database and return it to the user.

[0091] It is understandable that the present application can select the result with the most similar correlation degree from multiple correlation results, thereby determining the product to be compared corresponding to the result as the target product, and then determining the product information corresponding to the target product in the database and returning it to the terminal.

[0092] For example, when it is determined that the target product image corresponds to a vehicle product, in order to more accurately obtain the brand and model of the vehicle (i.e., product information), the present application can input the features of the target product image into the vehicle product database based on the pre-established product information database of each vehicle type, thereby obtaining the product information stored in the database, such as the brand and model, price, etc. corresponding to the target product. The product information is then returned to the target terminal to help the user quickly obtain product information.

[0093] In the present application, a target image containing an image of a product to be searched and sent by a target terminal can be obtained, and the target image is used to obtain product information of the product to be searched; the image of the product to be searched contained in the target image is extracted, and the attribute parameters corresponding to the image of the product to be searched are obtained, and the Seq2Seq probability graph model and the attribute parameters are used to calculate the probability value that the image of the product to be searched and each product image in the product database are the same product image; the product image whose probability value exceeds the preset threshold is used as the target product image that successfully matches the image of the product to be searched; and the product information corresponding to the target product image is sent to the target terminal. By applying the technical solution of the present application, it is possible to automatically retrieve and match the image to be searched uploaded by the user with the preset product image database according to the content features and visual features in the image to be searched, thereby providing the product information corresponding to the uploaded image. It meets the needs of users to search and quickly find related products.

[0094] Optionally, in another embodiment of the method of the present application, the step of obtaining a target image including the image of the product to be searched and sent by the target terminal includes:

[0095] If it is detected that the target image contains multiple product images, determine the image ratio of each product image to the target image;

[0096] The product images whose image ratios meet the preset conditions are used as the product images to be searched.

[0097] Furthermore, when the present application detects that the target image contains multiple product images, in order to determine the image to be searched that the user wants to obtain, the image in which the product image occupies the largest proportion can be selected as the product image to be searched.

[0098] For example, when it is detected that the target image contains three product images, the image ratio of each product image to the target image is determined to be 20%, 20%, and 60% respectively, then the product image with an image ratio of 60% can be used as the product image to be searched.

[0099] Of course, the present application does not impose any specific limitation on the preset conditions, for example, it can be the highest or the lowest, etc.

[0100] Optionally, in another embodiment of the above method of the present application, before acquiring the target image including the image of the product to be searched sent by the target terminal, the method further includes:

[0101] Collect multiple sample product images and product information corresponding to each sample product image;

[0102] Performing a preset processing operation on the plurality of sample commodity images to obtain sample processed images, wherein the preset processing operation includes image deformation and image rendering;

[0103] Extracting grayscale information and edge information of each sample processed image to form a grayscale image information set;

[0104] After associating the grayscale image information set and the corresponding commodity information, the commodity database is generated.

[0105] Optionally, in another embodiment of the method of the present application, performing a preset processing operation on the plurality of sample product images to obtain sample processed images includes:

[0106] Flipping the sample product image along the horizontal axis at a random angle, and flipping along the vertical axis at a random angle, to obtain a flipped image;

[0107] Randomly translate the flipped image in the horizontal direction by at least one pixel, and randomly translate the image in the vertical direction by at least one pixel, to obtain a translated image;

[0108] The translated image is rendered in a preset rendering mode to obtain the sample processed image.

[0109] Optionally, in another embodiment of the method of the present application, the step of extracting grayscale information and edge information of each sample processed image to form a grayscale image information set includes:

[0110] Using a grayscale algorithm, each of the sample processed images is sequentially divided into a first color channel, a second color channel, and a third color channel to obtain a grayscale image corresponding to the sample processed image;

[0111] Using the DnCNN neural network model, removing noise data of each color channel in the sample processed image;

[0112] Using the Sobel operator to extract the horizontal information and gradient information of the grayscale image after the noise is removed, to obtain a grayscale image to be processed;

[0113] The edge information of the grayscale image to be processed is extracted using the Prewitt operator to form the grayscale image information set.

[0114] Furthermore, the present application may first construct a product database containing various sample products, so that after obtaining the image of the product to be searched, the corresponding product information can be obtained based on the matching between the image of the product to be searched and the database.

[0115] To build a product database, it can be divided into the following steps:

[0116] S1, collect multiple sample product images;

[0117] S2. Deform the collected sample product images and build a database:

[0118] Operation 1: randomly select a sample product image, flip it at a random angle along the horizontal axis, generate a new image, and save it to the image identification information database;

[0119] Operation 2: randomly select an image in the product database, flip it at a random angle along the vertical axis, generate a flipped image, and save it to the image identification information database;

[0120] Operation three: randomly select an image in the product database, randomly translate the image by a number of pixels in the horizontal direction, generate a new image, and save it to the image identification information database;

[0121] Operation 4: randomly select an image in the product database, randomly translate the image by a number of pixels in the vertical direction, generate a translated image, and save it to the image identification information database;

[0122] Operation five, rendering the translated image in a preset rendering mode to obtain the sample processed image;

[0123] S3. Construct a grayscale image information set, extract the grayscale information and edge information of the product pattern in the database, and form a grayscale image information set:

[0124] The first step is to use the grayscale algorithm to sequentially divide the image information in the image identification information database into three channels: R (red), G (green), and B (blue). After the conversion is completed, the grayscale images of all the images in the above image identification information database are saved, and the above images are saved in the grayscale image library;

[0125] In the second step, the DnCNN neural network is used to remove the noise in each color channel of the grayscale image and replace the original grayscale image in the first step.

[0126] The third step is to use the Sobel operator to extract the level and gradient information of the grayscale image after denoising in the second step, and replace the original grayscale image in the second step;

[0127] Step 4: Isotropic Sobel, Robertsl and Prewitt operators are used in parallel to extract edge information of the grayscale image in Step 3, respectively, so that the original grayscale image in Step 3 is used to generate three new grayscale images corresponding to different operators, and replace the original grayscale image in Step 3;

[0128] The fifth step is to use the im2bw and ycbcr2rgb reverse conversion algorithms to obtain the edge information of the grayscale information image of the original grayscale image in the fourth step to form a grayscale image information set;

[0129] S4, after associating the grayscale image information set and the corresponding product information, generate the product database.

[0130] Optionally, in another embodiment of the method of the present application, the probability value that the to-be-searched product image and each product image in the product database are the same product image is calculated using the following formula:

[0131] P(s,p,o)=P(s)P(o|s)P(p|s,o);

[0132] Where P(s,p,o) is the probability value, s corresponds to the image size parameter, o corresponds to the image color parameter, and p corresponds to the image contour parameter.

[0133] Optionally, in another embodiment of the above method of the present application, after acquiring the target image including the image of the product to be searched sent by the target terminal, the method further includes:

[0134] Based on the image network detection model, feature recognition is performed on the target image to obtain a commodity feature parameter corresponding to the target image, wherein the commodity feature parameter corresponds to at least one of a size feature, a color feature, and a contour feature;

[0135] Based on the commodity feature parameters, the to-be-searched commodity image contained in the target image is extracted.

[0136] Furthermore, the present application can use the CNN image network detection model to detect the feature information of the product image in the target image, and then perform feature recognition on the product image to determine the product feature parameters corresponding to the product image. Specifically, the present application needs to input the target image into a preset convolutional neural network model, and use the output of the last fully connected layer (FC) of the convolutional neural network model as the recognition result of the product feature parameters corresponding to the target image.

[0137] Furthermore, after determining the features corresponding to the target product information, the present application can extract the product information corresponding to each sample product image from the database, and establish product information models of different categories. Each model outputs a probability value to indicate the possibility that the target product belongs to each category of products, and the type represented by the highest value is selected as the product information corresponding to the target product.

[0138] For example, when it is determined that the target product is a book product, in order to more accurately determine which book product the target product is, the present application can pre-establish various book product information models, input the characteristics of the target product into the book product information model, and thus obtain the possibility that the target product belongs to various book products (for example, including science fiction book models, educational book models, parenting book models, etc.). Then select the book type with the greatest possibility and determine the book type from it.

[0139] Specifically, the various feature information (such as size, color, font, thickness, etc.) of the target product with multi-channel description is used to predict the subject / object of each feature information of the product based on the probabilistic graph model based on the Seq2Seq class, where the formula of the probabilistic graph model is as follows:

[0140] P(s,p,o)=P(s)P(o|s)P(p|s,o)

[0141] Where P(s,p,o) is the probability value, s corresponds to the image size parameter, o corresponds to the image color parameter, and p corresponds to the image contour parameter.

[0142] Finally, after determining the product image (for example, the target product is car A), the application can extract the product information corresponding to car A from the database and return it to the user. The application can avoid multiple clicks, copies, inputs, etc. that occur in the prior art. By using pre-set rules, the user side does not need to perform tedious manual operations, and the automated process will help the user implement all operations set by the rules.

[0143] Optionally, in another embodiment of the present application, Figure 3 As shown, the present application also provides a device for determining commodity information. It includes:

[0144] An acquisition module is configured to acquire a target image including an image of a product to be searched and sent by a target terminal, wherein the target image is used to acquire product information of the product to be searched;

[0145] an extraction module, configured to extract the to-be-searched commodity image contained in the target image, and obtain attribute parameters corresponding to the to-be-searched commodity image, wherein the attribute parameters are used to characterize the image size, image color and image outline of the to-be-searched commodity image;

[0146] A calculation module is configured to calculate a probability value that the to-be-searched product image and each product image in the product database are the same product image by using a Seq2Seq probability graph model and the attribute parameters;

[0147] A matching module, configured to use the product image whose probability value exceeds a preset threshold as a target product image that successfully matches the product image to be searched;

[0148] The sending module is configured to send the commodity information corresponding to the target commodity image recorded in the commodity database to the target terminal.

[0149] By applying the technical solution of this application, it is possible to automatically search and match the content features and visual features of the image to be searched uploaded by the user with the preset product image database, thereby providing the product information corresponding to the uploaded image. This meets the user's needs to search and find related products quickly.

[0150] In another embodiment of the present application, the acquisition module 201 further includes:

[0151] The acquisition module 201 is configured to determine the image ratio of each product image to the target image if it is detected that the target image contains multiple product images;

[0152] The acquisition module 201 is configured to use the product image whose image ratio meets a preset condition as the product image to be searched.

[0153] In another embodiment of the present application, the acquisition module 201 further includes:

[0154] The acquisition module 201 is configured to collect a plurality of sample product images and product information corresponding to each sample product image;

[0155] The acquisition module 201 is configured to perform a preset processing operation on the plurality of sample commodity images to obtain a sample processed image, wherein the preset processing operation includes image deformation and image rendering;

[0156] The acquisition module 201 is configured to extract the grayscale information and edge information of each sample processed image to form a grayscale image information set;

[0157] The acquisition module 201 is configured to generate the commodity database after associating the grayscale image information set with the corresponding commodity information.

[0158] In another embodiment of the present application, the acquisition module 201 further includes:

[0159] The acquisition module 201 is configured to flip the sample product image along the horizontal axis at a random angle, and flip along the vertical axis at a random angle to obtain a flipped image;

[0160] The acquisition module 201 is configured to randomly translate the flipped image by at least one pixel in the horizontal direction and randomly translate the image by at least one pixel in the vertical direction to obtain a translated image;

[0161] The acquisition module 201 is configured to render the translation image in a preset rendering manner to obtain the sample processed image.

[0162] In another embodiment of the present application, the acquisition module 201 further includes:

[0163] The acquisition module 201 is configured to use a grayscale algorithm to sequentially divide each of the sample processed images into a first color channel, a second color channel, and a third color channel to obtain a grayscale image corresponding to the sample processed image;

[0164] The acquisition module 201 is configured to remove noise data of each color channel in the sample processed image by using a DnCNN neural network model;

[0165] The acquisition module 201 is configured to extract the horizontal information and the gradient information of the grayscale image after the noise is removed by using the Sobel operator to obtain the grayscale image to be processed;

[0166] The acquisition module 201 is configured to extract edge information of the grayscale image to be processed using the Prewitt operator to form the grayscale image information set.

[0167] In another embodiment of the present application, the method further includes: calculating the probability value that the product image to be searched and each product image in the product database are the same product image by using the following formula:

[0168] P(s,p,o)=P(s)P(o|s)P(p|s,o);

[0169] Where P(s,p,o) is the probability value, s corresponds to the image size parameter, o corresponds to the image color parameter, and p corresponds to the image contour parameter.

[0170] In another embodiment of the present application, the acquisition module 201 further includes:

[0171] The acquisition module 201 is configured to perform feature recognition on the target image based on the image network detection model to obtain a commodity feature parameter corresponding to the target image, wherein the commodity feature parameter corresponds to at least one of a size feature, a color feature, and a contour feature;

[0172] The acquisition module 201 is configured to extract the to-be-searched product image contained in the target image based on the product feature parameters.

[0173] Figure 4 3 is a logical structure block diagram of an electronic device according to an exemplary embodiment. For example, the electronic device 300 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0174] In an exemplary embodiment, a non-temporary computer-readable storage medium including instructions is also provided, such as a memory including instructions. The above instructions can be executed by a processor of an electronic device to complete the above method for determining product information, the method comprising: obtaining a target image including a product image to be searched sent by a target terminal, the target image being used to obtain product information of the product to be searched; extracting the product image to be searched contained in the target image, and obtaining attribute parameters corresponding to the product image to be searched, the attribute parameters being used to characterize the image size, image color and image contour of the product image to be searched; using a Seq2Seq probability graph model and the attribute parameters to calculate the probability value that the product image to be searched and each product image in a product database are the same product image; using the product image whose probability value exceeds a preset threshold as a target product image that successfully matches the product image to be searched; and sending the product information corresponding to the target product image recorded in the product database to the target terminal.

[0175] Optionally, the above instructions can also be executed by a processor of an electronic device to complete other steps involved in the above exemplary embodiments. For example, the non-temporary computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, and an optical data storage device.

[0176] In an exemplary embodiment, an application / computer program product is also provided, comprising one or more instructions, which can be executed by a processor of an electronic device to complete the above method for determining product information, the method comprising obtaining a target image containing a product image to be searched sent by a target terminal, the target image being used to obtain product information of the product to be searched; extracting the product image to be searched contained in the target image, and obtaining attribute parameters corresponding to the product image to be searched, the attribute parameters being used to characterize the image size, image color and image contour of the product image to be searched; using a Seq2Seq probability graph model and the attribute parameters, calculating the probability value that the product image to be searched and each product image in a product database are the same product image; using the product image whose probability value exceeds a preset threshold as a target product image that successfully matches the product image to be searched; and sending the product information corresponding to the target product image recorded in the product database to the target terminal. Optionally, the above instructions can also be executed by a processor of an electronic device to complete other steps involved in the above exemplary embodiment.

[0177] Figure 4 FIG. 3 is an example diagram of a computer device 30. A person skilled in the art will understand that Figure 4 It is only an example of the computer device 30 and does not constitute a limitation of the computer device 30. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the computer device 30 may also include input and output devices, network access devices, buses, etc.

[0178] The processor 302 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor 302 may also be any conventional processor, etc. The processor 302 is the control center of the computer device 30, and uses various interfaces and lines to connect various parts of the entire computer device 30.

[0179] The memory 301 can be used to store computer-readable instructions 303. The processor 302 implements various functions of the computer device 30 by running or executing the computer-readable instructions or modules stored in the memory 301 and calling the data stored in the memory 301. The memory 301 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the computer device 30, etc. In addition, the memory 301 can include a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device, a read-only memory (Read-Only Memory, ROM), a random access memory (Random Access Memory, RAM) or other non-volatile / volatile storage devices.

[0180] If the module integrated in the computer device 30 is implemented in the form of a software function module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also instruct the relevant hardware to complete it through computer-readable instructions. The computer-readable instructions can be stored in a computer-readable storage medium. When the computer-readable instructions are executed by the processor, the steps of the above-mentioned various method embodiments can be implemented.

[0181] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that are not disclosed in the present application. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the following claims.

[0182] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.

Claims

1. A method for determining product information, characterized in that: include: Acquire a target image including an image of a product to be searched and sent by a target terminal, wherein the target image is used to acquire product information of the product to be searched; Extracting the to-be-searched commodity image contained in the target image, and obtaining attribute parameters corresponding to the to-be-searched commodity image, wherein the attribute parameters are used to characterize the image size, image color, and image outline of the to-be-searched commodity image; Using the Seq2Seq probability graph model and the attribute parameters, calculating the probability value that the product image to be searched and each product image in the product database are the same product image; The probability value that the product image to be searched and each product image in the product database are the same product image is calculated using the following formula: P(s,p,o)=P(s)P(o|s)P(p|s,o); Where P(s,p,o) is the probability value, s corresponds to the image size parameter, o corresponds to the image color parameter, and p corresponds to the image contour parameter; The product image whose probability value exceeds a preset threshold is used as a target product image that successfully matches the product image to be searched; Sending the commodity information corresponding to the target commodity image recorded in the commodity database to the target terminal; Before acquiring the target image including the image of the commodity to be searched sent by the target terminal, the method further includes: Collect multiple sample product images and product information corresponding to each sample product image; Performing a preset processing operation on the plurality of sample commodity images to obtain sample processed images, wherein the preset processing operation includes image deformation and image rendering; Extracting grayscale information and edge information of each sample processed image to form a grayscale image information set; After associating the grayscale image information set and the corresponding commodity information, generating the commodity database; The performing a preset processing operation on the plurality of sample commodity images to obtain sample processed images includes: Flipping the sample product image along the horizontal axis at a random angle, and flipping along the vertical axis at a random angle, to obtain a flipped image; Randomly translate the flipped image in the horizontal direction by at least one pixel, and randomly translate the image in the vertical direction by at least one pixel, to obtain a translated image; Rendering the translated image in a preset rendering mode to obtain the sample processed image; The step of extracting the grayscale information and edge information of each sample processed image to form a grayscale image information set includes: Using a grayscale algorithm, each of the sample processed images is sequentially divided into a first color channel, a second color channel, and a third color channel to obtain a grayscale image corresponding to the sample processed image; Using the DnCNN neural network model, removing noise data of each color channel in the sample processed image; The Sobel operator is used to extract the horizontal information and gradient information of the grayscale image after noise removal to obtain the grayscale image to be processed; The edge information of the grayscale image to be processed is extracted using the Prewitt operator to form the grayscale image information set.

2. The method according to claim 1, characterized in that The step of obtaining a target image including a product image to be searched and sent by a target terminal includes: If it is detected that the target image contains multiple product images, determine the image ratio of each product image to the target image; The product images whose image ratios meet the preset conditions are used as the product images to be searched.

3. The method according to claim 1, characterized in that After obtaining the target image including the image of the commodity to be searched sent by the target terminal, the method further includes: Based on the image network detection model, feature recognition is performed on the target image to obtain a commodity feature parameter corresponding to the target image, wherein the commodity feature parameter corresponds to at least one of a size feature, a color feature, and a contour feature; Based on the commodity feature parameters, the to-be-searched commodity image contained in the target image is extracted.

4. A device for determining commodity information, characterized in that: include: An acquisition module is configured to acquire a target image including an image of a product to be searched and sent by a target terminal, wherein the target image is used to acquire product information of the product to be searched; The acquisition module is further used for: Collect multiple sample product images and product information corresponding to each sample product image; Performing a preset processing operation on the plurality of sample commodity images to obtain sample processed images, wherein the preset processing operation includes image deformation and image rendering; Extracting grayscale information and edge information of each sample processed image to form a grayscale image information set; After associating the grayscale image information set and the corresponding commodity information, a commodity database is generated; The acquisition module is further specifically used for: Flipping the sample product image along the horizontal axis at a random angle, and flipping along the vertical axis at a random angle, to obtain a flipped image; Randomly translate the flipped image in the horizontal direction by at least one pixel, and randomly translate the image in the vertical direction by at least one pixel, to obtain a translated image; Rendering the translated image in a preset rendering mode to obtain the sample processed image; an extraction module, configured to extract the to-be-searched commodity image contained in the target image, and obtain attribute parameters corresponding to the to-be-searched commodity image, wherein the attribute parameters are used to characterize the image size, image color and image outline of the to-be-searched commodity image; The extraction module is specifically used for: Using a grayscale algorithm, each of the sample processed images is sequentially divided into a first color channel, a second color channel, and a third color channel to obtain a grayscale image corresponding to the sample processed image; Using the DnCNN neural network model, removing noise data of each color channel in the sample processed image; The Sobel operator is used to extract the horizontal information and gradient information of the grayscale image after noise removal to obtain the grayscale image to be processed; Extracting edge information of the grayscale image to be processed by using the Prewitt operator to form the grayscale image information set; A calculation module is configured to calculate the probability value that the product image to be searched and each product image in the product database are the same product image by using a Seq2Seq probability graph model and the attribute parameters; The probability value that the product image to be searched and each product image in the product database are the same product image is calculated using the following formula: P(s,p,o)=P(s)P(o|s)P(p|s,o); Where P(s,p,o) is the probability value, s corresponds to the image size parameter, o corresponds to the image color parameter, and p corresponds to the image contour parameter; A matching module, configured to use the product image whose probability value exceeds a preset threshold as a target product image that successfully matches the product image to be searched; The sending module is configured to send the commodity information corresponding to the target commodity image recorded in the commodity database to the target terminal.

5. An electronic device, characterized in that: include: A memory for storing executable instructions; as well as, A processor, wherein when the executable instructions are executed by the processor, the processor performs the method according to any one of claims 1 to 3.

6. A computer-readable storage medium for storing computer-readable instructions, characterized in that: When the instructions are executed, the method according to any one of claims 1 to 3 is performed.