Lens processing control method, control device, lens processing equipment and medium
The vision mechanism captures the lens position image and performs deviation compensation, which solves the problem of difficulty in achieving accuracy and consistency in lens processing and improves the accuracy and stability of lens processing.
Patent Information
- Application Number
- CN202210907077.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-29
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2042-07-29
AI Technical Summary
During the lens processing process, it is difficult to ensure high precision and processing consistency with existing technology. In particular, there are problems with placement deviation and posture difference when the lens is installed, making it difficult to achieve processing accuracy and consistency.
The position image of the lens is captured through the vision mechanism, and its deviation from the pre-stored reference template is determined. The corresponding relationship between the visual coordinate system and the motion coordinate system is used to compensate for the deviation to control the processing mechanism to perform processing actions, reducing the strict requirements for lens tooling.
It improves the accuracy and consistency of lens processing, reduces the requirements for lens tooling, and enhances the stability of the processing process.
Smart Images

Figure CN115416078B
Abstract
Description
Technical Field
[0001] The present application relates to the field of lens processing technology, and more specifically, to a lens processing control method, a control device, a lens processing equipment and a medium. Background Art
[0002] When processing optical lenses, such as VR lenses, the lenses need to be cut according to a predetermined trajectory, and the cutting accuracy is very high, and no deviation relative to the predetermined trajectory is allowed. In addition, when processing multiple lenses of the same batch, good processing consistency needs to be maintained between the multiple lenses, and no deviation can occur between the multiple lenses.
[0003] In the prior art, in order to achieve high precision and processing consistency, the tooling for mounting lenses has extremely high requirements; the lenses must be placed in the tooling in a predetermined posture, and no placement deviation can occur. This makes it more difficult to install and feed the lenses, and it is also impossible to ensure that errors are avoided.
[0004] In view of this, it is necessary to provide a new technical solution to solve the above problems. Summary of the invention
[0005] One object of the present application is to provide a new technical solution for a lens processing control method, a control device, a lens processing equipment and a medium.
[0006] According to a first aspect of the present application, a lens processing control method is provided, which is applied to a lens processing device, wherein the lens processing device comprises:
[0007] A lens tooling, wherein the lens tooling is used to carry the lens to be processed;
[0008] A visual mechanism, the visual mechanism is used to take a picture of the lens to be processed;
[0009] A processing mechanism, the processing mechanism is used to perform a processing action on the lens to be processed;
[0010] The control method comprises:
[0011] Determining a first corresponding relationship between a visual coordinate system of the visual mechanism and a motion coordinate system of the processing mechanism;
[0012] Acquire a position image of the lens to be processed acquired by the visual mechanism, and determine a first deviation between the position of the lens to be processed and a pre-stored reference template in the visual coordinate system according to the position image;
[0013] Determine, according to the first corresponding relationship and the first deviation, a second deviation between the position of the lens to be processed and a pre-stored reference template in the motion coordinate system;
[0014] The processing mechanism is controlled to perform a processing action on the lens to be processed according to the second deviation and the pre-stored reference template.
[0015] Optionally, determining a first corresponding relationship between a visual coordinate system of the visual mechanism and a motion coordinate system of the processing mechanism comprises:
[0016] A first characteristic image of a first characteristic point of the lens to be processed collected by the visual mechanism is acquired, and the first corresponding relationship is calculated according to the first characteristic image.
[0017] Optionally, the lens tooling can move in a first direction; the visual mechanism and the processing mechanism are jointly arranged on a supporting mechanism, and the supporting mechanism can move in a second direction and a third direction;
[0018] The calculating the first corresponding relationship according to the first feature image includes:
[0019] The distance between the visual mechanism and the processing mechanism in the first direction, the distance in the second direction, and the distance in the third direction are calculated according to the first characteristic image.
[0020] Optionally, the step of acquiring a position image of the lens to be processed acquired by the visual mechanism, and determining a first deviation between the position of the lens to be processed and a pre-stored reference template in the visual coordinate system according to the position image comprises:
[0021] A second characteristic image of a second characteristic point of the lens to be processed acquired by the visual mechanism is obtained, and a first deviation between a position of the lens to be processed and a pre-stored reference template in the visual coordinate system is calculated based on the second characteristic image.
[0022] Optionally, the lens tooling can move in a first direction; the visual mechanism and the processing mechanism are jointly arranged on a supporting mechanism, and the supporting mechanism can move in a second direction and a third direction;
[0023] The second deviation includes: a first position deviation along the first direction and / or a second position deviation and / or an angle deviation along the second direction.
[0024] Optionally, controlling the processing mechanism to perform a processing action on the lens to be processed according to the second deviation comprises:
[0025] In the case where the second deviation includes the first position deviation, while controlling the processing mechanism to perform a processing action on the lens to be processed, controlling the lens tooling to move in a first direction; and / or
[0026] In the case where the second deviation includes the second position deviation, while controlling the processing mechanism to perform a processing action on the lens to be processed, controlling the supporting mechanism to move in the second direction; and / or
[0027] In the case where the second deviation includes the angular deviation, while controlling the processing mechanism to perform a processing action on the lens to be processed, the lens tool is controlled to move in a first direction and the supporting mechanism is controlled to move in a second direction.
[0028] According to a second aspect of the present application, a lens processing control device is provided, which is applied to a lens processing device, and the control device comprises:
[0029] A first determining module, used to determine a first corresponding relationship between a visual coordinate system of the visual mechanism and a motion coordinate system of the processing mechanism;
[0030] A second determination module is used to obtain a position image of the lens to be processed acquired by the visual mechanism, and determine a first deviation between the position of the lens to be processed and a pre-stored reference template in the visual coordinate system according to the position image;
[0031] A third determining module, configured to determine, in the motion coordinate system, a second deviation between the position of the lens to be processed and a pre-stored reference template according to the first corresponding relationship and the first deviation;
[0032] The control module is used to control the processing mechanism to perform a processing action on the lens to be processed according to the second deviation.
[0033] Optionally, the control device further includes:
[0034] The calculation module is used to calculate the first corresponding relationship according to the first characteristic image when the first characteristic image of the first characteristic point of the lens to be processed is acquired by the visual mechanism.
[0035] According to a third aspect of the present application, a lens processing device is also provided, the lens processing device comprising:
[0036] Memory for storing executable computer instructions;
[0037] The processor is used to execute the lens processing control method according to the first aspect under the control of the executable computer instructions.
[0038] According to a fourth aspect of the present application, a computer-readable storage medium is further provided, on which computer instructions are stored. When the computer instructions are executed by a processor, the lens processing control method described in the first aspect is executed.
[0039] The lens processing control method, control device, lens processing equipment and medium provided in the embodiments of the present application can firstly use the visual mechanism to take a photo of the lens to be processed to obtain a position image of the lens to be processed before the processing mechanism performs the processing action on the lens to be processed; then, according to the position image and the correspondence between the visual coordinate system of the visual mechanism and the motion coordinate system of the processing mechanism, obtain the deviation between the position of the lens to be processed in the motion coordinate system and the pre-stored reference template, and compensate for the deviation when the subsequent processing mechanism performs the processing action on the lens to be processed. In this way, there is no need to strictly require the lens tooling that carries the lens to be processed. When the posture of the lens placement is deviated, or the postures of multiple lenses in the same batch are different, the deviation and difference can also be compensated, thereby greatly reducing the requirements for the lens tooling and improving the processing accuracy of the lens.
[0040] Other features and advantages of the present application will become apparent from the following detailed description of exemplary embodiments of the present application with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the application and, together with the description, serve to explain the principles of the application.
[0042] Figure 1 The figure shows a hardware configuration diagram of the lens processing equipment according to an embodiment of the present application;
[0043] Figure 2 The figure is a schematic diagram of the steps of the lens processing control method according to an embodiment of the present application;
[0044] Figure 3 The figure shows a principle block diagram of a lens processing control device according to an embodiment of the present application;
[0045] Figure 4 Shown is a principle block diagram of a lens processing device according to an embodiment of the present application. DETAILED DESCRIPTION
[0046] Various exemplary embodiments of the present application will now be described in detail with reference to the accompanying drawings. It should be noted that unless otherwise specifically stated, the relative arrangement of components and steps, numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present application.
[0047] The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the present application, its application, or uses.
[0048] Technologies, methods, and equipment known to ordinary technicians in the relevant art may not be discussed in detail, but where appropriate, the technologies, methods, and equipment should be considered as part of the specification.
[0049] In all examples shown and discussed herein, any specific values should be interpreted as merely exemplary and not as limiting. Therefore, other examples of the exemplary embodiments may have different values.
[0050] It should be noted that like reference numerals and letters refer to similar items in the following figures, and therefore, once an item is defined in one figure, it need not be further discussed in subsequent figures.
[0051] <Hardware Configuration>
[0052] Figure 1 1 is a structural schematic diagram of a lens processing device according to an embodiment of the present disclosure, wherein the lens processing device 1 comprises a lens fixture 11, a visual mechanism 12 and a processing mechanism 13, wherein the lens fixture 11 is used to carry a lens 01 to be processed; the visual mechanism 12 is used to take a photo of the lens 01 to be processed; the processing mechanism 13 is used to perform a processing action on the lens 01 to be processed; the lens processing device further comprises a first linear motor 14, on which the lens fixture 11 is arranged, and the first linear motor 14 can drive the lens fixture 11 to move in a first direction; the lens processing device further comprises a machine base 15, The machine base 15 is provided with a second linear motor 16 and a third linear motor 17, and the third linear motor 17 is connected to the second linear motor 16; it also includes a supporting mechanism, such as a bracket 18, the bracket 18 is installed on the third linear motor 17, and the visual mechanism 12 and the processing mechanism 13 are arranged together on the bracket 18, the bracket 18 can drive the visual mechanism 12 and the processing mechanism 13 to move together in the third direction under the driving action of the third linear motor 17; and, under the driving action of the second linear motor 16, the bracket 18 can drive the visual mechanism 12 and the processing mechanism 13 to move together in the second direction. In addition, the visual mechanism 12 includes, for example, a camera, a lens, and a light source. Figure 1 As shown, the first direction is Figure 1 The a direction in the second direction is Figure 1 The b direction in the figure is Figure 1 The c direction in .
[0053] <Method Example>
[0054] Reference Figure 2 As shown, according to one embodiment of the present application, a lens processing control method is provided, which is applied to the above-mentioned lens processing device 1, and the control method includes:
[0055] S101, determining a first corresponding relationship between a visual coordinate system of the visual mechanism 12 and a motion coordinate system of the processing mechanism 13;
[0056] S102, acquiring a position image of the lens to be processed acquired by the visual mechanism 12, and determining a first deviation between the position of the lens to be processed and a pre-stored reference template in the visual coordinate system according to the position image;
[0057] S103, determining a second deviation between the position of the lens to be processed and a pre-stored reference template in the motion coordinate system according to the first corresponding relationship and the first deviation;
[0058] S104, controlling the processing mechanism 13 to perform a processing action on the lens to be processed according to the second deviation and the pre-stored reference template.
[0059] In the embodiment of the present application, the lens processing equipment 1 used in the lens processing control method may be, for example, a VR lens gate processing equipment.
[0060] In step S101, the first correspondence between the visual coordinate system of the visual mechanism 12 and the motion coordinate system of the processing mechanism 13 is first determined; although the visual mechanism 12 and the processing mechanism 13 always move synchronously in the second direction and the third direction, there is a deviation between the position of the visual mechanism 12 and the position of the processing mechanism 13. Therefore, the visual coordinate system of the visual mechanism 12 and the motion coordinate system of the processing mechanism 13 are not equivalent, but there is a certain relative relationship, that is, the first correspondence. In step S101, the first correspondence is first determined for use in subsequent steps.
[0061] In step S102, the position image of the lens to be processed acquired by the visual mechanism 12 is obtained, that is, the lens to be processed is moved to the photographing position; for example, it includes moving the lens tooling 11 and the lens to be processed carried thereon in a first direction under the driving action of the first linear motor 14, and moving the visual mechanism 12 in the second direction under the driving action of the second linear motor 16, so that the lens to be processed enters the photographing range of the visual mechanism 12; for example, it also includes moving the visual mechanism 12 in the third direction under the driving action of the third linear motor 17 to realize the focusing process, thereby obtaining a position image of the lens to be processed with a clear image and a distinct contrast.
[0062] Since the position image is obtained by taking a photo by the visual mechanism 12, the first deviation between the position of the lens to be processed and the pre-stored reference template in the visual coordinate system of the visual mechanism 12 can be determined based on the position image of the lens to be processed; the pre-stored reference template is a pre-stored standard processing path template under ideal conditions.
[0063] In step S103, since the action of processing the lens to be processed is performed by the processing mechanism 13, it is necessary to convert the first deviation into a deviation in the motion coordinate system of the processing mechanism 13; that is, the second deviation between the position of the lens to be processed and the pre-stored reference template in the motion coordinate system is determined according to the first corresponding relationship and the first deviation;
[0064] In step S104, the second deviation is substituted into the pre-stored reference template for deviation compensation, and then the processing mechanism 13 is controlled to perform processing actions on the lens to be processed according to the compensation result, so as to compensate for the second deviation and obtain the required processing path.
[0065] In summary, the lens processing control method provided by the embodiment of the present application first uses the visual mechanism 12 to take a picture of the lens to be processed to obtain a position image of the lens to be processed before the processing mechanism 13 performs the processing action on the lens to be processed; then, according to the position image and the corresponding relationship between the visual coordinate system of the visual mechanism 12 and the motion coordinate system of the processing mechanism 13, the deviation between the position of the lens to be processed in the motion coordinate system and the pre-stored reference template is obtained, and the deviation is compensated when the processing mechanism 13 performs the processing action on the lens to be processed. In this way, there is no need to strictly require the lens tooling 11 carrying the lens to be processed. When the posture of the lens placement is deviated, or the postures of multiple lenses in the same batch are different, the deviation and difference can also be compensated, thereby greatly reducing the requirements for the lens tooling and improving the processing accuracy of the lens.
[0066] In one embodiment, determining the first corresponding relationship between the visual coordinate system of the visual mechanism 12 and the motion coordinate system of the processing mechanism 13 includes:
[0067] A first characteristic image of a first characteristic point of the lens to be processed collected by the visual mechanism 12 is acquired, and the first corresponding relationship is calculated according to the first characteristic image.
[0068] In this specific example, a first feature point is selected on the lens to be processed as an object for photographing and collecting by the visual mechanism 12 to obtain a first feature image of the first feature point; the so-called first feature point can be a certain point on the lens to be processed, or a feature area composed of multiple points.
[0069] In one embodiment, calculating the first corresponding relationship according to the first feature image includes:
[0070] The distance between the visual mechanism 12 and the processing mechanism 13 in the first direction, the distance in the second direction, and the distance in the third direction are calculated based on the first characteristic image.
[0071] In this specific example, for example, it can be assumed that the coordinates of the processing mechanism 13 to the first feature point are (X1, Y1, Z1), and the coordinates of the visual mechanism 12 to the first feature point are (X2, Y2, Z2), then the distance between the processing mechanism 13 and the visual mechanism 12 in the first direction, the distance in the second direction, and the distance in the third direction can be obtained as (X1-X2, Y1-Y2, Z1-Z2).
[0072] In one embodiment, the step of acquiring the position image of the lens to be processed acquired by the visual mechanism 12 and determining, according to the position image, a first deviation between the position of the lens to be processed and a pre-stored reference template in the visual coordinate system includes:
[0073] A second characteristic image of a second characteristic point of the lens to be processed collected by the visual mechanism 12 is obtained, and a first deviation between the position of the lens to be processed and a pre-stored reference template in the visual coordinate system is calculated based on the second characteristic image.
[0074] In this specific example, a second feature point is selected on the lens to be processed as an object for the visual mechanism 12 to take photos and collect, so as to obtain a second feature image of the second feature point; the so-called second feature point can be a certain point on the lens to be processed, or a feature area composed of multiple points. Optionally, the second feature point can be the same as or different from the first feature point.
[0075] For example, it can be assumed that the coordinates of the second feature point in the pre-stored reference template are (X3, Y3, Z3), and the coordinates of the second feature point in the second feature image acquired by the visual mechanism 12 are (X4, Y4, Z4), then the first deviation between the position of the lens to be processed and the pre-stored reference template can be obtained as (X3-X4, Y3-Y4, Z3-Z4).
[0076] In one embodiment, the lens tooling 11 can move in a first direction; the visual mechanism 12 and the processing mechanism 13 are jointly arranged on a supporting mechanism, and the supporting mechanism can move in a second direction and a third direction;
[0077] The second deviation includes: a first position deviation along the first direction and / or a second position deviation and / or an angle deviation along the second direction.
[0078] In this specific example, the second deviation may include only the first position deviation along the first direction, or only the second position deviation along the second direction, or only the angle deviation; it may also be any combination of the first position deviation, the second position deviation and the angle deviation.
[0079] In one embodiment, controlling the processing mechanism 13 to perform a processing action on the lens to be processed according to the second deviation comprises:
[0080] In the case where the second deviation includes the first position deviation, while controlling the processing mechanism 13 to perform a processing action on the lens to be processed, the lens tool 11 is controlled to move in the first direction; and / or
[0081] In the case where the second deviation includes the second position deviation, while controlling the processing mechanism 13 to perform a processing action on the lens to be processed, controlling the supporting mechanism to move in the second direction; and / or
[0082] In the case where the second deviation includes the angular deviation, while controlling the processing mechanism 13 to perform a processing action on the lens to be processed, the lens tool 11 is controlled to move in the first direction and the supporting mechanism is controlled to move in the second direction.
[0083] In this specific example, for example, if the second deviation shows that the position of the lens to be processed is offset by +0.5mm in the first direction relative to the pre-stored reference template, then while controlling the processing mechanism 13 to perform processing on the lens to be processed, the lens tooling 11 is controlled to move -0.5mm in the first direction for compensation.
[0084] If the second deviation shows that the position of the lens to be processed is offset by -0.3 mm in the second direction relative to the pre-stored reference template, the supporting mechanism is controlled to move +0.3 mm in the second direction for compensation while the processing mechanism 13 is controlled to perform processing on the lens to be processed.
[0085] If the second deviation shows that there is a certain angular deviation between the position of the lens to be processed and the pre-stored reference template, then while controlling the processing mechanism 13 to perform processing actions on the lens to be processed, the lens tooling 11 is controlled to move in the first direction and the supporting mechanism is controlled to move in the second direction, and the above-mentioned angular deviation is compensated by the composite trajectory of the movement trajectory of the lens tooling 11 in the first direction and the movement trajectory of the supporting mechanism in the second direction.
[0086] <Device Example>
[0087] Reference Figure 3 As shown, according to another embodiment of the present application, a lens processing control device 200 is provided. The lens processing control device 200 is applied to a lens processing device. The control device includes:
[0088] A first determining module 201 is used to determine a first corresponding relationship between a visual coordinate system of the visual mechanism 12 and a motion coordinate system of the processing mechanism 13;
[0089] A second determination module 202 is used to obtain a position image of the lens to be processed acquired by the visual mechanism 12, and determine a first deviation between the position of the lens to be processed and a pre-stored reference template in the visual coordinate system according to the position image;
[0090] A third determining module 203 is used to determine a second deviation between the position of the lens to be processed and a pre-stored reference template in the motion coordinate system according to the first corresponding relationship and the first deviation;
[0091] The control module 204 is used to control the processing mechanism 13 to perform a processing action on the lens to be processed according to the second deviation.
[0092] In the embodiment of the present application, the lens processing equipment 1 used by the lens processing control device 200 may be, for example, a VR lens gate processing equipment.
[0093] For the first determination module 201, the first correspondence between the visual coordinate system of the visual mechanism 12 and the motion coordinate system of the processing mechanism 13 is first determined; although the visual mechanism 12 and the processing mechanism 13 always move synchronously in the second direction and the third direction, there is a deviation between the position of the visual mechanism 12 and the position of the processing mechanism 13. Therefore, the visual coordinate system of the visual mechanism 12 and the motion coordinate system of the processing mechanism 13 are not equivalent, but there is a certain relative relationship, that is, the first correspondence. In step S101, the first correspondence is first determined for use in subsequent steps.
[0094] For the second determination module 202, the position image of the lens to be processed collected by the visual mechanism 12 is obtained, that is, the lens to be processed is brought into the photographing position; for example, it includes moving the lens tooling 11 and the lens to be processed carried thereon in the first direction under the driving action of the first linear motor 14, and moving the visual mechanism 12 in the second direction under the driving action of the second linear motor 16, so that the lens to be processed enters the photographing range of the visual mechanism 12; for example, it also includes moving the visual mechanism 12 in the third direction under the driving action of the third linear motor 17 to realize the focusing process, thereby obtaining a position image of the lens to be processed with a clear image and a distinct contrast.
[0095] Since the position image is obtained by taking a photo by the visual mechanism 12, the first deviation between the position of the lens to be processed and the pre-stored reference template in the visual coordinate system of the visual mechanism 12 can be determined based on the position image of the lens to be processed; the pre-stored reference template is a pre-stored standard processing path template under ideal conditions.
[0096] For the third determination module 203, since the action of processing the lens to be processed is performed by the processing mechanism 13, it is necessary to convert the first deviation into a deviation in the motion coordinate system of the processing mechanism 13; that is, the second deviation between the position of the lens to be processed and the pre-stored reference template in the motion coordinate system is determined according to the first corresponding relationship and the first deviation;
[0097] The control module 204 substitutes the second deviation into the pre-stored reference template for deviation compensation, and then controls the processing mechanism 13 to perform processing actions on the lens to be processed according to the compensation result, so as to compensate for the second deviation and obtain the required processing path.
[0098] In summary, the lens processing control device provided in the embodiment of the present application first uses the visual mechanism 12 to take a picture of the lens to be processed to obtain a position image of the lens to be processed before the processing mechanism 13 performs the processing action on the lens to be processed; then, according to the position image and the correspondence between the visual coordinate system of the visual mechanism 12 and the motion coordinate system of the processing mechanism 13, the deviation between the position of the lens to be processed in the motion coordinate system and the pre-stored reference template is obtained, and the deviation is compensated when the processing mechanism 13 performs the processing action on the lens to be processed. In this way, there is no need to strictly require the lens tooling 11 carrying the lens to be processed. When the posture of the lens placement is deviated, or the postures of multiple lenses in the same batch are different, the deviation and difference can also be compensated, thereby greatly reducing the requirements for the lens tooling and improving the processing accuracy of the lens.
[0099] In one embodiment, the control device 200 further includes:
[0100] The calculation module 205 is used to calculate the first corresponding relationship according to the first characteristic image when the first characteristic image of the first characteristic point of the lens to be processed is acquired by the visual mechanism 12.
[0101] According to another embodiment of the present application, referring to Figure 4 As shown, a lens processing device 300 is provided, and the lens processing device 300 includes:
[0102] Memory 301, used to store executable computer instructions;
[0103] The processor 302 is used to execute the lens processing control method as described above according to the control of the executable computer instructions.
[0104] <Computer Readable Storage Medium>
[0105] According to another embodiment of the present application, a computer-readable storage medium is provided, on which computer instructions are stored. When the computer instructions are executed by a processor, the lens processing control method as described above is executed.
[0106] The embodiments of the present disclosure may be systems, methods and / or computer program products. The computer program product may include a computer-readable storage medium carrying computer-readable program instructions for causing a processor to implement various aspects of the embodiments of the present disclosure.
[0107] A computer-readable storage medium may be a tangible device that can hold and store instructions used by an instruction execution device. A computer-readable storage medium may be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the above. More specific examples (a non-exhaustive list) of computer-readable storage media include: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a static random access memory (SRAM), a portable compact disk read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanical encoding device, such as a punch card or a raised structure in a groove on which instructions are stored, and any suitable combination of the above. The computer-readable storage medium used herein is not to be interpreted as a transient signal itself, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagating through a waveguide or other transmission medium (e.g., a light pulse through a fiber optic cable), or an electrical signal transmitted through a wire.
[0108] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to each computing / processing device, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network can include copper transmission cables, optical fiber transmissions, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in the computer-readable storage medium in each computing / processing device.
[0109] The computer program instructions for performing the operation of the embodiments of the present disclosure may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages, such as Smalltalk, C++, etc., and conventional procedural programming languages, such as "C" language or similar programming languages. The computer-readable program instructions may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer, partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., using an Internet service provider to connect through the Internet). In some embodiments, by using the state information of the computer-readable program instructions to personalize an electronic circuit, such as a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA), the electronic circuit may execute the computer-readable program instructions, thereby realizing various aspects of the embodiments of the present disclosure.
[0110] Various aspects of the embodiments of the present disclosure are described herein with reference to flowcharts and / or block diagrams of methods, devices (systems) and computer program products according to the embodiments of the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of boxes in the flowchart and / or block diagram can be implemented by computer-readable program instructions.
[0111] These computer-readable program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine, so that when these instructions are executed by the processor of the computer or other programmable data processing device, a device that implements the functions / actions specified in one or more boxes in the flowchart and / or block diagram is generated. These computer-readable program instructions can also be stored in a computer-readable storage medium, and these instructions cause the computer, programmable data processing device, and / or other equipment to work in a specific manner, so that the computer-readable medium storing the instructions includes a manufactured product, which includes instructions for implementing various aspects of the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0112] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operating steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to implement the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0113] The flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the systems, methods and computer program products according to multiple embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of an instruction, and the module, a program segment or a part of an instruction contains one or more executable instructions for realizing the specified logical function. In some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or the flowchart, and the combination of the boxes in the block diagram and / or the flowchart can be implemented by a dedicated hardware-based system that performs the specified function or action, or can be implemented by a combination of dedicated hardware and computer instructions. It is well known to those skilled in the art that it is equivalent to implement it by hardware, implement it by software, and implement it by combining software and hardware.
[0114] The embodiments of the present application have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and changes will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or technical improvements in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein. The scope of the present application is defined by the appended claims.
Claims
1. A lens processing control method, characterized in that: Applicable to lens processing equipment, the lens processing equipment (1) comprises: A lens tool (11), wherein the lens tool (11) is used to carry a lens to be processed; A visual mechanism (12), wherein the visual mechanism (12) is used to take a picture of the lens to be processed; A processing mechanism (13), wherein the processing mechanism (13) is used to perform a processing action on the lens to be processed; The control method comprises: Determining a first corresponding relationship between a visual coordinate system of the visual mechanism (12) and a motion coordinate system of the processing mechanism (13); Acquiring a position image of the lens to be processed acquired by the visual mechanism (12), and determining a first deviation between the position of the lens to be processed and a pre-stored reference template in the visual coordinate system according to the position image; Determine, according to the first corresponding relationship and the first deviation, a second deviation between the position of the lens to be processed and a pre-stored reference template in the motion coordinate system; Controlling the processing mechanism (13) to perform a processing action on the lens to be processed according to the second deviation and a pre-stored reference template; The lens tooling (11) is movable in a first direction; the visual mechanism (12) and the processing mechanism (13) are jointly arranged on a supporting mechanism, and the supporting mechanism is movable in a second direction and a third direction; The second deviation includes: a first position deviation along the first direction and / or a second position deviation and / or an angle deviation along the second direction.
2. The lens processing control method according to claim 1, characterized in that: Determining a first corresponding relationship between a visual coordinate system of the visual mechanism (12) and a motion coordinate system of the processing mechanism (13) comprises: A first characteristic image of a first characteristic point of the lens to be processed collected by the visual mechanism (12) is obtained, and the first corresponding relationship is calculated based on the first characteristic image.
3. The lens processing control method according to claim 2, characterized in that: The lens tooling (11) is movable in a first direction; the visual mechanism (12) and the processing mechanism (13) are jointly arranged on a supporting mechanism, and the supporting mechanism is movable in a second direction and a third direction; The calculating the first corresponding relationship according to the first feature image includes: The distance between the visual mechanism (12) and the processing mechanism (13) in the first direction, the distance in the second direction, and the distance in the third direction are calculated based on the first characteristic image.
4. The lens processing control method according to claim 1, characterized in that: The step of acquiring a position image of the lens to be processed acquired by the visual mechanism (12), and determining a first deviation between the position of the lens to be processed and a pre-stored reference template in the visual coordinate system according to the position image, comprises: A second characteristic image of a second characteristic point of the lens to be processed collected by the visual mechanism (12) is obtained, and a first deviation between the position of the lens to be processed and a pre-stored reference template in the visual coordinate system is calculated based on the second characteristic image.
5. The lens processing control method according to claim 1, characterized in that: The step of controlling the processing mechanism (13) to perform a processing action on the lens to be processed according to the second deviation comprises: In a case where the second deviation includes the first position deviation, while controlling the processing mechanism (13) to perform a processing action on the lens to be processed, controlling the lens tooling (11) to move in a first direction; and / or In the case where the second deviation includes the second position deviation, while controlling the processing mechanism (13) to perform a processing action on the lens to be processed, controlling the support mechanism to move in the second direction; and / or In the case where the second deviation includes the angle deviation, while controlling the processing mechanism (13) to perform a processing action on the lens to be processed, the lens tooling (11) is controlled to move in a first direction and the supporting mechanism is controlled to move in a second direction.
6. A lens processing control device, characterized in that: Applicable to lens processing equipment, the lens processing equipment (1) comprises: A lens tool (11), wherein the lens tool (11) is used to carry a lens to be processed; A visual mechanism (12), wherein the visual mechanism (12) is used to take a picture of the lens to be processed; A processing mechanism (13), wherein the processing mechanism (13) is used to perform a processing action on the lens to be processed; The control device comprises: A first determination module, used to determine a first corresponding relationship between a visual coordinate system of the visual mechanism (12) and a motion coordinate system of the processing mechanism (13); A second determination module is used to obtain a position image of the lens to be processed acquired by the visual mechanism (12), and determine, based on the position image, a first deviation between the position of the lens to be processed and a pre-stored reference template in the visual coordinate system; A third determining module, configured to determine, in the motion coordinate system, a second deviation between the position of the lens to be processed and a pre-stored reference template according to the first corresponding relationship and the first deviation; A control module, used for controlling the processing mechanism (13) to perform a processing action on the lens to be processed according to the second deviation; The lens tooling (11) is movable in a first direction; the visual mechanism (12) and the processing mechanism (13) are jointly arranged on a supporting mechanism, and the supporting mechanism is movable in a second direction and a third direction; The second deviation includes: a first position deviation along the first direction and / or a second position deviation and / or an angle deviation along the second direction.
7. The lens processing control device according to claim 6, characterized in that: The control device also includes: The calculation module is used to calculate the first corresponding relationship based on the first characteristic image when acquiring the first characteristic image of the first characteristic point of the lens to be processed collected by the visual mechanism (12).
8. A lens processing device, characterized in that: The lens processing equipment comprises: Memory for storing executable computer instructions; A processor is used to execute the lens processing control method according to any one of claims 1 to 5 under the control of the executable computer instructions.
9. A computer-readable storage medium, characterized in that: Computer instructions are stored thereon, and when the computer instructions are executed by a processor, the lens processing control method according to any one of claims 1 to 5 is executed.
