A method and system for scope lens polishing control
By combining control parameter information with image monitoring modules, lens grinding control is achieved, solving the problem of low compatibility with different materials and improving the precision and quality of lens grinding.
Patent Information
- Application Number
- CN202411966509.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-30
- Publication Date
- 2025-11-18
- Estimated Expiration
- 2044-12-30
AI Technical Summary
The performance differences of different lens materials in the existing technology are large, resulting in low adaptability of grinding control parameters, which affects the grinding accuracy and quality of the lenses.
By connecting to the control module to obtain control parameter information, connecting the path position, and combining with the image monitoring module to identify and locate the grinding target, the grinding execution trajectory is determined. By obtaining deviation information through trajectory fitting and comparison, the grinding effect is evaluated and parameters are optimized to achieve adaptive control.
It improves the precision and quality of lens polishing, and ensures the stability and consistency of the optical performance of the lens surface through adaptive optimization of control parameters.
Smart Images

Figure CN120056001B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of lens processing technology, and specifically to a lens grinding control method and system for aiming scopes. Background Technology
[0002] As a precision optical instrument, the lens grinding control technology is crucial to ensuring the performance of a sight. With technological advancements, modern sights demand increasingly higher quality lenses, requiring high precision and stability in optical performance. While modern lens grinding control technology has become increasingly digital, intelligent, and automated, significantly improving grinding accuracy and efficiency, the substantial differences in hardness, toughness, and thermal conductivity among different lens materials result in low adaptability of existing fixed grinding parameters, impacting the precision and quality of lens grinding. Summary of the Invention
[0003] This application provides a lens grinding control method and system for aiming scopes, which solves the technical problem in the prior art that the large differences in the properties of different lens materials lead to low adaptability of grinding control parameters, affecting the precision and quality of lens grinding.
[0004] The first aspect of this application provides a lens polishing control method for a sight, the method comprising: connecting a control module to acquire control parameter information, including control flow nodes, polishing control position, polishing speed, polishing force, polishing angle, and polishing target parameters; connecting path positions according to the control flow nodes and the polishing control position in accordance with the execution sequence relationship to obtain a preset polishing trajectory; connecting an image monitoring module to acquire a polishing monitoring image, performing polishing target recognition, determining the center for polishing position positioning based on the polishing target recognition result, and determining the polishing execution trajectory; fitting and comparing the polishing execution trajectory with the preset polishing trajectory to obtain trajectory deviation information; evaluating the polishing effect based on the trajectory deviation information, combined with the polishing speed, polishing force, and polishing angle, to obtain a polishing evaluation effect; comparing the polishing target parameters and the polishing evaluation effect to obtain polishing deviation information; optimizing the configuration of the polishing speed, polishing force, and polishing angle based on the polishing deviation information to obtain adjustment parameters, and adjusting and controlling the control parameter information based on the adjustment parameters.
[0005] A second aspect of this application provides a lens grinding control system for a sight, the system comprising: a control parameter information acquisition module, which is connected to a control module to acquire control parameter information, including control flow nodes, grinding control positions, grinding speed, grinding force, grinding angle, and grinding target parameters; a grinding preset trajectory acquisition module, which connects path positions according to the control flow nodes and the grinding control positions in a sequential order to obtain a grinding preset trajectory; and a grinding execution trajectory determination module, which is connected to an image monitoring module to acquire grinding monitoring images, perform grinding target recognition, determine the grinding position based on the grinding target recognition result, and determine the grinding execution trajectory. The system comprises: a trajectory fitting and comparison module, used to fit and compare the grinding execution trajectory with the preset grinding trajectory to obtain trajectory deviation information; a grinding effect evaluation module, used to evaluate the grinding effect based on the trajectory deviation information, combined with the grinding speed, grinding force, and grinding angle, to obtain a grinding evaluation effect; a grinding deviation information acquisition module, used to compare the grinding target parameters and the grinding evaluation effect to obtain grinding deviation information; and a grinding adjustment control module, used to optimize the configuration of the grinding speed, grinding force, and grinding angle based on the grinding deviation information to obtain adjustment parameters, and to adjust and control the control parameter information based on the adjustment parameters.
[0006] One or more technical solutions provided in this application have at least the following technical effects or advantages:
[0007] This application provides a lens polishing control method for sights, relating to the field of lens processing technology. By controlling process nodes and polishing control positions, a path position connection is established to obtain a preset polishing trajectory. Polishing monitoring images are used to identify the polishing target and locate the polishing position, determining the polishing execution trajectory. Then, through polishing trajectory fitting and comparison, trajectory deviation information is obtained, polishing effect is evaluated and compared, and polishing deviation information is generated. Control parameters are adjusted and controlled accordingly. This solves the technical problem in existing technologies where the performance differences of different lens materials are large, leading to low adaptability of polishing control parameters and affecting lens polishing accuracy and quality. It achieves the technical effect of improving lens polishing accuracy and quality through adaptive optimization of polishing control parameters. Attached Figure Description
[0008] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0009] Figure 1 A schematic flowchart of a lens polishing control method for a sight provided in an embodiment of this application;
[0010] Figure 2 A schematic flowchart illustrating the determination of the grinding execution trajectory in a lens grinding control method for a sight provided in an embodiment of this application;
[0011] Figure 3 This is a schematic diagram of a lens polishing control system for a sight provided in an embodiment of this application.
[0012] Explanation of reference numerals in the attached figures: 11. Control parameter information acquisition module; 12. Grinding preset trajectory acquisition module; 13. Grinding execution trajectory determination module; 14. Trajectory fitting and comparison module; 15. Grinding effect evaluation module; 16. Grinding deviation information acquisition module; 17. Grinding adjustment control module. Detailed Implementation
[0013] This application provides a lens grinding control method for a sight, which solves the technical problem in the prior art where the performance of different lens materials varies greatly, resulting in low adaptability of grinding control parameters and affecting the precision and quality of lens grinding.
[0014] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of them. All other embodiments obtained by those skilled in the art based on the embodiments of this application without creative effort are within the scope of protection of this application.
[0015] It should be noted that the terms "first," "second," etc., in the specification and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or server that includes a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or modules not explicitly listed or inherent to such processes, methods, products, or devices.
[0016] Example 1
[0017] like Figure 1 As shown, this application provides a lens grinding control method for a sight, the method comprising:
[0018] P10: Connect to the control module to obtain control parameter information, including control process nodes, grinding control position, grinding speed, grinding force, grinding angle, and grinding target parameters;
[0019] Specifically, a reliable connection is established with the control module, the core component of the lens polishing equipment, responsible for receiving and executing various control commands. By establishing a data communication link, accurate transmission and real-time updates of control parameter information can be ensured. Key control parameter information is obtained from the control module, including control flow nodes, polishing control positions, polishing speed, polishing force, polishing angle, and target polishing parameters.
[0020] The control process nodes include various stages and steps of lens polishing, such as rough polishing, fine polishing, and polishing. Each node has specific operational requirements and parameter settings. The polishing control position refers to the specific position and orientation of the lens on the polishing equipment, which is crucial to ensuring the lens is polished along a preset trajectory. The polishing speed refers to the rotational speed of the polishing tool, which directly affects the efficiency and quality of polishing. The polishing force refers to the pressure or force applied by the polishing tool to the lens, which determines the depth and uniformity of polishing. The polishing angle refers to the angle between the polishing tool and the lens surface, which affects the polishing effect and the surface quality of the lens. The polishing target parameters are the final indicators expected to be achieved in lens polishing, such as target surface roughness and target shape accuracy, and serve as the basis for evaluating polishing quality.
[0021] P20: Based on the control flow nodes and the grinding control positions, the path positions are connected according to the execution sequence to obtain the preset grinding trajectory;
[0022] Optionally, based on the control flow nodes, the execution timing relationship of different nodes is obtained, and a logically coherent polishing process is constructed according to the execution timing relationship. The polishing process is further refined based on the polishing control positions, combining the polishing control positions with the control flow nodes to determine the specific position the lens should be at each node. These specific positions are then connected according to the execution timing relationship to form a continuous preset polishing trajectory. The execution timing relationship refers to the temporal order and dependency between different nodes and positions. The preset polishing trajectory can serve as the basis and reference for subsequent polishing operations. During the actual polishing process, the control system will try to make the lens move and polish according to the preset polishing trajectory to ensure the expected polishing effect and quality are achieved.
[0023] P30: Connects to the image monitoring module, acquires grinding monitoring images, performs grinding target recognition, determines the center based on the grinding target recognition result, locates the grinding position, and determines the grinding execution trajectory;
[0024] Furthermore, such as Figure 2 As shown, step P30 in this embodiment further includes:
[0025] P31: The grinding monitoring image is used to identify the grinding target and grinding equipment to obtain the edge recognition result of the grinding target and the positioning recognition result of the grinding equipment;
[0026] P32: Based on the edge recognition result of the grinding target, determine the center of the grinding target, and use the center of the grinding target as the positioning center to overlap with the grinding control position in the control parameter information for positioning;
[0027] P33: Based on the overlapping positioning relationship, the grinding execution position is determined according to the positioning and identification results of the grinding equipment;
[0028] P34: Connect the grinding execution positions according to the monitoring time sequence of the grinding monitoring images to obtain the grinding execution trajectory.
[0029] It should be understood that in the actual polishing process, the polishing target is monitored in real time through the image monitoring module, thereby obtaining polishing monitoring images. The polishing monitoring images include multiple polishing images from multiple process nodes. The polishing monitoring images are used to identify and locate the target and determine the actual polishing execution trajectory.
[0030] Specifically, each of the polishing monitoring images undergoes in-depth identification processing, including the identification of the polishing target, i.e., the lens, and the polishing equipment, such as the grinding wheel or grinding head. Through image processing technology, the edges of the lens and the specific location of the polishing equipment in each image are identified, resulting in the edge recognition results of the polishing target and the positioning recognition results of the polishing equipment.
[0031] Furthermore, based on the edge recognition results of the polishing target, the center position of the polishing target in each image is determined, and the center position of the polishing target is used as the positioning center and overlapped with the polishing control position in the control parameter information to ensure that the polishing operation can be accurately performed on the target area of the lens and avoid polishing deviation caused by inaccurate positioning.
[0032] Furthermore, based on the overlapping positioning relationship between the center position of the polishing object and the polishing control position in each polishing image, and combined with the positioning recognition results of the polishing equipment, the specific polishing execution position of each process node is determined, that is, the position that the polishing equipment should reach in each actual operation node, so as to ensure that the lens is polished accurately.
[0033] Finally, according to the monitoring time sequence of the polishing monitoring images, the polishing execution positions of each process node are connected to form a continuous polishing execution trajectory. The polishing execution trajectory can reflect the real-time process of lens polishing and provide a reference for subsequent trajectory fitting comparison and deviation analysis.
[0034] Furthermore, step P32 in the embodiments of this application also includes:
[0035] P32-1: Establish the grinding configuration relationship between the grinding materials for the scope and the grinding target results;
[0036] P32-2: Based on the grinding configuration relationship, determine the overlap center point, and construct a structural coordinate system with the overlap center point as the origin. According to the grinding configuration relationship between the scope grinding material and the grinding target result, fit the edge coordinates of the scope grinding material and the grinding target result to the structural coordinate system.
[0037] P32-3: Based on the control parameter information, the grinding target is fitted according to the control flow node, grinding control position, and grinding target parameters to obtain the structural coordinate system of the control flow node, which includes the edge coordinate points of the grinding target shape and the coordinates of the grinding control position.
[0038] P32-4: Match the monitoring and grinding process nodes to obtain the structural coordinate system of the corresponding control process node, overlap the positioning center with the origin of the matching structural coordinate system, fit the grinding execution position to the matching structural coordinate system, and determine the overlapping positioning relationship.
[0039] For example, the process of determining the center of the target object to be polished and performing overlapping positioning can be as follows: First, based on the design requirements and expected performance parameters of the scope, establish the polishing configuration relationship between the polishing material and the polishing target result, including determining the material type, size, shape, and expected optical performance of the lens.
[0040] Furthermore, based on the aforementioned grinding configuration relationship, an overlap center point is determined. This overlap center point is the point where the center of the lens design coincides with the center of the grinding target. A structural coordinate system is then constructed with this overlap center point as the origin. According to the grinding configuration relationship between the grinding material and the grinding target result, the edge coordinates of the grinding material and the grinding target result are fitted into this structural coordinate system. This means that the material and the target result are precisely aligned within the structural coordinate system to ensure that the grinding process can accurately follow the shape and size of the target result.
[0041] Furthermore, based on control parameter information and according to control flow nodes, grinding control positions, and grinding target parameters, the grinding target is fitted. By matching the shape, size, and other parameters of the grinding target with the structural coordinate system, the structural coordinate system of each control flow node is obtained. This structural coordinate system includes the edge coordinates of the grinding target shape and the coordinates of the grinding control position, providing clear guidance for subsequent grinding operations.
[0042] Furthermore, by matching the monitoring and polishing process nodes, the structural coordinate system of the corresponding control process node is found. Then, the previously determined positioning center, i.e., the overlap center point, is overlapped with the origin of the matched structural coordinate system, thereby fitting the polishing execution position to the matched structural coordinate system. This determines the overlap positioning relationship between the polishing execution position and the polishing target, ensuring that the polishing operation can be accurately performed on the design target.
[0043] P40: Compare and fit the polishing execution trajectory with the preset polishing trajectory to obtain trajectory deviation information;
[0044] Specifically, the polishing execution trajectory is fitted and compared with the preset polishing trajectory. Key nodes on the two trajectories are matched and compared one by one to calculate the deviation between the two trajectories. For example, deviations in multiple aspects such as position, direction, and speed are calculated to obtain trajectory deviation information. The trajectory deviation information can be used to evaluate the accuracy and precision of the polishing operation. If the deviation is too large, it means that the actual polishing operation deviates from the preset trajectory, which may lead to uneven wear and shape distortion on the lens surface, thereby affecting the performance and quality of the lens.
[0045] Furthermore, after obtaining the trajectory deviation information, this embodiment of the application further includes step P40a, which further includes:
[0046] P41a: Determine the deviation distance and deviation angle based on the trajectory deviation information;
[0047] P42a: Obtain the current grinding position, grinding speed, grinding force, and grinding angle;
[0048] P43a: Using the grinding target parameters as the evaluation target, the grinding loss is calculated based on the deviation distance, deviation angle, current grinding positioning, grinding speed, grinding force, and grinding angle.
[0049] P44a: When the grinding loss is not within the loss range, a position adjustment command is sent. The position adjustment command is used to stop the current grinding control and adjust the grinding position according to the deviation distance and deviation angle.
[0050] Optionally, after obtaining the trajectory deviation information, the polishing process can be finely adjusted based on this information to ensure accuracy and efficiency. Specifically, based on the trajectory deviation information, the deviation distance and angle are determined, and the current polishing positioning, speed, force, and angle of the polishing equipment are obtained—that is, the current working state of the polishing equipment. Further, using the polishing target parameters as the evaluation target, and combining the deviation distance, angle, and the current polishing positioning, speed, force, and angle of the polishing equipment, the amount of polishing loss is calculated. This amount of polishing loss is a comprehensive indicator; it can be calculated by quantifying the losses caused by trajectory deviation, such as decreased lens quality and reduced polishing efficiency, thus quantitatively evaluating the effectiveness of the current polishing process.
[0051] Furthermore, the amount of grinding loss is determined. When the amount of grinding loss is outside the loss range, that is, it exceeds the preset loss range, it indicates that the current grinding trajectory deviation has significantly affected the lens quality and grinding efficiency. In this case, a position adjustment command needs to be sent to stop the current grinding control and adjust the grinding position according to the deviation distance and deviation angle to correct the trajectory deviation in time and restore the accuracy and efficiency of the grinding process.
[0052] Furthermore, the embodiments of this application also include step P44-1a, which further includes:
[0053] P44-1a: When the grinding loss is within the loss range, based on the current grinding positioning, grinding speed, grinding force, and grinding angle, perform smooth movement analysis on the deviation distance and deviation angle to determine the movement adjustment parameters, and use the movement adjustment parameters to adjust and control the control parameter information;
[0054] The smooth movement analysis involves adjusting the control curves of the grinding positioning, grinding speed, grinding force, and grinding angle with the minimum power loss value and the deviation distance and offset angle as the movement direction.
[0055] In one possible embodiment of this application, when the amount of polishing loss is determined to be within a preset loss range, it indicates that although the current polishing process has some deviation, it has not significantly affected the lens quality and polishing efficiency. In this case, it is not necessary to immediately stop the polishing control; the trajectory deviation can be minimized by optimizing and adjusting the current state.
[0056] Specifically, based on parameters such as current grinding positioning, grinding speed, grinding force, and grinding angle, a smooth movement analysis is performed on the deviation distance and deviation angle. The core objective of smooth movement analysis is to adjust the control parameters such as grinding positioning, speed, force, and angle using the deviation distance and offset angle as the movement direction, while minimizing power loss. This means gradually correcting the deviation through a smooth movement trajectory, rather than through sudden, large adjustments, to ensure the stability and continuity of the grinding process. By determining the movement adjustment parameters through smooth movement analysis, the control parameter information can be fine-tuned, thereby reducing trajectory deviation and improving grinding accuracy and efficiency.
[0057] P50: Based on the trajectory deviation information, combined with the grinding speed, grinding force, and grinding angle, the grinding effect is evaluated to obtain the grinding evaluation effect;
[0058] Furthermore, before obtaining the polishing evaluation effect, the embodiments of this application also include step P50a, which further includes:
[0059] P51a: Obtain the historical sample set, randomly select the first training sample set, the first training sample set includes grinding speed, grinding force, grinding angle and grinding effect identification information, and configure an average weight for each training sample in the first training sample set.
[0060] P52a: Use the first training sample set to train the neural network and obtain the initial model;
[0061] P53a: Based on the initial model, calculate the prediction error probability, determine and label error samples, the error samples are training samples with incorrect prediction results, reconfigure the weights of the error samples, the reconfigured weights are higher than the average weights, and randomly select a second training sample set from the historical sample set, configure the average weights of the samples in the second training sample set, combine them with the error samples, train the initial model, and obtain the second-generation model;
[0062] P54a: Obtain the prediction error probability and error samples of the second-generation model, reconstruct the third training sample set, train the model, repeat the iterative training until the preset target is reached, obtain the label frequency of the error samples, extract the error samples that reach the preset frequency for mutation, and construct the nth training sample set.
[0063] P55a: Use the nth training sample set to continuously iterate and train the n-1 generation model until the preset number of times is reached or the convergence requirement is met;
[0064] P56a: Set the model weight coefficients according to the prediction error probability of each generation of models, and perform weighted fusion of all model parameters to obtain the final model parameter configuration and refinement evaluation model.
[0065] Specifically, the final polishing effect is evaluated based on the trajectory deviation information and parameters such as rotation speed, force, and angle during the polishing process. For example, a polishing evaluation model can be used to evaluate the polishing effect based on the trajectory deviation information, polishing rotation speed, polishing force, and polishing angle, obtaining the polishing evaluation results, including actual surface roughness and actual shape accuracy.
[0066] The process of constructing the polishing evaluation model can be as follows: First, based on historical polishing data records, a historical sample set is obtained, and a certain number of samples are randomly selected from the historical sample set as the first training sample set. An initial average weight is configured for each training sample in the first training sample set. The first training sample set includes different polishing speeds, polishing forces, polishing angles, and corresponding polishing effect identification information.
[0067] Furthermore, the first training sample set is used to train the neural network. By continuously adjusting the parameters within the model, the model's prediction results are made closer to the actual results, thus obtaining an initial model, which is the initial refinement and evaluation model. Based on the initial model, predictions are made on the training samples, and the error probability between the prediction results and the actual results is calculated. Samples with incorrect predictions are marked as error samples, and the weights of the error samples are reconfigured to be higher than the average weights, so that subsequent training will pay more attention to the error samples.
[0068] Furthermore, a second training sample set is randomly selected from the historical sample set, and the average weight of the samples in the second training sample set is configured. The second training sample set is then combined with error samples to perform secondary training on the initial model, resulting in a second-generation model. Similarly, the prediction error probability and error samples of the second-generation model are obtained, a third training sample set is reconstructed, and the model is trained. This process is repeated, continuously constructing new training sample sets and training the model until a preset target is reached. The preset target can be the percentage of historical sample sets that have completed training. Simultaneously, mutation processing is performed based on the labeling frequency of the error samples. Error samples that reach the preset frequency are extracted and mutated. Mutation refers to adjusting the parameters of the error samples to generate new samples with different characteristics. The mutated samples, together with the original samples, constitute the nth training sample set.
[0069] Furthermore, using the nth training sample set, the previous generation model is continuously iterated and trained until a preset number of training iterations is reached or the model converges, meaning its performance no longer significantly improves. Finally, after all iterations of training are completed, a model weight coefficient is assigned to each generation model based on its prediction error probability. The lower the prediction error probability, the higher the weight coefficient, indicating a greater contribution of that model to the final evaluation. Further, based on the model weight coefficients, the parameters of all models are weighted and fused to obtain a refined evaluation model that integrates the advantages of multiple models, which is used for subsequent refinement effect evaluation.
[0070] P60: Based on the grinding target parameters and grinding evaluation results, the grinding deviation information is obtained by comparison.
[0071] P70: Based on the grinding deviation information, optimize the grinding speed, grinding force, and grinding angle configuration to obtain adjustment parameters, and adjust and control the control parameter information based on the adjustment parameters.
[0072] It should be understood that obtaining the polishing target parameters, that is, the final indicators that the lens polishing is expected to achieve, such as target surface roughness, target shape accuracy, etc., involves comparing the polishing target parameters and polishing evaluation results item by item, and calculating the parameter differences. For example, by comparing the differences between the target surface roughness and the actual surface roughness, the target shape accuracy and the actual shape accuracy, etc., the parameters with deviations, as well as the magnitude and direction of the deviations, are identified and used as polishing deviation information.
[0073] Furthermore, based on the grinding deviation information, the configuration optimization of the grinding speed, grinding force, and grinding angle is performed. This can be achieved through optimization algorithms or models, such as global optimization algorithms, combined with historical data and real-time feedback, to calculate suitable adjustment parameters, namely the adjustment range of the grinding speed, grinding force, and grinding angle. Based on these adjustment parameters, the control parameter information is adjusted to correct the deviation of the grinding control parameters. In turn, the lens grinding is controlled according to the control parameter information, thereby improving the grinding quality and efficiency.
[0074] Furthermore, the embodiments of this application also include step P80, which further includes:
[0075] P81: Establish the matching coefficient between grinding speed and grinding force;
[0076] P82: Based on the grinding deviation information, determine the deviation distribution characteristics, and obtain the mirror surface roughness based on the deviation distribution characteristics;
[0077] P83: Generate a polishing speed adjustment value based on the aforementioned deviation distribution characteristics and mirror surface roughness;
[0078] P84: Based on the speed adjustment value and the matching coefficient, the grinding force is analyzed and calculated to obtain the grinding force adjustment value;
[0079] P85: Optimize and adjust the control parameters based on the grinding speed adjustment value and grinding force adjustment value.
[0080] In one possible embodiment of this application, a matching coefficient between grinding speed and grinding force is established based on historical or experimental data. This matching coefficient reflects the grinding force required to achieve the best grinding effect at different speeds. Furthermore, the grinding deviation information is analyzed to determine the distribution characteristics of the deviation, including its magnitude, direction, and distribution range. Based on these deviation distribution characteristics, the mirror surface roughness is calculated.
[0081] Furthermore, the grinding speed is optimized based on the deviation distribution characteristics and mirror surface roughness, and a grinding speed adjustment value is generated by combining the corresponding speed adjustment model or formula. This speed adjustment model or formula can be obtained through machine learning using empirical data. Further, grinding force is analyzed and calculated based on the speed adjustment value and the matching coefficient. Using the matching coefficient and the speed adjustment value, a grinding force adjustment value suitable for the speed adjustment value is calculated. Finally, control parameters are optimized and adjusted based on the grinding speed adjustment value and the grinding force adjustment value to improve the grinding effect, reduce deviations, and increase mirror surface smoothness.
[0082] In summary, the embodiments of this application have at least the following technical effects:
[0083] This application connects the path positions by controlling process nodes and grinding control positions to obtain a preset grinding trajectory. By using grinding monitoring images, it identifies the grinding target and locates the grinding position to determine the grinding execution trajectory. Then, by fitting and comparing the grinding trajectory, it obtains trajectory deviation information, evaluates and compares the grinding effect, generates grinding deviation information, and adjusts and controls the control parameter information.
[0084] This technology achieves the goal of improving the precision and quality of lens polishing through adaptive optimization of polishing control parameters.
[0085] Example 2
[0086] Based on the same inventive concept as the lens grinding control method for a sight described in the foregoing embodiments, such as Figure 3 As shown, this application provides a lens grinding control system for a sight. The system and method embodiments in this application are based on the same inventive concept. The system includes:
[0087] The control parameter information acquisition module 11 is used to connect to the control module and acquire control parameter information, including control process nodes, grinding control positions, grinding speed, grinding force, grinding angle, and grinding target parameters.
[0088] A pre-defined grinding trajectory acquisition module 12 is used to connect the path positions according to the execution sequence relationship based on the control flow nodes and the grinding control positions to obtain the pre-defined grinding trajectory.
[0089] The grinding execution trajectory determination module 13 is used to connect to the image monitoring module, acquire grinding monitoring images, perform grinding target recognition, determine the grinding position by determining the center based on the grinding target recognition result, and determine the grinding execution trajectory.
[0090] The trajectory fitting and comparison module 14 is used to fit and compare the grinding execution trajectory with the preset grinding trajectory to obtain trajectory deviation information.
[0091] The polishing effect evaluation module 15 is used to evaluate the polishing effect based on the trajectory deviation information, combined with the polishing speed, polishing force and polishing angle, and to obtain the polishing evaluation effect.
[0092] The grinding deviation information acquisition module 16 is used to compare the grinding target parameters and the grinding evaluation effect to obtain grinding deviation information.
[0093] The grinding adjustment control module 17 is used to optimize the grinding speed, grinding force, and grinding angle configuration based on the grinding deviation information, obtain adjustment parameters, and adjust and control the control parameter information based on the adjustment parameters.
[0094] Furthermore, the grinding execution trajectory determination module 13 is also used to perform the following steps:
[0095] The grinding monitoring images are used to identify the grinding target and grinding equipment, and the edge recognition results of the grinding target and the positioning recognition results of the grinding equipment are obtained.
[0096] Based on the edge recognition result of the grinding target, the center of the grinding target is determined, and the center of the grinding target is used as the positioning center to overlap with the grinding control position in the control parameter information for positioning.
[0097] Based on the overlapping positioning relationship, the grinding execution position is determined according to the positioning and identification results of the grinding equipment;
[0098] According to the monitoring time sequence of the grinding monitoring images, the grinding execution positions are connected to obtain the grinding execution trajectory.
[0099] Furthermore, the grinding execution trajectory determination module 13 is also used to perform the following steps:
[0100] Establish the grinding configuration relationship between the grinding materials for the scope and the grinding target results;
[0101] Based on the grinding configuration relationship, the overlap center point is determined, and a structural coordinate system is constructed with the overlap center point as the origin. According to the grinding configuration relationship between the grinding material and the grinding target result of the sight, the edge coordinates of the grinding material and the grinding target result of the sight are fitted to the structural coordinate system.
[0102] Based on the control parameter information, the grinding target is fitted according to the control flow node, grinding control position, and grinding target parameters to obtain the structural coordinate system of the control flow node, which includes the edge coordinate points of the grinding target shape and the coordinates of the grinding control position.
[0103] Matching is performed based on the monitoring and polishing process nodes to obtain the structural coordinate system of the corresponding control process node. The positioning center is overlapped with the origin of the matching structural coordinate system, and the polishing execution position is fitted to the matching structural coordinate system to determine the overlapping positioning relationship.
[0104] Furthermore, the trajectory fitting and comparison module 14 is also used to perform the following steps:
[0105] Based on the trajectory deviation information, determine the deviation distance and deviation angle;
[0106] Obtain the current grinding position, grinding speed, grinding force, and grinding angle;
[0107] Using the aforementioned polishing target parameters as the evaluation target, the amount of polishing loss is calculated based on the deviation distance, deviation angle, current polishing positioning, polishing speed, polishing force, and polishing angle.
[0108] When the amount of grinding loss is not within the loss range, a position adjustment command is sent. The position adjustment command is used to stop the current grinding control and adjust the grinding position according to the deviation distance and deviation angle.
[0109] Furthermore, the trajectory fitting and comparison module 14 is also used to perform the following steps:
[0110] When the grinding loss is within the loss range, the deviation distance and deviation angle are analyzed for smooth movement based on the current grinding positioning, grinding speed, grinding force, and grinding angle to determine the movement adjustment parameters. The control parameter information is then adjusted and controlled using the movement adjustment parameters.
[0111] The smooth movement analysis involves adjusting the control curves of the grinding positioning, grinding speed, grinding force, and grinding angle with the minimum power loss value and the deviation distance and offset angle as the movement direction.
[0112] Furthermore, the polishing effect evaluation module 15 is also used to perform the following steps:
[0113] Obtain a historical sample set, randomly select a first training sample set, the first training sample set includes grinding speed, grinding force, grinding angle and grinding effect identification information, and assign an average weight to each training sample in the first training sample set.
[0114] The neural network is trained using the first training sample set to obtain an initial model;
[0115] Based on the initial model, the prediction error probability is calculated, error samples are identified and labeled. The error samples are training samples with incorrect prediction results. The weights of the error samples are reconfigured to be higher than the average weights. A second training sample set is randomly selected from the historical sample set, and the average weights of the samples in the second training sample set are configured. The samples are then combined with the error samples to train the initial model and obtain the second-generation model.
[0116] Obtain the prediction error probability and error samples of the second-generation model, reconstruct the third training sample set, train the model, repeat the iterative training until the preset target is reached, obtain the label frequency of the error samples, extract the error samples that reach the preset frequency for mutation, and construct the nth training sample set.
[0117] The nth training sample set is used to continuously iterate the training of the n-1th generation model until a preset number of iterations or a convergence requirement is reached.
[0118] The model weight coefficients are set according to the prediction error probability of each generation of models, and all model parameters are weighted and fused to obtain the final model parameter configuration, thus obtaining the refined evaluation model.
[0119] Furthermore, the system also includes:
[0120] A matching coefficient establishment module is used to establish the matching coefficient between grinding speed and grinding force;
[0121] A mirror surface roughness acquisition module is used to determine the deviation distribution characteristics based on the polishing deviation information, and to acquire the mirror surface roughness based on the deviation distribution characteristics.
[0122] A grinding speed adjustment value generation module is used to generate a grinding speed adjustment value based on the deviation distribution characteristics and the mirror surface roughness.
[0123] A grinding force adjustment value acquisition module is used to perform grinding force analysis and calculation based on the rotation speed adjustment value and the matching coefficient to obtain the grinding force adjustment value;
[0124] The control parameter information optimization module is used to optimize and adjust the control parameter information based on the grinding speed adjustment value and the grinding force adjustment value.
[0125] It should be noted that the order of the embodiments described above is merely for descriptive purposes and does not represent the superiority or inferiority of the embodiments. Furthermore, the above description focuses on specific embodiments of this specification. Additionally, the processes depicted in the accompanying drawings do not necessarily require a specific or sequential order to achieve the desired results. In some implementations, multitasking and parallel processing are possible or may be advantageous.
[0126] The above description is only a preferred embodiment of this application and is not intended to limit this application. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the protection scope of this application.
[0127] This specification and accompanying drawings are merely illustrative examples of this application and are intended to cover any and all modifications, variations, combinations, or equivalents within the scope of this application. Clearly, those skilled in the art can make various alterations and modifications to this application without departing from its scope. Therefore, if such modifications and modifications fall within the scope of this application and its equivalents, this application intends to include such modifications and variations.
Claims
1. A method for controlling the grinding of lenses for a sight, characterized in that, The method includes: Connect to the control module to obtain control parameter information, including control process nodes, grinding control position, grinding speed, grinding force, grinding angle, and grinding target parameters; Based on the control flow nodes and the polishing control positions, the path positions are connected according to the execution sequence to obtain the preset polishing trajectory. Connect the image monitoring module to acquire grinding monitoring images, perform grinding target recognition, determine the center based on the grinding target recognition result, locate the grinding position, and determine the grinding execution trajectory. The trajectory deviation information is obtained by fitting and comparing the polishing execution trajectory with the preset polishing trajectory. Based on the trajectory deviation information, the grinding effect is evaluated in conjunction with the grinding speed, grinding force, and grinding angle to obtain the grinding evaluation effect; By comparing the grinding target parameters and the grinding evaluation results, grinding deviation information is obtained. Based on the grinding deviation information, the grinding speed, grinding force, and grinding angle are optimized to obtain adjustment parameters, and the control parameter information is adjusted and controlled based on the adjustment parameters. The step of determining the grinding position and grinding trajectory by identifying the center based on the grinding target recognition result includes: The grinding monitoring images are used to identify the grinding target and grinding equipment, and the edge recognition results of the grinding target and the positioning recognition results of the grinding equipment are obtained. Based on the edge recognition result of the grinding target, the center of the grinding target is determined, and the center of the grinding target is used as the positioning center to overlap with the grinding control position in the control parameter information for positioning. Based on the overlapping positioning relationship, the grinding execution position is determined according to the positioning and identification results of the grinding equipment; According to the monitoring time sequence of the grinding monitoring images, the grinding execution positions are connected to obtain the grinding execution trajectory.
2. The lens grinding control method for a sight as described in claim 1, characterized in that, Using the center of the target object to be polished as the positioning center, and overlapping with the polishing control position in the control parameter information, the positioning includes: Establish the grinding configuration relationship between the grinding materials for the scope and the grinding target results; Based on the grinding configuration relationship, the overlap center point is determined, and a structural coordinate system is constructed with the overlap center point as the origin. According to the grinding configuration relationship between the grinding material and the grinding target result of the sight, the edge coordinates of the grinding material and the grinding target result of the sight are fitted to the structural coordinate system. Based on the control parameter information, the grinding target is fitted according to the control flow node, grinding control position, and grinding target parameters to obtain the structural coordinate system of the control flow node, which includes the edge coordinate points of the grinding target shape and the coordinates of the grinding control position. Matching is performed based on the monitoring and polishing process nodes to obtain the structural coordinate system of the corresponding control process node. The positioning center is overlapped with the origin of the matching structural coordinate system, and the polishing execution position is fitted to the matching structural coordinate system to determine the overlapping positioning relationship.
3. The lens grinding control method for a sight as described in claim 1, characterized in that, After fitting and comparing the polishing execution trajectory with the preset polishing trajectory to obtain trajectory deviation information, the method further includes: Based on the trajectory deviation information, determine the deviation distance and deviation angle; Obtain the current grinding position, grinding speed, grinding force, and grinding angle; Using the aforementioned polishing target parameters as the evaluation target, the amount of polishing loss is calculated based on the deviation distance, deviation angle, current polishing positioning, polishing speed, polishing force, and polishing angle. When the amount of grinding loss is not within the loss range, a position adjustment command is sent. The position adjustment command is used to stop the current grinding control and adjust the grinding position according to the deviation distance and deviation angle.
4. The lens grinding control method for a sight as described in claim 3, characterized in that, The method further includes: When the grinding loss is within the loss range, the deviation distance and deviation angle are analyzed for smooth movement based on the current grinding positioning, grinding speed, grinding force, and grinding angle to determine the movement adjustment parameters. The control parameter information is then adjusted and controlled using the movement adjustment parameters. The smooth movement analysis involves adjusting the control curves of the grinding positioning, grinding speed, grinding force, and grinding angle with the minimum power loss value and the deviation distance and offset angle as the movement direction.
5. The lens grinding control method for a sight as described in claim 1, characterized in that, Based on the trajectory deviation information, and in conjunction with the grinding speed, grinding force, and grinding angle, the grinding effect is evaluated. Before obtaining the grinding evaluation effect, the method includes: Obtain a historical sample set, randomly select a first training sample set, the first training sample set includes grinding speed, grinding force, grinding angle and grinding effect identification information, and assign an average weight to each training sample in the first training sample set. The neural network is trained using the first training sample set to obtain an initial model; Based on the initial model, the prediction error probability is calculated, error samples are identified and labeled. The error samples are training samples with incorrect prediction results. The weights of the error samples are reconfigured to be higher than the average weights. A second training sample set is randomly selected from the historical sample set, and the average weights of the samples in the second training sample set are configured. The samples are then combined with the error samples to train the initial model and obtain the second-generation model. Obtain the prediction error probability and error samples of the second-generation model, reconstruct the third training sample set, train the model, repeat the iterative training until the preset target is reached, obtain the label frequency of the error samples, extract the error samples that reach the preset frequency for mutation, and construct the nth training sample set. The nth training sample set is used to continuously iterate the training of the n-1th generation model until a preset number of iterations or a convergence requirement is reached. The model weight coefficients are set according to the prediction error probability of each generation of models, and all model parameters are weighted and fused to obtain the final model parameter configuration, thus obtaining the refined evaluation model.
6. The lens grinding control method for a sight as described in claim 1, characterized in that, The method further includes: Establish the matching coefficient between grinding speed and grinding force; Based on the polishing deviation information, the deviation distribution characteristics are determined, and the mirror surface roughness is obtained based on the deviation distribution characteristics. The grinding speed adjustment value is generated based on the aforementioned deviation distribution characteristics and mirror surface roughness. The grinding force adjustment value is obtained by analyzing and calculating the grinding force based on the rotation speed adjustment value and the matching coefficient. The control parameters are optimized and adjusted based on the grinding speed adjustment value and the grinding force adjustment value.
7. A lens grinding control system for a sight, characterized in that, The steps of the lens polishing control method for a sight as described in any one of claims 1-6 include: The control parameter information acquisition module is used to connect to the control module and acquire control parameter information, including control process nodes, grinding control positions, grinding speed, grinding force, grinding angle, and grinding target parameters. A pre-defined grinding trajectory acquisition module is used to connect the path positions according to the execution sequence relationship based on the control flow nodes and the grinding control positions to obtain the pre-defined grinding trajectory. A grinding execution trajectory determination module is used to connect to an image monitoring module, acquire grinding monitoring images, perform grinding target recognition, determine the grinding position based on the grinding target recognition result, and determine the grinding execution trajectory. A trajectory fitting and comparison module is used to fit and compare the grinding execution trajectory with the preset grinding trajectory to obtain trajectory deviation information; A polishing effect evaluation module is used to evaluate the polishing effect based on the trajectory deviation information, combined with the polishing speed, polishing force, and polishing angle, to obtain the polishing evaluation effect. A grinding deviation information acquisition module is used to compare the grinding target parameters and the grinding evaluation effect to obtain grinding deviation information. The grinding adjustment control module is used to optimize the grinding speed, grinding force, and grinding angle configuration based on the grinding deviation information to obtain adjustment parameters, and to adjust and control the control parameter information based on the adjustment parameters.
Citation Information
Patent Citations
Automatic correction grinding method and system for industrial robot
CN115049861A
Glass lens polishing quality analysis optimization method and system
CN115331224A