Picture frame model construction method and device, equipment, storage medium and program product
By receiving the user's face shape data and using the frame curve segment sample library to generate a suitable frame model, the problem in the existing technology that designers need to frequently redesign the frame curve is solved, and the efficiency of glasses frame design is improved.
Patent Information
- Application Number
- CN202410768257.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-14
- Publication Date
- 2024-10-08
AI Technical Summary
In the existing technology, the design and manufacturing efficiency of eyeglass frames is low. Designers need to frequently redesign the frame curves to adapt to different user face shapes, resulting in long design time and low efficiency.
By receiving the face shape data of the target user, the frame curve segment sample library is used to determine the target curve segments of each frame part, and combined to generate a frame model suitable for the user to avoid repeated design.
It saves design time and improves the efficiency of frame model design. It can select appropriate curve segments from the frame curve segment sample library according to the user's face shape data for reorganization and modeling, and generate multiple frame models that suit different user needs.
Smart Images

Figure CN118747387A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of frame model construction, and in particular to a frame model construction method, device, equipment, storage medium and program product. Background Art
[0002] In the related art, for the design and manufacture of eyeglass frames, designers usually draw the overall frame curve of the eyeglass frame according to the user's face shape, and then build a corresponding model in the modeling software based on the curve. However, this process is extremely dependent on the designer's design inspiration and operational proficiency. When faced with a large number of different user face shapes to adapt the eyeglass frame model, the designer needs to redesign the entire curve every time, resulting in a long overall design time and low frame model design efficiency. Summary of the invention
[0003] The main purpose of the present application is to provide a method for constructing a frame model, aiming to solve the technical problem of low efficiency in frame model design in related technologies.
[0004] To achieve the above purpose, the present application proposes a method for constructing a frame model, comprising:
[0005] Receive target user face shape data; the target user face shape data includes multiple sets of facial local data;
[0006] Based on the target user's face shape data, determine the target curve segments of each frame part from the frame curve segment sample library; wherein the frame curve segment sample library includes a plurality of curve segments, and each curve segment has corresponding user face local data;
[0007] All target curve segments are combined to obtain the target frame model.
[0008] In one embodiment, before the step of determining the target curve segments of each frame part from the frame curve segment sample library based on the target user's face shape data, the step further includes:
[0009] Build multiple frame samples;
[0010] For each frame sample, segment the frame sample based on a preset frame part to obtain a frame part curve segment;
[0011] For each frame part curve segment, local data of the user's face is determined, and the frame part curve segment is adjusted based on the local data of the user's face, so that the obtained curve segment matches the local data of the user's face; and different frame part curve segments correspond to different local data of the user's face;
[0012] Based on all curve segments and the correspondence between the curve segments and the local facial data of the user, a sample library of frame curve segments is constructed.
[0013] In one embodiment, all the curved segments of the mirror frame include the curved segments of the pile head portion, the curved segments of the upper frame portion, the curved segments of the lower frame portion, and the curved segments of the middle beam portion.
[0014] In one embodiment, the local facial data includes the size of the bridge of the nose, the curvature of the eyebrows, the facial contour, and the shape of the jaw;
[0015] The step of adjusting the curve segment of the frame part based on the local data of the user's face so that the obtained curve segment matches the local data of the user's face comprises:
[0016] Based on the size of the nose bridge, adjust the pile head position of the curve section of the pile head;
[0017] Adjust the curve segment of the upper frame based on the eyebrow curvature and facial contour;
[0018] Adjust the curve segment of the lower frame based on the facial contour and jaw shape;
[0019] Based on the facial contour, adjust the center beam position of some curved segments of the center beam.
[0020] In one embodiment, the step of adjusting the curve segment of the frame part based on the local data of the user's face so that the obtained curve segment matches the local data of the user's face further includes:
[0021] Display local facial data of the user;
[0022] In response to the designer's adjustment operation to match the frame curve segment with the user's facial local data, the frame curve segment is fine-tuned to obtain the curve segment.
[0023] In one embodiment, based on the target user's face shape data, the step of determining the target curve segment of each frame part from the frame curve segment sample library includes:
[0024] Based on the target user's face shape data, determining at least one target curve segment for each frame part from the frame curve segment sample library;
[0025] The steps of combining all target curve segments to obtain the target frame model include:
[0026] Arrange and combine at least one target curve segment of each frame part to obtain multiple target frame models;
[0027] After the step of arranging and combining at least one target curve segment of each frame part to obtain a plurality of target frame models, the step further includes:
[0028] Display multiple target frame models.
[0029] In addition, to achieve the above-mentioned purpose, the present application also proposes a frame model building device, which includes:
[0030] A receiving module, used for receiving face shape data of a target user; the face shape data of the target user includes multiple groups of partial facial data;
[0031] A determination module, for determining target curve segments of various frame parts from a frame curve segment sample library based on target user face shape data; wherein the frame curve segment sample library includes a plurality of curve segments, and each curve segment has corresponding user face local data;
[0032] The combination module is used to combine all target curve segments to obtain a target frame model.
[0033] In addition, to achieve the above-mentioned purpose, the present application also proposes a frame model building device, the device comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, the computer program being configured to implement the steps of the frame model building method as described above.
[0034] 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 frame model construction method as described above are implemented.
[0035] 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 model construction method are implemented.
[0036] One or more technical solutions proposed in this application have at least the following technical effects:
[0037] In the present application, target user facial shape data can be received; wherein the target user facial shape data includes multiple groups of local facial data; thereby, based on the target user facial shape data, target curve segments of each frame part can be determined from a frame curve segment sample library; wherein the frame curve segment sample library includes multiple curve segments, and each curve segment has corresponding user facial local data; by combining all target curve segments, a target frame model can be obtained.
[0038] The present application can select appropriate frame curve segments from a constructed frame curve segment sample library for reorganization and modeling based on the target user's facial data, thereby avoiding the problem in related technologies that designers need to redesign the entire frame curve for each user, saving a lot of design time and improving the design efficiency of the frame model. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] 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.
[0040] 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.
[0041] Figure 1 A schematic diagram of a process flow provided for the first embodiment of the method for constructing a frame model of the present application;
[0042] Figure 2 A schematic diagram of a process flow provided for Embodiment 2 of the method for constructing a frame model of the present application;
[0043] Figure 3 It is a schematic diagram of the preset frame parts;
[0044] Figure 4 This is a schematic diagram of the module structure of the frame model building device of the embodiment of the present application;
[0045] Figure 5 A schematic diagram of the structure of a frame model building device for a hardware operating environment involved in the frame model building method in an embodiment of the present application.
[0046] 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
[0047] 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.
[0048] 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.
[0049] The main solution of the embodiment of the present application is: receiving the target user's facial shape data; the target user's facial shape data includes multiple groups of local facial data; based on the target user's facial shape data, determining the target curve segments of each frame part from the frame curve segment sample library; wherein the frame curve segment sample library includes multiple curve segments, and each curve segment has corresponding user's local facial data; combining all the target curve segments to obtain a target frame model.
[0050] In the related art, for the design and manufacture of eyeglass frames, the method usually adopted is that the designer draws the overall frame curve of the eyeglass frame according to the user's face shape, and then builds the corresponding model in the modeling software based on the curve. However, this process is extremely dependent on the designer's design inspiration and operational proficiency. When faced with a large number of different user face shapes to adapt the eyeglass frame model, the designer needs to redesign the entire curve every time, resulting in a long overall design time and low design efficiency of the frame model.
[0051] The present application provides a solution that can select appropriate frame curve segments from a constructed frame curve segment sample library for reorganization and modeling according to the face shape data of the target user, thereby avoiding the problem in the related art that designers need to redesign the entire frame curve for each user, and can save a lot of design time to improve the design efficiency of the frame model.
[0052] 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, etc., or an electronic device capable of realizing the above functions, etc. The following takes a frame model building device as an example to illustrate this embodiment and the following embodiments.
[0053] Based on this, the present application embodiment provides a method for constructing a frame model, referring to Figure 1 , Figure 1 This is a flow chart of Embodiment 1 of the method for constructing a frame model of the present application.
[0054] In this embodiment, the frame model construction method includes steps S100 to S300:
[0055] Step S100, receiving target user face shape data.
[0056] The target user's face shape data includes multiple sets of facial local data.
[0057] Step S200: Based on the target user's face shape data, target curve segments of each frame part are determined from a frame curve segment sample library.
[0058] The frame curve segment sample library includes a plurality of curve segments, and each curve segment has corresponding local data of the user's face.
[0059] Step S300, combining all target curve segments to obtain a target frame model.
[0060] Specifically, in the process of building the frame model, the target user's facial data can provide a reference for the frame model construction, so that the constructed frame model is more in line with the user's own characteristics. The frame model construction device can be a personal terminal device such as a tablet, a laptop, etc., or it can be a cloud server that can be accessed by the terminal device. When the frame recommendation device is a device such as a tablet, the facial image of the target user can be collected through the camera device on it, and the facial image is processed by a relevant algorithm to obtain the target user's facial data. 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 target user's facial image and perform image processing to obtain the target user's facial data. The target user's facial data includes multiple sets of local facial data, such as facial contour, eye position, nose bridge height, and nose bridge size.
[0061] The frame model building device can use the target user's face shape data to match the pre-established frame curve segment sample library. The frame curve segment sample library includes multiple curve segments of different shapes and sizes for various frame parts (the frame part can be the head part, upper frame part, lower frame part, and middle beam part of the frame, etc.), and these curve segments can be used to form a complete frame model, and each curve segment has its corresponding user facial local data. According to the target user's face shape data, curve segments with a high degree of matching with multiple groups of target user's facial local numbers can be found in the frame curve segment sample library (the user facial local data corresponding to the curve segments with a high degree of matching is the same or similar to the target user's facial local data) as the target curve segments of each frame part. By reconnecting the determined target curve segments, a complete target frame model can be constructed.
[0062] In a feasible implementation manner, the above steps S200 to S300 may include steps S210 to S310:
[0063] Step S210: Based on the target user's face shape data, at least one target curve segment for each frame part is determined from a frame curve segment sample library.
[0064] Step S310, arranging and combining at least one target curve segment of each frame part to obtain a plurality of target frame models.
[0065] Specifically, according to the received target user face shape data, at least one target curve segment suitable for each frame part can be selected from the frame curve segment sample library for each frame part. For example, for the stump part of the frame, one or several stump part curve segments that are more in line with the size of the nose bridge can be selected according to the user's nose bridge size. If the user's nose bridge is wide, multiple stump part curve segments of different styles with corresponding widths can be selected; similarly, if the user's nose bridge is narrow, multiple narrow stump part curve segments of different styles can be selected. At least one target curve segment of each frame part determined is arranged and combined, so that a plurality of different target frame models can be generated, that is, a plurality of frame models of different styles or shapes adapted to the user's face shape data can be generated by combining curve segments of different frame parts to meet the different needs and preferences of users.
[0066] In addition, after the step of arranging and combining at least one target curve segment of each frame part to obtain multiple target frame models, multiple target frame models can also be displayed. For example, the multiple target frame models finally generated can be displayed on the device display screen, and a real-time preview function is provided to show the appearance effects of different frame models to the user, so that the user can select a satisfactory frame model.
[0067] It can be understood that in this embodiment, appropriate frame curve segments can be selected from the constructed frame curve segment sample library according to the face shape data of the target user and recombined to construct a target frame model, thereby avoiding the problem in the related art that designers need to redesign the entire frame curve for each user, saving a lot of design time and improving the design efficiency of the frame model.
[0068] Based on the first embodiment of the method for constructing the frame model of the present application, the second embodiment of the method for constructing the frame model of the present application is proposed, referring to Figure 2 , Figure 2 The flowchart of the second embodiment of the method for constructing the frame model of the present application is shown. In this embodiment, the same or similar contents as those in the above embodiment can be referred to the above introduction, and will not be described in detail later. Figure 2 Before step S200, steps A100 to A400 may be included to construct a sample library of frame curve segments.
[0069] Step A100, constructing a plurality of frame samples.
[0070] Step A200 , for each frame sample, segment the frame sample based on a preset frame part to obtain a frame part curve segment.
[0071] Step A300, for each frame part curve segment, determine the local data of the user's face, and adjust the frame part curve segment based on the local data of the user's face, so that the obtained curve segment matches the local data of the user's face.
[0072] Among them, different frame curve segments correspond to different local data of the user's face.
[0073] Step A400: construct a sample library of spectacles frame curve segments based on all curve segments and the correspondence between the curve segments and the local data of the user's face.
[0074] Specifically, frame samples can provide designers with a design basis, so constructing frame samples is a more important part of frame model customization design. In practical applications, a large number of user face shape data (such as forehead width, cheekbone height, and jaw width, etc.) can be collected through 3D scanning technology or some traditional measurement tools. Face shape is one of the most basic features of a person's face. Different face shapes have an important impact on the design of frames. Therefore, the above-collected face shape data can help generate frame samples suitable for various user face shapes. Based on the above-collected face shape data, modeling software can be used to preliminarily establish corresponding frame samples. For example, Grasshopper modeling software can be used to establish a face shape data and frame curve matching algorithm, and the collected user face shape data can be matched with the frame curve. Multiple initial frame models can be constructed, and these frame models can be used as frame samples required to build a frame curve segment sample library.
[0075] For each frame sample, the curve of the entire frame sample can be segmented according to the preset frame parts to obtain frame part curve segments. The preset frame parts can be set according to different parts or different functions. In a feasible implementation, Figure 3 As shown, the preset mirror frame parts can be the pile head part, the upper frame part, the lower frame part and the middle beam part, and the corresponding all mirror frame part curve segments can include the pile head part curve segment, the upper frame part curve segment, the lower frame part curve segment and the middle beam part curve segment.
[0076] After the curve segmentation is completed, each frame part curve segment can be further refined and designed. Among them, for each frame part curve segment, the user's facial local data can be determined. It can be understood that the corresponding frame sample can be constructed based on the user's facial data, that is, each frame sample corresponds to a set of user facial data, so that the facial local data corresponding to the curve segment can be determined for each frame part curve segment based on the corresponding relationship. For example, the frame sample to which the curve segment belongs can be determined based on the pile head part curve segment, so that the facial local data corresponding to the pile head part (such as the size of the bridge of the nose) can be determined from the facial data corresponding to the frame sample. After determining the user's facial local data, the frame part curve segment can be further adjusted based on the user's facial local data so that the obtained curve segment can be more matched with the user's facial local data.
[0077] In a feasible implementation, the local facial data include nose bridge size, eyebrow curvature, facial contour and jaw shape; the step of adjusting the curve segments of the frame part based on the local facial data of the user so that the obtained curve segments match the local facial data of the user may include: adjusting the tip position of the tip part curve segment based on the nose bridge size; adjusting the upper frame part curve segment based on the eyebrow curvature and facial contour; adjusting the lower frame part curve segment based on the facial contour and jaw shape; adjusting the middle beam position of the middle beam part curve segment based on the facial contour.
[0078] Specifically, the frame model building device can accurately and adaptively adjust the curve segments of the frame part according to the user's local facial data to ensure that each curve segment in the final frame curve segment sample library can better match the user's local facial data to ensure better design effects.
[0079] Adjust the position and / or size of the pile head of the curved section according to the size of the nose bridge to ensure that the pile head and the nose bridge are visually harmonious; adjust the curved section of the upper frame according to the eyebrow curvature and facial contour to ensure that the upper frame fits well with the eyebrows and facial contour; for example, if the user has thick eyebrows or a large curvature, the curve of the upper frame can be adjusted to ensure that the upper frame does not oppress the eyebrows and create a cramped feeling; adjust the curved section of the lower frame according to the facial contour and the shape of the mandible to ensure that the lower frame matches the facial contour and the shape of the mandible; adjust the center beam position of the curved section of the center beam according to the facial contour to ensure that the pile head fits well with the nose bridge and the facial contour, so as to avoid discomfort or marks when the corresponding manufactured frame is worn.
[0080] In another feasible implementation, the step of adjusting the curve segment of the frame part based on the local facial data of the user so that the obtained curve segment matches the local facial data of the user may also include: displaying the local facial data of the user; in response to the designer's adjustment operation to make the curve segment of the frame part match the local facial data of the user, fine-tuning the curve segment of the frame part to obtain the curve segment.
[0081] Specifically, in addition to the automatic adjustment of the curve segments by the above-mentioned frame model building device, designers can also adjust the curve segments according to actual needs and design requirements. The display interface of the frame model building device can output and display the local facial data of the user. Designers can adjust relevant parameters according to actual needs and the local facial data of the user to achieve fine-tuning of the curve segments of the frame. For example, the design file corresponding to each curve segment can be opened in the Grasshopper software. The Grasshopper software provides an intuitive parameter input interface. Designers can directly input the specific parameters of the pile head part, the upper frame part, the lower frame part and the middle beam part in Grasshopper, so as to adjust the corresponding curve segments of the frame part to obtain curve segments that meet the design requirements.
[0082] After obtaining multiple curve segments, all curve segments can be labeled with corresponding local facial data of the user to establish a relationship between the facial data and the curve segments, so that when selecting the curve segments of the frame parts in the future, the design suitable for the facial features of the target user can be quickly found. The labeled curve segments and the corresponding relationship with the local facial data are stored in a database or a graphics library to obtain a sample library of frame curve segments required for the design.
[0083] It can be understood that in this embodiment, after constructing a plurality of frame samples, the frame samples can be segmented based on the preset frame parts for each frame sample to obtain frame part curve segments, and the frame part curve segments can be adjusted based on the user's facial local data to make the obtained curve segments match the user's facial local data. In this way, a frame curve segment sample library can be constructed based on all curve segments and the corresponding relationship between the curve segments and the user's facial local data, so that frame part curve segments suitable for the user's facial features can be more efficiently selected in the later frame model design, thereby achieving the purpose of improving the efficiency of frame model design.
[0084] This application also provides a frame model construction device, please refer to Figure 4 , the frame model building device comprises:
[0085] The receiving module 10 is used to receive the target user's face shape data; the target user's face shape data includes multiple sets of facial local data;
[0086] The determination module 20 is used to determine the target curve segments of each frame part from the frame curve segment sample library based on the target user's face shape data; wherein the frame curve segment sample library includes a plurality of curve segments, and each curve segment has corresponding user face local data;
[0087] The combination module 30 is used to combine all target curve segments to obtain a target frame model.
[0088] The frame model building device provided by the present application adopts the frame model building method in the above embodiment, which can solve the technical problem of low efficiency of frame model design in the related art. Compared with the related art, the beneficial effects of the frame model building device provided by the present application are the same as the beneficial effects of the frame model building method provided by the above embodiment, and other technical features in the frame model building device are the same as the features disclosed in the above embodiment method, which will not be repeated here.
[0089] The present application provides a frame model building 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 model building method in the above-mentioned embodiment 1.
[0090] Reference below Figure 5 , which shows a schematic diagram of the structure of a frame model construction device suitable for implementing the embodiment of the present application. The frame model construction device in the embodiment of the present application may include but is not limited to mobile terminals such as laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), etc., and fixed terminals such as desktop computers, etc. Figure 5 The frame model building device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0091] like Figure 5As shown, the frame model building 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 frame model building operation 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 can allow the frame model building device to communicate with other devices wirelessly or by wire to exchange data. Although the frame model building 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 can be implemented or have alternatively.
[0092] 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.
[0093] The frame model building device provided by the present application adopts the frame model building method in the above embodiment, which can solve the technical problem of low efficiency of frame model design in the related art. Compared with the related art, the beneficial effects of the frame model building device provided by the present application are the same as the beneficial effects of the frame model building method provided by the above embodiment, and other technical features in the frame model building device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.
[0094] 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.
[0095] 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.
[0096] 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 model building method in the above-mentioned embodiment.
[0097] 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.
[0098] The computer-readable storage medium may be included in the frame model building device; or may exist independently without being assembled into the frame model building device.
[0099] The computer-readable storage medium carries one or more programs. When the one or more programs are executed by the frame model building device, the frame model building device: receives the target user's facial shape data; the target user's facial shape data includes multiple groups of facial local data; based on the target user's facial shape data, determines the target curve segment of each frame part from the frame curve segment sample library; wherein the frame curve segment sample library includes multiple curve segments, and each curve segment has corresponding user facial local data; all target curve segments are combined to obtain a target frame model.
[0100] 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).
[0101] 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.
[0102] 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.
[0103] The readable storage medium provided in 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 model construction method, and can solve the technical problem of low efficiency of frame model design in the related art. Compared with the related art, the beneficial effects of the computer-readable storage medium provided in the present application are the same as the beneficial effects of the frame model construction method provided in the above-mentioned embodiment, and will not be described in detail here.
[0104] The present application also provides a computer program product, including a computer program, which implements the steps of the above-mentioned frame model construction method when executed by a processor.
[0105] The computer program product provided by the present application can solve the technical problem of low efficiency in the design of the frame model 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 model construction method provided by the above embodiment, which will not be described in detail here.
[0106] 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 constructing a mirror frame model, It is characterized in that The method comprises: Receive target user face shape data; the target user face shape data includes multiple sets of facial local data; Based on the target user's face shape data, determine the target curve segment of each frame part from a frame curve segment sample library; wherein the frame curve segment sample library includes a plurality of curve segments, and each of the curve segments has corresponding user face local data; All the target curve segments are combined to obtain a target frame model.
2. The method according to claim 1, It is characterized in that Before the step of determining the target curve segments of each frame part from the frame curve segment sample library based on the target user face shape data, the step further includes: Build multiple frame samples; For each of the spectacles frame samples, segmenting the spectacles frame samples based on preset spectacles frame parts to obtain spectacles frame part curve segments; For each of the frame curve segments, local data of the user's face is determined, and the frame curve segment is adjusted based on the local data of the user's face, so that the obtained curve segment matches the local data of the user's face; and different frame curve segments correspond to different local data of the user's face; Based on all the curve segments and the corresponding relationship between the curve segments and the local facial data of the user, the frame curve segment sample library is constructed.
3. The method according to claim 2, It is characterized in that All the curved sections of the mirror frame parts include the curved sections of the pile head part, the curved sections of the upper frame part, the curved sections of the lower frame part and the curved sections of the middle beam part.
4. The method according to claim 3, It is characterized in that The local facial data includes the size of the bridge of the nose, the curvature of the eyebrows, the facial contour and the shape of the jaw; The step of adjusting the curve segment of the frame part based on the local data of the user's face so that the obtained curve segment matches the local data of the user's face comprises: Based on the size of the nose bridge, adjusting the pile head position of the curve section of the pile head; Based on the eyebrow curvature and the facial contour, adjusting the curve segment of the upper frame portion; Based on the facial contour and the jaw shape, adjusting the curve segment of the lower frame portion; Based on the facial contour, the center beam position of the center beam partial curve segment is adjusted.
5. The method according to claim 2, It is characterized in that The step of adjusting the curve segment of the frame part based on the local data of the user's face so that the obtained curve segment matches the local data of the user's face also includes: Displaying local facial data of the user; In response to the designer's adjustment operation to match the frame curve segment with the user's facial local data, the frame curve segment is fine-tuned to obtain the curve segment.
6. The method according to claim 1, It is characterized in that The step of determining the target curve segment of each frame part from the frame curve segment sample library based on the target user face shape data comprises: Based on the target user's face shape data, determining at least one target curve segment for each frame part from the frame curve segment sample library; The step of combining all the target curve segments to obtain a target frame model comprises: Arrange and combine at least one target curve segment of each frame part to obtain a plurality of target frame models; After the step of arranging and combining at least one target curve segment of each frame part to obtain a plurality of target frame models, the step further includes: A plurality of target frame models are displayed.
7. A mirror frame model building device, It is characterized in that The device comprises: A receiving module, used for receiving face shape data of a target user; the face shape data of the target user includes multiple groups of facial local data; A determination module, configured to determine target curve segments of various frame parts from a frame curve segment sample library based on the target user face shape data; wherein the frame curve segment sample library includes a plurality of curve segments, and each of the curve segments has corresponding user face local data; The combination module is used to combine all the target curve segments to obtain a target frame model.
8. A frame model building device, It is 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 method for constructing a frame model according to any one of claims 1 to 6.
9. A storage medium, It is 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 model construction method according to any one of claims 1 to 6 are implemented.
10. A computer program product, It is 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 constructing a frame model according to any one of claims 1 to 6 are implemented.
