Mirror frame recommendation method and device, equipment, storage medium and program product

By extracting the user's facial feature data and adjusting the frame model, the problem of poor frame recommendation results in the existing technology is solved, and frame recommendations that are more in line with the user's facial features are achieved, improving user satisfaction and the accuracy of the recommendation results.

CN118733874APending Publication Date: 2024-10-01SOUTHERN UNIVERSITY OF SCIENCE AND TECHNOLOGY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410768259.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-14
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

Existing glasses frame recommendation methods ignore the connection between the frame and the wearer's individual appearance, resulting in poor recommendation results and low user satisfaction.

Method used

By obtaining the facial image of the target user, extract facial feature data, including face shape, distance between eyebrows and eyes, eye distance, nose width, mandibular angle and eye proportions, determine the initial frame model based on these data, and fine-tune the frame model through preset adjustment rules to obtain Recommended results that are more in line with the user's appearance characteristics.

Benefits of technology

It improves the accuracy of frame recommendation and user satisfaction, provides frame recommendation results that better fit the user's facial features, and improves the wearing experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118733874A_ABST
    Figure CN118733874A_ABST
Patent Text Reader

Abstract

The invention discloses a glasses frame recommendation method and device, equipment, a storage medium and a program product, and relates to the technical field of glasses frame recommendation, and the disclosed glasses frame recommendation method comprises the following steps: obtaining a face image of a target user; the face image comprises images of the target user at each preset angle; acquiring facial feature data of the target user based on the facial image; wherein the facial feature data comprises a facial form, a three-court proportion, an eyebrow-eye distance, an eye distance, a nose wing width, a lower jaw angle and an eye proportion; determining an initial glasses frame model of the target user based on the facial feature data; and adjusting the initial glasses frame model based on the facial feature data and a preset adjustment rule to obtain a glasses frame recommendation result. The technical problems that the picture frame recommendation result is poor and the user satisfaction degree is low can be solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of eyeglass frame recommendation, and in particular to a frame recommendation method, device, equipment, storage medium and program product. Background Art

[0002] In the related art, the recommendation of eyeglass frame types is generally that the user uploads a frontal face photo of himself, and then the user's face photo is synthesized with the existing eyeglass frame pictures on the recommendation website to show the user's wearing effect and make recommendations.

[0003] Although this recommendation method can provide users with a variety of frame style choices and a simple trial-wearing experience, it ignores the connection between the frame type and the wearer's individual appearance, resulting in poor recommendation results and low user satisfaction. Summary of the invention

[0004] The main purpose of this application is to provide a frame recommendation method, device, equipment, storage medium and program product, aiming to solve the technical problems of poor frame recommendation results and low user satisfaction in related technologies.

[0005] To achieve the above objectives, the present application proposes a method for recommending eyeglass frames, comprising:

[0006] Acquire a facial image of a target user; the facial image includes images of the target user at various preset angles;

[0007] Based on the facial image, facial feature data of the target user is obtained; wherein the facial feature data includes face shape, ratio of three parts of the face, distance between eyebrows and eyes, distance between eyes, width of nose wing, angle of jaw and ratio of eyes;

[0008] Determine the initial frame model of the target user based on the facial feature data;

[0009] Based on facial feature data and preset adjustment rules, the initial frame model is adjusted to obtain frame recommendation results.

[0010] In one embodiment, the step of acquiring facial feature data of a target user based on a facial image includes:

[0011] For each facial image, facial feature recognition is performed on the facial image to obtain a plurality of facial feature points; wherein the facial feature points at least include eyebrow feature points, cheekbone feature points, mandibular feature points and hairline feature points;

[0012] Based on multiple facial feature points, the target user's face shape, three-part ratio, eyebrow-eye distance, eye distance, nose wing width, jaw angle, and eye ratio are determined to obtain facial feature data.

[0013] In one embodiment, the step of determining the face shape of the target user based on multiple facial feature points includes:

[0014] Determine a first distance value of the target user's face based on the eyebrow arch feature points;

[0015] Determine a second distance value of the target user's face based on the zygomatic bone feature points;

[0016] Determine the third distance value of the target user's face based on the jaw feature points;

[0017] Determine a fourth distance value of the target user's face based on the jaw feature point and the hairline feature point;

[0018] The face shape of the target user is determined based on the numerical relationship and / or proportional relationship among the first facial distance value, the second facial distance value, the third facial distance value, and the fourth facial distance value.

[0019] In one embodiment, the step of determining the initial frame model of the target user based on the facial feature data includes:

[0020] An initial spectacles frame model is determined based on the face shape of the target user and a preset mapping relationship; wherein the preset mapping relationship includes a corresponding relationship between the face shape and the spectacles frame model.

[0021] In one embodiment, the step of adjusting the initial frame model based on the facial feature data and the preset adjustment rules to obtain the frame recommendation result includes:

[0022] Based on the facial feature data and preset adjustment rules, local parameters of the initial frame model are adjusted; the local parameters include upper frame position parameters, lower frame position parameters, frame thickness parameters, middle beam span parameters, middle beam height parameters, and pile head height parameters;

[0023] Based on the initial frame model after local parameter adjustment, the frame recommendation result is obtained;

[0024] Based on the facial feature data and the preset adjustment rules, the steps of adjusting the local parameters of the initial frame model include:

[0025] If the length of the upper face is greater than 1 / 2 of the height of the initial frame model, adjust the upper frame position parameters so that the distance from the upper frame to the eyebrows is less than 2 / 5 of the distance between the eyebrows and eyes;

[0026] If the distance between the eyebrows and eyes is smaller than the eye width, adjust the upper frame position parameters so that 3 / 5 of the upper frame width is smaller than the eye width;

[0027] If the length of the atrium is greater than 3 / 4 of the width of the nose bridge, adjust the lower frame position parameters so that the distance from the lower frame to the eyes is greater than 2 / 5 of the length of the atrium;

[0028] If the distance between the eyebrows and eyes is smaller than the width of the eyes and / or the size of the eyes accounts for 1 / 5 to 1 / 3 of the face ratio, reduce the frame thickness parameter;

[0029] If the distance between the eyebrows and eyes is greater than 2 times the width of the eyes and / or the length of the atrium is greater than 3 / 4 of the width of the nose bridge, increase the frame thickness parameter;

[0030] If the distance between eyes is greater than 1 / 3 of the facial width, adjust the center beam span parameter to 1.2 to 1.5 times the distance between eyes;

[0031] If the nose bridge width is greater than 1 / 4 of the facial width, adjust the mid-bridge span parameter to 1.1 to 1.3 times the nose bridge width;

[0032] If the nose wing width is greater than 1 / 2 of the facial width, adjust the center beam span parameter to 1.1 to 1.4 times the nose wing width;

[0033] If the atrium length is less than 2 / 3 of the nose bridge width, adjust the bridge height parameter so that the bridge position is between 0.1 and 0.2 times the atrium length;

[0034] If the length of the atrium is greater than 3 / 4 of the width of the bridge of the nose, adjust the pile head height parameter so that the pile head is located at 1 / 2 of the atrium length.

[0035] In one embodiment, the step of adjusting the initial frame model based on the facial feature data and the preset adjustment rules to obtain the frame recommendation result further includes:

[0036] Generate a face model of the target user based on the facial image;

[0037] The adjusted initial frame model is superimposed on the face model.

[0038] In addition, to achieve the above-mentioned purpose, the present application also proposes a frame recommendation device, which includes:

[0039] The first acquisition module is used to acquire a facial image of a target user; the facial image includes images of the target user at various preset angles;

[0040] The second acquisition module is used to acquire facial feature data of the target user based on the facial image; wherein the facial feature data includes face shape, ratio of three parts of the face, distance between eyebrows and eyes, distance between eyes, width of nose wing, angle of jaw and ratio of eyes;

[0041] A model determination module, used to determine an initial frame model of a target user based on facial feature data;

[0042] The frame recommendation module adjusts the initial frame model based on facial feature data and preset adjustment rules to obtain frame recommendation results.

[0043] In addition, to achieve the above-mentioned purpose, the present application also proposes a frame recommendation device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, and the computer program is configured to implement the steps of the frame recommendation method as described above.

[0044] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium. A computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the above-mentioned frame recommendation method are implemented.

[0045] In addition, to achieve the above-mentioned purpose, the present application also proposes a computer program product, which includes a computer program. When the computer program is executed by a processor, the steps of the above-mentioned frame recommendation method are implemented.

[0046] One or more technical solutions proposed in this application have at least the following technical effects:

[0047] In the present application, facial images of the target user at various preset angles can be obtained, and based on the facial images, facial feature data of the target user can be obtained; wherein the facial feature data includes face shape, ratio of the three parts of the face, distance between eyebrows and eyes, distance between eyes, width of nose wings, angle of mandible, and ratio of eyes. Thus, the initial frame model of the target user can be determined based on the facial feature data, and the initial frame model can be fine-tuned through the facial feature data and preset adjustment rules to obtain the final frame recommendation result. Compared with the related art method of simply synthesizing the user's facial photo with the existing glasses frame image for recommendation, the present application can determine the frame recommendation result that better matches the user's appearance characteristics based on the user's facial feature data, so as to improve user satisfaction. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0049] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related technologies, the drawings required for use in the embodiments or the related technical descriptions are briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0050] Figure 1 A schematic diagram of a process flow provided for Embodiment 1 of the method for recommending a frame of the present application;

[0051] Figure 2 is a schematic diagram of facial distance values ​​for an example;

[0052] Figure 3This is a schematic diagram of the module structure of the frame recommendation device according to an embodiment of the present application;

[0053] Figure 4 A schematic diagram of the structure of a frame recommendation device for the hardware operating environment involved in the frame recommendation method in an embodiment of the present application.

[0054] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0055] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.

[0056] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.

[0057] The main solution of the embodiment of the present application is: obtaining a facial image of the target user; the facial image includes images of the target user at various preset angles; based on the facial image, obtaining facial feature data of the target user; wherein the facial feature data includes face shape, three-part ratio, eyebrow-eye distance, eye distance, nose wing width, jaw angle, and eye ratio; based on the facial feature data, determining an initial frame model of the target user; based on the facial feature data and preset adjustment rules, adjusting the initial frame model to obtain a frame recommendation result.

[0058] In the related art, when recommending eyeglass frame types, the user uploads a frontal photo of his / her face and selects the eyeglass frame types and colors provided by the website. Then, the user's face photo is combined with the picture of the selected eyeglass frame type on the recommendation website to show the user's wearing effect for recommendation. Although this recommendation method can provide users with a variety of frame style choices and a simple trial wearing experience, it ignores the connection between the eyeglass frame type and the wearer's individual appearance, resulting in poor recommendation results and low user satisfaction.

[0059] The present application provides a solution, which determines an initial frame model through the facial feature data of the target user, and fine-tunes the frame model on this basis to obtain a final frame recommendation result, thereby determining a frame recommendation result that is more in line with the user's appearance characteristics based on the user's facial features, thereby improving the accuracy of the recommendation results and user satisfaction.

[0060] It should be noted that the execution subject of this embodiment can be a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or an electronic device capable of realizing the above functions, etc. The following takes the frame recommendation device as an example to illustrate this embodiment and the following embodiments.

[0061] Based on this, the present application embodiment provides a frame recommendation method, referring to Figure 1 , Figure 1 This is a flow chart of Embodiment 1 of the frame recommendation method of the present application.

[0062] In this embodiment, the frame recommendation method includes steps S100 to S400:

[0063] Step S100, obtaining a facial image of a target user.

[0064] The facial image includes images of the target user at various preset angles.

[0065] Step S200, acquiring facial feature data of a target user based on the facial image.

[0066] Among them, facial feature data include face shape, proportion of three parts of the face, distance between eyebrows and eyes, distance between eyes, width of nose wing, jaw angle, and eye proportion.

[0067] Specifically, the frame recommendation device can be a personal terminal device such as a mobile phone, a tablet, etc., or a cloud server that can be accessed by a terminal device. When the frame recommendation device is a mobile phone or other device, the facial image of the target user can be collected through the camera device on the mobile phone; if the frame recommendation device is a cloud server, the target user can use a terminal device such as a mobile phone or an image acquisition device to take a photo of his or her own face, and upload the photo to the cloud server, so that the cloud server can receive the facial image of the target user who needs to recommend a frame. In order to ensure that the collected facial image is more comprehensive, the image can be collected from multiple preset angles to obtain the facial image of the target user. For example, a clear and comprehensive facial image of the target user can be collected from preset angles of 0°, 45°, 90°, 135° and 180° in an environment with sufficient light.

[0068] Therefore, the facial feature data of the user can be obtained based on the facial image collected above.

[0069] It should be noted that the above facial feature data include but are not limited to face shape, ratio of three parts of the face, distance between eyebrows and eyes, distance between eyes, width of nose wing, angle of jaw and ratio of eyes. In practical applications, computer vision and image processing technology can be used to analyze and process the collected facial images of the target user to obtain the above facial feature data.

[0070] In a feasible implementation manner, the above step S200 may include steps S210 to S220:

[0071] Step S210: for each facial image, facial feature recognition is performed on the facial image to obtain a plurality of facial feature points.

[0072] The facial feature points include at least eyebrow feature points, cheekbone feature points, mandibular feature points and hairline feature points.

[0073] Step S220, based on multiple facial feature points, determine the target user's face shape, three-part ratio, eyebrow-eye distance, eye distance, nose wing width, jaw angle, and eye ratio to obtain facial feature data.

[0074] Specifically, for each facial image of the target user obtained, a face detection algorithm (such as the YOLO visual target detection algorithm) can be used to locate and identify the face area in the facial image of the target user. After the face is detected, a key point detection algorithm can be used, such as the 68 key point detectors in the machine learning open source library Dlib or a deep learning-based face key point detection model, to identify key facial feature points. These facial feature points may include eyebrow arch feature points, cheekbone feature points, mandibular feature points, hairline feature points, and feature points of the eyes, mouth, nose, and other parts.

[0075] The position information of the above facial feature points can be used to determine various facial feature data. For example, the facial contour can be determined by the position of key points such as the hairline feature point, the jaw feature point, and the cheekbone feature point, so as to determine whether the face shape is round, square, or long; the three-chamber ratio can be calculated based on the position ratio of key points such as eyebrows, eyes, nose, and mouth; and facial feature data such as the distance between eyebrows and eyes, the distance between eyes, the width of the nose, the jaw angle, and the proportion of eyes can also be calculated through the corresponding key point positions, providing an accurate reference for subsequent frame recommendations.

[0076] In a feasible implementation manner, the step of determining the face shape of the target user based on multiple facial feature points may specifically include steps S221 to S225:

[0077] Step S221, determining a first distance value of the target user's face based on the eyebrow arch feature points.

[0078] Step S222: determining a second distance value of the target user's face based on the zygomatic bone feature points.

[0079] Step S223: determining a third distance value of the target user's face based on the mandibular feature points.

[0080] Step S224: Determine a fourth distance value of the target user's face based on the jaw feature point and the hairline feature point.

[0081] Step S225, determining the face shape of the target user based on the numerical relationship and / or proportional relationship among the first facial distance value, the second facial distance value, the third facial distance value, and the fourth facial distance value.

[0082] Specifically, based on the position information of the eyebrow feature points on both sides of the target user, the distance value between the eyebrow feature points on both sides can be determined, and used as the first distance value of the target user's face; through the position information of the zygomatic feature points of the target user, the distance value of the zygomatic bones on both sides can be determined, and used as the second distance value of the target user's face; through the position information of the mandibular feature points (such as the position information of the mandibular angle inflection points on both sides of the target user), the mandibular distance on both sides can be determined, which can be used as the third distance value of the target user's face; based on the position information of the mandibular feature points and the hairline feature points (such as the lowest point of the mandibular line and the highest point of the hairline), the distance between the hairline and the mandibular line can be determined, and used as the fourth distance value of the target user's face. In this way, based on the numerical relationship and proportional relationship between the various distance values, the target user's face shape can be judged more accurately, providing an important reference basis for subsequent frame recommendations. Figure 2 As shown, Figure 2 Schematic diagram of facial distance values ​​for an example. After determining the target user's eyebrow arch distance (i.e., the first facial distance value, represented by A), cheekbone distance (i.e., the second facial distance value, represented by B), jaw distance (the third facial distance value, represented by C), and hairline-jaw line distance (the fourth facial distance value, represented by D), if A≈B>C and B:D≈2:3, the target user's face shape can be determined to be an egg-shaped face; if B>A>C and B:D≈2:3, the target user's face shape can be determined to be an oval face; if B≈D, the target user's face shape can be determined to be a round face; if B≈C, the target user's face shape can be determined to be a square face; and if B:D>2:3, the target user's face shape can be determined to be a long face, so as to facilitate the subsequent recommendation of frames based on the user's face shape.

[0083] Step S300: determining an initial frame model of the target user based on the facial feature data.

[0084] Step S400, adjusting the initial frame model based on the facial feature data and preset adjustment rules to obtain a frame recommendation result.

[0085] Specifically, according to the facial feature data of the user, an initial frame model matching the facial features of the user can be selected from a preset frame model library. In a feasible implementation, step S300 can specifically include determining the initial frame model based on the face shape of the target user and a preset mapping relationship; wherein the preset mapping relationship includes a correspondence between the face shape and the frame model.

[0086] For example, round and oval frames will not destroy the harmony of an oval face; round and oval frames will highlight the curves of an oval face; angular frames will make a round face look less round; square faces will look smoother with non-angular frames; and long faces will look shorter with round frames. Based on this, a mapping relationship between face shape and frame model can be established. After the target user's face shape is determined based on the above steps, an initial frame model can be output based on the face shape and its mapping relationship.

[0087] After obtaining the initial frame model, the initial frame model can be fine-tuned according to the user's facial feature data and preset adjustment rules to ensure that the adjusted frame model is more consistent with the user's facial features. In a feasible implementation, step S400 may include step S410 and step S420:

[0088] Step S410: adjusting local parameters of the initial frame model based on the facial feature data and preset adjustment rules.

[0089] Among them, the local parameters include but are not limited to upper frame position parameters, lower frame position parameters, mirror frame thickness parameters, middle beam span parameters, middle beam height parameters and pile head height parameters.

[0090] Step S420, obtaining a frame recommendation result based on the initial frame model after the local parameters are adjusted.

[0091] Specifically, after obtaining the facial feature data of the target user and the corresponding initial frame model, in order to make the frame recommendation result more consistent with the user's own facial features, the local parameters of the initial frame model can be adjusted. In a feasible implementation, based on the facial feature data and the preset adjustment rules, the step of adjusting the local parameters of the initial frame model can specifically include: if the length of the upper face is greater than 1 / 2 of the height of the initial frame model, adjusting the upper frame position parameters so that the distance from the upper frame to the eyebrows is less than 2 / 5 of the distance between the eyebrows and eyes; if the distance between the eyebrows and eyes is less than the width of the eyes, adjusting the upper frame position parameters so that 3 / 5 of the width of the upper frame is less than the width of the eyes. If the length of the atrium is greater than 3 / 4 of the width of the nose bridge, adjust the lower frame position parameters so that the distance from the lower frame to the eye is greater than 2 / 5 of the length of the atrium; if the distance between the eyebrows and eyes is less than the width of the eyes and / or the eye size accounts for 1 / 5 to 1 / 3 of the facial proportion, reduce the frame thickness parameters; if the distance between the eyebrows and eyes is greater than 2 times the eye width and / or the length of the atrium is greater than 3 / 4 of the width of the nose bridge, increase the frame thickness parameters; if the distance between the eyes is greater than 1 / 3 of the facial width, adjust the center bridge span parameters to 1.2 to 1.5 times the distance between the eyes; if the nose bridge is wide If the atrium length is greater than 1 / 4 of the facial width, adjust the bridge span parameter to 1.1-1.3 times the nose bridge width; if the nose wing width is greater than 1 / 2 of the facial width, adjust the bridge span parameter to 1.1-1.4 times the nose wing width; if the atrium length is less than 2 / 3 of the nose bridge width, adjust the bridge height parameter so that the bridge position is between 0.1 and 0.2 times the atrium length; if the atrium length is greater than 3 / 4 of the nose bridge width, adjust the pile head height parameter so that the pile head position is at 1 / 2 of the atrium length.

[0092] It can be understood that the upper frame position is generally set above the eyebrows and eyes, and the distance between the upper frame and the eyebrows is about 1 / 5 to 2 / 5 of the distance between the eyebrows and eyes (i.e., the preset upper frame position interval). When the length of the upper face exceeds 1 / 2 of the overall frame height, the upper face ratio is too long. The height or length and other related parameters in the upper frame position parameters can be adjusted to make the upper frame deviate from the preset upper frame position interval, visually achieving the effect of shortening the upper face ratio. If the distance between the user's eyebrows and eyes is less than the width of the eyes, that is, the distance between the eyebrows and eyes is small, the upper frame width in the upper frame position parameters can be adjusted to leave at least 3 / 5 of the space for the eyes to improve the cramped feeling of the eye space. The lower frame position is located in the middle of the atrium, and the distance between the lower frame and the eyes accounts for 2 / 5 to 3 / 5 of the atrium. (i.e., the preset lower frame position interval), when the length of the atrium exceeds 3 / 4 of the width of the bridge of the nose, the atrium ratio is too long, and the lower frame position parameters can be adjusted to move the lower frame position downward beyond the above-mentioned preset lower frame position interval to increase the distance ratio between the lower frame and the eyes, so that the atrium ratio appears to be shortened. If the distance between the user's eyebrows and eyes is smaller than the width of the eyes, the distance between the eyebrows and eyes is small, and the upper frame position can be deviated from the preset upper frame position interval, and the frame thickness parameter can be adjusted to make the upper frame thickness thinner so that the eye space does not appear too cramped; if the distance between the user's eyebrows and eyes is greater than twice the width of the eyes, the distance between the eyebrows and eyes is large, and the upper frame position can be deviated from the preset upper frame position interval, and the frame thickness parameter can be adjusted to make the upper frame thickness thicker to shorten the distance between the eyebrows and eyes; it is more harmonious when the size of the eyes accounts for 1 / 5 to 1 / 3 of the entire face. If it exceeds the above range, the eyes are too large, and the frame thickness parameter can be adjusted to make the frame thinner. A thin frame can avoid the visual center being concentrated on the eyes; if the length of the atrium exceeds 3 / 4 of the width of the bridge of the nose, the atrium proportion is too long, and the lower frame position can be deviated from the preset lower frame position interval, and the frame thickness parameter can be adjusted to make the lower frame thickness thicker. A thicker lower frame thickness can divide the atrium and make the atrium proportion appear shortened. If the distance between the eyes accounts for more than 1 / 3 of the width of the face, the distance between the eyes is large, and the weight span can be set between 1.2 and 1.5 times the distance between the eyes. A larger span of the middle bridge can make the distance between the eyes appear shorter; if the width of the nose bridge accounts for more than 1 / 4 of the width of the face, the nose bridge is wide, and the middle bridge span can be set between 1.1 and 1.3 times the width of the nose bridge. A slightly larger span of the middle bridge can make the nose bridge appear narrower; and if the width of the nose wing accounts for more than 1 / 2 of the width of the face, the nose wing is wide, and the middle bridge span can be set between 1.1 and 1.4 times the width of the nose wing, so that the nose is not so prominent and increases the visual beauty. If the length of the atrium is less than 2 / 3 of the width of the nose bridge, the atrium is too short, and the position of the middle bridge can be set between 0.1 and 0.2 times the length of the atrium. A higher position of the middle bridge can visually increase the atrium. If the length of the atrium exceeds 3 / 4 of the width of the nose bridge, the atrium is too long. The pile head position can be set to half of the atrium length so that the pile head position is centered to visually shorten the atrium proportion.

[0093] After adjusting the above local parameters, an adjusted initial frame model can be obtained. Based on the adjusted model, frame recommendation results can be obtained, including recommended frame styles, sizes and other information. The recommendation results will better fit the user's facial features and provide a more comfortable and suitable wearing experience.

[0094] In addition, after adjusting the initial frame model based on facial feature data and preset adjustment rules, a face model of the target user can be generated based on the facial image; the final frame model obtained after adjusting the initial frame model is superimposed on the face model, thereby displaying the frame recommendation results to the user more intuitively, allowing the user to directly view the final frame model and to intuitively evaluate the aesthetic effect of wearing the frame based on the displayed content.

[0095] It can be seen that in this embodiment, facial images of the target user at various preset angles are obtained, and facial feature data of the target user is obtained based on the facial images. Therefore, the initial frame model of the target user can be determined based on the facial feature data, and the initial frame model can be fine-tuned by the facial feature data and the preset adjustment rules to obtain the final frame recommendation result. Compared with the related art method of simply synthesizing the user's facial photo with the existing glasses frame image for recommendation, the frame recommendation method provided in this embodiment can determine the frame recommendation result that is more in line with the user's appearance characteristics based on the user's facial feature data, which can improve user satisfaction.

[0096] This application also provides a frame recommendation device, please refer to Figure 3 , frame recommended devices include:

[0097] The first acquisition module 10 is used to acquire a facial image of a target user; the facial image includes images of the target user at various preset angles;

[0098] The second acquisition module 20 is used to acquire facial feature data of the target user based on the facial image; wherein the facial feature data includes face shape, ratio of three parts of the face, distance between eyebrows and eyes, distance between eyes, width of nose wing, angle of jaw and ratio of eyes;

[0099] A model determination module 30, for determining an initial frame model of a target user based on facial feature data;

[0100] The frame recommendation module 40 adjusts the initial frame model based on the facial feature data and preset adjustment rules to obtain a frame recommendation result.

[0101] The frame recommendation device provided by the present application adopts the frame recommendation method in the above embodiment, which can solve the technical problems of poor frame recommendation results and low user satisfaction in the related art. Compared with the related art, the beneficial effects of the frame recommendation device provided by the present application are the same as those of the frame recommendation method provided by the above embodiment, and other technical features in the above frame recommendation device are the same as those disclosed in the above embodiment method, which will not be described in detail here.

[0102] The present application provides a frame recommendation device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the frame recommendation method in the above-mentioned embodiment 1.

[0103] Reference below Figure 4 , which shows a schematic diagram of the structure of a frame recommendation device suitable for implementing the embodiment of the present application. The frame recommendation device in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 4 The frame recommendation device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0104] like Figure 4As shown, the frame recommendation device may include a processing device 1001 (e.g., a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM) 1004. In the RAM 1004, various programs and data required for the operation of the frame recommendation device are also stored. The processing device 1001, the ROM 1002, and the RAM 1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, etc.; an output device 1008 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 may allow the frame recommendation device to communicate with other devices wirelessly or by wire to exchange data. Although the frame recommendation device with various systems is shown in the figure, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems may be implemented or have instead.

[0105] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.

[0106] The frame recommendation device provided by the present application adopts the frame recommendation method in the above embodiment, which can solve the technical problems of poor frame recommendation results and low user satisfaction in the related art. Compared with the related art, the beneficial effects of the frame recommendation device provided by the present application are the same as the beneficial effects of the frame recommendation method provided by the above embodiment, and other technical features in the frame recommendation device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.

[0107] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.

[0108] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

[0109] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, and the computer-readable program instructions are used to execute the frame recommendation method in the above-mentioned embodiment.

[0110] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the above.

[0111] The computer-readable storage medium may be included in the frame recommendation device; or may exist independently without being assembled into the frame recommendation device.

[0112] The computer-readable storage medium carries one or more programs. When the one or more programs are executed by the frame recommendation device, the frame recommendation device: obtains a facial image of a target user; the facial image includes images of the target user at various preset angles; based on the facial image, obtains facial feature data of the target user; wherein the facial feature data includes face shape, ratio of the three parts of the face, distance between eyebrows and eyes, distance between eyes, width of nose wings, angle of mandible, and ratio of eyes; based on the facial feature data, determines an initial frame model of the target user; based on the facial feature data, adjusts the initial frame model and obtains a frame recommendation result.

[0113] Computer program code for performing the operations of the present application may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0114] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0115] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.

[0116] The readable storage medium provided by the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned frame recommendation method, and can solve the technical problems of poor frame recommendation results and low user satisfaction in the related art. Compared with the related art, the beneficial effects of the computer-readable storage medium provided by the present application are the same as the beneficial effects of the frame recommendation method provided by the above-mentioned embodiment, and will not be described in detail here.

[0117] The present application also provides a computer program product, including a computer program, wherein when the computer program is executed by a processor, the steps of the above-mentioned frame recommendation method are implemented.

[0118] The computer program product provided by the present application can solve the technical problems of poor frame recommendation results and low user satisfaction in the related art. Compared with the related art, the beneficial effects of the computer program product provided by the present application are the same as the beneficial effects of the frame recommendation method provided by the above embodiment, and will not be described in detail here.

[0119] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.

Claims

1. A method for recommending eyeglass frames, characterized in that: The method comprises: Acquire a facial image of a target user; the facial image includes images of the target user at various preset angles; Based on the facial image, facial feature data of the target user is obtained; wherein the facial feature data includes face shape, ratio of three parts of the face, distance between eyebrows and eyes, distance between eyes, width of nose wing, angle of jaw and ratio of eyes; Determining an initial frame model of a target user based on the facial feature data; Based on the facial feature data and preset adjustment rules, the initial spectacles frame model is adjusted to obtain a spectacles frame recommendation result.

2. The method according to claim 1, characterized in that The step of acquiring facial feature data of the target user based on the facial image comprises: For each of the facial images, facial feature recognition is performed on the facial image to obtain a plurality of facial feature points; wherein the facial feature points at least include eyebrow feature points, cheekbone feature points, mandibular feature points and hairline feature points; Based on the multiple facial feature points, the face shape, three-part ratio, eyebrow-eye distance, eye distance, nose wing width, jaw angle, and eye ratio of the target user are determined to obtain the facial feature data.

3. The method according to claim 2, characterized in that The step of determining the face shape of the target user based on the multiple facial feature points comprises: Determining a first distance value of the face of the target user based on the eyebrow arch feature point; Determining a second distance value of the face of the target user based on the zygomatic bone feature points; Determining a third distance value of the face of the target user based on the mandibular feature point; Determining a fourth distance value of the face of the target user based on the mandibular feature point and the hairline feature point; The face shape of the target user is determined based on the numerical relationship and / or proportional relationship among the first facial distance value, the second facial distance value, the third facial distance value, and the fourth facial distance value.

4. The method according to claim 3, characterized in that The step of determining the initial frame model of the target user based on the facial feature data comprises: Based on the face shape of the target user and a preset mapping relationship, an initial spectacles frame model is determined; wherein the preset mapping relationship includes a correspondence between the face shape and the spectacles frame model.

5. The method according to claim 4, characterized in that The step of adjusting the initial frame model based on the facial feature data and the preset adjustment rules to obtain the frame recommendation result comprises: Based on the facial feature data and preset adjustment rules, local parameters of the initial frame model are adjusted; the local parameters include upper frame position parameters, lower frame position parameters, frame thickness parameters, middle beam span parameters, middle beam height parameters, and pile head height parameters; Based on the initial spectacles frame model after local parameter adjustment, obtaining the spectacles frame recommendation result; The step of adjusting the local parameters of the initial frame model based on the facial feature data and the preset adjustment rules comprises: If the length of the upper face is greater than 1 / 2 of the height of the initial frame model, the upper frame position parameters are adjusted so that the distance from the upper frame to the eyebrows is less than 2 / 5 of the distance between the eyebrows and eyes; If the distance between the eyebrows and eyes is smaller than the eye width, adjusting the upper frame position parameters so that 3 / 5 of the upper frame width is smaller than the eye width; If the length of the atrium is greater than 3 / 4 of the width of the bridge of the nose, the lower frame position parameters are adjusted so that the distance from the lower frame to the eyes is greater than 2 / 5 of the length of the atrium; If the distance between the eyebrows and eyes is smaller than the eye width and / or the eye size accounts for 1 / 5 to 1 / 3 of the face ratio, then reduce the frame thickness parameter; If the distance between the eyebrows and eyes is greater than 2 times the width of the eyes and / or the length of the atrium is greater than 3 / 4 of the width of the nose bridge, increase the frame thickness parameter; If the distance between eyes is greater than 1 / 3 of the facial width, adjust the center beam span parameter to 1.2 to 1.5 times the distance between eyes; If the nose bridge width is greater than 1 / 4 of the facial width, adjust the mid-bridge span parameter to 1.1 to 1.3 times the nose bridge width; If the nose wing width is greater than 1 / 2 of the facial width, adjust the center beam span parameter to 1.1 to 1.4 times the nose wing width; If the atrium length is less than 2 / 3 of the nose bridge width, adjust the bridge height parameter so that the bridge position is between 0.1 and 0.2 times the atrium length; If the length of the atrium is greater than 3 / 4 of the width of the bridge of the nose, adjust the pile head height parameter so that the pile head is located at 1 / 2 of the atrium length.

6. The method according to any one of claims 1 to 5, characterized in that After the step of adjusting the initial frame model based on the facial feature data and the preset adjustment rules to obtain the frame recommendation result, the following step further comprises: Based on the facial image, generating a face model of the target user; The adjusted initial frame model is superimposed and displayed on the face model.

7. A frame recommendation device, characterized in that: The device comprises: A first acquisition module is used to acquire a facial image of a target user; the facial image includes images of the target user at various preset angles; A second acquisition module is used to acquire facial feature data of the target user based on the facial image; wherein the facial feature data includes face shape, ratio of three parts of the face, distance between eyebrows and eyes, distance between eyes, width of nose wing, angle of jaw and ratio of eyes; A model determination module, used to determine an initial frame model of a target user based on the facial feature data; The frame recommendation module adjusts the initial frame model based on the facial feature data and preset adjustment rules to obtain a frame recommendation result.

8. A frame recommendation device, characterized in that: The device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the frame recommendation method according to any one of claims 1 to 6.

9. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the frame recommendation method according to any one of claims 1 to 6 are implemented.

10. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the steps of the method for recommending a spectacles frame according to any one of claims 1 to 6 are implemented.