Glasses model generation method and electronic device

By generating a glasses model that matches the virtual three-dimensional model of the user's head and adjusting the lens forward angle, the problem of uncertainty in the wearing comfort of 3D printed glasses is solved, and the standardization of the user experience and customization process is improved.

WO2024198357A1PCT designated stage expired Publication Date: 2024-10-03ZHUHAI SAILNER SHIBO TECH CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2023/129745
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-03-31
Filing Date
2023-11-03
Publication Date
2024-10-03

AI Technical Summary

Technical Problem

There is uncertainty in the wearing comfort of 3D printed customized glasses. Users often need to adjust the tips, nose pads and temples later to improve the wearing comfort, which affects the user experience.

Method used

Generate a virtual three-dimensional model by obtaining the user's head feature data, adjust the glasses model to make the frame, nose pads and temples fit the head model, and adjust according to the forward tilt angle of the lens to ensure that it is within the preset angle threshold range, generate Fitted glasses model to improve wearing comfort.

Benefits of technology

It standardizes the customization process and standards for 3D printed glasses, improves wearing comfort and user experience, and reduces the need for later adjustments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2023129745_03102024_PF_FP_ABST
    Figure CN2023129745_03102024_PF_FP_ABST
Patent Text Reader

Abstract

Provided in the embodiments of the present application are a glasses model generation method and an electronic device. The glasses model generation method comprises: acquiring head feature data of a user, and generating a three-dimensional virtual head model on the basis of the head feature data; determining a first glasses model; adjusting the first glasses model on the basis of the three-dimensional virtual head model, so as to generate a second glasses model, wherein a glasses frame, nose pads and glasses legs of the second glasses model are adapted to the three-dimensional virtual head model; determining a lens front inclination angle of the second glasses model; and when the lens front inclination angle is not within a preset angle threshold interval, adjusting the second glasses model, so as to generate a third glasses model, wherein a lens front inclination angle of the third glasses model is within the preset angle threshold interval. By using the glasses model generation method in the embodiments of the present application, a customization process and a customization standard of 3D printed glasses can be specified, thereby improving the wearing comfort of the 3D printed glasses, and thus improving the usage experience of a user for customizing 3D printed glasses.
Need to check novelty before this filing date? Find Prior Art

Description

Glasses model generation method and electronic device

[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on March 31, 2023, with application number 202310345001.9 and invention name “A method for generating eyeglass models and an electronic device”, the entire contents of which are incorporated by reference into this application. Technical Field

[0002] The present application relates to the technical field of glasses manufacturing, and in particular to a glasses model generation method and electronic equipment. Background Art

[0003] 3D printing is a rapid prototyping technology that uses digital model files to create physical objects layer by layer. 3D printing is widely used in various fields, for example, custom glasses can be made through 3D printing.

[0004] The process of customizing glasses through 3D printing generally includes: establishing a virtual three-dimensional model of the user's head based on the user's head feature data; the user selects an initial three-dimensional digital model of glasses that suits their personal preferences; and adjusting the initial three-dimensional digital model of the glasses selected by the user to adapt it to the virtual three-dimensional model of the user's head, thereby obtaining customized glasses.

[0005] Typically, the process of manually adjusting the initial 3D digital model of the user-selected glasses is performed by the designer. Because different designers use inconsistent standards to manually adjust the initial 3D digital model to fit the virtual 3D model of the user's head, it's impossible to accurately measure the effectiveness of the adaptation. This leads to uncertainty about the wearing comfort of the resulting custom-made glasses. Often, after receiving their customized glasses and experiencing them firsthand, users still need to make subsequent adjustments to at least one of the base, nose pads, or temples to improve comfort, thus impacting the user experience of 3D-printed custom glasses.

[0006] Summary of the Invention

[0007] In order to improve the user experience of 3D printed customized glasses, the present application provides a glasses model generation method and an electronic device, and also provides a computer-readable storage medium.

[0008] The embodiments of this application adopt the following technical solutions:

[0009] In a first aspect, the present application provides a method for generating a glasses model, the method being applied to an electronic device, the method comprising:

[0010] Acquiring user head feature data, and generating a virtual three-dimensional head model based on the head feature data;

[0011] determining a first glasses model;

[0012] Based on the virtual three-dimensional head model, the first glasses model is adjusted to generate a second glasses model, wherein the frame, nose pads, and temples of the second glasses model are respectively adapted to the virtual three-dimensional head model;

[0013] determining a lens tilt angle of the second eyeglass model;

[0014] When the lens tilt angle is not within the preset angle threshold range, the second glasses model is adjusted to generate a third glasses model, and the lens tilt angle of the third glasses model is within the preset angle threshold range.

[0015] According to the eyeglass model generation method of the embodiment of the present application, a second eyeglass model is first generated, in which the frame, nose pads, and temples are all compatible with the virtual three-dimensional head model. Based on the second eyeglass model, the lens tilt angle is adjusted to obtain a third eyeglass model for 3D printing. The eyeglass model generation method of the embodiment of the present application can standardize the customization process and customization standards of 3D-printed eyeglasses, improve the wearing comfort of 3D-printed eyeglasses, and enhance the user experience of customized 3D-printed eyeglasses.

[0016] In an implementation of the first aspect, adjusting the first glasses model based on the virtual three-dimensional head model to generate the second glasses model includes:

[0017] Determining feature points in the virtual three-dimensional model of the head, as well as the shapes and positions of the eyes, nose, and ears;

[0018] determining a feature point spacing related to glasses parameters based on the feature points;

[0019] Based on the feature point distances, and the shapes and positions of the eyes, nose, and ears, the parameters of the first glasses model are adjusted to generate the second glasses model.

[0020] In an implementation of the first aspect, determining the lens tilt angle of the second eyeglass model includes:

[0021] Measure a first distance value, where the first distance value is the distance between the hinge center point and the bending point of the temple on the same side of the second eyeglass model;

[0022] Measure a second distance value, where the second distance value is the distance between the center point of the nose pad and the horizontal center line of the lens on the same side of the second eyeglass model;

[0023] Measure a third distance value, where the third distance value is the distance between the center point of the pile head on the same side of the second eyeglass model and the horizontal center line of the lens;

[0024] The lens forward tilt angle of the second eyeglass model is determined based on the first distance value, the second distance value, and the third distance value.

[0025] In an implementation of the first aspect, when the lens tilt angle is not within a preset angle threshold range, adjusting the second glasses model includes:

[0026] Adjust at least one parameter of the position and angle of the stud of the second glasses model; and / or adjust at least one parameter of the position and angle of the nose pad of the second glasses model.

[0027] In an implementation of the first aspect, the frame, nose pads, and temples of the third glasses model are respectively adapted to the virtual three-dimensional head model.

[0028] In a second aspect, the present application provides a glasses generation method, the method comprising:

[0029] Acquire a third glasses model based on the method described in the first aspect;

[0030] performing a slicing and layering process on the third glasses model to obtain at least one layer of slice layer image data;

[0031] Performing data processing based on the slice layer image data to obtain layer printing data;

[0032] Three-dimensional printing is performed based on the layer printing data to obtain layers of the glasses, and the glasses are obtained by printing and stacking layer by layer.

[0033] In a third aspect, the present application provides an electronic device, comprising:

[0034] A model building module, which is used to obtain user head feature data and generate a virtual three-dimensional head model based on the head feature data;

[0035] A model selection module, configured to determine a first glasses model;

[0036] a model adaptation module, configured to adjust the first glasses model based on the virtual three-dimensional head model to generate a second glasses model, wherein the frame, nose pads, and temples of the second glasses model are adapted to the virtual three-dimensional head model;

[0037] A model adjustment module is used to: determine the lens tilt angle of the second glasses model; when the lens tilt angle is not within a preset angle threshold range, adjust the second glasses model to generate a third glasses model, and the lens tilt angle of the third glasses model is within the preset angle threshold range.

[0038] In a fourth aspect, the present application provides a glasses generation system, the system comprising:

[0039] A model building module, which is used to obtain user head feature data and generate a virtual three-dimensional head model based on the head feature data;

[0040] A model selection module, configured to determine a first glasses model;

[0041] a model adaptation module, configured to adjust the first glasses model based on the virtual three-dimensional head model to generate a second glasses model, wherein the frame, nose pads, and temples of the second glasses model are adapted to the virtual three-dimensional head model;

[0042] a model adjustment module, configured to: determine a lens tilt angle of the second glasses model; and if the lens tilt angle is not within a preset angle threshold range, adjust the second glasses model to generate a third glasses model, wherein the lens tilt angle of the third glasses model is within the preset angle threshold range;

[0043] a model slicing module, configured to perform slicing and layering processing on the third glasses model to obtain at least one layer of slice layer image data;

[0044] A data processing module, configured to process the slice layer image data to obtain layer printing data;

[0045] The model printing module is used to perform three-dimensional printing based on the layer printing data to obtain layers of glasses, and to print and stack them layer by layer to obtain the glasses.

[0046] In a fifth aspect, the present application provides an electronic device, comprising a memory for storing computer program instructions and a processor for executing computer program instructions, wherein, when the computer program instructions are executed by the processor, the electronic device is triggered to execute the method steps described in the first aspect or the second aspect.

[0047] In a sixth aspect, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, which, when executed on a computer, enables the computer to execute the method described in the first aspect or the second aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] FIG1 is a schematic diagram of an electronic device according to an embodiment of the present application;

[0049] FIG2 is a schematic diagram of a virtual three-dimensional head model generated by a method according to an embodiment of the present application;

[0050] FIG3 is a flow chart of a method for generating a glasses model according to an embodiment of the present application;

[0051] FIG4 shows a flowchart of glasses model adjustment according to an embodiment of the present application;

[0052] FIG5 is a schematic diagram of a second glasses model generated by a method according to an embodiment of the present application;

[0053] FIG6 is a schematic diagram of glasses according to an embodiment of the present application;

[0054] FIG7 shows a flowchart of glasses model adjustment according to an embodiment of the present application;

[0055] FIG8 is a schematic diagram of a glasses model according to an embodiment of the present application;

[0056] FIG9 is a side view of the eyeglass model shown in FIG8 ;

[0057] FIG10 is a front view of the glasses model shown in FIG8 ;

[0058] FIG11 is a partial flow chart of a glasses generation method according to an embodiment of the present application;

[0059] FIG12 is a schematic structural diagram of a glasses generation system according to an embodiment of the present application. DETAILED DESCRIPTION

[0060] To make the purpose, technical solutions, and advantages of this application more clear, the technical solutions of this application will be clearly and completely described below in conjunction with the specific embodiments of this application and the corresponding drawings. Obviously, the embodiments described are only part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.

[0061] The terms used in the implementation section of this application are only used to explain the specific embodiments of this application and are not intended to limit this application.

[0062] In response to the problem of how to improve the user experience of 3D printed customized glasses, this application provides a glasses model generation method. During the process of generating the glasses model, the glasses model is optimized and adjusted according to wearing comfort, so that after the final customized glasses are generated, the user does not need to make tedious adaptation adjustments to the glasses to ensure the wearing comfort of the glasses, thereby improving the user experience.

[0063] The glasses model generation method provided in this application is applied to electronic devices.

[0064] FIG1 is a schematic diagram of an electronic device according to an embodiment of the present application.

[0065] As shown in FIG1 , the electronic device 100 includes a model building module 110 , a glasses model library 120 , a model selection module 130 , a model adaptation module 141 and a model adjustment module 142 .

[0066] The model building module 110 is used to generate a virtual three-dimensional model of the user's head.

[0067] In one embodiment, the electronic device 100 further includes a data acquisition module for acquiring head feature data of the user, such as a three-dimensional scanning device.

[0068] In another embodiment, the electronic device 100 does not include a data acquisition module for acquiring the user's head feature data. Instead, an external device outside the electronic device 100 inputs the user's head feature data into the model building module 110 .

[0069] FIG2 is a schematic diagram showing a virtual three-dimensional head model generated by a method according to an embodiment of the present application.

[0070] The model building module 110 first performs a 3D scan of the user's head using a 3D scanning device to obtain head scan image data. It then uses 3D modeling software to reconstruct a 3D model based on the head scan image data to obtain a virtual 3D head model as shown in FIG2 . In one embodiment, the 3D modeling software is integrated into the scanner.

[0071] In other embodiments, a mobile phone with a clear camera can be used to capture multiple angles of the user's head to collect multiple images of the user's head features for use in 3D modeling software to create a virtual 3D head model. Alternatively, the user's head data can be acquired for 3D reconstruction using other methods, which are not limited in this application. The 3D modeling software used in this embodiment can be any commercially available software such as Maya or C4D, as long as it can perform 3D reconstruction based on the user's head data to produce a virtual 3D head model that meets the requirements.

[0072] The glasses model library 120 is used to store pre-created glasses models. The glasses model library 120 contains a database of various glasses styles. For example, glasses models of different styles and colors. In the embodiment shown in FIG1 , the glasses model library 120 is a local database of the electronic device 100. In another embodiment, the glasses model library can also be stored in the cloud.

[0073] The model selection module 130 is used to determine a first glasses model.

[0074] The first glasses model is a glasses model that is not adapted to the virtual three-dimensional model of the user's head. In one embodiment, corresponding glasses models are generated for different glasses styles. The first glasses model is a glasses model of the glasses style selected by the user.

[0075] Specifically, in one embodiment, the user selects a glasses model of a desired glasses style from the glasses model library 120 according to his or her preferences. The model selection module 130 determines the glasses model selected by the user as the first glasses model based on the user's input operation.

[0076] In another embodiment, an external device (eg, a cloud server or a local terminal device) directly inputs the glasses model to the model selection module 130 , and the model selection module 130 uses the received glasses model as the first glasses model.

[0077] The model adaptation module 141 is used to adjust the first glasses model based on the virtual three-dimensional head model to generate a second glasses model.

[0078] The model adjustment module 142 is used to determine the lens tilt angle of the second glasses model; when the lens tilt angle is not within the preset angle threshold range, the second glasses model is adjusted to generate a third glasses model for 3D printing, and the lens tilt angle of the third glasses model is within the preset angle threshold range (please refer to the subsequent description for the concept of the lens tilt angle and the adjustment process of the second model).

[0079] FIG3 is a flowchart of a method for generating a glasses model according to an embodiment of the present application.

[0080] The electronic device 100 shown in FIG. 1 executes the following steps shown in FIG. 3 to generate a third glasses model for 3D printing.

[0081] S310 , the model building module 110 obtains user head feature data and generates a virtual three-dimensional head model based on the head feature data.

[0082] S320: The model selection module 130 determines a first glasses model.

[0083] S330: The model adaptation module 141 adjusts the first glasses model to generate a second glasses model based on the virtual three-dimensional head model. The frame, nose pads, and temples of the second glasses model are adapted to the virtual three-dimensional head model respectively.

[0084] FIG4 is a flowchart showing a glasses model adjustment process according to an embodiment of the present application.

[0085] Specifically, in one implementation of S330, the following process as shown in FIG4 is executed.

[0086] S410 , determining feature points in the virtual three-dimensional model of the head, as well as the shapes and positions of the eyes, nose, and ears.

[0087] Specifically, based on the virtual three-dimensional model of the head, feature points in the virtual three-dimensional model of the head are determined in three-dimensional modeling software (such as Blender).

[0088] The feature points include: at least one of the following: facial contour point, cheek point, brow arch point, eyebrow starting point, eyebrow ending point, inner canthus point, outer canthus point, pupil point, temple point, zygomatic bone point, temporal bone point, nasal root point, nose tip point, left and right nasal points, left and right corners of the mouth point, chin base point, ear root point, and auricle point. (It should be noted that the feature points listed above are only examples; in other embodiments, more feature points may be extracted.)

[0089] S420: Determine a feature point spacing related to the glasses parameters based on the feature points of the virtual three-dimensional head model.

[0090] For example, pupil distance, eye height, eye distance, temporal bone distance, zygomatic bone distance, and the relative distance from pupil point to ear base point.

[0091] Specifically, the pupil distance, eye height and eye distance are determined based on the pupil point; the temporal bone distance is determined based on the temporal bone point; the zygomatic bone distance is determined based on the zygomatic point; and the relative distance from the pupil point to the base of the ear point is measured to obtain the distance value from the pupil point to the base of the ear point.

[0092] S430 , adjusting parameters of the first glasses model based on the feature point distance, and the shapes and positions of the eyes, nose, and ears to generate a second glasses model.

[0093] In one implementation of S430, the method includes:

[0094] Adjusting the first glasses model based on the shape and position of the eyes, and at least one of the pupil distance, the eye height, the temporal bone distance, and the zygomatic bone distance, to generate frame parameters of the second glasses model adapted to the virtual three-dimensional head model;

[0095] Adjust the first glasses model based on the shape and position of the nose, the position of the nasion point, and the positions of the left and right lateral points of the nose, and generate nose pad parameters of the second glasses model adapted to the virtual three-dimensional head model;

[0096] Adjust the first glasses model based on the shape and position of the ear, the distance between the eyepiece and the pupil, and the relative distance from the pupil to the base of the ear, and generate temple parameters of the second glasses model adapted to the virtual three-dimensional head model;

[0097] Based on the adapted frame parameters, nose pad parameters and temple parameters, a second glasses model is generated, wherein the frame, nose pad and temple are adapted to the virtual three-dimensional head model respectively.

[0098] FIG5 is a schematic diagram showing a second glasses model generated by a method according to an embodiment of the present application.

[0099] In one embodiment, after S430 , as shown in FIG5 , a second glasses model adapted to the virtual three-dimensional head model is generated.

[0100] After S330 , S340 and S350 are executed.

[0101] S340: The model adjustment module 142 determines the lens tilt angle of the second eyeglass model.

[0102] S350: When the lens tilt angle is not within the preset angle threshold range, the model adjustment module 142 adjusts the second glasses model to generate a third glasses model for 3D printing, where the lens tilt angle of the third glasses model is within the preset angle threshold range.

[0103] Specifically, when the glasses are in the worn state (or the temples are in the horizontal state), the angle between the plane where the lens is located and the vertical direction (the angle between the plane line of the lens and the vertical line) is called the lens tilt angle.

[0104] FIG6 is a schematic diagram of glasses according to an embodiment of the present application.

[0105] As shown in FIG6 , the lens tilt angle α is the angle between the plane line L1 of the eyeglass lens and the vertical line L. Specifically, the eyeglasses are placed flat on a certain plane, the plane line L1 of the eyeglass lens is a straight line passing through the upper vertex and the lower vertex of the eyeglass lens, and the vertical line L is a normal perpendicular to the plane.

[0106] The tilt angle of the lens will affect the user's comfort when wearing glasses. Long-term wearing of glasses with inappropriate tilt angle of the lens will cause the user's vision problems to worsen.

[0107] Therefore, to improve the wearing comfort of the glasses, the lens tilt angle of the second glasses model is adjusted in S340 and S350. According to the method of the embodiment of the present application, based on the second glasses model whose frame, nose pads, and temples are respectively adapted to the virtual three-dimensional head model, the lens tilt angle of the second glasses model is adjusted to improve wearing comfort. This method has few adjustment variables and requires only a few conditions to be met simultaneously, making it possible to simply, quickly, and accurately obtain a glasses model with high wearing comfort.

[0108] Specifically, FIG7 shows a flowchart of glasses model adjustment according to an embodiment of the present application.

[0109] In one embodiment, the model adjustment module 142 executes the following steps as shown in FIG. 7 to implement S340 and S350 .

[0110] S700: Determine the lens tilt angle of the second eyeglass model.

[0111] In one embodiment, the second glasses model does not include a lens. In S700, the plane where the lens is located (the plane line L1 as shown in FIG6 ) can be determined based on the frame of the second glasses model, thereby further determining the forward tilt angle of the lens (the angle α between the plane line L1 and the vertical line L as shown in FIG6 ).

[0112] Specifically, in S700, those skilled in the art may determine the lens tilt angle of the second eyeglass model in a variety of different ways.

[0113] For example, in one implementation of S700, a side view of the second eyeglass model is obtained (see FIG6 ). Image recognition is performed based on the side view to obtain the lens tilt angle. For example, the lens tilt angle α shown in FIG6 is measured through image recognition.

[0114] For another example, in another implementation of S700, in the three-dimensional modeling software, the angle marking function is used to mark between the plane line and the vertical line of the lens to obtain the lens tilt angle.

[0115] For another example, in another implementation of S700, the lens tilt angle of the second glasses model is calculated using the model parameters of the second glasses model.

[0116] Specifically, FIG8 is a schematic diagram of a glasses model according to an embodiment of the present application.

[0117] In one embodiment, the second glasses model is shown in Figure 8, where 1 is the bridge of the glasses; 2 is the nose pad of the glasses (right side); 3 is the frame of the glasses; 4 is the lens of the glasses (left side); 5 is the base of the glasses (left side); and 6 is the temple of the glasses (left side).

[0118] Since the shape of the glasses is designed to be centrally symmetrical, marks 2, 4, 5, and 6 only mark one side of the glasses.

[0119] FIG9 is a side view of the glasses model shown in FIG8 .

[0120] As shown in FIG9 , 51 is the center point of the hinge connecting the frame and the temple; 61 is the bending point of the temple.

[0121] According to the positions of 51 and 61 , the distance D1 (first distance value D1 ) between the hinge center point 51 and the temple bending point 61 is measured.

[0122] FIG10 is a front view of the glasses model shown in FIG8 .

[0123] As shown in FIG10 , 21 is the center point of the nose pad (the left nose pad shown in FIG8 ); 52 is the center point of the pile head (the left pile head shown in FIG8 ); and 41 is the horizontal center line of the lens (the left lens shown in FIG8 ).

[0124] According to the positions of 21 and 41 , the distance D2 (second distance value) from the center point 21 of the nose pad to the horizontal center line 41 of the lens is measured.

[0125] According to the positions of 52 and 41 , the distance D3 (third distance value) between the center point 52 of the pile head and the horizontal center line 41 of the lens is measured.

[0126] The lens tilt angle of the second eyeglass model (the eyeglass model shown in FIG8 ) is determined based on the distance values ​​D1 , D2 and D3 . Specifically, in one embodiment, the lens tilt angle α is calculated based on the following formula.

[0127] In the above implementation of S700, the lens tilt angle is calculated using the tilt angle calculation formula (Formula 1) according to the distance values ​​between different components, and the lens tilt angle α can be obtained efficiently and accurately.

[0128] S710: Determine whether the lens tilt angle of the second glasses model is within a preset angle threshold range.

[0129] Specifically, in one embodiment, the preset angle threshold interval can be determined by those skilled in the art based on the historical records of users' comfort in wearing glasses.

[0130] In another embodiment, the preset angle threshold interval can be set by the user.

[0131] Specifically, in one embodiment, the preset angle threshold range is 0° to 10°.

[0132] When the lens forward tilt angle of the second glasses model is within the preset angle threshold range, S721 is executed.

[0133] S721: Use the current second glasses model as a third glasses model for 3D printing.

[0134] When the lens tilt angle of the second glasses model is not within the preset angle threshold range (for example, less than 0° or greater than 10°), execute S722.

[0135] S722: Adjust the second glasses model so that the lens tilt angle is within a preset angle threshold range.

[0136] At S722, the second glasses model is adjusted based on ensuring that it is compatible with the virtual 3D head model. Specifically, the adjusted frame parameters, nose pad parameters, and temple parameters of the second glasses model are still within the tolerance range adapted to the user's head feature data. In other words, the adjusted frame, nose pad, and temple parameters of the second glasses model are compatible with the virtual 3D head model.

[0137] In one implementation of S722, after ensuring that the second eyeglass model is compatible with the virtual three-dimensional head model, the second eyeglass model is adjusted to change the lens tilt angle. S700 and S710 are repeatedly executed on the adjusted second eyeglass model until the lens tilt angle of the adjusted second eyeglass model is within a preset angle threshold range.

[0138] For example, at least one parameter among the position and angle of the stud 5 of the second eyeglass model shown in FIG. 8 is adjusted; and / or at least one parameter among the position and angle of the nose pad 2 is adjusted.

[0139] For the adjusted second glasses model, the first distance value D1, the second distance value D2 and the third distance value D3 are measured, and the lens tilt angle is calculated based on formula 1 to determine whether the lens tilt angle of the adjusted second glasses model is within the preset angle threshold range. This process is repeated until the lens tilt angle of the adjusted second glasses model is within the range greater than or equal to 0° and less than or equal to 10°.

[0140] Table 1 shows a schematic diagram of the results of adjusting the second eyeglass model to obtain a lens forward tilt angle within a preset angle threshold range in one embodiment.

[0141] Table 1

[0142] As shown in Table 1, it is determined that the first distance value D1 of the second glasses model in which the frame, nose pads, and temples are respectively adapted to the virtual three-dimensional model of the head is 105 mm, the second distance value D2 is 2.5 mm, and the third distance value D3 is 20 mm. Based on the three distance values, it is calculated that the lens tilt angle α is 12.37°, which is not within the preset range greater than or equal to 0° and less than or equal to 10°.

[0143] Through the first adjustment, the position parameters of the pile head 5 are adjusted so that the third distance value D3 from the pile head center point 52 to the horizontal center line 41 of the lens is changed to 16 mm, the second distance value D2 is not adjusted, and the first distance value D1 is changed to 100 mm. In addition, the frame parameters, nose pad parameters and temple parameters of the adjusted glasses model are within the tolerance range adapted to the user's head feature data.

[0144] The calculated lens tilt angle α of the second glasses model after the first adjustment is 10.66°, which is still not within the preset range of greater than or equal to 0° and less than or equal to 10°.

[0145] Continue to make a second adjustment to the second eyeglass model after the first adjustment, adjust the position parameters of the pile head 5, so that the third distance value D3 from the pile head center point 52 to the horizontal center line 41 of the lens is changed to 14 mm, the second distance value D2 is not adjusted, and the first distance value D1 is changed to 96 mm.

[0146] The lens forward tilt angle α of the second eyeglass model after the second adjustment is calculated to be 9.9°, which is within a preset range of greater than or equal to 0° and less than or equal to 10°.

[0147] At this time, the second glasses model after the second adjustment is the third glasses model used for 3D printing.

[0148] According to the eyeglass model generation method of the embodiment of the present application, a second eyeglass model is first generated, in which the frame, nose pads, and temples are all compatible with the virtual three-dimensional head model. Based on the second eyeglass model, the lens tilt angle is adjusted to obtain a third eyeglass model for 3D printing. The eyeglass model generation method of the embodiment of the present application can standardize the customization process and customization standards of 3D-printed eyeglasses, improve the wearing comfort of 3D-printed eyeglasses, and enhance the user experience of customized 3D-printed eyeglasses.

[0149] Furthermore, based on the glasses model generation method of the embodiment of the present application, an embodiment of the present application also proposes a glasses generation method.

[0150] FIG11 is a partial flow chart of a glasses generating method according to an embodiment of the present application.

[0151] After S350 , based on the third glasses model for 3D printing generated in S350 , the following steps shown in FIG. 11 are executed to generate glasses.

[0152] S1100, performing a slicing and layering process on a third eyewear model for 3D printing to obtain at least one layer of slice layer image data;

[0153] S1110, performing data processing based on the slice layer image data to obtain layer printing data;

[0154] In this embodiment, specifically, the slicing software (Sailner_3DP) of Sailner 3D Technology Co., Ltd. can be used to perform slicing analysis on the third glasses model to obtain at least one layer of slicing layer image data, and then the slicing layer image data is converted into layer printing data through halftoning processing;

[0155] S1120, performing three-dimensional printing based on the layer printing data to obtain layers of the glasses, and printing and stacking them layer by layer to obtain the glasses.

[0156] In some embodiments, the three-dimensional printing technologies that can be used include, but are not limited to, stereolithography (SLA), digital light processing (DLP), three-dimensional printing technology (3DP), multi-jet melting technology (MJF), and various other types of 3D printing or additive manufacturing technologies known in the art, which are not limited here.

[0157] Furthermore, based on the glasses generation method of an embodiment of the present application, an embodiment of the present application also proposes a glasses generation system.

[0158] FIG12 is a schematic structural diagram of a glasses generation system according to an embodiment of the present application.

[0159] As shown in FIG12 , the glasses generation system 1200 includes:

[0160] The front-end device 1210 specifically includes:

[0161] The data acquisition module 1211 is configured to acquire the user's head feature data;

[0162] The model building module 1212 is configured to build a virtual three-dimensional model of the head based on the head feature data;

[0163] The model selection module 1213 is configured to determine a first glasses model of the glasses.

[0164] In one embodiment, the front-end device 1210 including the data acquisition module 1211, the model building module 1212, and the model selection module 1213 may be a scanner (e.g., model TS-268) manufactured by Sena 3D Technology Co., Ltd. In another embodiment, the front-end device 1210 may be a combination of a camera-equipped device and a computer.

[0165] Mid-end device 1220, which specifically includes:

[0166] The model adaptation module 1221 is configured to adjust the first glasses model to generate a second glasses model adapted to the virtual three-dimensional head model;

[0167] The model adjustment module 1222 includes a data calculation unit 1223 and a model adjustment unit 1224; the data calculation unit 1223 is configured to calculate the lens tilt angle of the second glasses model; the model adjustment unit 1224 is configured to adjust the second glasses model based on the lens tilt angle to generate a third glasses model for 3D printing.

[0168] In one embodiment, specifically, the mid-end device 1220 including the model adaptation module 1221 and the model adjustment module 1222 can be a computer device with three-dimensional modeling software (such as Blender).

[0169] The backend device 1230 specifically includes:

[0170] The model slicing module 1231 is configured to perform slicing and layering processing on the glasses model to obtain at least one layer of slice layer image data;

[0171] The data processing module 1232 is configured to perform data processing based on the slice layer image data to obtain layer printing control data;

[0172] The model printing module 1233 is configured to perform three-dimensional printing based on the layer printing control data to obtain layers of the glasses, and to print and stack the layers layer by layer to obtain the glasses.

[0173] In one embodiment, specifically, the backend device 1230 including the model slicing module 1231 , the data processing module 1232 and the model printing module 1233 may be a combination of a computer device with model slicing analysis software and a 3D printer.

[0174] In the description of the embodiments of the present application, for the convenience of description, the functions are divided into various modules and described separately. The division of each module is merely a division of logical functions. When implementing the embodiments of the present application, the functions of each module can be implemented in the same or multiple software and / or hardware.

[0175] Specifically, the device proposed in the embodiment of the present application can be fully or partially integrated into a physical entity during actual implementation, or it can be physically separated. And these modules can all be implemented in the form of software calling through processing elements; or they can all be implemented in the form of hardware; or some modules can be implemented in the form of software calling through processing elements, and some modules can be implemented in the form of hardware. For example, the detection module can be a separately established processing element, or it can be integrated in a chip of an electronic device. The implementation of other modules is similar. In addition, these modules can be fully or partially integrated together, or they can be implemented independently. During the implementation process, each step of the above method or each of the above modules can be completed by the hardware integrated logic circuit in the processor element or the instructions in the form of software.

[0176] For example, the above modules may be one or more integrated circuits configured to implement the above methods, such as one or more application specific integrated circuits (ASICs).

[0177] Or, one or more digital signal processors (DSPs), or one or more field programmable gate arrays (FPGAs), etc. For another example, these modules can be integrated together and implemented in the form of a system-on-a-chip (SOC).

[0178] An embodiment of the present application further proposes an electronic device, which includes a memory for storing computer program instructions and a processor for executing the program instructions, wherein when the computer program instructions are executed by the processor, the electronic device is triggered to execute the method described in the embodiment of the present application.

[0179] Specifically, in one embodiment of the present application, the above-mentioned one or more computer programs are stored in the above-mentioned memory, and the above-mentioned one or more computer programs include instructions. When the above-mentioned instructions are executed by the above-mentioned device, the above-mentioned device executes the method steps described in the embodiment of the present application.

[0180] Specifically, in one embodiment of the present application, the processor of the electronic device may be a SOC, which may include a central processing unit (CPU) and may further include other types of processors. Specifically, in one embodiment of the present application, the processor of the electronic device may be a PWM control chip.

[0181] Specifically, in one embodiment of the present application, the processor involved may include, for example, a CPU, a DSP, a microcontroller, or a digital signal processor, and may also include a GPU, an embedded neural network processor (NPU), and an image signal processor (ISP). The processor may also include necessary hardware accelerators or logic processing hardware circuits, such as ASICs, or one or more integrated circuits for controlling the execution of the program of the technical solution of the present application. In addition, the processor may have the function of operating one or more software programs, and the software programs may be stored in a storage medium.

[0182] Specifically, in one embodiment of the present application, the memory of the electronic device may be a read-only memory (ROM), other types of static storage devices that can store static information and instructions, a random access memory (RAM) or other types of dynamic storage devices that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compact disc, laser disc, optical disc, digital versatile disc, Blu-ray disc, etc.), a magnetic disk storage medium or other magnetic storage device, or any computer-readable medium that can be used to carry or store desired program code in the form of instructions or data structures and can be accessed by a computer.

[0183] Specifically, in one embodiment of the present application, the processor and the memory may be combined into a processing device, or more commonly, they may be independent components, with the processor being configured to execute program code stored in the memory to implement the method described in the embodiment of the present application. In a specific implementation, the memory may also be integrated into the processor or independent of the processor.

[0184] Furthermore, the devices, apparatuses, and modules described in the embodiments of the present application may be implemented by computer chips or entities, or by products having certain functions.

[0185] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, apparatus, or computer program products. Thus, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media containing computer-usable program code.

[0186] In the several embodiments provided in this application, if any function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, or the part that contributes to the prior art, or part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes a number of instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of this application.

[0187] Specifically, an embodiment of the present application further provides a computer-readable storage medium, which stores a computer program. When the computer-readable storage medium is run on a computer, the computer executes the method provided in the embodiment of the present application.

[0188] An embodiment of the present application further provides a computer program product, which includes a computer program. When the computer program product is run on a computer, it enables the computer to execute the method provided in the embodiment of the present application.

[0189] The embodiment description in this application is described with reference to the flow chart and / or block diagram according to the method, equipment (device) and computer program product of embodiment of the present application.It should be understood that each flow process and / or box in the flow chart and / or block diagram and the combination of the flow process and / or box in the flow chart and / or block diagram can be realized by computer program instructions.These computer program instructions can be provided to the processor of general-purpose computer, special-purpose computer, embedded processing machine or other programmable data processing equipment to produce a machine, so that the instruction executed by the processor of computer or other programmable data processing equipment produces the device for realizing the function specified in one flow chart flow chart or multiple flow charts and / or one block or multiple blocks of block diagram.

[0190] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a product including an instruction device that implements the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.

[0191] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, so that the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.

[0192] It should also be noted that, in the embodiments of the present application, "at least one" refers to one or more, and "more than one" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent the existence of A alone, the existence of A and B at the same time, and the existence of B alone. Among them, A and B can be singular or plural. The character " / " generally indicates that the previous and subsequent associated objects are in an "or" relationship. "At least one of the following" and similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one of a, b and c can represent: a, b, c, a and b, a and c, b and c or a and b and c, where a, b, c can be single or multiple.

[0193] In the embodiments of the present application, the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, commodity, or apparatus comprising a series of elements includes not only those elements but also other elements not explicitly listed, or elements inherent to such process, method, commodity, or apparatus. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not preclude the presence of additional identical elements in the process, method, commodity, or apparatus comprising the element.

[0194] The present application may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communications network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.

[0195] The various embodiments in this application are described in a progressive manner. Similar parts between the various embodiments can be referred to in conjunction with each other. Each embodiment focuses on the differences from other embodiments. In particular, the device embodiments are generally similar to the method embodiments, so the description is relatively simple. For relevant parts, refer to the partial description of the method embodiments.

[0196] Those skilled in the art will appreciate that the various units and algorithm steps described in the embodiments of the present application can be implemented using a combination of electronic hardware, computer software, and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0197] Those skilled in the art will clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described devices, apparatuses and units can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0198] The above description is merely a specific embodiment of the present application. Any person skilled in the art may easily conceive of variations or substitutions within the technical scope disclosed in this application, and such variations or substitutions shall be within the scope of protection of this application. The scope of protection of this application shall be subject to the scope of protection of the claims.

Claims

1. A method for generating a glasses model, It is characterized in that The method is applied to an electronic device, and the method comprises: Acquire user head feature data, and generate a virtual three-dimensional head model based on the head feature data; Determining a first eyewear model; Based on the virtual three-dimensional head model, adjusting the first glasses model to generate a second glasses model, wherein the frame, nose pads, and temples of the second glasses model are respectively adapted to the virtual three-dimensional head model; Determining the lens forward tilt angle of the second eyeglass model; When the lens tilt angle is not within the preset angle threshold range, the second glasses model is adjusted to generate a third glasses model, and the lens tilt angle of the third glasses model is within the preset angle threshold range.

2. The method according to claim 1, It is characterized in that The adjusting the first glasses model based on the virtual three-dimensional head model to generate a second glasses model includes: Determine the feature points in the virtual three-dimensional model of the head; and the shapes and positions of the eyes, nose and ears; Determining a feature point spacing related to glasses parameters based on the feature points; The parameters of the first glasses model are adjusted based on the feature point distance, and the shapes and positions of the eyes, nose and ears to generate the second glasses model.

3. The method according to claim 1, It is characterized in that The step of determining the lens forward tilt angle of the second eyeglass model comprises: Measure a first distance value, where the first distance value is the distance from the hinge center point to the bending point of the temple on the same side of the second eyeglass model; Measure a second distance value, where the second distance value is the distance between the center point of the nose pad on the same side of the second eyeglass model and the horizontal center line of the lens; Measure a third distance value, where the third distance value is the distance between the center point of the pile head on the same side of the second eyeglass model and the horizontal center line of the lens; The lens forward tilt angle of the second eyeglass model is determined based on the first distance value, the second distance value and the third distance value.

4. The method according to claim 1, It is characterized in that When the lens forward tilt angle is not within a preset angle threshold range, adjusting the second glasses model comprises: Adjust at least one parameter of the position and angle of the stud of the second glasses model; and / or adjust at least one parameter of the position and angle of the nose pad of the second glasses model.

5. The method according to any one of claims 1 to 4, It is characterized in that The frame, nose pads and temples of the third glasses model are respectively adapted to the virtual three-dimensional head model.

6. A method for generating glasses, It is characterized in that The method comprises: Acquire a third glasses model based on the method according to any one of claims 1 to 5; Performing slicing and layering processing on the third glasses model to obtain at least one layer of slicing layer image data; Performing data processing based on the slice layer image data to obtain layer printing data; Three-dimensional printing is performed based on the layer printing data to obtain layers of glasses, and the glasses are obtained by printing and stacking layer by layer.

7. An electronic device, It is characterized in that The electronic device comprises: A model building module, which is used to obtain user head feature data and generate a virtual three-dimensional head model based on the head feature data; A model selection module, which is used to determine a first glasses model; A model adaptation module, which is used to adjust the first glasses model based on the virtual three-dimensional head model to generate a second glasses model, wherein the frame, nose pads and temples of the second glasses model are respectively adapted to the virtual three-dimensional head model; A model adjustment module is used to: determine the lens tilt angle of the second glasses model; when the lens tilt angle is not within a preset angle threshold range, adjust the second glasses model to generate a third glasses model, and the lens tilt angle of the third glasses model is within the preset angle threshold range.

8. A glasses generation system, It is characterized in that The system comprises: A model building module, which is used to obtain user head feature data and generate a virtual three-dimensional head model based on the head feature data; A model selection module, which is used to determine a first glasses model; A model adaptation module, which is used to adjust the first glasses model based on the virtual three-dimensional head model to generate a second glasses model, wherein the frame, nose pads and temples of the second glasses model are respectively adapted to the virtual three-dimensional head model; A model adjustment module, which is used to: determine the lens tilt angle of the second glasses model; when the lens tilt angle is not within a preset angle threshold range, adjust the second glasses model to generate a third glasses model, wherein the lens tilt angle of the third glasses model is within the preset angle threshold range; A model slicing module, configured to perform slicing and layering processing on the third glasses model to obtain at least one layer of slicing layer image data; A data processing module, which is used to perform data processing based on the slice layer image data to obtain layer printing data; The model printing module is used to perform three-dimensional printing based on the layer printing data to obtain layers of glasses, and to print and stack layers one by one to obtain the glasses.

9. An electronic device, It is characterized in that The electronic device comprises a memory for storing computer program instructions and a processor for executing the computer program instructions, wherein when the computer program instructions are executed by the processor, the electronic device is triggered to execute the method steps as described in any one of claims 1 to 5 or claim 6.

10. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, which, when executed on a computer, enables the computer to execute the method according to any one of claims 1 to 5 or claim 6.

Citation Information

Patent Citations

  • Feature-point-based glasses modeling apparatus and method, glasses manufacturing method and glasses

    CN107085864A

  • Glasses automatic design system based on 3D head data

    CN108490641A

  • Glasses automatic design method based on 3D head data

    CN108490642A

  • Try-on method of virtual glasses, terminal equipment and storage medium

    CN111461814A

  • Spectacle frame design method and manufacturing method

    CN114154357A