CN-116305364-B - Glasses model generation method and electronic equipment
Abstract
The embodiment of the application provides a glasses model generation method and electronic equipment. The glasses model generation method comprises the steps of obtaining head characteristic data of a user, generating a head virtual three-dimensional model based on the head characteristic data, determining a first glasses model, adjusting the first glasses model based on the head virtual three-dimensional model, generating a second glasses model, wherein a glasses frame, a nose support and glasses legs of the second glasses model are respectively matched with the head virtual three-dimensional model, determining the front inclination angle of a lens of the second glasses model, and adjusting the second glasses model when the front inclination angle of the lens is not in a preset angle threshold value interval, and generating a third glasses model, wherein the front inclination angle of the lens of the third glasses model is in the preset angle threshold value interval. According to the eyeglass model generation method provided by the embodiment of the application, the customization flow and the customization standard of the 3D printing eyeglasses can be standardized, the wearing comfort of the 3D printing eyeglasses is improved, and the user experience of the user on customizing the 3D printing eyeglasses is improved.
Inventors
- PENG QINGFEI
- JIANG JIANHAO
- Tang Xianmeng
- Fang Yousen
- JIAN HAN
Assignees
- 珠海赛纳视博科技有限公司
Dates
- Publication Date
- 20260505
- Application Date
- 20230331
Claims (9)
- 1. A method for generating a model of glasses, the method being applied to an electronic device, the method comprising: acquiring head characteristic data of a user, and generating a head virtual three-dimensional model based on the head characteristic data; determining a first model of the eye; Based on the head virtual three-dimensional model, the first glasses model is adjusted to generate a second glasses model, and a glasses frame, a nose pad and glasses legs of the second glasses model are respectively matched with the head virtual three-dimensional model; Determining a lens pretilt angle of the second eyeglass model; When the lens pretilt angle is not in the preset angle threshold value interval, the second eyeglass model is adjusted to generate a third eyeglass model, and the lens pretilt angle of the third eyeglass model is in the preset angle threshold value interval; The determining the lens pretilt angle of the second eyeglass model comprises: measuring a first distance value, wherein the first distance value is the distance from the hinge center point on the same side of the second eyeglass model to the bending point of the eyeglass leg; Measuring a second distance value, wherein the second distance value is the distance between the center point of the nose pad on the same side of the second glasses model and the horizontal center line of the lens; measuring a third distance value, wherein the third distance value is the distance between the pile head center point on the same side of the second eyeglass model and the lens horizontal center line; A lens pretilt angle of the second eyeglass model is determined based on the first distance value, the second distance value, and the third distance value.
- 2. The method of claim 1, wherein the adjusting the first eyeglass model based on the virtual three-dimensional model of the head to generate a second eyeglass model comprises: determining feature points in the virtual three-dimensional model of the head, and the shape and location of the eyes, nose, and ears; Determining a characteristic point distance related to the eyeglass parameter based on the characteristic points; parameters of the first eyeglass model are adjusted based on the feature point spacing, and shapes and positions of eyes, nose, and ears to generate the second eyeglass model.
- 3. The method of claim 1, wherein adjusting the second eyeglass model when the lens pretilt angle is not within a preset angle threshold interval comprises: and/or adjusting at least one parameter of the position and the angle of the nose pad of the second eyeglass model.
- 4. A method according to any one of claims 1-3, characterized in that the frame, nose pad, temple of the third eyeglass model are adapted to the virtual three-dimensional model of the head, respectively.
- 5. A method of eyewear creation, the method comprising: obtaining a third eyeglass model based on the method of any one of claims 1-4; Performing slice layering processing on the third eyeglass model to obtain at least one slice layer image data; performing data processing based on the slice layer image data to obtain layer printing data; And performing three-dimensional printing based on the layer printing data to obtain layers of the glasses, and performing layer-by-layer printing and superposition to obtain the glasses.
- 6. An electronic device, the electronic device comprising: The model building module is used for acquiring head characteristic data of a user and generating a head virtual three-dimensional model based on the head characteristic data; A model selection module for determining a first model of the eye; The model adapting module is used for adjusting the first glasses model based on the head virtual three-dimensional model to generate a second glasses model, and a glasses frame, a nose pad and glasses legs of the second glasses model are respectively adapted to the head virtual three-dimensional model; the model adjusting module is used for determining the lens pre-dip angle of the second eyeglass model, adjusting the second eyeglass model when the lens pre-dip angle is not in a preset angle threshold value interval, and generating a third eyeglass model, wherein the lens pre-dip angle of the third eyeglass model is in the preset angle threshold value interval; The model adjusting module is specifically configured to measure a first distance value, wherein the first distance value is a distance from a hinge center point on the same side of the second eyeglass model to a curved point of a glasses leg, measure a second distance value, wherein the second distance value is a distance from a nose support center point on the same side of the second eyeglass model to a horizontal center line of a lens, measure a third distance value, wherein the third distance value is a distance from a pile head center point on the same side of the second eyeglass model to the horizontal center line of the lens, and determine a lens pretilt angle of the second eyeglass model based on the first distance value, the second distance value and the third distance value.
- 7. An eyewear creation system, the system comprising: The model building module is used for acquiring head characteristic data of a user and generating a head virtual three-dimensional model based on the head characteristic data; A model selection module for determining a first model of the eye; The model adapting module is used for adjusting the first glasses model based on the head virtual three-dimensional model to generate a second glasses model, and a glasses frame, a nose pad and glasses legs of the second glasses model are respectively adapted to the head virtual three-dimensional model; the model adjusting module is used for determining the lens pre-dip angle of the second eyeglass model, adjusting the second eyeglass model when the lens pre-dip angle is not in a preset angle threshold value interval, and generating a third eyeglass model, wherein the lens pre-dip angle of the third eyeglass model is in the preset angle threshold value interval; the model slicing module is used for performing slicing layering processing on the third eyeglass model to obtain at least one slice layer image data; The data processing module is used for carrying out data processing based on the slice layer image data to obtain layer printing data; The model printing module is used for performing three-dimensional printing based on the layer printing data to obtain layers of the glasses, and performing layer-by-layer printing and superposition to obtain the glasses; The model adjusting module is specifically configured to measure a first distance value, wherein the first distance value is a distance from a hinge center point on the same side of the second eyeglass model to a curved point of a glasses leg, measure a second distance value, wherein the second distance value is a distance from a nose support center point on the same side of the second eyeglass model to a horizontal center line of a lens, measure a third distance value, wherein the third distance value is a distance from a pile head center point on the same side of the second eyeglass model to the horizontal center line of the lens, and determine a lens pretilt angle of the second eyeglass model based on the first distance value, the second distance value and the third distance value.
- 8. An electronic device comprising a memory for storing computer program instructions and a processor for executing the computer program instructions, wherein the computer program instructions, when executed by the processor, trigger the electronic device to perform the method steps of any one of claims 1-4 or claim 5.
- 9. A computer readable storage medium, characterized in that the computer readable storage medium has stored therein a computer program which, when run on a computer, causes the computer to perform the method of any of claims 1-4 or claim 5.
Description
Glasses model generation method and electronic equipment Technical Field The application relates to the technical field of glasses manufacturing, in particular to a glasses model generation method and electronic equipment. Background The 3D printing is a rapid prototyping technology for generating corresponding real objects in a layer-by-layer printing mode based on a digital model file. 3D printing is widely used in various fields, for example, custom glasses through 3D printing. The process of 3D printing customized glasses generally includes creating a virtual three-dimensional model of a user's head according to user's head characteristic data, selecting an initial three-dimensional digital model of a glasses conforming to a personal preference style by a user, and adjusting the initial three-dimensional digital model of the glasses selected by the user to fit the virtual three-dimensional model of the user's head, thereby obtaining the customized glasses. Typically, the adjustment of the user-selected initial three-dimensional digital model of the eyeglass is performed manually by a designer. Because different designers manually adjust the initial three-dimensional digital model to be suitable for the adaptation standard of the virtual three-dimensional model of the head of the user is inconsistent, the adaptation effect cannot be accurately measured. This makes the wearing comfort of the final custom-manufactured spectacles uncertain. After the user wears customized glasses in person, the user also needs to adjust at least one of the pile head, the nose support, the glasses legs and the like in the later period to improve the wearing comfort of the glasses, so that the user experience of the 3D printing customized glasses is affected. Disclosure of Invention Aiming at the problem of how to improve the user experience of 3D printing custom glasses, the application provides a glasses model generation method and electronic equipment, and also provides a computer readable storage medium. The embodiment of the application adopts the following technical scheme: In a first aspect, the present application provides a method for generating a model of glasses, the method being applied to an electronic device, the method comprising: acquiring head characteristic data of a user, and generating a head virtual three-dimensional model based on the head characteristic data; determining a first model of the eye; Based on the head virtual three-dimensional model, the first glasses model is adjusted to generate a second glasses model, and a glasses frame, a nose pad and glasses legs of the second glasses model are respectively matched with the head virtual three-dimensional model; Determining a lens pretilt angle of the second eyeglass model; and when the lens pretilt angle is not in the preset angle threshold value interval, adjusting the second eyeglass model to generate a third eyeglass model, wherein the lens pretilt angle of the third eyeglass model is in the preset angle threshold value interval. According to the eyeglass model generation method provided by the embodiment of the application, the second eyeglass model which is adaptive to the head virtual three-dimensional model can be generated by firstly generating the eyeglass frame, the nose support and the eyeglass legs, and the front inclination angle of the eyeglass is adjusted on the basis of the second eyeglass model so as to obtain the third eyeglass model for 3D printing. According to the eyeglass model generation method provided by the embodiment of the application, the customization flow and the customization standard of the 3D printing eyeglasses can be standardized, the wearing comfort of the 3D printing eyeglasses is improved, and the user experience of the user on customizing the 3D printing eyeglasses is improved. In an implementation manner of the first aspect, the adjusting the first glasses model based on the head virtual three-dimensional model, and generating a second glasses model, includes: determining feature points in the virtual three-dimensional model of the head, and shapes and positions of eyes, nose, and ears; Determining a characteristic point distance related to the eyeglass parameter based on the characteristic points; based on the feature point spacing, and the shape and position of the eyes, nose, and ears, parameters of the first eyeglass model are adjusted to generate the second eyeglass model. In an implementation manner of the first aspect, the determining a lens pretilt angle of the second eyeglass model includes: measuring a first distance value, wherein the first distance value is the distance from the hinge center point on the same side of the second eyeglass model to the bending point of the eyeglass leg; Measuring a second distance value, wherein the second distance value is the distance between the center point of the nose pad on the same side of the second glasses model and the horizontal center line of the lens; meas