Image processing method and device
Through image processing technology, the feature vectors and display parameters in the retouching product material library are matched, which solves the problem of inaccurate display of retouching products, realizes the standardized display of eyelash products, and improves user experience and transaction efficiency.
Patent Information
- Application Number
- CN202210119912.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-02-08
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2042-02-08
AI Technical Summary
The existing retouching product display lacks accurate and unified display standards, and it is impossible to intuitively and accurately display the retouching effects of various categories of retouching products. Especially in the display of eyelash products, due to the influence of picture clarity and intake angle, it is difficult for users to Determine whether the product style is suitable.
Through the image processing method, the target modified object feature vector in the image to be recognized is obtained, similar feature vectors are matched from the modified product material library, the modified product is determined, the modified display parameters are obtained, and a modified object display image marked with the modified display parameters is generated. Send to the terminal for display.
It realizes the standardized and parameterized display of modification products and their effects, avoids the problem of inaccurate display, enables users and eyelash service providers to understand product characteristics more clearly, and improves user experience and transaction efficiency.
Smart Images

Figure CN114463217B
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and more particularly to an image processing method, device, electronic device, and computer-readable storage medium. The present application also relates to an image display method, device, electronic device, and computer-readable storage medium. Background Art
[0002] Modified objects refer to objects after using modified products. For example, in the field of beauty and cosmetics, modified products are used to modify specific objects, human body parts and other modified objects to achieve aesthetic or visual effects, such as eyelash products (false eyelashes), wigs, false eyebrows and other hair-related beauty products. The existing display of modified products lacks accurate and unified display standards, and cannot intuitively and accurately display the modification effects of various types of modified products.
[0003] Take eyelash products as an example. The styles of eyelash products are complex and varied. Merchants clearly and accurately display the style characteristics of eyelash products to users, so that users can quickly identify the style of eyelash products that suits them and improve the user experience. However, for online eyelash product merchants, the characteristics of various eyelash product styles are usually displayed through model pictures. Due to the influence of factors such as the clarity and angle of the captured pictures, the displayed pictures cannot intuitively reflect the characteristics of eyelash products and cannot accurately show the use effects of eyelash products, resulting in users being unable to determine whether the style of eyelash products is suitable for them, affecting the use experience. At the same time, it is not easy for eyelash service providers to identify the style characteristics of eyelash products, which leads to a low degree of restoration of the effects presented by eyelash products.
[0004] Therefore, how to intuitively and accurately display the modification effects of various types of modification products is an issue that needs to be urgently addressed. Summary of the invention
[0005] The embodiments of the present application provide an image processing method, device, electronic device, and computer-readable storage medium to solve the problem that the display of modified products in the prior art lacks accurate and unified display standards and cannot intuitively and accurately display the modification effects of various types of modified products. The present application also provides an image display method, device, electronic device, and computer-readable storage medium.
[0006] The present application provides an image processing method, including:
[0007] Obtaining an image to be recognized;
[0008] Identifying a target modification object from the image to be identified;
[0009] Obtaining a target feature vector of the target modification object;
[0010] Obtaining a target reference feature vector that satisfies a predetermined similarity threshold with the target feature vector from the reference feature vectors of the modified product material library, and determining the modified product corresponding to the target reference feature vector as the target modified product applied to the target modified object, wherein the reference feature vector is a feature vector of a reference modified object, and the reference modified object is a modified object obtained after applying a preset modified product in the modified product material library to the object to be modified;
[0011] The modification display parameters corresponding to the target modification product or the modification object display image marked with the modification display parameters are obtained from the modification product material library, and the modification display parameters or the modification object display image are sent to a terminal for displaying modification products.
[0012] Optionally, obtaining the target feature vector of the target modified object includes: dividing the target modified object into multiple regions; obtaining a region length parameter of each region among the multiple regions, and obtaining an average length parameter of the modified object corresponding to each region; obtaining the target feature vector of the target modified object according to the region length parameter of each region and the average length parameter of the modified object corresponding to each region.
[0013] Optionally, the modified object is a hair-type modified object, and the method further comprises: obtaining an average curl parameter of the modified object corresponding to each area of the multiple areas;
[0014] The method of obtaining a target feature vector of the target modified object according to the region length parameter of each region and the average length parameter of the modified object corresponding to each region comprises: obtaining a target feature vector of the target modified object according to the region length parameter of each region, the average length parameter of the modified object corresponding to each region and the average curl parameter of the modified object corresponding to each region.
[0015] Optionally, dividing the target modification object into a plurality of regions includes: dividing the target modification object into a plurality of regions in a same partitioning manner as the reference modification object.
[0016] Optionally, dividing the target modified object into a plurality of regions includes: obtaining feature parameters of a modified object corresponding to the target modified object; and dividing the target modified object into a plurality of regions according to the feature parameters.
[0017] Optionally, the method further includes: calculating the similarity between the target feature vector of the target modified object and the reference feature vector.
[0018] Optionally, it also includes: obtaining the pixel length corresponding to the reference modification object in the modification product material library; normalizing the target modification object according to the pixel length; correspondingly, obtaining the target feature vector of the target modification object includes: obtaining the target feature vector of the target modification object after normalization adjustment.
[0019] Optionally, obtaining the image to be identified includes: obtaining a modification object display request sent by a physical terminal, wherein the modification object display request carries the image to be identified.
[0020] Optionally, sending the modification display parameters corresponding to the target modified product or the modification object display image marked with the modification display parameters to the terminal for displaying the modified product includes: sending the modification display parameters corresponding to the target modified product or the modification object display image marked with the modification display parameters to the physical terminal; or sending the modification display parameters corresponding to the target modified product or the modification object display image marked with the modification display parameters to the user terminal.
[0021] Optionally, the modification display parameter corresponding to the target modified product includes at least one of the following:
[0022] After the modified object to which the target modification product is applied is divided into a plurality of regions, the region length parameter of each region in the plurality of regions; the average length parameter of the modified object corresponding to each region; and the average curl parameter of the modified object corresponding to each region.
[0023] Optionally, the modified object is eyelashes, and the modified product is an eyelash beautifying product.
[0024] The embodiment of the present application also provides an image display method, which is applied to a physical terminal, including:
[0025] Sending a modification object display request to a server, wherein the modification object display request carries an image to be identified including a target modification object;
[0026] Receiving modification display parameters corresponding to the target modification product provided by the server, and annotating the target modification object or other modification objects using the target modification product according to the modification display parameters to obtain a modification object display image; or, receiving a modification object display image annotated with the modification display parameters provided by the server, wherein the target modification product is a modification product applied to the target modification object;
[0027] The modified object display image is displayed or sent.
[0028] Optionally, the modification display parameter corresponding to the target modified product includes at least one of the following:
[0029] After the target modified object or other modified object to which the target modified product is applied is divided into multiple areas, the area length parameter of each area in the multiple areas; the average length parameter of the modified object corresponding to each area; and the average curl parameter of the modified object corresponding to each area.
[0030] Optionally, the step of labeling the target modified object or other modified objects to which the target modified product is applied according to the modified display parameter to obtain a modified object display image includes:
[0031] Based on the target modified object or other modified object to which the target modified product is applied, obtaining a contour line drawing for characterizing contour features of the target modified object or the other modified object;
[0032] The modification display parameters are marked on the contour line drawing to obtain the modification object display image.
[0033] Optionally, the modified object display image displays at least one of the following information:
[0034] After the target modified object or other modified object to which the target modified product is applied is divided into a plurality of regions, different region lengths corresponding to each of the plurality of regions;
[0035] After the target modified object or other modified object to which the target modified product is applied is divided into a plurality of regions, an average length corresponding to the modified object in each of the plurality of regions;
[0036] After the target modification object or other modification object to which the target modification product is applied is divided into a plurality of regions, an average curl degree corresponding to the modification object in each of the plurality of regions.
[0037] Optionally, the method further includes: displaying description information for the target modification product at a corresponding position of the modification object display image, wherein the description information corresponds to the modification display parameter.
[0038] Optionally, the method further includes: receiving style information of the target modified product provided by the server; and displaying the style information at a corresponding position of the display image of the modified object.
[0039] Optionally, the modified object is eyelashes, and the modified product is an eyelash beautifying product.
[0040] The embodiment of the present application also provides an image display method, which is applied to a user terminal, including:
[0041] Receiving modification display parameters corresponding to a target modification product provided by a server, and annotating a modification object to which the target modification product is applied according to the modification display parameters to obtain a modification object display image; or receiving a modification object display image annotated with the modification display parameters provided by the server;
[0042] The modification object display image is displayed on the display page of the target modification product.
[0043] Optionally, the modification display parameter corresponding to the target modified product includes at least one of the following:
[0044] After the modified object to which the target modification product is applied is divided into a plurality of regions, the region length parameter of each region in the plurality of regions; the average length parameter of the modified object corresponding to each region; and the average curl parameter of the modified object corresponding to each region.
[0045] Optionally, the device further comprises: in response to a user triggering operation on the modification object display image, enlarging and displaying the modification object display image, and outputting description information of the target modification product, wherein the description information corresponds to the modification display parameter.
[0046] Optionally, the step of labeling the modified object to which the target modified product is applied according to the modified display parameter to obtain a modified object display image includes:
[0047] Based on the modified object to which the target modification product is applied, obtaining a contour line drawing for characterizing contour features of the modified object;
[0048] The modification display parameters are marked on the contour line drawing to obtain the modification object display image.
[0049] Optionally, the modified object display image displays at least one of the following information:
[0050] After the modified object to which the target modification product is applied is divided into a plurality of regions, different region lengths corresponding to each of the plurality of regions;
[0051] After the modified object to which the target modification product is applied is divided into a plurality of regions, an average length corresponding to the modified object in each of the plurality of regions;
[0052] After the modified object to which the target modification product is applied is divided into a plurality of regions, an average curl degree corresponding to the modified object in each of the plurality of regions.
[0053] Optionally, the method further includes: receiving style information of the target modified product provided by the server; and displaying the style information at a corresponding position of the display image of the modified object.
[0054] Optionally, the modified object is eyelashes, and the modified product is an eyelash beautifying product.
[0055] The present application also provides an image processing device, including:
[0056] An image-to-be-recognized obtaining unit, used for obtaining an image to be recognized;
[0057] A target modification object recognition unit, used to recognize the target modification object from the image to be recognized;
[0058] A target feature vector obtaining unit, used to obtain a target feature vector of the target modification object;
[0059] a target modified product determination unit, configured to obtain a target reference feature vector that satisfies a predetermined similarity threshold with the target feature vector from a reference feature vector in a modified product material library, and determine the modified product corresponding to the target reference feature vector as the target modified product applied to the target modified object, wherein the reference feature vector is a feature vector of a reference modified object, and the reference modified object is a modified object obtained after applying a preset modified product in the modified product material library to the to-be-modified object;
[0060] The data sending unit is used to obtain the modification display parameters corresponding to the target modified product or the modification object display image marked with the modification display parameters from the modification product material library, and send the modification display parameters or the modification object display image to the terminal used to display the modified product.
[0061] The embodiment of the present application further provides an image display device, which is applied to a physical terminal, including:
[0062] A modification object display request sending unit, used to send a modification object display request to a server, wherein the modification object display request carries an image to be identified including a target modification object;
[0063] a modification object display image obtaining unit, configured to receive modification display parameters corresponding to a target modification product provided by the server, and to annotate the target modification object or other modification objects using the target modification product according to the modification display parameters to obtain a modification object display image; or, to receive a modification object display image annotated with the modification display parameters provided by the server, wherein the target modification product is a modification product applied to the target modification object;
[0064] The modified object display image display unit is used to display or send the modified object display image.
[0065] The embodiment of the present application further provides an image display device, applied to a user terminal, comprising:
[0066] A modification object display image obtaining unit is used to receive modification display parameters corresponding to a target modification product provided by a server, and to annotate the modification object to which the target modification product is applied according to the modification display parameters to obtain a modification object display image; or to receive a modification object display image annotated with the modification display parameters provided by the server;
[0067] The modification object display image display unit is used to display the modification object display image on the display page of the target modification product.
[0068] An embodiment of the present application also provides an electronic device, including a processor and a memory; wherein the memory is used to store one or more computer instructions, wherein the one or more computer instructions are executed by the processor to implement the above method.
[0069] An embodiment of the present application also provides a computer-readable storage medium on which one or more computer instructions are stored, and the instructions are executed by a processor to implement the above method.
[0070] Compared with the prior art, the embodiments of the present application have the following advantages:
[0071] The image processing method provided by the embodiment of the present application obtains a target feature vector of the target modification object after obtaining an image to be identified and identifying a target modification object from the image to be identified, obtains a target reference feature vector that satisfies a predetermined similarity threshold with the target feature vector from a reference feature vector in a modification product library, and determines the modification product corresponding to the target reference feature vector as the target modification product applied to the target modification object, wherein the reference feature vector is a feature vector of a reference modification object, and the reference modification object is a modification object obtained after applying a preset modification product in a modification product library to the object to be modified; obtains modification display parameters corresponding to the target modification product or a modification object display image marked with the modification display parameters from the modification product library, and sends the modification display parameters or the modification object display image to a terminal for displaying the modification product. By using this method, for any image containing a modified object, the modified product applied to the modified object can be determined based on a pre-created modified product material library, and the corresponding modification display parameters of the modified product or the modified object display image marked with the modification display parameters can be obtained. After the modification display parameters or the modified object display image marked with the modification display parameters are sent to a terminal for displaying the modified product, the terminal can display the modified object display image marked with the modification display parameters, so that any modified product and its modified effect can be displayed intuitively and accurately in a standardized and parameterized form, which can avoid the problem that the existing modified product display link lacks accurate and unified display standards and cannot intuitively and accurately display the modification effects of various categories of modified products. BRIEF DESCRIPTION OF THE DRAWINGS
[0072] Figure 1 is a flow chart of the image processing method provided by the first embodiment of the present application;
[0073] Figure 1-A It is a scene diagram provided by the scene embodiment of the present application;
[0074] Figure 2 is a flow chart of an image display method provided in the second embodiment of the present application;
[0075] Figure 3 is a flow chart of an image display method provided in the third embodiment of the present application;
[0076] Figure 4 is a unit block diagram of an image processing device provided in a fourth embodiment of the present application;
[0077] Figure 5 is a schematic diagram of the logical structure of an electronic device provided in an embodiment of the present application;
[0078] Figure 6 is a unit block diagram of an image display device provided in a seventh embodiment of the present application;
[0079] Figure 7 It is a unit block diagram of the image display device provided in the tenth embodiment of the present application. DETAILED DESCRIPTION
[0080] Many specific details are described in the following description to facilitate a full understanding of the present application. However, the present application can be implemented in many other ways than those described herein, and those skilled in the art can make similar generalizations without violating the connotation of the present application, so the present application is not limited by the specific implementation disclosed below.
[0081] In order to solve the problem that the existing display of decorative products in the beauty field lacks accurate and unified display standards and cannot intuitively and accurately display the decorative effects of various types of decorative products, the present application provides an image processing method, an image processing device, an electronic device and a computer-readable storage medium corresponding to the method. The present application also provides an image display method, an image display device, an electronic device and a computer-readable storage medium corresponding to the method. The following embodiments are provided to describe the above-mentioned method, device, electronic device and computer-readable storage medium in detail.
[0082] The first embodiment of the present application provides an image processing method, the application subject of the method may be a computing device application for processing an image containing a modified object, the computing device application may run on a server, and the server may be a network platform server. Figure 1 This is a flowchart of the image processing method provided in the first embodiment of the present application. Figure 1 The method provided in this embodiment is described in detail. The embodiments described below are used to explain the principle of the method and are not intended to be limiting for actual use.
[0083] like Figure 1 As shown, the image processing method provided in this embodiment includes the following steps:
[0084] S101, obtaining an image to be recognized.
[0085] This step is used to obtain an image to be identified, which contains a target modified object. A modified object refers to an object after using a modified product. For example, in the field of beauty and cosmetics, a modified product refers to a product used to modify a specific object, a human body part, or other modified object to achieve beauty or improve visual perception, such as eyelash products (false eyelashes), wigs, false eyebrows, and other hair-related beauty and cosmetic products. Taking eyelashes as an example, the image to be identified can be an image of an eye after applying an eyelash product, and the target modified object can be the target eyelash after applying the eyelash product, such as Figure 1-A As shown in 100, the image to be recognized may be a captured real person eye image, or may be a drawn image or a simulated image.
[0086] The above-mentioned obtaining of the image to be identified may specifically refer to: obtaining a modification object display request sent by a physical terminal (a terminal used by a merchant or an application on the terminal, such as a merchant APP or a merchant mini-program), and the modification object display request carries the above-mentioned image to be identified. For example, a merchant registered on the network platform sends a wearing effect image corresponding to the eyelash product to be sold to the network platform server, and the network platform server publishes the wearing effect image and other eyelash display information to the user terminal, thereby realizing the online sales of eyelash products.
[0087] S102: Identify a target modification object from the image to be identified.
[0088] After the image to be identified is obtained in the above step, this step is used to identify the target modification object from the image to be identified. Specifically, the existing image pattern recognition or contour line texture can be used to identify the image to be identified to obtain the target modification object. Taking eyelashes as an example, the target modification object is the target eyelashes after using eyelash beauty products, which can be upper eyelashes or lower eyelashes. In this embodiment, only the upper eyelashes are used as an example for description.
[0089] S103, obtaining a target feature vector of the target modified object.
[0090] After the target modification object is identified from the image to be identified in the above step, this step is used to obtain the target feature vector of the target modification object. Taking eyelashes as an example, for the target eyelashes after using eyelash products, the target feature vector can be understood as a parameter set formed by quantizing the feature parameters of the target eyelashes. Since different eyelash styles have different characteristics, one or more features of the length, curl, brightness, and thickness of the eyelashes can be selected as the feature parameters of the target eyelashes.
[0091] In this embodiment, before obtaining the target feature vector of the target modification object, it is also necessary to obtain the pixel length corresponding to the reference modification object in the modification product material library (for example, the pixel length between the inner corner and the outer corner of the eye), and perform normalization adjustment on the target modification object according to the pixel length. The target feature vector of the target modification object obtained above is the target feature vector of the target modification object after normalization adjustment. The purpose of normalizing the target modification object in this way is to make the target modification object and the reference modification object in the modification product material library have a unified standard, which is convenient for subsequent comparison. The modification product material library is a pre-constructed database for storing reference modification objects and related information thereof. The reference modification object is a modification object obtained after applying a preset modification product in the modification product material library to the object to be modified. The preset modification products in the modification product material library are standardized modification products of different types, versions or styles. Taking eyelashes as an example, the modification product material library is the eyelash beauty product material library, the object to be modified is the eyelashes to be modified, and the preset modification products are eyelash beauty products of different styles, such as feather fan-shaped eyelash products (false eyelashes), flying eyelash products, etc. The reference modification object is the feather fan-shaped eyelashes, flying eyelashes, etc. presented after the eyes (or eyelashes) to be modified wear the feather fan-shaped eyelash products or the flying eyelash products.
[0092] In this embodiment, the target feature vector of the target modification object can be obtained in the following manner: the target modification object is divided into multiple regions, for example, the target eyelashes are divided into multiple sectors; the region length parameter of each region is obtained, and the average length parameter of the modification object corresponding to each region is obtained, for example, the length of each sector and the average length of the eyelashes in each sector are obtained; the target feature vector of the target modification object is obtained according to the region length parameter of each region and the average length parameter of the modification object corresponding to each region. Figure 1-A As shown in , the target eyelashes are divided into 5 sectors, and the lengths of each sector are 9mm, 11mm, 11mm, 9mm, and 8mm respectively. The lengths of each sector can be quantized to be (9:11:11:9:8). Similarly, the average lengths of the eyelashes in each sector are 9mm, 10mm, 12mm, 10mm, and 8mm, which can be quantized to be (9:10:12:10:8). Finally, the eigenvalues of the eigenvector of the target eyelashes are (9, 11, 11, 9, 8, 9, 10, 12, 10, 8).
[0093] It should be noted that, for hair modification objects, the average curl parameter of the modification object corresponding to each of the above-mentioned multiple regions can also be obtained, for example, the average curl of the eyelashes in each sector of the target eyelashes. Correspondingly, the process of obtaining the target feature vector also needs to consider the average curl, that is, based on the region length parameter of each region, the average length parameter of the modification object corresponding to each region, and the average curl parameter of the modification object corresponding to each region, the target feature vector of the target modification object is obtained.
[0094] In this embodiment, the target modification object can be divided into multiple regions in the following two ways:
[0095] Method 1: Divide the target modification object into multiple areas using the same partitioning method as the reference modification objects in the modification product library, that is, the reference modification objects in the modification product library all correspond to reference feature vectors, and when calculating the reference feature vectors, each reference modification object has been partitioned separately. Therefore, when partitioning the target modification object in order to calculate its target feature vector, the partitioning can be performed in a manner consistent with the reference modification object, so that the target feature vector and the reference feature vector in the modification product library have parameters of the same dimensionality.
[0096] Method 2: Obtain the characteristic parameters of the modified object corresponding to the target modification object; divide the target modification object into multiple regions according to the characteristic parameters. Taking eyelashes as an example, the modified object here can be the eyes corresponding to the target eyelashes. Since different eyes have different characteristics, such as eyeball size, eye shape (such as willow-leaf eyes), etc., in order to make the obtained characteristic vector of the target eyelashes more targeted, the target eyelash object can also be divided into regions according to the characteristic parameters of the eyes corresponding to the target eyelashes (eyeball size, eye shape, etc.). For example, if the eye shape corresponding to the target eyelashes is longer, the target eyelashes are more suitable for being divided into 6 eyelash sectors. If the eye shape corresponding to the target eyelashes is shorter, the target eyelashes are more suitable for being divided into 4 eyelash sectors.
[0097] S104, obtaining a target reference feature vector that meets a predetermined similarity threshold with the target feature vector from the reference feature vectors in the modified product material library, and determining the modified product corresponding to the target reference feature vector as the target modified product applied to the target modified object.
[0098] After the target feature vector of the target modification object is obtained in the above step, this step is used to obtain a target reference feature vector that satisfies a predetermined similarity threshold with the target feature vector from the reference feature vector of the modification product material library, and determine the modification product corresponding to the target reference feature vector as the target modification product applied to the target modification object, wherein the reference feature vector is a feature vector of the reference modification object, and the reference modification object is a modification object obtained after applying a preset modification product in the modification product material library to the object to be modified. Specifically, it is necessary to calculate the similarity between the target feature vector of the target modification object and each reference feature vector in the modification product material library, and if the similarity between a certain reference feature vector and the target feature vector is greater than the predetermined similarity threshold, the reference feature vector is determined as the target reference feature vector.
[0099] As described in the above step S103, the modification product material library is a pre-constructed database for storing reference modification objects and related information thereof. The reference modification object is a modification object obtained after the object to be modified applies the preset modification product in the modification product material library. The preset modification product is a standardized modification product of different types, different versions or different styles. Taking eyelashes as an example, the modification product material library is an eyelash beauty product material library, the object to be modified is the eyelashes to be modified, and the preset modification product is an eyelash beauty product of different styles, such as feather fan-shaped eyelash products (false eyelashes), flying eyelash products, etc. The reference modification object is the feather fan-shaped eyelashes, flying eyelashes, etc. presented after the eyes (or eyelashes) to be modified wear the feather fan-shaped eyelash products, flying eyelash products. The related information of the reference modification object stored in the modification product material library includes a reference feature vector, the modification display parameters corresponding to each preset modification product, and the modification object display image annotated with the modification display parameters.
[0100] In this embodiment, in the above step S103, method 1 is adopted to divide the target modification object into multiple areas, and the target feature vector and the reference feature vector in the modification product material library have parameters of the same dimension. For example, the first five values of the eigenvalues of the feature vector represent the length of the eyelash sector, and the last five values represent the average length of the eyelashes. Therefore, the similarity between the target feature vector and the reference feature vector can be determined according to the angle between the target feature vector and the reference feature vector, and then the target reference feature vector can be determined.
[0101] It should be noted that if the second method is used in the above step S103 to divide the target modification object into multiple regions, since the partitioning method of the target modification object in this method is not consistent with the partitioning method of the reference modification object in the modification product material library, the target feature vector and the reference feature vector are likely to correspond to parameters of different dimensions (for example, the feature values representing the length of each region in the feature values of the target feature vector are the first 6 values, while the feature values representing the length of each region in the feature values of the reference feature vector are the first 5 values). Therefore, before calculating the similarity between the target feature vector and the reference feature vector, it is also necessary to determine whether the number of regions corresponding to the target feature vector is the same as the number of regions corresponding to the reference feature vector. If they are the same, the similarity calculation is performed. If not, the target modification object and the reference modification object are adjusted to the same number of partitions.
[0102] It should be noted that, in this embodiment, the similarity between the target feature vector and the reference feature vector can also be determined based on the similarity between the feature parameters of the target feature vector and the feature parameters of the reference feature vector in the modification product material library, thereby determining the target modification product corresponding to the target modification. For example, the target feature vector is compared with the region length values of each reference feature vector respectively, thereby determining the similarity of the region length parameters, the target feature vector is compared with the average eyelash length values of each reference feature vector respectively, thereby determining the similarity of the average eyelash length parameters, and finally, based on the similarity of the region length parameters and the similarity of the average eyelash length parameters, the similarity between the target feature vector and the reference feature vector is determined, thereby determining the reference feature vector that meets a predetermined similarity threshold with the target feature vector as the target reference feature vector, and determining the eyelash product corresponding to the target reference feature vector as the target eyelash product applied for the target eyelashes.
[0103] S105, obtaining the modification display parameters corresponding to the target modification product or the modification object display image marked with the modification display parameters from the modification product material library, and sending the modification display parameters or the modification object display image to a terminal for displaying the modification product.
[0104] The modification display parameter corresponding to the target modification product refers to: after the modification object to which the target modification product is applied is divided into multiple regions, one or more of the parameters such as the region length parameter of each region, the average length parameter of the modification object corresponding to each region, and the average curl parameter of the modification object corresponding to each region, which can characterize the display details of the target modification product and quantify its modification effect. The modification object display image annotated with the modification display parameter is the display image after the target modification product is applied to the object to be modified, and the display image is annotated with the above-mentioned region length parameter, the average length parameter of the modification object corresponding to each region, and the average curl parameter of the modification object corresponding to each region, etc. In this embodiment, the modification object display image can be a captured real person eye image, or a drawn image or a simulated image, and the modification object display image can display text description information of the target modification product for users to obtain detailed information about the target modification product.
[0105] The above-mentioned sending of the modified display parameters or the modified object display image to the terminal used to display the modified product specifically refers to: sending the modified display parameters corresponding to the target modified product or the modified object display image marked with the modified display parameters to the physical terminal (the terminal used by the merchant or the application on the terminal, such as the merchant APP or the merchant mini-program) for the physical terminal to display or mark; or, sending the modified display parameters corresponding to the target modified product or the modified object display image marked with the modified display parameters to the user terminal for the user terminal to display or mark. For example, after the user terminal receives the modified display parameters corresponding to the above-mentioned target modified product, it marks the modified object to which the target modified product is applied according to the modified display parameters to obtain the modified object display image, or receives the modified object display image marked with the modified display parameters provided by the server, and then displays the modified object display image on the display page of the target modified product.
[0106] The image processing method provided by the embodiment of the present application obtains a target feature vector of the target modification object after obtaining an image to be identified and identifying a target modification object from the image to be identified, obtains a target reference feature vector that satisfies a predetermined similarity threshold with the target feature vector from a reference feature vector in a modification product library, and determines the modification product corresponding to the target reference feature vector as the target modification product applied to the target modification object, wherein the reference feature vector is a feature vector of a reference modification object, and the reference modification object is a modification object obtained after applying a preset modification product in a modification product library to the object to be modified; obtains modification display parameters corresponding to the target modification product or a modification object display image marked with the modification display parameters from the modification product library, and sends the modification display parameters or the modification object display image to a terminal for displaying the modification product. By using this method, for any image containing a modified object, the modified product applied to the modified object can be determined based on the pre-created modified product material library, and the modified display parameters corresponding to the modified product or the modified object display image marked with the modified display parameters can be obtained accordingly. After the modified display parameters or the modified object display image marked with the modified display parameters are sent to the terminal for displaying the modified product, the terminal can display the modified object display image marked with the modified display parameters, so that any modified product and its modified effect can be displayed intuitively and accurately in a standardized and parameterized form, which can avoid the problem that the existing modified product display link lacks accurate and unified display standards and cannot intuitively and accurately display the modified effects of various categories of modified products. Taking the eyelash industry as an example, the method provided in this embodiment can make the wearing effect of the eyelash product be displayed intuitively and accurately in a standardized and parameterized form, so that users and eyelash service providers can more clearly know the eyelash characteristic information, which can improve user experience and transaction efficiency.
[0107] Corresponding to the above-mentioned first embodiment, the second embodiment of the present application provides an image display method, and the implementation subject of the method can be a physical terminal (a terminal used by a merchant or an application on the terminal, such as a merchant APP or a merchant mini program). Figure 2 This is a flowchart of the image display method provided in the second embodiment of the present application. Figure 2 The method provided in this embodiment is described in detail. The embodiments described below are used to explain the principle of the method and are not intended to be limiting for actual use. This embodiment corresponds to the first embodiment described above. For details, please refer to the first embodiment described above, which will not be described in detail here.
[0108] like Figure 2 As shown, the image display method provided in this embodiment includes the following steps:
[0109] S201, sending a modification object display request to a server, the modification object display request carrying an image to be identified including a target modification object;
[0110] S202, receiving the modification display parameters corresponding to the target modification product provided by the server, and annotating the target modification object or other modification objects using the target modification product according to the modification display parameters to obtain a modification object display image; or receiving the modification object display image annotated with the modification display parameters provided by the server, wherein the target modification product is the modification product used by the target modification object. In this embodiment, the modification object is eyelashes, and the modification product is an eyelash beauty product.
[0111] The modification display parameters corresponding to the target modification product include at least one of the following: an area length parameter of each of the multiple areas after the target modification object or other modification object is divided into multiple areas by applying the target modification product; an average length parameter of the modification object corresponding to each area after the target modification object or other modification object is divided into multiple areas by applying the target modification product; an average curl parameter of the modification object corresponding to each area after the target modification object or other modification object is divided into multiple areas by applying the target modification product.
[0112] The above-mentioned labeling processing is performed on the target modified object or other modified objects using the target modified product according to the modification display parameters to obtain the modified object display image, which may specifically refer to: based on the target modified object or other modified objects using the target modified product, a contour line diagram for characterizing the contour features of the target modified object or the other modified objects is obtained; and the modification display parameters are labeled on the contour line diagram to obtain the modified object display image.
[0113] In this embodiment, the modified object displays an image (such as Figure 1-A 200) displays at least one of the following information: different area lengths corresponding to each of the multiple areas after the target modification object or other modification object is divided into multiple areas by applying the target modification product; the average length corresponding to the modification object in each of the multiple areas after the target modification object or other modification object is divided into multiple areas by applying the target modification product; the average curl corresponding to the modification object in each of the multiple areas after the target modification object or other modification object is divided into multiple areas by applying the target modification product.
[0114] S203, display or send the modified object display image. For example, display the modified object display image on the merchant terminal for reference by the merchant's eyelash extension service provider, or send the modified object display image to the user terminal for display.
[0115] In this embodiment, description information for the target modified product may be displayed at a corresponding position of the modified object display image, and the description information corresponds to the modified display parameter. Style information of the target modified product provided by the server may also be received; and the style information may be displayed at a corresponding position of the modified object display image.
[0116] By using this method, a display image of a modified object marked with modification display parameters can be displayed, so that the modified products and their modification effects can be displayed intuitively and accurately in a standardized and parameterized form, which can avoid the problem that the existing display link of modified products lacks accurate and unified display standards and cannot intuitively and accurately display the modification effects of various types of modified products. Taking the eyelash industry as an example, the method provided in this embodiment can make the wearing effect of eyelash products intuitively and accurately displayed in a standardized and parameterized form, so that users and eyelash service providers can more clearly know the eyelash characteristic information, which can improve user experience and transaction efficiency.
[0117] Corresponding to the first embodiment, the third embodiment of the present application further provides an image display method, which is implemented by a user terminal. Figure 3 This is a flowchart of the image display method provided in the third embodiment of the present application. Figure 3 The method provided in this embodiment is described in detail. The embodiments described below are used to explain the principle of the method and are not intended to be limiting for actual use. This embodiment corresponds to the first embodiment described above. For details, please refer to the first embodiment described above, which will not be described in detail here.
[0118] like Figure 3 As shown, the image display method provided in this embodiment includes the following steps:
[0119] S301, receiving a modification display parameter corresponding to a target modification product provided by a server, and annotating a modification object to which the target modification product is applied according to the modification display parameter to obtain a modification object display image; or receiving a modification object display image annotated with the modification display parameter provided by the server;
[0120] S302: Display the modification object display image on the display page of the target modification product.
[0121] The modification display parameters corresponding to the target modified product include at least one of the following:
[0122] After the modified object to which the target modification product is applied is divided into a plurality of regions, a region length parameter of each of the plurality of regions;
[0123] An average length parameter of the modified object corresponding to each region;
[0124] The average curl parameter of the modified object corresponding to each region.
[0125] After the modification object display image is displayed on the display page of the target modification product, the modification object display image can be enlarged and displayed in response to a trigger operation of the user on the modification object display image, and description information of the target modification product can be output, and the description information corresponds to the above-mentioned modification display parameters.
[0126] The above-mentioned labeling processing is performed on the modified object to which the target modified product is applied according to the modification display parameters to obtain the modified object display image, which may specifically refer to: based on the modified object to which the target modified product is applied, a contour line drawing for characterizing the contour features of the modified object is obtained; and the modification display parameters are labeled on the contour line drawing to obtain the modified object display image.
[0127] The above-mentioned modified object display image displays at least one of the following information: different area lengths corresponding to each of the multiple areas after the modified object applying the target modified product is divided into multiple areas; the average length corresponding to the modified object in each of the multiple areas after the modified object applying the target modified product is divided into multiple areas; the average curl corresponding to the modified object in each of the multiple areas after the modified object applying the target modified product is divided into multiple areas.
[0128] In this embodiment, the modification object is eyelashes, and the modification product is an eyelash beauty product. When the modification display parameters corresponding to the target modification product provided by the receiving server are received, the style information of the target modification product provided by the server can also be received; when the modification object display image is displayed, the style information can also be displayed at the corresponding position of the modification object display image.
[0129] By using this method, a display image of a modified object marked with modification display parameters can be displayed to the user, so that the modified products and their modification effects can be displayed intuitively and accurately in a standardized and parameterized form, which can avoid the problem that the existing display link of modified products lacks accurate and unified display standards and cannot intuitively and accurately display the modification effects of various types of modified products. Taking the eyelash industry as an example, the method provided in this embodiment can make the wearing effect of eyelash products intuitively and accurately displayed in a standardized and parameterized form, so that users can more clearly know the eyelash characteristic information, which can improve user experience and transaction efficiency.
[0130] The above-mentioned first embodiment provides an image processing method. Correspondingly, the fourth embodiment of the present application also provides an image processing device. Since the device embodiment is basically similar to the method embodiment, the description is relatively simple. For details of the relevant technical features, please refer to the corresponding description of the method embodiment provided above. The following description of the device embodiment is merely illustrative.
[0131] Please refer to Figure 4 To understand this embodiment, Figure 4 A unit block diagram of the image processing device provided in this embodiment, such as Figure 4 As shown, the image processing device provided by this embodiment includes: an image to be identified obtaining unit 401, used to obtain the image to be identified; a target modification object identification unit 402, used to identify the target modification object from the image to be identified; a target feature vector obtaining unit 403, used to obtain a target feature vector of the target modification object; a target modification product determination unit 404, used to obtain a target reference feature vector that meets a predetermined similarity threshold with the target feature vector from a reference feature vector in a modification product material library, and determine the modification product corresponding to the target reference feature vector as the target modification product applied to the target modification object, wherein the reference feature vector is a feature vector of a reference modification object, and the reference modification object is a modification object obtained after applying a preset modification product in the modification product material library to the object to be modified; a data sending unit 405, used to obtain a modification display parameter corresponding to the target modification product or a modification object display image marked with the modification display parameter from the modification product material library, and send the modification display parameter or the modification object display image to a terminal for displaying the modification product.
[0132] Obtaining a target feature vector of a target modified object includes: dividing the target modified object into a plurality of regions; obtaining a region length parameter of each of the plurality of regions, and obtaining an average length parameter of the modified object corresponding to each region; and obtaining a target feature vector of the target modified object according to the region length parameter of each region and the average length parameter of the modified object corresponding to each region.
[0133] The modification object is a hair modification object, and the method also includes: obtaining an average curl parameter of the modification object corresponding to each area of multiple areas; obtaining a target feature vector of the target modification object according to an area length parameter of each area and an average length parameter of the modification object corresponding to each area, including: obtaining a target feature vector of the target modification object according to the area length parameter of each area, the average length parameter of the modification object corresponding to each area, and the average curl parameter of the modification object corresponding to each area.
[0134] Dividing the target modified object into a plurality of regions includes: dividing the target modified object into a plurality of regions in the same partitioning manner as the reference modified object.
[0135] Before obtaining a target reference feature vector that meets a predetermined similarity threshold with the target feature vector from the reference feature vector of the modified product material library, the method further includes: calculating the similarity between the target feature vector of the target modified object and the feature vector of the modified object after applying any one of the modified products.
[0136] The target modified object is divided into a plurality of regions, including: obtaining feature parameters of the modified object corresponding to the target modified object; and dividing the target modified object into a plurality of regions according to the feature parameters.
[0137] The above-mentioned device also includes: a similarity calculation unit, which is used to calculate the similarity between the target feature vector of the target modification object and the reference feature vector.
[0138] The above-mentioned device also includes: a normalization adjustment unit, which is used to obtain the pixel length corresponding to the reference modification object in the modification product material library; according to the pixel length, the target modification object is normalized and adjusted; correspondingly, the target feature vector of the target modification object is obtained, including: obtaining the target feature vector of the target modification object after normalization adjustment.
[0139] Obtaining the image to be identified includes: obtaining a modification object display request sent by the entity terminal, where the modification object display request carries the image to be identified.
[0140] Sending the modified display parameters corresponding to the target modified product or the modified object display image marked with the modified display parameters to the terminal used to display the modified product includes: sending the modified display parameters corresponding to the target modified product or the modified object display image marked with the modified display parameters to the physical terminal; or sending the modified display parameters corresponding to the target modified product or the modified object display image marked with the modified display parameters to the user terminal.
[0141] The modification display parameters corresponding to the target modified product include at least one of the following:
[0142] After the modified object of the target modification product is divided into multiple areas, the area length parameter of each area in the multiple areas; the average length parameter of the modified object corresponding to each area; and the average curl parameter of the modified object corresponding to each area.
[0143] The modified object is eyelashes, and the modified product is eyelash beauty product.
[0144] By using the device, for any image containing a modified object, the modified product applied to the modified object can be determined based on the pre-created modified product material library, and the modified display parameters corresponding to the modified product or the modified object display image marked with the modified display parameters can be obtained accordingly. After the modified display parameters or the modified object display image marked with the modified display parameters are sent to the terminal for displaying the modified product, the terminal can display the modified object display image marked with the modified display parameters, so that any modified product and its modified effect can be displayed intuitively and accurately in a standardized and parameterized form, which can avoid the problem that the existing modified product display link lacks accurate and unified display standards and cannot intuitively and accurately display the modified effects of various categories of modified products. Taking the eyelash industry as an example, the use of the device provided by this embodiment can make the wearing effect of the eyelash product be displayed intuitively and accurately in a standardized and parameterized form, so that users and eyelash service providers can more clearly know the eyelash characteristic information, which can improve user experience and transaction efficiency.
[0145] In the above-mentioned embodiments, an image processing method and an image processing device are provided. In addition, the fifth embodiment of the present application also provides an electronic device. Since the electronic device embodiment is basically similar to the method embodiment, the description is relatively simple. For details of the relevant technical features, please refer to the corresponding description of the method embodiment provided above. The following description of the electronic device embodiment is only illustrative. The electronic device embodiment is as follows:
[0146] Please refer to Figure 5 To understand this embodiment, Figure 5 Schematic diagram of an electronic device provided in this embodiment. Figure 5 As shown, the electronic device provided in this embodiment includes: a processor 501 and a memory 502; the memory 502 is used to store computer instructions for data processing, and when the computer instructions are read and executed by the processor 501, the following operations are performed:
[0147] Obtain an image to be identified; identify a target modification object from the image to be identified; obtain a target feature vector of the target modification object; obtain a target reference feature vector that satisfies a predetermined similarity threshold with the target feature vector from a reference feature vector in a modification product library, and determine the modification product corresponding to the target reference feature vector as the target modification product applied to the target modification object, wherein the reference feature vector is a feature vector of a reference modification object, and the reference modification object is a modification object obtained by applying a preset modification product in a modification product library to the object to be modified; obtain modification display parameters corresponding to the target modification product or a modification object display image marked with the modification display parameters from the modification product library, and send the modification display parameters or the modification object display image to a terminal for displaying the modification product.
[0148] By using the electronic device, for any image containing a modified object, the modified product applied to the modified object can be determined based on the pre-created modified product material library, and the modified display parameters corresponding to the modified product or the modified object display image marked with the modified display parameters can be obtained accordingly. After the modified display parameters or the modified object display image marked with the modified display parameters are sent to the terminal for displaying the modified product, the terminal can display the modified object display image marked with the modified display parameters, so that any modified product and its modified effect can be displayed intuitively and accurately in a standardized and parameterized form, which can avoid the problem that the existing modified product display link lacks accurate and unified display standards and cannot intuitively and accurately display the modified effects of various categories of modified products. Taking the eyelash industry as an example, the use of the electronic device provided by this embodiment can make the wearing effect of the eyelash product be displayed intuitively and accurately in a standardized and parameterized form, so that users and eyelash service providers can more clearly know the eyelash characteristic information, which can improve user experience and transaction efficiency.
[0149] In the above-mentioned embodiments, an image processing method, an image processing device and an electronic device are provided. In addition, the sixth embodiment of the present application further provides a computer-readable storage medium for implementing the above-mentioned image processing method. The computer-readable storage medium embodiment provided in the present application is described in a relatively simple manner. For the relevant parts, please refer to the corresponding description of the above-mentioned method embodiment. The embodiments described below are merely illustrative.
[0150] The computer readable storage medium provided in this embodiment stores computer instructions, and when the instructions are executed by a processor, the following steps are implemented:
[0151] Obtain an image to be identified; identify a target modification object from the image to be identified; obtain a target feature vector of the target modification object; obtain a target reference feature vector that satisfies a predetermined similarity threshold with the target feature vector from a reference feature vector in a modification product library, and determine the modification product corresponding to the target reference feature vector as the target modification product applied to the target modification object, wherein the reference feature vector is a feature vector of a reference modification object, and the reference modification object is a modification object obtained by applying a preset modification product in a modification product library to the object to be modified; obtain modification display parameters corresponding to the target modification product or a modification object display image marked with the modification display parameters from the modification product library, and send the modification display parameters or the modification object display image to a terminal for displaying the modification product.
[0152] The above-mentioned second embodiment provides an image display method. Correspondingly, the seventh embodiment of the present application also provides an image display device. Since the device embodiment is basically similar to the method embodiment, the description is relatively simple. For details of the relevant technical features, please refer to the corresponding description of the method embodiment provided above. The following description of the device embodiment is merely illustrative.
[0153] Please refer to Figure 6 To understand this embodiment, Figure 6 A unit block diagram of the image display device provided in this embodiment, such as Figure 6 As shown, the image display device provided by this embodiment includes: a modified object display request sending unit 601, which is used to send a modified object display request to a server, and the modified object display request carries an image to be identified including a target modified object; a modified object display image obtaining unit 602, which is used to receive a modified display parameter corresponding to a target modified product provided by the server, and according to the modified display parameter, annotate the target modified object or other modified objects using the target modified product to obtain a modified object display image; or, receive a modified object display image annotated with the modified display parameter provided by the server, wherein the target modified product is a modified product applied to the target modified object; a modified object display image display unit 603, which is used to display or send the modified object display image.
[0154] In the above-mentioned embodiments, an image display method and an image display device are provided. In addition, the eighth embodiment of the present application also provides an electronic device. Since the electronic device embodiment is basically similar to the method embodiment, the description is relatively simple. For details of the relevant technical features, please refer to the corresponding description of the method embodiment provided above. The following description of the electronic device embodiment is only illustrative. The electronic device embodiment is as follows: Please refer to Figure 5 To understand this embodiment, Figure 5 Schematic diagram of an electronic device provided in this embodiment. Figure 5 As shown, the electronic device provided in this embodiment includes: a processor 501 and a memory 502; the memory 502 is used to store computer instructions for data processing, and when the computer instructions are read and executed by the processor 501, the following operations are performed:
[0155] A modification object display request is sent to a server, the modification object display request carries an image to be identified including a target modification object; modification display parameters corresponding to a target modification product provided by the server are received, and according to the modification display parameters, the target modification object or other modification objects using the target modification product are annotated to obtain a modification object display image; or, a modification object display image annotated with the modification display parameters provided by the server is received, wherein the target modification product is a modification product applied to the target modification object; and the modification object display image is displayed or sent.
[0156] In the above embodiments, an image display method, an image display device, and an electronic device are provided. In addition, the ninth embodiment of the present application further provides a computer-readable storage medium for implementing the above image display method. The computer-readable storage medium embodiment provided in the present application is described in a relatively simple manner. For the relevant parts, please refer to the corresponding description of the above method embodiment. The embodiments described below are merely illustrative.
[0157] The computer-readable storage medium provided in this embodiment stores computer instructions, and when the instructions are executed by the processor, the following steps are implemented: sending a modification object display request to the server, the modification object display request carries an image to be identified including a target modification object; receiving modification display parameters corresponding to a target modification product provided by the server, and annotating the target modification object or other modification objects using the target modification product according to the modification display parameters to obtain a modification object display image; or receiving a modification object display image annotated with the modification display parameters provided by the server, wherein the target modification product is a modification product applied to the target modification object; and displaying or sending the modification object display image.
[0158] The third embodiment mentioned above provides an image display method. Correspondingly, the tenth embodiment of the present application also provides an image display device. Since the device embodiment is basically similar to the method embodiment, the description is relatively simple. For details of the relevant technical features, please refer to the corresponding description of the method embodiment provided above. The following description of the device embodiment is merely illustrative.
[0159] Please refer to Figure 7 To understand this embodiment, Figure 7 A unit block diagram of the image display device provided in this embodiment, such as Figure 7 As shown, the image display device provided in this embodiment includes:
[0160] The modification object display image obtaining unit 701 is used to receive the modification display parameters corresponding to the target modification product provided by the server, and to annotate the modification object to which the target modification product is applied according to the modification display parameters to obtain the modification object display image; or to receive the modification object display image annotated with the modification display parameters provided by the server;
[0161] The modification object display image display unit 702 is used to display the modification object display image on the display page of the target modification product.
[0162] In the above-mentioned embodiments, an image processing method and an image processing device are provided. In addition, the eleventh embodiment of the present application also provides an electronic device. Since the electronic device embodiment is basically similar to the method embodiment, the description is relatively simple. For details of the relevant technical features, please refer to the corresponding description of the method embodiment provided above. The following description of the electronic device embodiment is only illustrative. The electronic device embodiment is as follows: Please refer to Figure 5 To understand this embodiment, Figure 5 Schematic diagram of an electronic device provided in this embodiment. Figure 5 As shown, the electronic device provided in this embodiment includes: a processor 501 and a memory 502; the memory 502 is used to store computer instructions for data processing, and when the computer instructions are read and executed by the processor 501, the following operations are performed:
[0163] Receive modification display parameters corresponding to the target modification product provided by the server, and annotate the modification object to which the target modification product is applied according to the modification display parameters to obtain a modification object display image; or, receive a modification object display image annotated with the modification display parameters provided by the server; and display the modification object display image on a display page of the target modification product.
[0164] In the above embodiments, an image display method, an image display device, and an electronic device are provided. In addition, the twelfth embodiment of the present application further provides a computer-readable storage medium for implementing the above image display method. The computer-readable storage medium embodiment provided in the present application is described in a relatively simple manner. For the relevant parts, please refer to the corresponding description of the above method embodiment. The embodiments described below are merely illustrative.
[0165] The computer-readable storage medium provided in this embodiment stores computer instructions, which, when executed by a processor, implement the following steps: receiving modification display parameters corresponding to a target modification product provided by a server, and annotating a modification object to which the target modification product is applied according to the modification display parameters to obtain a modification object display image; or, receiving a modification object display image annotated with the modification display parameters provided by a server; and displaying the modification object display image on a display page of the target modification product.
[0166] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0167] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0168] 1. Computer-readable media includes permanent and non-permanent, removable and non-removable media that can be used to store information by any method or technology. Information can be computer-readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable media does not include non-transitory media such as modulated data signals and carrier waves.
[0169] 2. Those skilled in the art should understand that the embodiments of the present application can be provided as methods, systems or computer program products. Therefore, the present application can take the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware. Moreover, the present application can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0170] Although the present application is disclosed as above in the form of a preferred embodiment, it is not intended to limit the present application. Any technical personnel in this field may make possible changes and modifications without departing from the spirit and scope of the present application. Therefore, the scope of protection of the present application shall be based on the scope defined by the claims of the present application.
Claims
1. An image processing method, characterized in that: include: Obtaining an image to be recognized; Identifying a target modification object from the image to be identified; Obtaining a target feature vector of the target modification object; Obtaining a target reference feature vector that satisfies a predetermined similarity threshold with the target feature vector from the reference feature vectors of the modified product material library, and determining the modified product corresponding to the target reference feature vector as the target modified product applied to the target modified object, wherein the reference feature vector is a feature vector of a reference modified object, and the reference modified object is a modified object obtained after applying a preset modified product in the modified product material library to the object to be modified; Obtaining the modification display parameters corresponding to the target modification product or the modification object display image marked with the modification display parameters from the modification product material library, and sending the modification display parameters or the modification object display image to a terminal for displaying modification products; Wherein, obtaining the target feature vector of the target modification object includes: Obtaining feature parameters of a modified object corresponding to the target modified object; dividing the target modified object into a plurality of regions according to the feature parameters; obtaining a region length parameter of each of the plurality of regions, and obtaining an average length parameter of the modified object corresponding to each region; obtaining a target feature vector of the target modified object according to the region length parameter of each region and the average length parameter of the modified object corresponding to each region; The method further includes: determining whether the number of regions corresponding to the target feature vector is the same as the number of regions corresponding to the reference feature vector of the modified product material library; if they are the same, calculating the similarity between the target feature vector of the target modified object and the reference feature vector.
2. The method according to claim 1, characterized in that The modified object is a hair-type modified object, and the method further comprises: obtaining an average curl parameter of the modified object corresponding to each of the plurality of regions; The method of obtaining a target feature vector of the target modified object according to the region length parameter of each region and the average length parameter of the modified object corresponding to each region comprises: obtaining a target feature vector of the target modified object according to the region length parameter of each region, the average length parameter of the modified object corresponding to each region and the average curl parameter of the modified object corresponding to each region.
3. The method according to claim 1, characterized in that Also includes: Obtaining the pixel length corresponding to the reference modification object in the modification product material library; According to the pixel length, normalizing and adjusting the target modification object; The obtaining of the target feature vector of the target modified object includes: obtaining the target feature vector of the target modified object after normalization adjustment.
4. The method according to claim 1, characterized in that: The step of obtaining the image to be identified comprises: A modification object display request sent by the entity terminal is obtained, where the modification object display request carries the image to be recognized.
5. The method according to claim 4, characterized in that The step of sending the modification display parameter corresponding to the target modified product or the modification object display image marked with the modification display parameter to a terminal for displaying the modified product comprises: Sending the modification display parameters corresponding to the target modification product or the modification object display image marked with the modification display parameters to the entity terminal; or The modification display parameters corresponding to the target modification product or the modification object display image marked with the modification display parameters are sent to the user terminal.
6. The method according to claim 1, characterized in that The modification display parameters corresponding to the target modified product include at least one of the following: After the modified object to which the target modification product is applied is divided into a plurality of regions, a region length parameter of each of the plurality of regions; An average length parameter of the modified object corresponding to each region; The average curl parameter of the modified object corresponding to each region.
7. The method according to claim 1, characterized in that The modified object is eyelashes, and the modified product is an eyelash beautifying product.
8. An image display method, characterized in that: Applicable to physical terminals, including: Sending a modification object display request to a server, wherein the modification object display request carries an image to be identified including a target modification object; Receiving modification display parameters corresponding to the target modification product provided by the server, and annotating the target modification object or other modification objects using the target modification product according to the modification display parameters to obtain a modification object display image; or, receiving a modification object display image annotated with the modification display parameters provided by the server, wherein the target modification product is a modification product applied to the target modification object; Displaying or sending the modified object display image; The server obtains the modification display parameters corresponding to the target modification product or the modification object display image marked with the modification display parameters in the following manner: Identify a target modification object from the image to be identified; obtain a target feature vector of the target modification object; obtain a target reference feature vector that satisfies a predetermined similarity threshold with the target feature vector from a reference feature vector in a modification product library, and determine the modification product corresponding to the target reference feature vector as the target modification product applied to the target modification object, wherein the reference feature vector is a feature vector of a reference modification object, and the reference modification object is a modification object obtained after applying a preset modification product in the modification product library to the object to be modified; obtain modification display parameters corresponding to the target modification product or a modification object display image annotated with the modification display parameters from the modification product library; Wherein, obtaining the target feature vector of the target modified object comprises: obtaining feature parameters of the modified object corresponding to the target modified object; dividing the target modified object into a plurality of regions according to the feature parameters; obtaining a region length parameter of each region among the plurality of regions, and obtaining an average length parameter of the modified object corresponding to each region; obtaining the target feature vector of the target modified object according to the region length parameter of each region and the average length parameter of the modified object corresponding to each region; The method further includes: determining whether the number of regions corresponding to the target feature vector is the same as the number of regions corresponding to the reference feature vector of the modified product material library; if they are the same, calculating the similarity between the target feature vector of the target modified object and the reference feature vector.
9. The method according to claim 8, characterized in that The modification display parameters corresponding to the target modified product include at least one of the following: After the target modified object or other modified object to which the target modified product is applied is divided into a plurality of regions, a region length parameter of each of the plurality of regions; After the target modified object or other modified object to which the target modified product is applied is divided into a plurality of regions, an average length parameter of the modified object corresponding to each region; After the target modification object or other modification object to which the target modification product is applied is divided into a plurality of regions, the modification object corresponding to each region has an average curl parameter.
10. The method according to claim 8, characterized in that The step of labeling the target modified object or other modified objects to which the target modified product is applied according to the modified display parameter to obtain a modified object display image includes: Based on the target modified object or other modified object to which the target modified product is applied, obtaining a contour line drawing for characterizing contour features of the target modified object or the other modified object; The modification display parameters are marked on the contour line drawing to obtain the modification object display image.
11. The method according to claim 8 or 10, characterized in that: The modified object display image displays at least one of the following information: After the target modified object or other modified object to which the target modified product is applied is divided into a plurality of regions, different region lengths corresponding to each of the plurality of regions; After the target modified object or other modified object to which the target modified product is applied is divided into a plurality of regions, an average length corresponding to the modified object in each of the plurality of regions; After the target modification object or other modification object to which the target modification product is applied is divided into a plurality of regions, an average curl degree corresponding to the modification object in each of the plurality of regions.
12. The method according to claim 8, characterized in that Also includes: The description information for the target modification product is displayed at a corresponding position of the modification object display image, wherein the description information corresponds to the modification display parameter.
13. The method according to claim 8, characterized in that Also includes: Receiving style information of the target modified product provided by the server; The style information is displayed at a corresponding position of the modified object display image.
14. The method according to claim 8, characterized in that The modified object is eyelashes, and the modified product is an eyelash beautifying product.
15. An image display method, characterized in that: Applied to user terminals, including: Receiving modification display parameters corresponding to a target modification product provided by a server, and annotating a modification object to which the target modification product is applied according to the modification display parameters to obtain a modification object display image; or receiving a modification object display image annotated with the modification display parameters provided by the server; and displaying the modification object display image on a display page of the target modification product; The server obtains the modification display parameters corresponding to the target modification product or the modification object display image marked with the modification display parameters in the following manner: Identify a target modification object from the image to be identified; obtain a target feature vector of the target modification object; obtain a target reference feature vector that satisfies a predetermined similarity threshold with the target feature vector from a reference feature vector in a modification product library, and determine the modification product corresponding to the target reference feature vector as the target modification product applied to the target modification object, wherein the reference feature vector is a feature vector of a reference modification object, and the reference modification object is a modification object obtained after applying a preset modification product in the modification product library to the object to be modified; obtain modification display parameters corresponding to the target modification product from the modification product library; Wherein, obtaining the target feature vector of the target modified object comprises: obtaining feature parameters of the modified object corresponding to the target modified object; dividing the target modified object into a plurality of regions according to the feature parameters; obtaining a region length parameter of each region among the plurality of regions, and obtaining an average length parameter of the modified object corresponding to each region; obtaining the target feature vector of the target modified object according to the region length parameter of each region and the average length parameter of the modified object corresponding to each region; The method further includes: determining whether the number of regions corresponding to the target feature vector is the same as the number of regions corresponding to the reference feature vector of the modified product material library; if they are the same, calculating the similarity between the target feature vector of the target modified object and the reference feature vector.
16. The method according to claim 15, characterized in that The modification display parameters corresponding to the target modified product include at least one of the following: After the modified object to which the target modification product is applied is divided into a plurality of regions, a region length parameter of each of the plurality of regions; An average length parameter of the modified object corresponding to each region; The average curl parameter of the modified object corresponding to each region.
17. The method according to claim 15, characterized in that Also includes: In response to a trigger operation of the user on the modification object display image, the modification object display image is enlarged and displayed, and description information of the target modification product is output, where the description information corresponds to the modification display parameter.
18. The method according to claim 15, characterized in that The step of labeling the modified object to which the target modified product is applied according to the modified display parameter to obtain a modified object display image includes: Based on the modified object to which the target modification product is applied, obtaining a contour line drawing for characterizing contour features of the modified object; The modification display parameters are marked on the contour line drawing to obtain the modification object display image.
19. The method according to claim 15, characterized in that The modified object display image displays at least one of the following information: After the modified object to which the target modification product is applied is divided into a plurality of regions, different region lengths corresponding to each of the plurality of regions; After the modified object to which the target modification product is applied is divided into a plurality of regions, an average length corresponding to the modified object in each of the plurality of regions; After the modified object to which the target modification product is applied is divided into a plurality of regions, an average curl degree corresponding to the modified object in each of the plurality of regions.
20. The method according to claim 15, characterized in that Also includes: Receiving style information of the target modified product provided by the server; The style information is displayed at a corresponding position of the modified object display image.
21. The method according to claim 15, characterized in that The modified object is eyelashes, and the modified product is an eyelash beautifying product.
22. An image processing device, characterized in that: include: An image-to-be-recognized obtaining unit, used for obtaining an image to be recognized; A target modification object recognition unit, used to recognize the target modification object from the image to be recognized; The target feature vector obtaining unit is used to obtain the target feature vector of the target modified object, including: obtaining feature parameters of the modified object corresponding to the target modified object; dividing the target modified object into a plurality of regions according to the feature parameters; obtaining a region length parameter of each region among the plurality of regions, and obtaining an average length parameter of the modified object corresponding to each region; obtaining the target feature vector of the target modified object according to the region length parameter of each region and the average length parameter of the modified object corresponding to each region; a target modification product determination unit, configured to obtain a target reference feature vector that satisfies a predetermined similarity threshold with the target feature vector from a reference feature vector in a modification product material library, and determine the modification product corresponding to the target reference feature vector as the target modification product applied to the target modification object, wherein the reference feature vector is a feature vector of a reference modification object, and the reference modification object is a modification object obtained after applying a preset modification product in the modification product material library to the to-be-modified object; A data sending unit, used for obtaining the modification display parameters corresponding to the target modification product or the modification object display image marked with the modification display parameters from the modification product material library, and sending the modification display parameters or the modification object display image to a terminal for displaying the modification product; The device is also used to: determine whether the number of regions corresponding to the target feature vector is the same as the number of regions corresponding to the reference feature vector of the modified product material library; if they are the same, calculate the similarity between the target feature vector of the target modified object and the reference feature vector.
23. An image display device, characterized in that: Applicable to physical terminals, including: A modification object display request sending unit, used to send a modification object display request to a server, wherein the modification object display request carries an image to be identified including a target modification object; a modification object display image obtaining unit, configured to receive modification display parameters corresponding to a target modification product provided by the server, and to annotate the target modification object or other modification objects using the target modification product according to the modification display parameters to obtain a modification object display image; or, to receive a modification object display image annotated with the modification display parameters provided by the server, wherein the target modification product is a modification product applied to the target modification object; A modified object display image display unit, used to display or send the modified object display image; The server obtains the modification display parameters corresponding to the target modification product or the modification object display image marked with the modification display parameters in the following manner: Identify a target modification object from the image to be identified; obtain a target feature vector of the target modification object; obtain a target reference feature vector that satisfies a predetermined similarity threshold with the target feature vector from a reference feature vector in a modification product library, and determine the modification product corresponding to the target reference feature vector as the target modification product applied to the target modification object, wherein the reference feature vector is a feature vector of a reference modification object, and the reference modification object is a modification object obtained after applying a preset modification product in the modification product library to the object to be modified; obtain modification display parameters corresponding to the target modification product or a modification object display image annotated with the modification display parameters from the modification product library; wherein the obtaining The target feature vector of the target modified object includes: obtaining feature parameters of the modified object corresponding to the target modified object; dividing the target modified object into multiple regions according to the feature parameters; obtaining region length parameters of each region among the multiple regions, and obtaining average length parameters of the modified object corresponding to each region; obtaining the target feature vector of the target modified object according to the region length parameters of each region and the average length parameters of the modified object corresponding to each region; and also includes: judging whether the number of regions corresponding to the target feature vector is the same as the number of regions corresponding to the reference feature vector of the modified product material library, and if they are the same, calculating the similarity between the target feature vector of the target modified object and the reference feature vector.
24. An image display device, characterized in that: Applied to user terminals, including: A modification object display image obtaining unit is used to receive modification display parameters corresponding to a target modification product provided by a server, and to annotate the modification object to which the target modification product is applied according to the modification display parameters to obtain a modification object display image; or to receive a modification object display image annotated with the modification display parameters provided by the server; A modification object display image display unit, used to display the modification object display image on the display page of the target modification product; The server obtains the modification display parameters corresponding to the target modification product or the modification object display image marked with the modification display parameters in the following manner: Identify a target modification object from the image to be identified; obtain a target feature vector of the target modification object; obtain a target reference feature vector that satisfies a predetermined similarity threshold with the target feature vector from a reference feature vector of a modification product library, and determine the modification product corresponding to the target reference feature vector as the target modification product applied to the target modification object, wherein the reference feature vector is a feature vector of a reference modification object, and the reference modification object is a modification object obtained after applying a preset modification product in the modification product library to the object to be modified; obtain modification display parameters corresponding to the target modification product from the modification product library; wherein the target feature vector of the target modification object is obtained; The feature vector comprises: obtaining feature parameters of the modified object corresponding to the target modified object; dividing the target modified object into a plurality of regions according to the feature parameters; obtaining a region length parameter of each region among the plurality of regions, and obtaining an average length parameter of the modified object corresponding to each region; obtaining a target feature vector of the target modified object according to the region length parameter of each region and the average length parameter of the modified object corresponding to each region; and further comprising: determining whether the number of regions corresponding to the target feature vector is the same as the number of regions corresponding to the reference feature vector of the modified product material library, and if so, calculating the similarity between the target feature vector of the target modified object and the reference feature vector.
25. An electronic device, characterized in that: comprising a processor and a memory; wherein, The memory is used to store one or more computer instructions, wherein the one or more computer instructions are executed by the processor to implement the method according to claims 1-21.
26. A computer-readable storage medium having one or more computer instructions stored thereon, characterized in that: The instructions are executed by the processor to implement the method according to claims 1-21.
