Contour reduction method and system, intelligent terminal and storage medium
By acquiring and adjusting the reference size and coordinate information of the lens, the problem of low grinding accuracy in glasses grinding is solved, and higher processing accuracy and accuracy are achieved.
Patent Information
- Application Number
- CN202410967709.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-18
- Publication Date
- 2024-11-08
AI Technical Summary
During the glasses grinding process, the accumulation of tool grinding errors lead to low grinding accuracy and limited room for improvement.
By obtaining the reference size data and coordinate system information of the lens, analyzing and determining the required contour coordinates, obtaining the first-time reduction parameter information, and adjusting it based on the reduced contour coordinate information and the required contour coordinate information until the accuracy requirements are met and the grinding accuracy is improved.
Improve the accuracy of eyeglass grinding, ensuring that each grinding is based on the latest contour coordinate information, reducing error accumulation, and improving machining accuracy and accuracy.
Smart Images

Figure CN118916936A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of eyeglass processing technology, and in particular to a contour reduction method, system, intelligent terminal and storage medium. Background Art
[0002] Eyeglass lens grinding is the process of processing a round blank into an eyeglass lens that matches the shape of the eyeglass frame.
[0003] In the related art, when performing eyeglass lens grinding processing, the size and shape data of the eyeglass frame need to be input into the processing system, and then the shape and size to be ground are calculated based on the shape and size data of the lens and the input size and shape data of the eyeglass frame, so as to control the tool to grind the lens according to the calculated shape and size data. After grinding, the lens is manually compared to see if it meets the frame type requirements of the eyeglass frame.
[0004] With respect to the above-mentioned related technologies, the shape and size of the tool during the first grinding are calculated based on the input size and shape data of the eyeglass frame and the size and shape data of the lens. However, during the subsequent grinding process, the tool is also calculated based on the previous grinding amount and the grinding amount determined for the first time. If the error in the previous grinding amount is large, the error in the next grinding will be larger, resulting in low precision in the grinding of the eyeglass lenses. There is still room for improvement. Summary of the invention
[0005] In order to improve the precision of lens grinding, the present application provides a contour reduction method, system, intelligent terminal and storage medium.
[0006] In a first aspect, the present application provides a method for reducing the outline, which adopts the following technical solution: A contour reduction method, comprising: Obtaining preset reference size data information of the lens; Analyze the reference dimension data and the preset coordinate system to determine the required contour coordinate information; Obtaining the first reduction parameter information of the lens; Analyzing the first reduction parameter information and the preset lens contour coordinate information to determine the reduction contour coordinate information; Determine whether the reduced contour coordinate information meets the requirements of the required contour coordinate information; If it meets the requirements, the outline reduction is stopped; If not, the reduced outline coordinate information and the required outline coordinate information are analyzed to determine the further reduction parameter information, and the reduced outline coordinate information is updated with the further reduction parameter information until the reduced outline coordinate information meets the requirements of the required outline coordinate information.
[0007] By adopting the above technical scheme, when the lens is initially reduced, the reduced contour coordinate information after the first reduction is determined based on the first reduction parameter information and the lens contour coordinate information. When it is determined that the reduced contour coordinate information does not meet the requirements of the required contour coordinate information, the reduced contour coordinate information and the required contour coordinate information are used to determine the reduction parameter information again, instead of reducing the lens contour only with the first reduction parameter information, thereby improving the accuracy of the lens grinding process.
[0008] Optionally, the step of obtaining the first reduction parameter information of the lens includes: Determine whether the reference size data information meets the requirements of the preset circular size data information; If not, the basic reduction parameter information is determined according to the preset comprehensive comparison method; If it is in compliance, the first comparison coordinate information is determined by analyzing the required profile coordinate information; Analyze the first comparison coordinate information and the lens profile coordinate information to determine the second comparison coordinate information; Performing calculation according to the first comparison coordinate information and the second comparison coordinate information to determine basic reduction parameter information; An analysis is performed based on the basic reduction parameter information to determine the first reduction parameter information.
[0009] By adopting the above technical solution, when it is determined that the reference size data information meets the requirements of the circular size data information, it indicates that the lens is equidistantly reduced. Therefore, all the basic reduction parameter information can be obtained by only determining the distance between the first comparison coordinate information and the second comparison coordinate information. When the reference size data information does not meet the requirements of the circular size data information, the basic reduction parameter information is determined by a comprehensive comparison method, so as to obtain the first reduction parameter information based on the basic reduction parameter information, thereby improving the convenience of obtaining the first reduction parameter information.
[0010] Optionally, the step of determining basic reduction parameter information according to a preset comprehensive comparison method includes: Analyze the required profile coordinate information to determine the comparison coordinate sequence information; Select the required contour coordinate information one by one according to the order corresponding to the comparison coordinate sequence information to generate actual comparison coordinate information; Analyze the actual comparison coordinate information and the lens outline coordinate information to determine the secondary basic reduction parameter information; The secondary base reduction parameter information is associated to generate base reduction parameter information.
[0011] By adopting the above technical solution, the required contour coordinate information is sorted to obtain the comparison coordinate sequence information, and then the required contour coordinate information is selected one by one according to the comparison coordinate sequence information to obtain the actual comparison coordinate information, and then the secondary basic reduction parameter information is determined according to the actual comparison coordinate information and the lens contour coordinate information, so as to determine the reduction parameters of all coordinate points, thereby improving the accuracy of determining the basic reduction parameter information.
[0012] Optionally, the step of analyzing the basic reduction parameter information to determine the first reduction parameter information includes: Determine whether the basic reduction parameter information meets the requirements of the preset maximum grinding amount information; If it is in compliance, the basic reduction parameter information is defined as the first reduction parameter information; If not, the basic reduction parameter information is corrected according to the maximum grinding amount information to generate the first reduction parameter information.
[0013] By adopting the above technical scheme, when the reduction distance of the basic reduction parameter information does not meet the requirements of the grinding distance corresponding to the maximum grinding amount information, it indicates that the actual maximum grinding distance cannot meet the reduction distance corresponding to the basic reduction parameter information. Therefore, the reduction distance corresponding to the basic reduction parameter information is corrected according to the maximum grinding amount information to obtain the first reduction parameter information, thereby improving the accuracy of the first reduction parameter information.
[0014] Optionally, the step of analyzing the first reduction parameter information and the preset lens contour coordinate information to determine the reduced contour coordinate information includes: Analyze the lens outline coordinate information to determine outline reduction sequence information; Selecting lens profile coordinate information one by one according to the order corresponding to the reduced profile sequence information to generate actual reduced profile coordinate information and related profile coordinate information; Analyze the actual reduced contour coordinate information, the related contour coordinate information and the first reduced contour parameter information to determine the basic reduced contour coordinate information; Analyze the actual reduced profile coordinate information, the lens profile coordinate information and the basic reduced profile coordinate information to determine the reduced profile coordinate information; The reduced outline coordinate information is associated to generate the reduced outline coordinate information.
[0015] By adopting the above technical scheme, the actual reduced contour coordinate information and the related contour coordinate information are selected one by one according to the reduced contour sequence information, so as to determine the basic reduced contour coordinate information according to the actual reduced contour coordinate information, the related contour coordinate information and the first reduction parameter information, and then determine whether the basic reduced contour coordinate information is the reduced contour coordinate information according to the actual reduced contour coordinate information and the lens contour coordinate information, thereby improving the accuracy of the reduced contour coordinate information.
[0016] Optionally, the step of analyzing the actual reduced contour coordinate information, the related contour coordinate information and the first reduced contour parameter information to determine the basic reduced contour coordinate information includes: Analyze the actual reduced contour coordinate information and the related contour coordinate information to determine the reduced direction angle information; Analyze the actual reduced contour coordinate information and the first reduced parameter information to determine the actual reduced parameter information; Analyze the actual reduction parameter information and the reduction direction angle information to determine the horizontal coordinate correction value information and the vertical coordinate correction value information; The actual reduced outline coordinate information is corrected according to the abscissa correction value information and the ordinate correction value information to determine the basic reduced outline coordinate information.
[0017] By adopting the above technical scheme, the reduction direction angle information is determined according to the actual reduction contour coordinate information and the related contour coordinate information, so as to calculate the horizontal coordinate correction information and the vertical coordinate correction value information according to the actual reduction parameter information and the reduction direction angle information, and the basic reduction contour coordinate information is obtained after correcting the actual reduction contour coordinate information according to the horizontal coordinate correction value information and the vertical coordinate correction value information, thereby improving the accuracy of the basic reduction contour coordinate information.
[0018] Optionally, the step of analyzing the actual reduced outline coordinate information, the lens outline coordinate information and the basic reduced outline coordinate information to determine the reduced outline coordinate information includes: Constructing influence circle information according to basic reduced contour coordinate information and actual reduced parameter information; Analyze the actual reduced contour coordinate information, the lens contour coordinate information and the preset influenced coordinate quantity information to determine the influenced contour coordinate information; Determine whether the impact contour coordinate information meets the requirements of the impact circle information; If it does not match, the basic reduced contour coordinate information is deleted; If it does, the basic reduced outline coordinate information is defined as the reduced outline coordinate information.
[0019] By adopting the above technical solution, the influence circle information is constructed with the baseline reduced contour coordinate information as the center and the actual reduction parameter information as the radius. When it is determined that the influence contour coordinate information meets the requirements of the influence circle information, it means that the baseline reduced contour coordinate information is a valid reduction point. Therefore, the basic reduced contour coordinate information is determined to be the reduced contour coordinate information, thereby improving the accuracy of the reduced contour coordinate information.
[0020] In a second aspect, the present application provides a contour reduction system, which adopts the following technical solution: A profile reduction system comprising: An acquisition module, used to acquire reference size data information and first reduction parameter information; A memory for storing a program of a contour reduction method as described in any one of the above items; The program in the memory can be loaded and executed by the processor to implement a contour reduction method as described in any one of the above items.
[0021] By adopting the above technical solution, the processor loads and executes a program of a contour reduction method stored in the memory, so that the acquisition module obtains a series of data related to contour reduction, and determines the parameters for the next reduction according to the contour after each reduction, instead of always reducing with the reduction parameters determined for the first time, thereby improving the accuracy of lens grinding.
[0022] In a third aspect, the present application provides a smart terminal, which adopts the following technical solution: An intelligent terminal comprises a memory and a processor, wherein the memory stores a computer program which can be loaded by the processor and executes a contour reduction method as described in any one of the above items.
[0023] By adopting the above technical solution and operating the intelligent terminal, the processor is made to load and execute a program of a contour reduction method stored in the memory, so that the parameters for the next reduction are determined according to the contour after each reduction, instead of always reducing the image with the reduction parameters determined for the first time, thereby improving the accuracy of the lens grinding process.
[0024] In a fourth aspect, the present application provides a computer storage medium capable of storing a corresponding program, which is convenient for improving the precision of lens grinding, and adopts the following technical solution: A computer-readable storage medium stores a computer program that can be loaded by a processor and execute any of the above-mentioned contour reduction methods.
[0025] By adopting the above technical solution, a computer program of a contour reduction method is stored in a computer-readable storage medium, so that a processor loads and executes the computer program stored in the storage medium, thereby determining the parameters for the next reduction according to the contour after each reduction, rather than always reducing with the reduction parameters determined for the first time, thereby improving the accuracy of the lens grinding process.
[0026] In summary, the present application includes at least one of the following beneficial technical effects: 1. When the lens is first reduced, the reduced contour coordinate information after the first reduction is determined according to the first reduction parameter information and the lens contour coordinate information. When it is determined that the reduced contour coordinate information does not meet the requirements of the required contour coordinate information, the reduced contour coordinate information and the required contour coordinate information are used to determine the reduced contour parameter information again, instead of reducing the lens contour only according to the first reduction parameter information, thereby improving the precision of the eyeglass lens grinding process; 2. When it is determined that the reference size data information meets the requirements of the circular size data information, it indicates that the lens is equidistantly reduced, so all the basic reduction parameter information can be obtained by only determining the distance between the first comparison coordinate information and the second comparison coordinate information. When the reference size data information does not meet the requirements of the circular size data information, the basic reduction parameter information is determined by a comprehensive comparison method, so as to obtain the first reduction parameter information according to the basic reduction parameter information, thereby improving the convenience of obtaining the first reduction parameter information; 3. By constructing the influence circle information with the baseline reduced contour coordinate information as the center and the actual reduction parameter information as the radius, it is determined that when the influence contour coordinate information meets the requirements of the influence circle information, it means that the baseline reduced contour coordinate information is a valid reduction point. Therefore, the basic reduced contour coordinate information is determined as the reduced contour coordinate information, thereby improving the accuracy of the reduced contour coordinate information. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] Figure 1 It is a flow chart of a contour reduction method in an embodiment of the present application.
[0028] Figure 2 It is a flow chart of the steps of obtaining the first reduction parameter information of the lens in an embodiment of the present application.
[0029] Figure 3 It is a flowchart of the steps of determining basic reduction parameter information according to a preset comprehensive comparison method in an embodiment of the present application.
[0030] Figure 4 It is a flowchart of the steps of analyzing the basic reduction parameter information to determine the first reduction parameter information in an embodiment of the present application.
[0031] Figure 5It is a flowchart of the steps of analyzing the first reduction parameter information and the preset lens contour coordinate information to determine the reduction contour coordinate information in the embodiment of the present application.
[0032] Figure 6 It is a flowchart of the steps of analyzing the actual reduced contour coordinate information, the related contour coordinate information and the first reduced contour parameter information in an embodiment of the present application to determine the basic reduced contour coordinate information.
[0033] Figure 7 It is a flowchart of the steps of analyzing the actual reduced contour coordinate information, the lens contour coordinate information and the basic reduced contour coordinate information in an embodiment of the present application to determine the reduced contour coordinate information.
[0034] Figure 8 It is a simple schematic diagram of the lens in the embodiment of the present application.
[0035] Fig. 9 It is a simple schematic diagram for determining basic reduced contour coordinate information in an embodiment of the present application. DETAILED DESCRIPTION
[0036] In order to make the purpose, technical solutions and advantages of this application more clear, the following Figure 1-Figure 9 It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0037] The present application discloses a method for reducing the outline of a lens and a processing terminal. After receiving the reference size data information of the lens, the processing terminal maps the reference size data information into a coordinate system to form required outline coordinate information, and obtains the first reduction parameter information, thereby determining the reduced outline coordinate information based on the first reduction parameter information and the lens outline coordinate information. When the reduced outline coordinate information does not meet the requirements of the required outline coordinate information, it indicates that the outline of the lens has not yet been reduced to the required shape size data. Therefore, the reduced outline coordinate information and the required outline coordinate information are used to determine the second reduction parameter information, thereby determining the parameters for the second reduction based on the actually reduced outline, rather than always reducing the outline based on the parameters determined for the first time, thereby improving the accuracy of the lens outline reduction.
[0038] Reference Figure 1 , the embodiment of the present application discloses a contour reduction method, comprising the following steps: Step S100: Obtaining preset reference size data information of the lens.
[0039] The lens refers to the original lens waiting for grinding, which is usually a regular circle. The reference size data information refers to the final size and shape data that the lens needs to be ground into, which is input into the processing terminal by the operator.
[0040] Step S101: Analyze the reference dimension data information and the preset coordinate system to determine the required contour coordinate information.
[0041] The coordinate system refers to a plane rectangular coordinate system established with the center of the lens as the origin. The required contour coordinate information refers to the coordinates of the contour of the lens requiring dimension data in the coordinate system. The processing terminal establishes a simulated lens according to the dimension data corresponding to the reference dimension data information, and maps the simulated lens in the coordinate system, thereby obtaining the coordinates of the simulated lens contour.
[0042] Step S102: obtaining the first reduction parameter information of the lens.
[0043] The first reduction parameter information refers to the distance that needs to be ground for the first time when the lens is ground from the original shape to the required size and shape data. For specific acquisition methods, refer to Figure 2 steps.
[0044] Step S103: analyzing the first reduction parameter information and the preset lens outline coordinate information to determine the reduced outline coordinate information.
[0045] The lens contour coordinate information refers to the coordinates of the original lens contour in the coordinate system, which is input in advance by the operator and stored in the processing terminal. Figure 8 , the lens contour is composed of continuous and dense coordinate points in a counterclockwise direction. The reduced contour coordinate information refers to the coordinates of the contour of the lens in the coordinate system after the original contour is reduced for the first time. The processing terminal determines the contour coordinates corresponding to the first reduction parameter information, and then determines the coordinates in the coordinates corresponding to the lens contour coordinate information that are the same as the contour coordinates. Then, the same coordinates are corrected according to the distance corresponding to the first reduction parameter information to obtain the reduced contour coordinate information. The specific method is referred to Figure 5 steps.
[0046] Step S104: Determine whether the reduced outline coordinate information meets the requirements of the required outline coordinate information.
[0047] The requirement of the required contour coordinate information refers to being located in the coordinates corresponding to the required contour coordinate information. The processing terminal determines whether the coordinates corresponding to the reduced contour coordinate information are located in the coordinates corresponding to the required contour coordinate information, thereby determining whether the contour of the lens is ground to the required shape and size data after the lens is ground for the first time.
[0048] Step S1041: If it meets the requirements, then stop reducing the outline.
[0049] If the processing terminal determines that the coordinates corresponding to the reduced contour coordinate information are located within the coordinates corresponding to the required contour coordinate information, it indicates that the contour of the lens is ground to the required shape and size data after the first grinding process on the lens, and therefore contour reduction is stopped.
[0050] Step S1042: If not, analyze the reduced outline coordinate information and the required outline coordinate information to determine the re-reduction parameter information, and update the reduced outline coordinate information with the re-reduction parameter information until the reduced outline coordinate information meets the requirements of the required outline coordinate information.
[0051] Among them, if the processing terminal determines that the coordinates corresponding to the reduced contour coordinate information are not located in the coordinates corresponding to the required contour coordinate information, it means that the contour of the lens has not been polished to the required shape and size data after the first grinding of the lens, and the lens needs to be further polished. Therefore, the reduction parameter information is determined again according to the reduced contour coordinate information and the required contour coordinate information, so as to update the reduced contour coordinate information with the reduced contour coordinate information again. The principle is the same as that of determining the reduced contour coordinate information with the first reduction parameter information, and will not be repeated here until the reduced contour coordinate information is located in the coordinates corresponding to the required contour coordinate information.
[0052] The second reduction parameter information refers to the distance required to be ground at different contour positions when the lens is subsequently ground to the required size and shape data. It is determined by the processing terminal after analyzing the reduced contour coordinate information and the required contour coordinate information. The principle is the same as that of obtaining the first reduction parameter information, so it will not be repeated here.
[0053] Reference Figure 2 , the step of obtaining the first reduction parameter information of the lens includes: Step S200: determining whether the reference size data information meets the requirements of the preset circular size data information.
[0054] The circular dimension data information refers to the dimension data type constituting the circular contour, which is stored in the processing terminal by the operator. The requirement of the circular dimension data information refers to the consistency of the data type corresponding to the circular dimension data information.
[0055] The processing terminal determines whether the size data type corresponding to the reference size data information is consistent with the size data type corresponding to the circular size data information, thereby determining whether the final required lens contour is circular.
[0056] Step S201: If not, determine basic reduction parameter information according to a preset comprehensive comparison method.
[0057] If the processing terminal determines that the size data type corresponding to the reference size data information is inconsistent with the size data type corresponding to the circular size data information, it indicates that the final required lens contour is not circular, so the basic reduction parameter information is determined according to the comprehensive comparison method.
[0058] The comprehensive comparison method is a method of obtaining the reduction parameters by comparing the lens contour coordinate information with the required contour coordinate information one by one, which is stored in the processing terminal by the operator. The basic reduction parameter information refers to the size data of the lens contour coordinate reduction, which is determined by the processing terminal according to the comprehensive comparison method. For specific methods, refer to Figure 3 steps.
[0059] Step S202: If it is in compliance, then analyze according to the required profile coordinate information to determine the first comparison coordinate information.
[0060] Among them, if the processing terminal determines that the size data type corresponding to the reference size data information is consistent with the size data type corresponding to the circular size data information, it indicates that the final required lens contour is circular, so the lens is equidistantly reduced, so only the reduction distance of one contour coordinate is determined, and the reduction distances of the remaining coordinates can be obtained. Therefore, the first comparison coordinate information is determined according to the required contour coordinate information, providing data support for the subsequent determination of the basic reduction parameter information.
[0061] The first comparison coordinate information refers to the coordinates in the demand profile coordinates used to determine the equidistant reduction distance, which are randomly selected by the processing terminal from the demand profile coordinate information, and are preferably coordinates on the horizontal and vertical axes.
[0062] Step S2021: Analyze the first comparison coordinate information and the lens outline coordinate information to determine the second comparison coordinate information.
[0063] The second comparison coordinate information refers to the coordinates in the lens contour coordinate information that are converted into the first comparison coordinate information after contour reduction, and the processing terminal determines the coordinates corresponding to the first comparison coordinate information to be obtained by extending the coordinates of the intersection of the lens contour coordinate information and the origin.
[0064] Step S2022: performing calculation according to the first comparison coordinate information and the second comparison coordinate information to determine basic reduction parameter information.
[0065] Among them, the basic reduction parameter information in this step is consistent with the basic reduction parameter information in step S201. The processing terminal calculates the distance between the two coordinates according to the coordinates corresponding to the first comparison coordinate information and the second comparison coordinate information, thereby obtaining the reduction distance, and then the reduction distance is associated with all the lens contour coordinate information to obtain the basic reduction parameter information.
[0066] Step S203: Analyze the basic reduction parameter information to determine the first reduction parameter information.
[0067] Among them, after the processing terminal obtains the basic reduction parameter information, it corrects and associates the basic reduction parameter information to obtain the first reduction parameter information. The specific method is referred to Figure 4 steps.
[0068] Reference Figure 3 The steps of determining the basic reduction parameter information according to the preset comprehensive comparison method include: Step S300: Analyze the required profile coordinate information to determine the comparison coordinate sequence information.
[0069] The comparison coordinate sequence information refers to the coordinate sequence compared with the lens contour coordinates, which is randomly determined by the processing terminal according to the coordinates corresponding to the required contour coordinate information.
[0070] Step S301: selecting required profile coordinate information one by one according to the order corresponding to the comparison coordinate sequence information to generate actual comparison coordinate information.
[0071] The actual comparison coordinate information refers to the coordinates currently compared with the lens outline coordinates to determine the reduced distance, which is selected by the processing terminal according to the first comparison coordinate information and the second comparison coordinate information.
[0072] Step S302: Analyze the actual comparison coordinate information and the lens outline coordinate information to determine the secondary basic reduction parameter information.
[0073] Among them, the secondary basic reduction parameter information refers to the distance that a single lens contour needs to be reduced. The processing terminal determines the coordinates of the intersection of the coordinates corresponding to the actual comparison coordinate information and the lens contour coordinate information after extending from the origin, calculates the distance between the intersection coordinates and the coordinates corresponding to the actual comparison coordinate information, and associates the distance with the intersection coordinates to obtain the secondary basic reduction parameter information.
[0074] Step S303: Associating the secondary basic reduction parameter information to generate basic reduction parameter information.
[0075] After obtaining all the secondary basic reduction parameter information, the processing terminal associates all the secondary basic reduction parameter information to obtain the basic reduction parameter information of the entire lens profile.
[0076] Reference Figure 4 , the steps of analyzing the basic reduction parameter information to determine the first reduction parameter information include: Step S400: Determine whether the basic reduction parameter information meets the requirements of the preset maximum grinding amount information.
[0077] The maximum grinding amount information refers to the maximum distance of a single grinding, which is stored in the processing terminal by the operator. The requirement of the maximum grinding amount information is that the grinding distance corresponding to the maximum grinding amount information should not be exceeded.
[0078] The processing terminal determines whether the distance corresponding to the basic reduction parameter information does not exceed the grinding distance corresponding to the maximum grinding amount information, thereby determining whether the reduction distance corresponding to the basic reduction parameter information during actual grinding is reasonable.
[0079] Step S401: If it is in compliance, the basic reduction parameter information is defined as the first reduction parameter information.
[0080] Among them, if the processing terminal determines that the distance corresponding to the basic reduction parameter information does not exceed the grinding distance corresponding to the maximum grinding amount information, it means that grinding can be performed with the reduction distance corresponding to the basic reduction parameter information, so the basic reduction parameter information is defined as the first reduction parameter information.
[0081] Step S402: If not, the basic reduction parameter information is modified according to the maximum grinding amount information to generate the first reduction parameter information.
[0082] Among them, if the processing terminal determines that the distance corresponding to the basic reduction parameter information exceeds the grinding distance corresponding to the maximum grinding amount information, it means that the actual grinding distance does not reach the reduction distance corresponding to the basic reduction parameter information. Therefore, the reduction distance in the basic reduction parameter information is replaced according to the grinding distance corresponding to the maximum grinding amount information to obtain the first reduction parameter information.
[0083] Reference Figure 5 The step of analyzing the first reduction parameter information and the preset lens contour coordinate information to determine the reduction contour coordinate information includes: Step S500: Analyze the lens outline coordinate information to determine outline reduction sequence information.
[0084] The reduction order information refers to the order in which the coordinates corresponding to the lens contour coordinate information are reduced. Figure 8 The processing terminal randomly selects one of the coordinates corresponding to the lens profile coordinate information as P1, and then determines the remaining P2, P3, etc. in a counterclockwise order.
[0085] Step S501: selecting lens outline coordinate information one by one according to the order corresponding to the reduced outline sequence information to generate actual reduced outline coordinate information and related outline coordinate information.
[0086] The actual reduced outline coordinate information refers to the actual lens outline coordinates to be reduced. Fig. 9, the processing terminal selects the lens contour coordinate information in the order corresponding to the contour reduction sequence information, first the coordinate P1, then the coordinate P2, etc. The related contour coordinate information refers to the coordinate used to assist the actual contour reduction coordinate information in calculating the reduced contour. The processing terminal selects the next coordinate corresponding to the coordinate of the actual contour reduction coordinate information in the order corresponding to the contour reduction sequence information as the related contour coordinate information. Fig. 9 , the actual reduced contour coordinate information is P1, and the related contour coordinate information is P2.
[0087] Step S502: Analyze the actual reduced outline coordinate information, the related outline coordinate information and the first reduced outline parameter information to determine the basic reduced outline coordinate information.
[0088] The basic reduced contour coordinate information refers to the contour coordinates after the actual reduced contour coordinate information is reduced, which is determined by the processing terminal after analyzing and calculating the actual reduced contour coordinate information, the related contour coordinate information and the first reduction parameter information. The specific method is referred to Figure 6 steps.
[0089] Step S503: Analyze the actual reduced outline coordinate information, the lens outline coordinate information and the basic reduced outline coordinate information to determine the reduced outline coordinate information.
[0090] The reduced contour coordinate information refers to the valid contour coordinates in the basic reduced contour coordinate information, which is determined by the processing terminal after analyzing and calculating the actual reduced contour coordinate information, the lens contour coordinate information and the basic reduced contour coordinate information. The specific method is referred to Figure 7 steps.
[0091] Step S504: Associating the reduced outline coordinate information to generate reduced outline coordinate information.
[0092] The reduced contour coordinate information in this step is consistent with the reduced contour coordinate information in step S103, and the processing terminal associates the coordinates corresponding to all the reduced contour coordinate information to form a complete contour coordinate.
[0093] Reference Figure 6 The steps of analyzing the actual reduced contour coordinate information, the related contour coordinate information and the first reduced parameter information to determine the basic reduced contour coordinate information include: Step S600: Analyze the actual reduced contour coordinate information and the related contour coordinate information to determine the reduced direction angle information.
[0094] The reduction direction angle information refers to the angle of the actual reduction direction of the contour coordinate information. Fig. 9The processing terminal calculates the tangent function value of the angle θ according to the coordinates corresponding to the actual reduced contour coordinate information and the coordinates corresponding to the related contour coordinate information, namely P1 and P2, and then obtains the inverse function to obtain the angle θ, and then calculates the sum of the angle θ and the right angle to obtain the reduced direction angle information.
[0095] Step S601: Analyze the actual reduced outline coordinate information and the first reduced parameter information to determine the actual reduced parameter information.
[0096] Among them, the actual reduction parameter information refers to the specific distance that the actual reduced contour coordinate information needs to be reduced. The processing terminal selects the coordinates corresponding to the first reduction parameter information that are the same as the coordinates corresponding to the actual reduced contour coordinate information, and then calls the reduction distance corresponding to the same coordinates to obtain the actual reduction parameter information.
[0097] Step S602: Analyze the actual reduction parameter information and the reduction direction angle information to determine the horizontal coordinate correction value information and the vertical coordinate correction value information.
[0098] The horizontal coordinate correction value information refers to the distance that the actual reduced contour coordinate is reduced in the horizontal coordinate direction, which is obtained by calculating the cosine value of the angle corresponding to the reduction direction angle information by the processing terminal, and then calculating the product of the cosine value and the reduction distance corresponding to the actual reduction parameter information. The vertical coordinate correction value information refers to the distance that the actual reduced contour coordinate is reduced in the vertical coordinate direction, which is obtained by calculating the sine value of the angle corresponding to the reduction direction angle information by the processing terminal, and then calculating the product of the sine value and the reduction distance corresponding to the actual reduction parameter information.
[0099] Step S603: Correct the actual reduced outline coordinate information according to the horizontal coordinate correction value information and the vertical coordinate correction value information to determine the basic reduced outline coordinate information.
[0100] Among them, the basic reduced contour coordinate information in this step is consistent with the basic reduced contour coordinate information in step S502, and is obtained by the processing terminal calculating the sum between the horizontal coordinate corresponding to the actual reduced contour coordinate information and the horizontal coordinate correction value information, and the sum between the vertical coordinate corresponding to the actual reduced contour coordinate information and the vertical coordinate correction value information.
[0101] Reference Figure 7 The step of analyzing the actual reduced contour coordinate information, the lens contour coordinate information and the basic reduced contour coordinate information to determine the reduced contour coordinate information includes: Step S700: constructing influence circle information according to basic reduced contour coordinate information and actual reduced parameter information.
[0102] Among them, the influencing circle information refers to the range for verifying whether the basic reduced contour coordinate information is an invalid indentation point, which is obtained by constructing a circular area with the coordinate point corresponding to the basic reduced contour coordinate information as the center O1 and the reduced distance corresponding to the actual reduced parameter information as the radius by the processing terminal.
[0103] Step S701: analyzing the actual reduced contour coordinate information, the lens contour coordinate information and the preset influenced coordinate quantity information to determine the influenced contour coordinate information.
[0104] The information on the number of affected coordinates refers to the number of coordinates for detecting whether the left and right sides of the actual reduced contour coordinate information are located within the circle of influence, and the specific number is determined by the operator. The information on the affected contour coordinates refers to the contour coordinates that affect whether the coordinates corresponding to the basic reduced contour coordinate information are valid, and the processing terminal takes the coordinates corresponding to the actual reduced contour coordinate information as the center point, and then searches for the coordinates corresponding to the lens contour coordinate information with the number corresponding to the information on the number of affected coordinates.
[0105] Step S702: Determine whether the impact contour coordinate information meets the requirements of the impact circle information.
[0106] The requirement of the influence circle information is that none of them is within the range corresponding to the influence circle information. The processing terminal determines whether the coordinates corresponding to the influence contour coordinate information are not within the range corresponding to the influence circle information, thereby determining whether the coordinates corresponding to the basic reduced contour coordinate information are invalid indentation points.
[0107] Step S7021: If not, delete the basic reduced outline coordinate information.
[0108] If the processing terminal determines that the coordinates corresponding to the influencing contour coordinate information are within the range corresponding to the influencing circle information, it indicates that the coordinates corresponding to the basic reduced contour coordinate information are invalid indentation points, and thus the basic reduced contour coordinate information is deleted.
[0109] Step S7022: If it is in compliance, the basic reduced outline coordinate information is defined as the reduced outline coordinate information.
[0110] Among them, if the processing terminal determines that the coordinates corresponding to the influencing contour coordinate information are not within the range corresponding to the influencing circle information, it indicates that the coordinates corresponding to the basic reduced contour coordinate information are valid indentation points, so the basic reduced contour coordinate information is defined as reduced contour coordinate information.
[0111] Based on the same inventive concept, an embodiment of the present invention provides a contour reduction system, including: An acquisition module, used to acquire reference size data information and first reduction parameter information; A memory for storing a program of a contour reduction method; The program in the memory can be loaded and executed by the processor and implements a contour reduction method.
[0112] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. The specific working process of the system, device and unit described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
[0113] An embodiment of the present invention provides a computer-readable storage medium storing a computer program that can be loaded by a processor and execute a contour reduction method.
[0114] Computer storage media include, for example, various media that can store program codes, such as USB flash drives, mobile hard disks, read-only memories (ROM), random access memories (RAM), magnetic disks or optical disks.
[0115] Based on the same inventive concept, an embodiment of the present invention provides an intelligent terminal, including a memory and a processor, wherein the memory stores a computer program that can be loaded by the processor and executes a contour reduction method.
[0116] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. The specific working process of the system, device and unit described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
[0117] The above are all preferred embodiments of the present application, and are not intended to limit the protection scope of the present application. Any feature disclosed in this specification (including the abstract and drawings), unless otherwise stated, can be replaced by other equivalent or alternative features with similar purposes. That is, unless otherwise stated, each feature is only an example of a series of equivalent or similar features.
Claims
1. A method for reducing the outline, It is characterized in that include: Obtaining preset reference size data information of the lens; Analyze the reference dimension data and the preset coordinate system to determine the required contour coordinate information; Obtaining the first reduction parameter information of the lens; Analyzing the first reduction parameter information and the preset lens contour coordinate information to determine the reduction contour coordinate information; Determine whether the reduced contour coordinate information meets the requirements of the required contour coordinate information; If it meets the requirements, the outline reduction is stopped; If not, the reduced outline coordinate information and the required outline coordinate information are analyzed to determine the further reduction parameter information, and the reduced outline coordinate information is updated with the further reduction parameter information until the reduced outline coordinate information meets the requirements of the required outline coordinate information.
2. A method for reducing the outline according to claim 1, It is characterized in that The steps of obtaining the first reduction parameter information of the lens include: Determine whether the reference size data information meets the requirements of the preset circular size data information; If not, the basic reduction parameter information is determined according to the preset comprehensive comparison method; If it is in compliance, the first comparison coordinate information is determined by analyzing the required profile coordinate information; Analyze the first comparison coordinate information and the lens profile coordinate information to determine the second comparison coordinate information; Performing calculation according to the first comparison coordinate information and the second comparison coordinate information to determine basic reduction parameter information; An analysis is performed based on the basic reduction parameter information to determine the first reduction parameter information.
3. A method for reducing the outline according to claim 2, It is characterized in that The steps of determining basic reduction parameter information according to the preset comprehensive comparison method include: Analyze the required profile coordinate information to determine the comparison coordinate sequence information; Select the required contour coordinate information one by one according to the order corresponding to the comparison coordinate sequence information to generate actual comparison coordinate information; Analyze the actual comparison coordinate information and the lens outline coordinate information to determine the secondary basic reduction parameter information; The secondary base reduction parameter information is associated to generate base reduction parameter information.
4. A contour reduction method according to claim 2, It is characterized in that The steps of analyzing the basic reduction parameter information to determine the first reduction parameter information include: Determine whether the basic reduction parameter information meets the requirements of the preset maximum grinding amount information; If it is in compliance, the basic reduction parameter information is defined as the first reduction parameter information; If not, the basic reduction parameter information is corrected according to the maximum grinding amount information to generate the first reduction parameter information.
5. A method for reducing the outline according to claim 1, It is characterized in that The step of analyzing the first reduction parameter information and the preset lens contour coordinate information to determine the reduction contour coordinate information includes: Analyze the lens outline coordinate information to determine outline reduction sequence information; Selecting lens profile coordinate information one by one according to the order corresponding to the reduced profile sequence information to generate actual reduced profile coordinate information and related profile coordinate information; Analyze the actual reduced contour coordinate information, the related contour coordinate information and the first reduced contour parameter information to determine the basic reduced contour coordinate information; Analyze the actual reduced profile coordinate information, the lens profile coordinate information and the basic reduced profile coordinate information to determine the reduced profile coordinate information; The reduced outline coordinate information is associated to generate the reduced outline coordinate information.
6. A method for reducing the outline according to claim 5, It is characterized in that The step of analyzing the actual reduced contour coordinate information, the related contour coordinate information and the first reduced parameter information to determine the basic reduced contour coordinate information includes: Analyze the actual reduced contour coordinate information and the related contour coordinate information to determine the reduced direction angle information; Analyze the actual reduced contour coordinate information and the first reduced parameter information to determine the actual reduced parameter information; Analyze the actual reduction parameter information and the reduction direction angle information to determine the horizontal coordinate correction value information and the vertical coordinate correction value information; The actual reduced outline coordinate information is corrected according to the abscissa correction value information and the ordinate correction value information to determine the basic reduced outline coordinate information.
7. A method for reducing the outline according to claim 6, It is characterized in that The step of analyzing the actual reduced profile coordinate information, the lens profile coordinate information and the basic reduced profile coordinate information to determine the reduced profile coordinate information comprises: Constructing influence circle information according to basic reduced contour coordinate information and actual reduced parameter information; Analyze the actual reduced contour coordinate information, the lens contour coordinate information and the preset influenced coordinate quantity information to determine the influenced contour coordinate information; Determine whether the impact contour coordinate information meets the requirements of the impact circle information; If it does not match, the basic reduced contour coordinate information is deleted; If it does, the basic reduced outline coordinate information is defined as the reduced outline coordinate information.
8. A profile reduction system, It is characterized in that include: An acquisition module, used to acquire reference size data information and first reduction parameter information; A memory for storing a program of a contour reduction method according to any one of claims 1 to 7; The program in the memory can be loaded and executed by the processor to implement a contour reduction method as claimed in any one of claims 1 to 7.
9. A smart terminal, It is characterized in that The invention comprises a memory and a processor, wherein the memory stores a computer program which can be loaded by the processor and executes a contour reduction method as claimed in any one of claims 1 to 7.
10. A computer-readable storage medium, It is characterized in that A computer program is stored which can be loaded by a processor and executes a contour reduction method according to any one of claims 1 to 7.
