CN117102661A - Visual positioning method and laser processing equipment - Google Patents
Visual positioning method and laser processing equipment Download PDFInfo
- Publication number
- CN117102661A CN117102661A CN202311384668.6A CN202311384668A CN117102661A CN 117102661 A CN117102661 A CN 117102661A CN 202311384668 A CN202311384668 A CN 202311384668A CN 117102661 A CN117102661 A CN 117102661A
- Authority
- CN
- China
- Prior art keywords
- position data
- data
- target object
- camera
- expansion
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 230000000007 visual effect Effects 0.000 title claims abstract description 31
- 238000000034 method Methods 0.000 title claims abstract description 28
- 238000012545 processing Methods 0.000 title claims abstract description 24
- 238000001514 detection method Methods 0.000 claims abstract description 30
- 230000008602 contraction Effects 0.000 claims description 55
- 238000004364 calculation method Methods 0.000 claims description 16
- 108010001267 Protein Subunits Proteins 0.000 claims description 3
- 238000004519 manufacturing process Methods 0.000 description 9
- 230000007246 mechanism Effects 0.000 description 8
- 238000010586 diagram Methods 0.000 description 7
- 238000005553 drilling Methods 0.000 description 5
- 238000005516 engineering process Methods 0.000 description 4
- 230000009286 beneficial effect Effects 0.000 description 3
- 230000008569 process Effects 0.000 description 2
- 238000012935 Averaging Methods 0.000 description 1
- 230000003044 adaptive effect Effects 0.000 description 1
- 230000008094 contradictory effect Effects 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012552 review Methods 0.000 description 1
Classifications
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B23—MACHINE TOOLS; METAL-WORKING NOT OTHERWISE PROVIDED FOR
- B23K—SOLDERING OR UNSOLDERING; WELDING; CLADDING OR PLATING BY SOLDERING OR WELDING; CUTTING BY APPLYING HEAT LOCALLY, e.g. FLAME CUTTING; WORKING BY LASER BEAM
- B23K26/00—Working by laser beam, e.g. welding, cutting or boring
- B23K26/02—Positioning or observing the workpiece, e.g. with respect to the point of impact; Aligning, aiming or focusing the laser beam
- B23K26/03—Observing, e.g. monitoring, the workpiece
- B23K26/032—Observing, e.g. monitoring, the workpiece using optical means
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B23—MACHINE TOOLS; METAL-WORKING NOT OTHERWISE PROVIDED FOR
- B23K—SOLDERING OR UNSOLDERING; WELDING; CLADDING OR PLATING BY SOLDERING OR WELDING; CUTTING BY APPLYING HEAT LOCALLY, e.g. FLAME CUTTING; WORKING BY LASER BEAM
- B23K26/00—Working by laser beam, e.g. welding, cutting or boring
- B23K26/02—Positioning or observing the workpiece, e.g. with respect to the point of impact; Aligning, aiming or focusing the laser beam
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B23—MACHINE TOOLS; METAL-WORKING NOT OTHERWISE PROVIDED FOR
- B23K—SOLDERING OR UNSOLDERING; WELDING; CLADDING OR PLATING BY SOLDERING OR WELDING; CUTTING BY APPLYING HEAT LOCALLY, e.g. FLAME CUTTING; WORKING BY LASER BEAM
- B23K26/00—Working by laser beam, e.g. welding, cutting or boring
- B23K26/36—Removing material
- B23K26/38—Removing material by boring or cutting
- B23K26/382—Removing material by boring or cutting by boring
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B23—MACHINE TOOLS; METAL-WORKING NOT OTHERWISE PROVIDED FOR
- B23K—SOLDERING OR UNSOLDERING; WELDING; CLADDING OR PLATING BY SOLDERING OR WELDING; CUTTING BY APPLYING HEAT LOCALLY, e.g. FLAME CUTTING; WORKING BY LASER BEAM
- B23K2101/00—Articles made by soldering, welding or cutting
- B23K2101/36—Electric or electronic devices
- B23K2101/42—Printed circuits
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Optics & Photonics (AREA)
- Plasma & Fusion (AREA)
- Mechanical Engineering (AREA)
- Length Measuring Devices By Optical Means (AREA)
Abstract
本发明公开了一种视觉定位方法及激光加工设备,包括移动并通过第一相机对目标对象进行定位检测,确定第一位置数据和第二位置数据;根据第一位置数据和第二位置数据,确定第一偏移量数据;根据第一偏移量数据及目标对象的预设初始位置数据对目标对象进行位置补偿,确定目标对象的实际位置数据;根据目标对象的实际位置数据,确定第三位置数据;根据第三位置数据移动并通过第二相机对目标对象进行定位检测,确定定位检测结果。本发明利用视野范围较大的第一相机去捕捉第一标识点和第二标识点,视觉定位速度高,根据第一标识点和第二标识点的位置数据确定目标对象的偏移情况并进行补偿,再通过第二相机进行高精度定位,定位准确性高。
The invention discloses a visual positioning method and laser processing equipment, which include moving and positioning a target object through a first camera to determine the first position data and the second position data; according to the first position data and the second position data, Determine the first offset data; perform position compensation on the target object according to the first offset data and the preset initial position data of the target object, and determine the actual position data of the target object; determine the third position data according to the actual position data of the target object. Position data; move according to the third position data and perform positioning detection on the target object through the second camera to determine the positioning detection result. The present invention uses the first camera with a larger field of view to capture the first identification point and the second identification point, and has a high visual positioning speed. According to the position data of the first identification point and the second identification point, the offset of the target object is determined and carried out. compensation, and then perform high-precision positioning through the second camera, with high positioning accuracy.
Description
技术领域Technical field
本发明涉及激光加工设备技术领域,特别涉及一种视觉定位方法及激光加工设备。The invention relates to the technical field of laser processing equipment, and in particular to a visual positioning method and laser processing equipment.
背景技术Background technique
激光加工设备,例如应用于线路板钻孔的激光加工设备,在开始作业时需要对待加工产品进行定位,以确定作业的坐标原点。相关技术中,激光加工设备大多利用相机进行视觉定位,但是由于相机的视野范围和精度性能之间存在矛盾,以及待加工产品在放置过程中存在位置偏移等因素,相关技术的视觉定位方法难以快速、准确地对产品进行定位。Laser processing equipment, such as those used for drilling circuit boards, needs to position the product to be processed when starting the operation to determine the coordinate origin of the operation. In related technologies, most laser processing equipment uses cameras for visual positioning. However, due to the contradiction between the camera's field of view and accuracy performance, as well as the position deviation of the product to be processed during the placement process, the visual positioning method of related technologies is difficult to achieve. Position products quickly and accurately.
发明内容Contents of the invention
本发明旨在至少解决现有技术中存在的技术问题之一。为此,本发明提出一种视觉定位方法及激光加工设备,能够提高视觉定位的效率和准确性。The present invention aims to solve at least one of the technical problems existing in the prior art. To this end, the present invention proposes a visual positioning method and laser processing equipment, which can improve the efficiency and accuracy of visual positioning.
一方面,本发明实施例提供一种视觉定位方法,应用于激光加工设备,所述激光加工设备包括第一相机和第二相机,包括:On the one hand, embodiments of the present invention provide a visual positioning method applied to laser processing equipment. The laser processing equipment includes a first camera and a second camera, including:
移动并通过所述第一相机对目标对象进行定位检测,确定第一位置数据和第二位置数据,所述第一位置数据用于表征设置在所述目标对象上的第一标识点的实际位置数据,所述第二位置数据用于表征设置在所述目标对象上的第二标识点的实际位置数据,所述第一相机的视野范围大于所述第二相机;Move and perform positioning detection on the target object through the first camera, and determine first position data and second position data. The first position data is used to represent the actual position of the first identification point set on the target object. Data, the second position data is used to represent the actual position data of the second identification point set on the target object, and the field of view of the first camera is larger than that of the second camera;
根据所述第一位置数据和所述第二位置数据,确定第一偏移量数据,所述第一偏移量数据用于表征所述目标对象的实际位置与预设的初始位置之间的偏移量;According to the first position data and the second position data, first offset data is determined, and the first offset data is used to characterize the difference between the actual position of the target object and the preset initial position. Offset;
根据所述第一偏移量数据及所述目标对象的预设初始位置数据对所述目标对象进行位置补偿,确定所述目标对象的实际位置数据;Perform position compensation on the target object according to the first offset data and the preset initial position data of the target object, and determine the actual position data of the target object;
根据所述目标对象的实际位置数据,确定第三位置数据,所述第三位置数据用于表征设置在所述目标对象上的多个第三标识点的理论位置数据;Determine third position data according to the actual position data of the target object, where the third position data is used to represent the theoretical position data of a plurality of third identification points provided on the target object;
根据所述第三位置数据移动并通过所述第二相机对所述目标对象进行定位检测,确定定位检测结果。Move and perform positioning detection on the target object through the second camera according to the third position data, and determine the positioning detection result.
根据本发明的一些实施例,所述移动并通过所述第一相机对目标对象进行定位检测,确定第一位置数据和第二位置数据,包括:According to some embodiments of the present invention, the moving and positioning detection of the target object through the first camera and determining the first position data and the second position data include:
获取第一理论位置数据和第二理论位置数据,所述第一理论位置数据用于表征所述第一标识点的预设初始位置,所述第二理论位置数据用于表征所述第二标识点的预设初始位置;Obtain first theoretical position data and second theoretical position data. The first theoretical position data is used to characterize the preset initial position of the first identification point, and the second theoretical position data is used to characterize the second identification point. The preset initial position of the point;
根据所述第一理论位置数据,移动并通过所述第一相机对所述目标对象进行定位检测,确定所述第一位置数据;According to the first theoretical position data, move and perform positioning detection on the target object through the first camera to determine the first position data;
根据所述第二理论位置数据,移动并通过所述第一相机对所述目标对象进行定位检测,确定所述第二位置数据。According to the second theoretical position data, the target object is moved and positioned through the first camera to determine the second position data.
根据本发明的一些实施例,所述根据所述第一位置数据和所述第二位置数据,确定第一偏移量数据,包括:According to some embodiments of the present invention, determining the first offset data according to the first position data and the second position data includes:
在预设的第一直角坐标系下,对所述第一位置数据和所述第二位置数据进行差值运算,确定第一差值和第二差值,其中所述第一差值用于表征在所述第一直角坐标系的X轴上的坐标差值,所述第二差值用于表征在所述第一直角坐标系的Y轴上的坐标差值,所述第一直角坐标系的所在平面平行于所述目标对象的所在平面,且所述第一直角坐标系的X轴延伸方向平行于所述第一相机的移动方向;Under the preset first rectangular coordinate system, perform a difference operation on the first position data and the second position data to determine the first difference value and the second difference value, where the first difference value is used represents the coordinate difference on the X-axis of the first rectangular coordinate system, the second difference is used to represent the coordinate difference on the Y-axis of the first rectangular coordinate system, the first rectangular coordinate The plane of the system is parallel to the plane of the target object, and the X-axis extension direction of the first rectangular coordinate system is parallel to the moving direction of the first camera;
根据所述第一差值和所述第二差值,确定所述第一偏移量数据。The first offset data is determined based on the first difference value and the second difference value.
根据本发明的一些实施例,所述根据所述第一位置数据和所述第二位置数据,确定第一偏移量数据,还包括:According to some embodiments of the present invention, determining the first offset data according to the first position data and the second position data further includes:
获取第一理论位置数据,所述第一理论位置数据用于表征所述第一标识点的预设初始位置;Obtain first theoretical position data, the first theoretical position data is used to characterize the preset initial position of the first identification point;
在所述第一直角坐标系下,对所述第一理论位置数据和所述第一位置数据进行差值运算,确定所述第一偏移量数据;Under the first rectangular coordinate system, perform a difference operation on the first theoretical position data and the first position data to determine the first offset data;
或者,or,
获取第二理论位置数据,所述第二理论位置数据用于表征所述第二标识点的预设初始位置;Obtain second theoretical position data, the second theoretical position data is used to characterize the preset initial position of the second identification point;
在所述第一直角坐标系下,对所述第二理论位置数据和所述第二位置数据进行差值运算,确定所述第一偏移量数据。In the first rectangular coordinate system, a difference operation is performed on the second theoretical position data and the second position data to determine the first offset data.
根据本发明的一些实施例,所述目标对象的预设初始位置数据是在预设的第二直角坐标系下的数据,所述第二直角坐标系以所述第一标识点或所述第二标识点为坐标原点,所述根据所述第一偏移量数据及所述目标对象的预设初始位置数据对所述目标对象进行位置补偿,确定所述目标对象的实际位置数据,包括:According to some embodiments of the present invention, the preset initial position data of the target object is data in a preset second rectangular coordinate system, and the second rectangular coordinate system is based on the first identification point or the third The two identification points are coordinate origins. The position compensation of the target object based on the first offset data and the preset initial position data of the target object and determining the actual position data of the target object include:
在所述第二直角坐标系下,根据所述第一偏移量数据及对所述目标对象的预设初始位置数据对所述目标对象进行位置补偿,确定第一位置补偿数据;Under the second rectangular coordinate system, perform position compensation on the target object according to the first offset data and the preset initial position data of the target object, and determine the first position compensation data;
将所述第一位置补偿数据进行从所述第二直角坐标系向所述第一直角坐标系的坐标转换,确定所述目标对象的实际位置数据。The first position compensation data is converted from the second rectangular coordinate system to the first rectangular coordinate system to determine the actual position data of the target object.
根据本发明的一些实施例,所述根据所述第三位置数据移动并通过所述第二相机对所述目标对象进行定位检测,之后还包括:According to some embodiments of the present invention, the step of moving and positioning the target object through the second camera according to the third position data further includes:
根据所述定位检测结果,确定第四位置数据,所述第四位置数据用于表征所述多个第三标识点的实际位置数据;Determine fourth position data according to the positioning detection result, where the fourth position data is used to characterize the actual position data of the plurality of third identification points;
根据所述第四位置数据对所述目标对象进行涨缩计算,确定涨缩补偿数据。Expansion and contraction calculations are performed on the target object based on the fourth position data to determine expansion and contraction compensation data.
根据本发明的一些实施例,所述多个第三标识点设置在所述目标对象的边缘处,所述根据所述第四位置数据对所述目标对象进行涨缩计算,确定涨缩补偿数据,包括:According to some embodiments of the present invention, the plurality of third identification points are set at the edge of the target object, and the expansion and contraction calculation of the target object is performed according to the fourth position data to determine the expansion and contraction compensation data. ,include:
根据所述第四位置数据对所述目标对象进行整体涨缩计算,确定整体涨缩补偿数据。Perform an overall expansion and contraction calculation on the target object based on the fourth position data to determine the overall expansion and contraction compensation data.
根据本发明的一些实施例,所述目标对象包括多个子单元,所述多个第三标识点设置在所述子单元的边缘处,所述根据所述第四位置数据对所述目标对象进行涨缩计算,确定涨缩补偿数据,包括:According to some embodiments of the present invention, the target object includes a plurality of sub-units, the plurality of third identification points are set at edges of the sub-units, and the target object is processed according to the fourth position data. Calculate expansion and contraction and determine expansion and contraction compensation data, including:
根据所述第四位置数据对所述目标对象进行局部涨缩计算,确定局部涨缩补偿数据。Perform local expansion and contraction calculation on the target object according to the fourth position data to determine local expansion and contraction compensation data.
根据本发明的一些实施例,所述多个第三标识点呈矩形分布,以组成定位矩形,所述根据所述第四位置数据对所述目标对象进行涨缩计算,确定涨缩补偿数据,包括:According to some embodiments of the present invention, the plurality of third identification points are distributed in a rectangular shape to form a positioning rectangle, and the expansion and contraction calculation of the target object is performed according to the fourth position data to determine the expansion and contraction compensation data, include:
根据所述第四位置数据,确定第一边长数据和第二边长数据,所述第一边长数据用于表征所述定位矩形的第一边和第二边的长度数据,所述第二边长数据用于表征所述定位矩形的第三边和第四边的长度数据,所述第一边和所述第二边相互平行;According to the fourth position data, first side length data and second side length data are determined. The first side length data is used to characterize the length data of the first side and the second side of the positioning rectangle. The third side length data is determined. The two side length data is used to represent the length data of the third side and the fourth side of the positioning rectangle, and the first side and the second side are parallel to each other;
根据所述第一边长数据和所述第二边长数据,确定所述涨缩补偿数据。The expansion and contraction compensation data is determined based on the first side length data and the second side length data.
另一方面,本发明实施例提供一种激光加工设备,包括控制模块以及分别与所述控制模块电性连接的第一相机和第二相机,所述控制模块用于执行上述的视觉定位方法。On the other hand, an embodiment of the present invention provides a laser processing equipment, including a control module and a first camera and a second camera respectively electrically connected to the control module. The control module is used to perform the above visual positioning method.
本发明实施例至少具有如下有益效果:The embodiments of the present invention at least have the following beneficial effects:
利用视野范围较大的第一相机去捕捉目标对象上的第一标识点和第二标识点,有利于提高视觉定位的速度,根据第一标识点和第二标识点的位置数据确定目标对象的偏移情况并进行补偿,再通过第二相机进行高精度定位,有利于提高定位的准确性。Using the first camera with a larger field of view to capture the first identification point and the second identification point on the target object is beneficial to improving the speed of visual positioning, and determining the target object based on the position data of the first identification point and the second identification point. The offset is compensated, and then the second camera is used for high-precision positioning, which is beneficial to improving the accuracy of positioning.
本发明的附加方面和优点将在下面的描述中部分给出,部分将从下面的描述中变得明显,或通过本发明的实践了解到。Additional aspects and advantages of the invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention.
附图说明Description of drawings
本发明的上述和/或附加的方面和优点从结合下面附图对实施例的描述中将变得明显和容易理解,其中:The above and/or additional aspects and advantages of the present invention will become apparent and readily understood from the description of the embodiments taken in conjunction with the following drawings, in which:
图1为相关技术中大视野范围和小视野范围中标识点的示意图;Figure 1 is a schematic diagram of identification points in a large field of view and a small field of view in the related art;
图2为本发明实施例的激光加工设备的原理框图;Figure 2 is a functional block diagram of the laser processing equipment according to the embodiment of the present invention;
图3为本发明实施例的激光加工设备的结构示意图;Figure 3 is a schematic structural diagram of the laser processing equipment according to the embodiment of the present invention;
图4为本发明实施例的视觉定位方法的步骤流程图之一;Figure 4 is one of the step flow charts of the visual positioning method according to the embodiment of the present invention;
图5为本发明实施例中目标对象在第一直角坐标系下处于预设初始位置的示意图;Figure 5 is a schematic diagram of the target object in a preset initial position in the first rectangular coordinate system in the embodiment of the present invention;
图6为本发明实施例中目标对象在第一直角坐标系下处于实际位置的示意图;Figure 6 is a schematic diagram of the actual position of the target object in the first rectangular coordinate system in the embodiment of the present invention;
图7为本发明实施例的视觉定位方法的步骤流程图之二;Figure 7 is the second step flow chart of the visual positioning method according to the embodiment of the present invention;
图8为本发明实施例的目标对象的平面示意图。Figure 8 is a schematic plan view of a target object according to an embodiment of the present invention.
附图标记:Reference signs:
标识点010、视野范围020、控制模块100、第一相机210、第二相机220、运动机构300、移动平台400、目标对象500、第一标识点501、第二标识点502、第三标识点503、子单元504。Identification point 010, field of view range 020, control module 100, first camera 210, second camera 220, motion mechanism 300, mobile platform 400, target object 500, first identification point 501, second identification point 502, third identification point 503. Subunit 504.
具体实施方式Detailed ways
下面详细描述本发明的实施例,所述实施例的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施例是示例性的,仅用于解释本发明,而不能理解为对本发明的限制。Embodiments of the present invention are described in detail below, examples of which are illustrated in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements with the same or similar functions. The embodiments described below with reference to the drawings are exemplary and are only used to explain the present invention and cannot be understood as limiting the present invention.
在本发明的描述中,需要理解的是,涉及到方位描述,例如上、下、前、后、左、右等指示的方位或位置关系为基于附图所示的方位或位置关系,仅是为了便于描述本发明和简化描述,而不是指示或暗示所指的装置或元件必须具有特定的方位、以特定的方位构造和操作,因此不能理解为对本发明的限制。In the description of the present invention, it should be understood that orientation descriptions, such as up, down, front, back, left, right, etc., are based on the orientation or position relationships shown in the drawings and are only In order to facilitate the description of the present invention and simplify the description, it is not intended to indicate or imply that the device or element referred to must have a specific orientation, be constructed and operate in a specific orientation, and therefore should not be construed as a limitation of the present invention.
在本发明的描述中,“若干”的含义是一个或者多个,“多个”的含义是两个以上,大于、小于、超过等理解为不包括本数,“以上”、“以下”、“以内”等理解为包括本数。如果有描述到“第一”、“第二”等只是用于区分技术特征为目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量或者隐含指明所指示的技术特征的先后关系。In the description of the present invention, "several" means one or more, "multiple" means more than two, greater than, less than, more than, etc. are understood to exclude the number, and "above", "below", " "Within" etc. shall be understood as including the original number. If there are descriptions of "first", "second", etc., they are only used for the purpose of distinguishing technical features and cannot be understood as indicating or implying the relative importance or implicitly indicating the number of technical features indicated or implicitly indicating the indicated technical features. The sequence relationship of technical features.
本发明的描述中,除非另有明确的限定,“设置”、“安装”、“连接”等词语应做广义理解,所属技术领域技术人员可以结合技术方案的具体内容合理确定上述词语在本发明中的具体含义。In the description of the present invention, unless otherwise explicitly limited, words such as "setting", "installation" and "connection" should be understood in a broad sense. Those skilled in the art can reasonably determine the use of the above words in the present invention based on the specific content of the technical solution. the specific meaning in.
相机,也称摄像头,是用于获取图像的一种设备,常见于各种需要进行视觉定位的工业设备。相机的视野范围和识别精度是两种相矛盾的属性,视野范围大,则识别精度较低,反之,识别精度高,则视野范围较小,示例性的,请参照图1,图1的(a)示出了标识点010在大视野范围相机下的示意图,图1的(b)示出了标识点010在小视野范围相机下的示意图,从图中的对比可知,同一标识点010在不同相机的视野范围020内所显示的大小不同,识别精度也不同。相关技术中,大多激光设备采用单相机的结构来对待加工产品进行定位,但该结构如果采用大视野范围的相机则会导致定位的识别精度不足,而如果采用高精度的相机则会因识别的视野范围较小而导致定位效率较低,此外,实际生产中待加工产品可能存在因放置不到位而偏移预设位置的情况,导致小视野范围相机无法在视野范围内识别。针对相关技术的技术问题,本实施例公开一种视觉定位方法及用于执行该视觉定位方法的激光加工设备,以提高视觉定位的效率和准确性。A camera, also called a camera, is a device used to acquire images and is commonly found in various industrial equipment that require visual positioning. The field of view range and recognition accuracy of the camera are two contradictory attributes. If the field of view range is large, the recognition accuracy will be low. On the contrary, if the recognition accuracy is high, the field of view range will be small. For example, please refer to Figure 1, Figure 1 ( a) shows a schematic diagram of the identification point 010 under a camera with a large field of view. (b) of Figure 1 shows a schematic diagram of the identification point 010 under a camera with a small field of view. From the comparison in the figure, it can be seen that the same identification point 010 is The size displayed within the field of view 020 of different cameras is different, and the recognition accuracy is also different. In related technologies, most laser equipment uses a single-camera structure to position the product to be processed. However, if a camera with a wide field of view is used in this structure, the recognition accuracy of the positioning will be insufficient. If a high-precision camera is used, the recognition accuracy will be insufficient. The small field of view results in low positioning efficiency. In addition, in actual production, the product to be processed may be offset from the preset position due to insufficient placement, resulting in the camera with a small field of view being unable to identify it within the field of view. In view of the technical problems of related technologies, this embodiment discloses a visual positioning method and a laser processing equipment for executing the visual positioning method, so as to improve the efficiency and accuracy of visual positioning.
请参照图2,本实施例公开的激光加工设备,例如用于激光钻孔的激光钻孔设备,包括控制模块100以及分别与控制模块100电性连接的第一相机210和第二相机220,控制模块100用于执行本实施例的视觉定位方法。Please refer to Figure 2. The laser processing equipment disclosed in this embodiment, such as a laser drilling equipment for laser drilling, includes a control module 100 and a first camera 210 and a second camera 220 respectively electrically connected to the control module 100. The control module 100 is used to execute the visual positioning method of this embodiment.
示例性的,请参照图3,第一相机210和第二相机220安装在运动机构300上,运动机构300的下方设置有用于放置待加工产品的移动平台400,移动平台400能够相对运动机构300运动,其中待加工产品可以是诸如刚性线路板、柔性线路板等产品。运动机构300和移动平台400的配合可以使第一相机210和第二相机220对放置在移动平台400上的待加工产品进行视觉定位。为了便于对待加工产品上的标识点进行识别,本实施例构在第一平面内构建第一直角坐标系(即X1-O1-Y1),第一平面平行于目标对象500的所在平面,且第一直角坐标系的X轴延伸方向平行于第一相机210的移动方向,则第一直角坐标系的Y轴延伸方向平行于移动平台400的移动方向。For example, please refer to Figure 3. The first camera 210 and the second camera 220 are installed on the movement mechanism 300. A mobile platform 400 for placing products to be processed is provided below the movement mechanism 300. The mobile platform 400 can move relative to the movement mechanism 300. Movement, where the product to be processed can be products such as rigid circuit boards, flexible circuit boards, etc. The cooperation between the motion mechanism 300 and the mobile platform 400 allows the first camera 210 and the second camera 220 to visually locate the product to be processed placed on the mobile platform 400 . In order to facilitate the identification of identification points on the product to be processed, this embodiment constructs a first rectangular coordinate system (ie, X1-O1-Y1) in the first plane, which is parallel to the plane where the target object 500 is located, and the first plane The X-axis extending direction of the rectangular coordinate system is parallel to the moving direction of the first camera 210 , and the Y-axis extending direction of the first rectangular coordinate system is parallel to the moving direction of the mobile platform 400 .
请参照图4,本实施例公开的一种视觉定位方法,包括步骤S100~S500,需要说明的是,本实施例对方法步骤进行标号,仅是为了便于审查和阅读理解,而不应视为对执行顺序的限定。各个步骤的具体内容如下:Please refer to Figure 4. A visual positioning method disclosed in this embodiment includes steps S100~S500. It should be noted that the method steps are numbered in this embodiment only to facilitate review and reading understanding, and should not be regarded as Limitations on execution order. The specific content of each step is as follows:
S100、请参照图3和图5,移动并通过第一相机210对目标对象500进行定位检测,确定第一位置数据和第二位置数据,第一位置数据用于表征设置在目标对象500上的第一标识点501的实际位置数据,第二位置数据用于表征设置在目标对象500上的第二标识点502的实际位置数据,第一相机210的视野范围大于第二相机220;S100. Please refer to Figures 3 and 5, move and perform positioning detection on the target object 500 through the first camera 210, and determine the first position data and the second position data. The first position data is used to represent the position set on the target object 500. The actual position data of the first identification point 501, the second position data is used to represent the actual position data of the second identification point 502 set on the target object 500, and the field of view range of the first camera 210 is larger than that of the second camera 220;
本实施例以对线路板进行激光钻孔的激光加工设备作为示例进行说明,而作为激光加工设备目标对象500的线路板,在表面会设置有用于进行定位的标识点,俗称MARK点,例如孔或焊盘等。在开始生产前,作业人员将目标对象500的生产资料录入激光加工设备,其中生产资料包括标识点的位置信息和待加工位置的信息等。当开始生产时,第一相机210和第二相机220均处于初始位置,作业人员将目标对象500放置在激光加工设备预设的初始位置并启动生产。此时,第一相机210移动到预设的初始位置并对目标对象500进行定位检测,确定第一位置数据和第二位置数据。由于第一相机210的视野范围较大,第一相机210可以在更大视野范围内捕捉第一标识点501和第二标识点502,从而更快速地进行定位检测,即使目标对象500相对于预设位置产生位置偏移,第一相机210的大视野范围也能够为标识点的捕捉提供更大的容错视野范围,避免因标识点超出视野范围而无法进行定位检测,有利于提高定位检测的效率。This embodiment uses a laser processing equipment for laser drilling of circuit boards as an example. The circuit board as the target object 500 of the laser processing equipment will be provided with marking points for positioning on the surface, commonly known as MARK points, such as holes. Or pad, etc. Before starting production, the operator inputs the production data of the target object 500 into the laser processing equipment, where the production data includes the location information of the identification point and the information of the location to be processed. When starting production, both the first camera 210 and the second camera 220 are in the initial position, and the operator places the target object 500 at the preset initial position of the laser processing equipment and starts production. At this time, the first camera 210 moves to the preset initial position and performs positioning detection on the target object 500 to determine the first position data and the second position data. Since the first camera 210 has a larger field of view, the first camera 210 can capture the first identification point 501 and the second identification point 502 within a larger field of view, thereby performing positioning detection more quickly, even if the target object 500 is relative to the predetermined position. Assuming that the position is offset, the large field of view of the first camera 210 can also provide a larger error-tolerant field of view for capturing the identification point, preventing positioning detection from being impossible because the identification point exceeds the field of view, which is conducive to improving the efficiency of positioning detection. .
S200、根据第一位置数据和第二位置数据,确定第一偏移量数据,第一偏移量数据用于表征目标对象500的实际位置与预设的初始位置之间的偏移量;S200. Determine first offset data according to the first position data and the second position data. The first offset data is used to represent the offset between the actual position of the target object 500 and the preset initial position;
当第一相机210检测到第一标识点501第二标识点502时,可以确定第一位置数据和第二位置数据,从而根据第一位置数据和第二位置数据,确定目标对象500相对于预设的初始位置的位置偏移情况。When the first camera 210 detects the first identification point 501 and the second identification point 502, the first position data and the second position data can be determined, thereby determining the target object 500 relative to the predetermined position according to the first position data and the second position data. The position offset of the initial position is assumed.
S300、根据第一偏移量数据及目标对象500的预设初始位置数据对目标对象500进行位置补偿,确定目标对象500的实际位置数据;S300. Perform position compensation on the target object 500 according to the first offset data and the preset initial position data of the target object 500, and determine the actual position data of the target object 500;
在放置过程中,由于人工或设备放置精度的原因,目标对象500存在位置偏移,而目标对象500的偏移可能是直线偏移、转动偏移或两者的结合,当检测到目标对象500相对于预设的初始位置发生位置偏移时,对目标对象500进行位置补偿,确定目标对象500的实际位置数据,无需重新对目标对象500的摆放位置进行调整,有利于提高视觉定位的效率。During the placement process, due to manual or equipment placement accuracy, the target object 500 has a positional offset, and the offset of the target object 500 may be a linear offset, a rotational offset, or a combination of both. When the target object 500 is detected When a position deviation occurs relative to the preset initial position, position compensation is performed on the target object 500 to determine the actual position data of the target object 500. There is no need to re-adjust the placement of the target object 500, which is conducive to improving the efficiency of visual positioning. .
S400、请参照图5,根据目标对象500的实际位置数据,确定第三位置数据,第三位置数据用于表征设置在目标对象500上的多个第三标识点503的理论位置数据;S400. Please refer to Figure 5 to determine third position data based on the actual position data of the target object 500. The third position data is used to represent the theoretical position data of a plurality of third identification points 503 set on the target object 500;
如上文所述的,相机的视野范围和识别精度存在矛盾性,为了实现高精度定位,本实施例采用视野范围较小但识别精度更高的第二相机220来对设置在目标对象500上的第三标识点503进行定位检测。因为目标对象500的实际位置相对于初始位置发生位置偏移,所以需要根据目标对象500的实际位置数据,确定目标对象500上的多个第三标识点503的理论位置,以便于移动第二相机220来捕捉第三标识点503。As mentioned above, there is a contradiction between the camera's field of view and the recognition accuracy. In order to achieve high-precision positioning, this embodiment uses the second camera 220 with a smaller field of view but higher recognition accuracy to detect the target object 500 . The third identification point 503 performs positioning detection. Because the actual position of the target object 500 is offset relative to the initial position, it is necessary to determine the theoretical positions of the plurality of third identification points 503 on the target object 500 based on the actual position data of the target object 500 in order to move the second camera 220 to capture the third identification point 503.
S500、根据第三位置数据移动并通过第二相机220对目标对象500进行定位检测,确定定位检测结果。S500: Move and perform positioning detection on the target object 500 through the second camera 220 according to the third position data, and determine the positioning detection result.
当确定第三标识点503的理论位置时,将第二相机220移动到对应位置来识别第三标识点503,以进行定位检测。需要说明的是,本实施例涉及的第一相机210和第二相机220的“移动”均是相对移动,示例性的,请参照图2,本实施例的第一相机210和第二相机220设置在运动机构300上,而目标对象500放置在移动平台400上,通过运动机构300和移动平台400在X轴方向和Y轴方向的移动配合,可以使第一相机210和第二相机220相对目标对象500在两个方向上移动,从而对设置在目标对象500不同位置的标识点进行检测。当然,在一些实施例中,第一相机210和第二相机220可以设置在两自由度的移动机构上,如此可以实现X轴方向和Y轴方向的移动。When the theoretical position of the third identification point 503 is determined, the second camera 220 is moved to the corresponding position to identify the third identification point 503 for positioning detection. It should be noted that the “movements” of the first camera 210 and the second camera 220 involved in this embodiment are relative movements. For example, please refer to Figure 2. The first camera 210 and the second camera 220 in this embodiment It is arranged on the motion mechanism 300, and the target object 500 is placed on the mobile platform 400. Through the movement cooperation of the motion mechanism 300 and the mobile platform 400 in the X-axis direction and the Y-axis direction, the first camera 210 and the second camera 220 can be made to face each other. The target object 500 moves in two directions, thereby detecting identification points set at different positions of the target object 500 . Of course, in some embodiments, the first camera 210 and the second camera 220 can be disposed on a two-degree-of-freedom moving mechanism, so that movement in the X-axis direction and the Y-axis direction can be achieved.
步骤S100中,移动并通过第一相机210对目标对象500进行定位检测,确定第一位置数据和第二位置数据,包括:In step S100, move and perform positioning detection on the target object 500 through the first camera 210, and determine the first position data and the second position data, including:
S110、获取第一理论位置数据和第二理论位置数据,第一理论位置数据用于表征第一标识点501的预设初始位置,第二理论位置数据用于表征第二标识点502的预设初始位置;S110. Obtain first theoretical position data and second theoretical position data. The first theoretical position data is used to represent the preset initial position of the first identification point 501, and the second theoretical position data is used to represent the preset position of the second identification point 502. initial position;
如上文所述的,在开始生产前需要录入生产资料,生产资料包括第一标识点501和第二标识点502的预设初始位置的数据,其中,第一理论位置数据和第二理论位置数据可以通过示教的方式获得并录入,示例性的,在示教模式下,将目标对象500的放置在激光加工设备上,并通过手动模式或自动模式将第一相机210移动至与目标对象500的第一标识点501或第二标识点502的位置,以确定第一理论位置数据或第二理论位置数据。As mentioned above, production data needs to be entered before starting production. The production data includes data on the preset initial positions of the first identification point 501 and the second identification point 502, where the first theoretical position data and the second theoretical position data It can be obtained and entered through teaching. For example, in the teaching mode, the target object 500 is placed on the laser processing equipment, and the first camera 210 is moved to be in contact with the target object 500 through manual mode or automatic mode. The position of the first identification point 501 or the second identification point 502 is used to determine the first theoretical position data or the second theoretical position data.
S120、根据第一理论位置数据,移动并通过第一相机210对目标对象500进行定位检测,确定第一位置数据;S120. According to the first theoretical position data, move and perform positioning detection on the target object 500 through the first camera 210 to determine the first position data;
为了确定目标对象500的位置是否与初始位置相同,根据第一理论位置数据,将第一相机210移动到第一标识点501的预设初始位置,若目标对象500的实际位置与初始位置相同,则第一相机210可以在第一标识点501的预设初始位置捕捉到第一标识点501,从而确定第一标识点501的实际位置与预设初始位置相同;而当目标对象500的实际位置相对于初始位置发生可接收范围内的位置偏移时,第一相机210移动到第一标识点501的预设初始位置时,仍可以在视野范围内捕捉到第一标识点501,从而确定第一标识点501的实际位置。In order to determine whether the position of the target object 500 is the same as the initial position, the first camera 210 is moved to the preset initial position of the first identification point 501 according to the first theoretical position data. If the actual position of the target object 500 is the same as the initial position, Then the first camera 210 can capture the first identification point 501 at its preset initial position, thereby determining that the actual position of the first identification point 501 is the same as the preset initial position; and when the actual position of the target object 500 When a positional deviation within an acceptable range occurs relative to the initial position, when the first camera 210 moves to the preset initial position of the first identification point 501, the first identification point 501 can still be captured within the field of view, thereby determining the first identification point 501. One identifies the actual location of point 501.
S130、根据第二理论位置数据,移动并通过第一相机210对目标对象500进行定位检测,确定第二位置数据。S130. According to the second theoretical position data, move and perform positioning detection on the target object 500 through the first camera 210 to determine the second position data.
与第一标识点501的检测原理相同,本实施例根据第二理论位置数据,通过第一相机210来捕捉第二标识点502,从而确定第二位置数据。The detection principle of the first identification point 501 is the same as that of the first identification point 501. In this embodiment, the second identification point 502 is captured by the first camera 210 according to the second theoretical position data, thereby determining the second location data.
步骤S200中,根据第一位置数据和第二位置数据,确定第一偏移量数据,包括:In step S200, the first offset data is determined based on the first position data and the second position data, including:
S210、在预设的第一直角坐标系下,对第一位置数据和第二位置数据进行差值运算,确定第一差值和第二差值,其中第一差值用于表征在第一直角坐标系的X轴上的坐标差值,第二差值用于表征在第一直角坐标系的Y轴上的坐标差值,如上文所述的,第一直角坐标系的所在平面平行于目标对象500的所在平面,且第一直角坐标系的X轴延伸方向平行于第一相机210的移动方向;S210. Under the preset first rectangular coordinate system, perform a difference operation on the first position data and the second position data to determine the first difference value and the second difference value, where the first difference value is used to characterize the first difference value. The coordinate difference on the X-axis of the Cartesian coordinate system. The second difference is used to represent the coordinate difference on the Y-axis of the first Cartesian coordinate system. As mentioned above, the plane of the first Cartesian coordinate system is parallel to The plane where the target object 500 is located, and the X-axis extension direction of the first rectangular coordinate system is parallel to the moving direction of the first camera 210;
S220、根据第一差值和第二差值,确定第一偏移量数据。S220. Determine the first offset data based on the first difference value and the second difference value.
请参照图5和图6,图5中示出了目标对象500在预设初始位置以及图6示出了目标对象500相对预设初始位置发生转动偏移的情况。为了便于理解,本实施例以最简单的状态作为示例:假设目标对象500为边沿规整的矩形线路板,而第一标识点501和第二标识点502则沿目标对象500的边沿排布,且第一标识点501和第二标识点502之间的连线(下文简称“第一连线”)平行于目标对象500的其中一边沿。图5中,第一连线平行于第一直角坐标系的X轴,而在图6中,第一连线相对于X轴形成夹角a。设第一直角坐标系下,第一位置数据为(x 1,y 1),第二位置数据为(x 2,y 2),则对第一位置数据和第二位置数据进行差值运算,可以确定第一连线在X轴和Y轴上的分量,从而根据三角函数关系,确定夹角a,即第一偏移量数据。Please refer to FIGS. 5 and 6 . FIG. 5 shows the target object 500 in a preset initial position, and FIG. 6 shows a situation in which the target object 500 is rotated relative to the preset initial position. For ease of understanding, this embodiment takes the simplest state as an example: assuming that the target object 500 is a rectangular circuit board with regular edges, and the first identification points 501 and the second identification points 502 are arranged along the edges of the target object 500, and The connection line between the first identification point 501 and the second identification point 502 (hereinafter referred to as the "first connection line") is parallel to one edge of the target object 500 . In Figure 5, the first connecting line is parallel to the X-axis of the first rectangular coordinate system, and in Figure 6, the first connecting line forms an included angle a with respect to the X-axis. Assume that in the first rectangular coordinate system, the first position data is ( x 1 , y 1 ) and the second position data is ( x 2 , y 2 ), then perform a difference operation on the first position data and the second position data, The components of the first connecting line on the X-axis and the Y-axis can be determined, thereby determining the included angle a, that is, the first offset data, based on the trigonometric function relationship.
而对于目标对象500的实际位置相对于预设初始位置发生直线偏移的情况,步骤S200中,根据第一位置数据和第二位置数据,确定第一偏移量数据,还包括:For the situation where the actual position of the target object 500 is linearly offset relative to the preset initial position, in step S200, determining the first offset data based on the first position data and the second position data also includes:
S230、获取第一理论位置数据,第一理论位置数据用于表征第一标识点501的预设初始位置;S230. Obtain the first theoretical position data. The first theoretical position data is used to represent the preset initial position of the first identification point 501;
S240、在第一直角坐标系下,对第一理论位置数据和第一位置数据进行差值运算,确定第一偏移量数据;S240. In the first rectangular coordinate system, perform a difference operation on the first theoretical position data and the first position data to determine the first offset data;
或者,or,
S250、获取第二理论位置数据,第二理论位置数据用于表征第二标识点502的预设初始位置;S250. Obtain the second theoretical position data. The second theoretical position data is used to represent the preset initial position of the second identification point 502;
S260、在第一直角坐标系下,对第二理论位置数据和第二位置数据进行差值运算,确定第一偏移量数据。S260. In the first rectangular coordinate system, perform a difference operation on the second theoretical position data and the second position data to determine the first offset data.
示例性的,请参照图5和图6,设在第一直角坐标系下,第一理论位置数据为(x 10,y 10),而第一位置数据为(x 1,y 1),由于目标对象500的位置发生直线偏移,对第一理论位置数据和第一位置数据进行差值运算,可以确定目标对象500在X轴方向和Y轴方向上的偏移量。同理,通过第二理论位置数据和第二位置数据的差值运算,可以确定目标对象500在X轴方向和Y轴方向上的偏移量。因此,可以采用两种方式中的其中之一来确定第一偏移量数据。For example, please refer to Figures 5 and 6. Suppose that in the first rectangular coordinate system, the first theoretical position data is ( x 10 , y 10 ), and the first position data is ( x 1 , y 1 ). Since The position of the target object 500 is linearly displaced. By performing a difference operation on the first theoretical position data and the first position data, the offset amount of the target object 500 in the X-axis direction and the Y-axis direction can be determined. Similarly, through the difference operation between the second theoretical position data and the second position data, the offset of the target object 500 in the X-axis direction and the Y-axis direction can be determined. Therefore, the first offset data can be determined in one of two ways.
请参照图6,为了便于确定目标对象500的实际位置,本实施例针对目标对象500构建第二直角坐标系(即X2-O2-Y2),目标对象500的预设初始位置数据是在预设的第二直角坐标系下的数据,第二直角坐标系以第一标识点501或第二标识点502为坐标原点,步骤S300中,根据第一偏移量数据及目标对象500的预设初始位置数据对目标对象500进行位置补偿,确定目标对象500的实际位置数据,包括:Please refer to Figure 6. In order to facilitate the determination of the actual position of the target object 500, this embodiment constructs a second rectangular coordinate system (ie, X2-O2-Y2) for the target object 500. The preset initial position data of the target object 500 is in the preset Data in the second rectangular coordinate system, the second rectangular coordinate system uses the first identification point 501 or the second identification point 502 as the coordinate origin. In step S300, according to the first offset data and the preset initialization of the target object 500 The position data performs position compensation on the target object 500 and determines the actual position data of the target object 500, including:
S310、在第二直角坐标系下,根据第一偏移量数据及对目标对象500的预设初始位置数据对目标对象500进行位置补偿,确定第一位置补偿数据;S310. In the second rectangular coordinate system, perform position compensation on the target object 500 according to the first offset data and the preset initial position data of the target object 500, and determine the first position compensation data;
S320、将第一位置补偿数据进行从第二直角坐标系向第一直角坐标系的坐标转换,确定目标对象500的实际位置数据。S320: Convert the first position compensation data from the second rectangular coordinate system to the first rectangular coordinate system to determine the actual position data of the target object 500.
由于第二直角坐标系是建立在目标对象500上的,即使目标对象500在第一坐标系中发生直线偏移或转动偏移,在第二坐标系下,目标对象500上的各点相对于坐标原点(即第一标识点501或第二标识点502)的距离是不变的,例如图6中点A与点O2之间的距离和夹角b均不变。当目标对象500发生转动偏移时,目标对象500上的各点同样相对于第二发坐标系的坐标原点生转动,转动角度为夹角a。根据夹角a以及目标对象500上各点的原始坐标(即预设初始位置数据),可以确定发生转动偏移后的新坐标(即第一位置补偿数据)。根据第一直角坐标系和第二直角坐标系之间的关系,可以将第一位置补偿数据从第二直角坐标系向第一直角坐标系转换,从而确定目标对象500的实际位置数据。Since the second rectangular coordinate system is established on the target object 500, even if the target object 500 is linearly or rotationally offset in the first coordinate system, under the second coordinate system, each point on the target object 500 will be relative to The distance between the origin of the coordinates (that is, the first identification point 501 or the second identification point 502) remains unchanged. For example, the distance and angle b between point A and point O2 in Figure 6 remain unchanged. When the target object 500 is rotated and offset, each point on the target object 500 also rotates relative to the coordinate origin of the second coordinate system, and the rotation angle is the included angle a. According to the included angle a and the original coordinates of each point on the target object 500 (ie, the preset initial position data), the new coordinates after the rotational offset occurs (ie, the first position compensation data) can be determined. According to the relationship between the first rectangular coordinate system and the second rectangular coordinate system, the first position compensation data can be converted from the second rectangular coordinate system to the first rectangular coordinate system, thereby determining the actual position data of the target object 500 .
请参照图7,步骤S500,根据第三位置数据移动并通过第二相机220对所述目标对象500进行定位检测,之后还包括:Please refer to Figure 7, step S500, moving and positioning the target object 500 through the second camera 220 according to the third position data, and then also includes:
S600、根据定位检测结果,确定第四位置数据,第四位置数据用于表征多个第三标识点503的实际位置数据;S600. Determine the fourth position data according to the positioning detection result. The fourth position data is used to represent the actual position data of the plurality of third identification points 503;
S700、根据第四位置数据对目标对象500进行涨缩计算,确定涨缩补偿数据。S700: Perform expansion and contraction calculation on the target object 500 based on the fourth position data, and determine the expansion and contraction compensation data.
由于线路板的加工材料特性,线路板会因不同的加工材料而存在不同程度的涨缩,导致线路板上各点的位置发生偏移,因此,需要对目标对象500进行涨缩补偿。其中,将第二相机220移动至与第三位置数据相对应的位置,对目标对象500的第三标识点503进行捕捉,以进行定位检测。当第三标识点503的实际位置和理论位置相同时,第四位置数据和第三位置数据相同,而当第三标识点503的实际位置由于涨缩等因素而发生细微偏差时,确定第四位置数据,以便于对目标对象500进行涨缩计算。Due to the processing material characteristics of the circuit board, the circuit board will expand and contract to varying degrees due to different processing materials, causing the positions of various points on the circuit board to shift. Therefore, the target object 500 needs to be compensated for expansion and contraction. Wherein, the second camera 220 is moved to a position corresponding to the third position data, and the third identification point 503 of the target object 500 is captured for positioning detection. When the actual position of the third identification point 503 is the same as the theoretical position, the fourth position data is the same as the third position data, and when the actual position of the third identification point 503 slightly deviates due to factors such as expansion and contraction, the fourth position data is determined. Position data to facilitate expansion and contraction calculations of the target object 500.
在一些实施例中,如图5所示,为了对目标对象500进行整体定位和涨缩补偿,多个第三标识点503设置在目标对象500的边缘处,例如,设置在线路板的板边位置。步骤S500中,根据第四位置数据对目标对象500进行涨缩计算,确定涨缩补偿数据,包括:In some embodiments, as shown in FIG. 5 , in order to perform overall positioning and expansion and contraction compensation of the target object 500 , a plurality of third identification points 503 are set at the edge of the target object 500 , for example, at the edge of the circuit board. Location. In step S500, expansion and contraction calculations are performed on the target object 500 based on the fourth position data, and expansion and contraction compensation data are determined, including:
S710、根据第四位置数据对目标对象500进行整体涨缩计算,确定整体涨缩补偿数据。S710. Calculate the overall expansion and contraction of the target object 500 based on the fourth position data, and determine the overall expansion and contraction compensation data.
而在另一些实施例中,如图6所示,目标对象500包括多个子单元504,由于目标对象500的面积较大、材质较软或子单元504的数量较多等原因,目标对象500在不同位置处的涨缩程度可能存在差异。为了提高定位精度,多个第三标识点503设置在子单元504的边缘处,根据第四位置数据对目标对象500进行涨缩计算,确定涨缩补偿数据,包括:In other embodiments, as shown in FIG. 6 , the target object 500 includes multiple sub-units 504 . Due to reasons such as a larger area of the target object 500 , softer material, or a larger number of sub-units 504 , the target object 500 is The degree of expansion and contraction may vary at different locations. In order to improve the positioning accuracy, a plurality of third identification points 503 are set at the edge of the sub-unit 504. The expansion and contraction calculation of the target object 500 is performed based on the fourth position data to determine the expansion and contraction compensation data, including:
S720、根据第四位置数据对目标对象500进行局部涨缩计算,确定局部涨缩补偿数据。S720: Perform local expansion and contraction calculation on the target object 500 according to the fourth position data, and determine the local expansion and contraction compensation data.
示例性的,请参照图8,多个第三标识点503呈矩形分布,以组成定位矩形,步骤S500中,根据第四位置数据对目标对象500进行涨缩计算,确定涨缩补偿数据,包括:For example, please refer to Figure 8. A plurality of third identification points 503 are distributed in a rectangular shape to form a positioning rectangle. In step S500, the expansion and contraction calculation of the target object 500 is performed according to the fourth position data to determine the expansion and contraction compensation data, including :
S701、根据第四位置数据,确定第一边长数据和第二边长数据,第一边长数据用于表征定位矩形的第一边和第二边的长度数据,第二边长数据用于表征定位矩形的第三边和第四边的长度数据,第一边和第二边相互平行;S701. Determine the first side length data and the second side length data according to the fourth position data. The first side length data is used to represent the length data of the first side and the second side of the positioning rectangle. The second side length data is used to represent the length data of the first side and the second side of the positioning rectangle. Characterizes the length data of the third and fourth sides of the positioning rectangle, and the first and second sides are parallel to each other;
S702、根据第一边长数据和第二边长数据,确定涨缩补偿数据。S702. Determine expansion and contraction compensation data based on the first side length data and the second side length data.
具体的,请继续参照图8,对于整体涨缩补偿而言,第三标识点503的数量为四个,四个第三标识点503设置在目标对象500的四个边角处,从而形成定位矩形的四条边沿,即L11、L12、L13和L14。通过确定四个第三标识点503的位置数据,可以确定定位矩形四条边的边长数据,即第一边长数据、第二边长数据、第三边长数据和第四边长数据,根据两条相互平行的边的边长数据可以确定目标对象500在该方向上的涨缩情况,从而确定涨缩补偿数据,例如,对第一边长数据和第二边长数据进行均值运算,可以确定涨缩补偿数据,并根据涨缩补偿数据对目标对象500上的各点进行定位,例如根据涨缩补偿数据更新钻孔位置,从而提高定位的准确性。Specifically, please continue to refer to Figure 8. For overall expansion and contraction compensation, the number of third identification points 503 is four, and the four third identification points 503 are set at the four corners of the target object 500 to form a positioning The four edges of the rectangle are L11, L12, L13 and L14. By determining the position data of the four third identification points 503, the side length data of the four sides of the positioning rectangle can be determined, that is, the first side length data, the second side length data, the third side length data and the fourth side length data. According to The side length data of two mutually parallel sides can determine the expansion and contraction of the target object 500 in that direction, thereby determining the expansion and contraction compensation data. For example, by averaging the first side length data and the second side length data, you can The expansion and contraction compensation data are determined, and each point on the target object 500 is positioned according to the expansion and contraction compensation data. For example, the drilling position is updated according to the expansion and contraction compensation data, thereby improving the accuracy of positioning.
局部涨缩补偿与整体涨缩补偿的原理类似,区别在于局部补偿针对的是目标对象500中的每个子单元504,第三标识点503分布在每个子单元504的边角处,从而形成定位矩形的四条边沿,即L21、L22、L23和L24。如此,可以根据每个子单元504的涨缩情况进行适应性的局部补偿,使每个子单元504的视觉定位更加准确。The principle of local expansion and contraction compensation is similar to that of overall expansion and contraction compensation. The difference is that the local compensation is targeted at each sub-unit 504 in the target object 500. The third identification points 503 are distributed at the corners of each sub-unit 504, thereby forming a positioning rectangle. The four edges are L21, L22, L23 and L24. In this way, adaptive local compensation can be performed according to the expansion and contraction of each sub-unit 504, so that the visual positioning of each sub-unit 504 is more accurate.
在一些实施例中,目标对象的多个第三标识点503可以同时分布整板的四个边角处,以及位于每个子单元504的四个边角处,如此,可以实现整体涨缩补偿以及局部涨缩补偿,降低单一补偿方式的误差,有利于进一步提高定位的准确性。In some embodiments, multiple third identification points 503 of the target object can be simultaneously distributed at the four corners of the entire board and located at the four corners of each sub-unit 504. In this way, overall expansion and contraction compensation can be achieved. Local expansion and contraction compensation reduces the error of a single compensation method and is helpful to further improve positioning accuracy.
上面结合附图对本发明实施例作了详细说明,但是本发明不限于上述实施例,在所属技术领域普通技术人员所具备的知识范围内,还可以在不脱离本发明宗旨的前提下作出各种变化。The embodiments of the present invention have been described in detail above with reference to the accompanying drawings. However, the present invention is not limited to the above embodiments. Within the scope of knowledge possessed by those of ordinary skill in the art, various modifications can be made without departing from the purpose of the present invention. Variety.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311384668.6A CN117102661B (en) | 2023-10-25 | 2023-10-25 | Visual positioning method and laser processing equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311384668.6A CN117102661B (en) | 2023-10-25 | 2023-10-25 | Visual positioning method and laser processing equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN117102661A true CN117102661A (en) | 2023-11-24 |
CN117102661B CN117102661B (en) | 2024-01-09 |
Family
ID=88798795
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202311384668.6A Active CN117102661B (en) | 2023-10-25 | 2023-10-25 | Visual positioning method and laser processing equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117102661B (en) |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108662974A (en) * | 2017-03-28 | 2018-10-16 | 深圳市腾盛工业设备有限公司 | A kind of dispensing localization method and device based on double camera |
CN108694729A (en) * | 2017-04-07 | 2018-10-23 | 深圳市腾盛工业设备有限公司 | Localization method, unit based on image detection and storage medium |
CN109283804A (en) * | 2018-11-14 | 2019-01-29 | 江苏友迪激光科技有限公司 | A method of improving direct write exposure machine exposure accuracy and harmomegathus measurement accuracy |
CN110293559A (en) * | 2019-05-30 | 2019-10-01 | 上海理工大学 | A kind of installation method of automatic identification positioning alignment |
CN115143887A (en) * | 2022-09-05 | 2022-10-04 | 常州市建筑科学研究院集团股份有限公司 | Method for correcting measurement result of visual monitoring equipment and visual monitoring system |
CN115187658A (en) * | 2022-08-29 | 2022-10-14 | 合肥埃科光电科技股份有限公司 | Large target localization method, system and device for multi-camera vision |
CN115684019A (en) * | 2022-11-30 | 2023-02-03 | 合肥欣奕华智能机器股份有限公司 | Alignment device, calibration and alignment method of display panel detection equipment |
CN116153824A (en) * | 2023-04-20 | 2023-05-23 | 沈阳和研科技股份有限公司 | Discharging precision compensation method based on visual algorithm |
CN116858092A (en) * | 2023-06-25 | 2023-10-10 | 苏州维嘉科技股份有限公司 | Method for detecting vision system deviation and circuit board processing equipment |
-
2023
- 2023-10-25 CN CN202311384668.6A patent/CN117102661B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108662974A (en) * | 2017-03-28 | 2018-10-16 | 深圳市腾盛工业设备有限公司 | A kind of dispensing localization method and device based on double camera |
CN108694729A (en) * | 2017-04-07 | 2018-10-23 | 深圳市腾盛工业设备有限公司 | Localization method, unit based on image detection and storage medium |
CN109283804A (en) * | 2018-11-14 | 2019-01-29 | 江苏友迪激光科技有限公司 | A method of improving direct write exposure machine exposure accuracy and harmomegathus measurement accuracy |
CN110293559A (en) * | 2019-05-30 | 2019-10-01 | 上海理工大学 | A kind of installation method of automatic identification positioning alignment |
CN115187658A (en) * | 2022-08-29 | 2022-10-14 | 合肥埃科光电科技股份有限公司 | Large target localization method, system and device for multi-camera vision |
CN115143887A (en) * | 2022-09-05 | 2022-10-04 | 常州市建筑科学研究院集团股份有限公司 | Method for correcting measurement result of visual monitoring equipment and visual monitoring system |
CN115684019A (en) * | 2022-11-30 | 2023-02-03 | 合肥欣奕华智能机器股份有限公司 | Alignment device, calibration and alignment method of display panel detection equipment |
CN116153824A (en) * | 2023-04-20 | 2023-05-23 | 沈阳和研科技股份有限公司 | Discharging precision compensation method based on visual algorithm |
CN116858092A (en) * | 2023-06-25 | 2023-10-10 | 苏州维嘉科技股份有限公司 | Method for detecting vision system deviation and circuit board processing equipment |
Also Published As
Publication number | Publication date |
---|---|
CN117102661B (en) | 2024-01-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111263142B (en) | Method, device, equipment and medium for testing optical anti-shake of camera module | |
JP6844582B2 (en) | Screw tightening device | |
CN112894823A (en) | Robot high-precision assembling method based on visual servo | |
JP2018161700A (en) | Information processing device, system, information processing method, and manufacturing method | |
CN111343789A (en) | Flexible panel bonding alignment method and related device | |
CN108311859B (en) | Automatic insulator assembling method based on visual detection technology | |
CN111174696A (en) | Laser-assisted calibration method and device based on CCD sensor | |
CN117102661A (en) | Visual positioning method and laser processing equipment | |
CN114383510B (en) | Optical sensing system and optical navigation system | |
KR101626374B1 (en) | Precision position alignment technique using edge based corner estimation | |
CN110906867B (en) | Line width measuring method and line width measuring machine | |
CN117754592A (en) | Mechanical arm calibration method, device, equipment and medium based on vision | |
JP2000211106A (en) | Screen mask aligning method in screen printing | |
JPS6374530A (en) | Automatic mounting method for component | |
WO2017107564A1 (en) | Board image acquisition method and system | |
JPH0680954B2 (en) | Device for mounting IC on printed circuit board | |
CN100334592C (en) | Visual Alignment Method for Non-corresponding Substrates | |
WO2022252277A1 (en) | Method and apparatus for calibrating om and sem coordinate relationship, device, and storage medium | |
JPH0831715B2 (en) | Position correction method for leaded parts | |
CN117218191A (en) | Visual positioning device, positioning method and readable storage medium | |
JP6614029B2 (en) | ROBOT HAND POSITION DETECTION DEVICE, ROBOT DEVICE, AND ROBOT HAND POSITION DETECTION METHOD | |
CN118670257B (en) | Wafer offset value calculation method, device, equipment and storage medium | |
JPH04361104A (en) | Detecting system of position of substrate mark | |
CN117835690A (en) | Machine vision-based mounting plane coordinate thermal compensation method and system and storage medium | |
JP4681984B2 (en) | Component positioning method and apparatus |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |