CN115272451A - Light spot center positioning method and device - Google Patents

Light spot center positioning method and device Download PDF

Info

Publication number
CN115272451A
CN115272451A CN202210731240.3A CN202210731240A CN115272451A CN 115272451 A CN115272451 A CN 115272451A CN 202210731240 A CN202210731240 A CN 202210731240A CN 115272451 A CN115272451 A CN 115272451A
Authority
CN
China
Prior art keywords
spot
target area
symmetry axis
grayscale histogram
determining
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.)
Pending
Application number
CN202210731240.3A
Other languages
Chinese (zh)
Inventor
郝雪营
朱大立
曾华林
阮健
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Institute of Information Engineering of CAS
Original Assignee
Institute of Information Engineering of CAS
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Institute of Information Engineering of CAS filed Critical Institute of Information Engineering of CAS
Priority to CN202210731240.3A priority Critical patent/CN115272451A/en
Publication of CN115272451A publication Critical patent/CN115272451A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/70Determining position or orientation of objects or cameras
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/11Region-based segmentation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20112Image segmentation details
    • G06T2207/20132Image cropping

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Length Measuring Devices By Optical Means (AREA)

Abstract

本发明提供一种光斑中心定位方法及装置,所述方法包括:基于光斑图像的灰度直方图,确定所述光斑图像的第一目标区域和第二目标区域;基于像素相关度,在所述第一目标区域中确定第一光斑对称轴,并在所述第二目标区域中确定第二光斑对称轴;确定所述第一光斑对称轴与所述第二光斑对称轴的交点为光斑的中心位置。本发明提供的光斑中心定位方法及装置,不仅可以提高光斑中心定位的效率,而且通过将像素相关性引入到光斑中心定位中,可以提高光斑中心定位的精度。

Figure 202210731240

The present invention provides a method and device for spot center positioning. The method includes: determining a first target area and a second target area of the spot image based on a grayscale histogram of the spot image; The first spot symmetry axis is determined in the first target area, and the second spot symmetry axis is determined in the second target area; the intersection of the first spot symmetry axis and the second spot symmetry axis is determined as the center of the spot Location. The light spot center positioning method and device provided by the present invention can not only improve the efficiency of light spot center positioning, but also improve the accuracy of light spot center positioning by introducing pixel correlation into the light spot center positioning.

Figure 202210731240

Description

光斑中心定位方法及装置Spot center positioning method and device

技术领域technical field

本发明涉及光学测量技术领域,尤其涉及一种光斑中心定位方法及装置。The invention relates to the technical field of optical measurement, in particular to a spot center positioning method and device.

背景技术Background technique

光学测量是光电技术与机械测量相结合的高科技测量技术,其在借用计算机技术的前提下,可以实现快速以及准确的测量,因此光学测量也成为现代工业检测更青睐的测量方式。Optical measurement is a high-tech measurement technology combining photoelectric technology and mechanical measurement. It can achieve fast and accurate measurement under the premise of borrowing computer technology. Therefore, optical measurement has become a more popular measurement method for modern industrial inspection.

光斑中心定位在光学测量中至关重要,其严重影响整个测量过程的效率以及准确度。目前的光斑中心定位方法主要包括重心法、Hough变换法和高斯拟合法,但其各自存在以下不足:在光斑形状不规则、灰度分布值不均匀的情况下,重心法的定位精度较差;Hough变换法需要对参数空间进行离散化处理,影响算法的实际检测精度;由于激光只有在基模的时候是高斯分布,并且很多激光器在制作时产生的激光不是完美的高斯分布,往往有些变形,此时采用高斯拟合法定位光斑中心会产生较大的误差,而且较耗时。Spot center positioning is crucial in optical measurement, which seriously affects the efficiency and accuracy of the entire measurement process. The current spot center positioning methods mainly include the center of gravity method, the Hough transform method and the Gaussian fitting method, but each of them has the following shortcomings: in the case of irregular shape of the spot and uneven gray distribution value, the positioning accuracy of the center of gravity method is poor; The Hough transform method needs to discretize the parameter space, which affects the actual detection accuracy of the algorithm; because the laser is only Gaussian in the fundamental mode, and the laser produced by many lasers is not a perfect Gaussian distribution during production, it is often deformed. At this time, using the Gaussian fitting method to locate the center of the spot will produce a large error and be time-consuming.

因此,如何提高光斑中心定位的精度和效率,成为业界亟需解决的问题。Therefore, how to improve the accuracy and efficiency of spot center positioning has become an urgent problem to be solved in the industry.

发明内容Contents of the invention

针对现有技术存在的问题,本发明提供一种光斑中心定位方法及装置。Aiming at the problems existing in the prior art, the present invention provides a spot center positioning method and device.

第一方面,本发明提供一种光斑中心定位方法,包括:In a first aspect, the present invention provides a spot center positioning method, including:

基于光斑图像的灰度直方图,确定所述光斑图像的第一目标区域和第二目标区域;determining a first target area and a second target area of the spot image based on a grayscale histogram of the spot image;

基于像素相关性,在所述第一目标区域中确定第一光斑对称轴,并在所述第二目标区域中确定第二光斑对称轴;determining a first spot symmetry axis in the first target area and determining a second spot symmetry axis in the second target area based on pixel correlation;

确定所述第一光斑对称轴与所述第二光斑对称轴的交点为光斑的中心位置。Determine the intersection of the first light spot symmetry axis and the second light spot symmetry axis as the center position of the light spot.

可选地,根据本发明提供的一种光斑中心定位方法,基于像素相关性,在所述第一目标区域中确定第一光斑对称轴,并在所述第二目标区域中确定第二光斑对称轴,包括:Optionally, according to a spot center positioning method provided in the present invention, based on pixel correlation, a first spot symmetry axis is determined in the first target area, and a second spot symmetry axis is determined in the second target area Axes, including:

确定由任意一条第一分割线对所述第一目标区域进行分割后的第一子区域和第二子区域,并获取所述第一子区域和第二子区域的第一像素相关度;determining a first subregion and a second subregion after the first target region is divided by any first dividing line, and obtaining a first pixel correlation between the first subregion and the second subregion;

确定与所有第一像素相关度中的最大第一像素相关度所对应的第一分割线为所述第一光斑对称轴;Determining a first dividing line corresponding to a maximum first pixel correlation among all first pixel correlations as the first spot symmetry axis;

确定由任意一条第二分割线对所述第二目标区域进行分割后的第三子区域和第四子区域,并获取所述第三子区域和第四子区域的第二像素相关度;determining a third sub-region and a fourth sub-region after dividing the second target region by any second dividing line, and obtaining a second pixel correlation degree between the third sub-region and the fourth sub-region;

确定与所有第二像素相关度中的最大第二像素相关度所对应的第二分割线为所述第二光斑对称轴。Determining a second dividing line corresponding to a maximum second pixel correlation among all second pixel correlations as the second light spot symmetry axis.

可选地,根据本发明提供的一种光斑中心定位方法,基于光斑图像的灰度直方图,确定所述光斑图像的第一目标区域和第二目标区域,包括:Optionally, according to a spot center positioning method provided in the present invention, determining the first target area and the second target area of the spot image based on a gray histogram of the spot image includes:

分别确定光斑图像的横向灰度直方图和纵向灰度直方图,所述横向灰度直方图的X坐标为所述光斑图像像元横向序列号,Y坐标为所述光斑图像的每一行像元的总灰度值,所述纵向灰度直方图的X坐标为所述光斑图像像元纵向序列号,Y坐标为所述光斑图像的每一列像元的总灰度值;Determine the horizontal grayscale histogram and vertical grayscale histogram of the spot image respectively, the X coordinate of the horizontal grayscale histogram is the horizontal serial number of the pixel of the spot image, and the Y coordinate is each row of pixels of the spot image The total gray value, the X coordinate of the longitudinal gray histogram is the longitudinal serial number of the pixel in the spot image, and the Y coordinate is the total gray value of each row of pixels in the spot image;

基于所述横向灰度直方图,确定所述第一目标区域,并基于所述纵向灰度直方图,确定所述第二目标区域。The first target area is determined based on the horizontal grayscale histogram, and the second target area is determined based on the vertical grayscale histogram.

可选地,根据本发明提供的一种光斑中心定位方法,所述光斑图像为环形光斑图像;Optionally, according to a spot center positioning method provided by the present invention, the spot image is an annular spot image;

在所述光斑图像为环形光斑图像的情况下,基于所述横向灰度直方图,确定所述第一目标区域,并基于所述纵向灰度直方图,确定所述第二目标区域,包括:In the case where the spot image is an annular spot image, determining the first target area based on the horizontal grayscale histogram, and determining the second target area based on the vertical grayscale histogram include:

基于所述横向灰度直方图,确定距离所述横向灰度直方图的最大峰值点最近的两个第一波谷点;Based on the horizontal grayscale histogram, determine two first valley points closest to the maximum peak point of the horizontal grayscale histogram;

基于所述两个第一波谷点分别对应的X坐标,确定所述第一目标区域;Determining the first target area based on X coordinates corresponding to the two first trough points respectively;

基于所述纵向灰度直方图,确定距离所述纵向灰度直方图的最大峰值点最近的两个第二波谷点;Based on the longitudinal grayscale histogram, determine two second valley points closest to the maximum peak point of the longitudinal grayscale histogram;

基于所述两个第二波谷点分别对应的X坐标,确定所述第二目标区域。The second target area is determined based on X coordinates respectively corresponding to the two second valley points.

可选地,根据本发明提供的一种光斑中心定位方法,所述光斑图像为非环形光斑图像;Optionally, according to a spot center positioning method provided by the present invention, the spot image is a non-ring spot image;

在所述光斑图像为非环形光斑图像的情况下,基于所述横向灰度直方图,确定所述第一目标区域,并基于所述纵向灰度直方图,确定所述第二目标区域,包括:In the case where the spot image is a non-annular spot image, determining the first target area based on the horizontal grayscale histogram, and determining the second target area based on the vertical grayscale histogram, including :

在所述横向灰度直方图中,确定第一目标点和第二目标点,所述第一目标点和第二目标点分别对应的灰度值是所述横向灰度直方图的最大峰值点对应的灰度值的预设倍数;In the horizontal grayscale histogram, determine the first target point and the second target point, the grayscale values corresponding to the first target point and the second target point respectively are the maximum peak points of the horizontal grayscale histogram The preset multiple of the corresponding gray value;

基于所述第一目标点的X坐标和所述第二目标点的X坐标,确定所述第一目标区域;determining the first target area based on the X coordinate of the first target point and the X coordinate of the second target point;

在所述纵向灰度直方图中,确定第三目标点和第四目标点,所述第三目标点和第四目标点分别对应的灰度值是所述纵向灰度直方图的最大峰值点对应的灰度值的预设倍数;In the vertical grayscale histogram, determine the third target point and the fourth target point, the grayscale values corresponding to the third target point and the fourth target point are the maximum peak points of the vertical grayscale histogram The preset multiple of the corresponding gray value;

基于所述第三目标点的X坐标和所述第四目标点的X坐标,确定所述第二目标区域。The second target area is determined based on the X coordinate of the third target point and the X coordinate of the fourth target point.

可选地,根据本发明提供的一种光斑中心定位方法,所述预设倍数为1/e,其中,e为自然底数。Optionally, according to a spot center positioning method provided by the present invention, the preset multiple is 1/e, where e is a natural base number.

第二方面,本发明还提供一种光斑中心定位装置,包括:In the second aspect, the present invention also provides a spot center positioning device, including:

第一确定模块,用于基于光斑图像的灰度直方图,确定所述光斑图像的第一目标区域和第二目标区域;A first determining module, configured to determine a first target area and a second target area of the spot image based on a grayscale histogram of the spot image;

第二确定模块,用于基于像素相关性,在所述第一目标区域中确定第一光斑对称轴,并在所述第二目标区域中确定第二光斑对称轴;A second determining module, configured to determine a first light spot symmetry axis in the first target area based on pixel correlation, and determine a second light spot symmetry axis in the second target area;

第三确定模块,用于确定所述第一光斑对称轴与所述第二光斑对称轴的交点为光斑的中心位置。The third determination module is configured to determine the intersection of the first light spot symmetry axis and the second light spot symmetry axis as the center position of the light spot.

第三方面,本发明还提供一种电子设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序时实现如第一方面所述光斑中心定位方法。In a third aspect, the present invention also provides an electronic device, including a memory, a processor, and a computer program stored on the memory and operable on the processor, and the processor implements the computer program described in the first aspect when executing the program. Spot center positioning method.

第四方面,本发明还提供一种非暂态计算机可读存储介质,其上存储有计算机程序,该计算机程序被处理器执行时实现如第一方面所述光斑中心定位方法。In a fourth aspect, the present invention also provides a non-transitory computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the method for locating the center of the light spot as described in the first aspect is implemented.

第五方面,本发明还提供一种计算机程序产品,包括计算机程序,所述计算机程序被处理器执行时实现如第一方面所述光斑中心定位方法。In a fifth aspect, the present invention further provides a computer program product, including a computer program, and when the computer program is executed by a processor, the method for locating the center of the light spot as described in the first aspect is implemented.

本发明提供的光斑中心定位方法及装置,通过基于光斑图像的灰度直方图,确定光斑图像的第一目标区域和第二目标区域,再基于像素相关性,在第一目标区域中确定第一光斑对称轴,在第二目标区域中确定第二光斑对称轴,最后将第一光斑对称轴与第二光斑对称轴的交点确定为光斑的中心位置,不仅可以提高光斑中心定位的效率,而且通过将像素相关性引入到光斑中心定位中,可以提高光斑中心定位的精度。The spot center positioning method and device provided by the present invention determine the first target area and the second target area of the spot image based on the gray histogram of the spot image, and then determine the first target area in the first target area based on the pixel correlation. Spot symmetry axis, determine the second spot symmetry axis in the second target area, and finally determine the intersection of the first spot symmetry axis and the second spot symmetry axis as the center position of the spot, which can not only improve the efficiency of spot center positioning, but also pass Introducing pixel correlation into spot center location can improve the accuracy of spot center location.

附图说明Description of drawings

为了更清楚地说明本发明或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the present invention or the technical solutions in the prior art, the accompanying drawings that need to be used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the accompanying drawings in the following description are the present invention. For some embodiments of the invention, those skilled in the art can also obtain other drawings based on these drawings without creative effort.

图1是本发明提供的光斑中心定位方法的流程示意图之一;Fig. 1 is one of the schematic flow charts of the spot center positioning method provided by the present invention;

图2是本发明提供的光斑中心定位方法的流程示意图之二;Fig. 2 is the second schematic flow diagram of the spot center positioning method provided by the present invention;

图3是本发明提供的环形光斑图像示意图;Fig. 3 is a schematic diagram of an annular spot image provided by the present invention;

图4是本发明提供的环形光斑图像的纵向灰度直方图的示意图;Fig. 4 is a schematic diagram of the longitudinal grayscale histogram of the annular spot image provided by the present invention;

图5是本发明提供的环形光斑图像的横向灰度直方图的示意图;Fig. 5 is a schematic diagram of the horizontal grayscale histogram of the annular spot image provided by the present invention;

图6是本发明提供的散斑图像示意图;Fig. 6 is a schematic diagram of a speckle image provided by the present invention;

图7是本发明提供的散斑图像的纵向灰度直方图的示意图;Fig. 7 is a schematic diagram of a longitudinal grayscale histogram of a speckle image provided by the present invention;

图8是本发明提供的散斑图像的横向灰度直方图的示意图;Fig. 8 is a schematic diagram of a horizontal grayscale histogram of a speckle image provided by the present invention;

图9是本发明提供的光斑中心定位装置的结构示意图;Fig. 9 is a schematic structural view of the spot center positioning device provided by the present invention;

图10是本发明提供的电子设备的实体结构示意图。Fig. 10 is a schematic diagram of the physical structure of the electronic device provided by the present invention.

具体实施方式Detailed ways

为使本发明的目的、技术方案和优点更加清楚,下面将结合本发明中的附图,对本发明中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purpose, technical solutions and advantages of the present invention clearer, the technical solutions in the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the present invention. Obviously, the described embodiments are part of the embodiments of the present invention , but not all examples. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

为了便于更加清晰地理解本发明各实施例,首先对一些相关的背景知识进行如下介绍。In order to facilitate a clearer understanding of the various embodiments of the present invention, some relevant background knowledge is introduced as follows.

目前的光斑中心定位方法有重心法、Hough变换法和高斯拟合法等,但这些方法各自存在以下不足:在光斑形状不规则、灰度分布值不均匀的情况下,重心法的定位精度较差;Hough变换法需要对参数空间进行离散化处理,影响算法的实际检测精度;由于激光只有在基模的时候是高斯分布,并且很多激光器在制作时产生的激光也不是完美的高斯分布,往往有些变形,此时采用高斯拟合法定位光斑中心会产生较大的误差,而且较耗时,一般应用于在图像数据采集完之后,对图像数据进行预处理的过程中。The current spot center positioning methods include gravity center method, Hough transform method and Gaussian fitting method, etc., but each of these methods has the following shortcomings: in the case of irregular shape of the spot and uneven gray distribution value, the positioning accuracy of the center of gravity method is poor ; The Hough transform method needs to discretize the parameter space, which affects the actual detection accuracy of the algorithm; because the laser is only Gaussian in the fundamental mode, and the laser produced by many lasers is not a perfect Gaussian distribution, often some At this time, using the Gaussian fitting method to locate the center of the spot will produce a large error, and it is time-consuming. It is generally used in the process of preprocessing the image data after the image data is collected.

现有的光斑中心定位方法主要存在以下缺陷:The existing spot center positioning methods mainly have the following defects:

(1)光斑中心定位不准确,以至于无法在整张图像中准确裁剪含有特征数据更多的局部图像。(1) The positioning of the center of the spot is not accurate, so that it is impossible to accurately crop the partial image containing more feature data in the entire image.

(2)对于形状不规则的光斑,直接使用直方图确定光斑中心的算法,存在中心难以定位以及定位误差较大的缺陷。(2) For the spot with irregular shape, the algorithm of directly using the histogram to determine the center of the spot has the defects that the center is difficult to locate and the positioning error is large.

(3)目前定位精度较高的光斑中心定位算法由于计算量较大,不适于应用在图像数据采集过程中,仅适用于采集完数据之后,也就是说仅适用于图像数据预处理的过程当中。(3) The current spot center positioning algorithm with high positioning accuracy is not suitable for application in the process of image data acquisition due to the large amount of calculation. .

为了克服上述缺陷,本发明提供一种光斑中心定位方法及装置,下面结合图1-图10描述本发明提供的光斑中心定位方法及装置。In order to overcome the above-mentioned defects, the present invention provides a spot center positioning method and device. The spot center positioning method and device provided by the present invention will be described below with reference to FIGS. 1-10 .

图1是本发明提供的光斑中心定位方法的流程示意图之一,如图1所示,该方法包括:Fig. 1 is one of the schematic flow charts of the spot center positioning method provided by the present invention, as shown in Fig. 1, the method includes:

步骤100,基于光斑图像的灰度直方图,确定所述光斑图像的第一目标区域和第二目标区域。Step 100, based on the grayscale histogram of the spot image, determine a first target area and a second target area of the spot image.

具体地,可以获取光斑图像的灰度直方图,并基于光斑图像的灰度直方图确定光斑图像的第一目标区域和第二目标区域。Specifically, a grayscale histogram of the spot image may be acquired, and a first target area and a second target area of the spot image may be determined based on the gray histogram of the spot image.

可选地,光斑图像的第一目标区域和第二目标区域可以是光斑在整个光斑图像中的大体有效区域。Optionally, the first target area and the second target area of the spot image may be substantially effective areas of the spot in the entire spot image.

步骤110,基于像素相关性,在所述第一目标区域中确定第一光斑对称轴,并在所述第二目标区域中确定第二光斑对称轴。Step 110, based on pixel correlation, determine a first light spot symmetry axis in the first target area, and determine a second light spot symmetry axis in the second target area.

具体地,在确定出光斑图像的第一目标区域和第二目标区域之后,可以基于像素相关性,在第一目标区域中确定第一光斑对称轴,并在第二目标区域中确定第二光斑对称轴。Specifically, after the first target area and the second target area of the spot image are determined, the first spot symmetry axis can be determined in the first target area and the second spot can be determined in the second target area based on pixel correlation Symmetry axis.

可以理解的是,可以基于像素相关性,在确定出的目标区域中确定出光斑的两条对称轴。It can be understood that, based on the pixel correlation, two symmetry axes of the light spot can be determined in the determined target area.

步骤120,确定所述第一光斑对称轴与所述第二光斑对称轴的交点为光斑的中心位置。Step 120, determining the intersection of the first light spot symmetry axis and the second light spot symmetry axis as the center position of the light spot.

具体地,在基于像素相关性确定出光斑的第一光斑对称轴和第二光斑对称轴之后,可以确定第一光斑对称轴与第二光斑对称轴的交点,并将该交点作为光斑的中心位置。Specifically, after determining the first spot symmetry axis and the second spot symmetry axis of the light spot based on the pixel correlation, the intersection point of the first light spot symmetry axis and the second light spot symmetry axis can be determined, and the intersection point can be used as the central position of the light spot .

为了克服现有的光斑中心定位方法的定位精度和定位效率较低的缺陷,本发明通过基于光斑图像的灰度直方图,确定光斑图像的第一目标区域和第二目标区域,再基于像素相关性,在第一目标区域中确定第一光斑对称轴,在第二目标区域中确定第二光斑对称轴,最后将第一光斑对称轴与第二光斑对称轴的交点确定为光斑的中心位置,不仅可以提高光斑中心定位的效率,而且通过将像素相关性引入到光斑中心定位中,可以提高光斑中心定位的精度。In order to overcome the defects of low positioning accuracy and low positioning efficiency of the existing spot center positioning method, the present invention determines the first target area and the second target area of the spot image based on the gray histogram of the spot image, and then based on the pixel correlation property, determine the first spot symmetry axis in the first target area, determine the second light spot symmetry axis in the second target area, and finally determine the intersection of the first light spot symmetry axis and the second light spot symmetry axis as the center position of the light spot, Not only can the efficiency of spot centering be improved, but also the accuracy of spot centering can be improved by introducing pixel correlation into spot centering.

本发明提供的光斑中心定位方法,通过基于光斑图像的灰度直方图,确定光斑图像的第一目标区域和第二目标区域,再基于像素相关性,在第一目标区域中确定第一光斑对称轴,在第二目标区域中确定第二光斑对称轴,最后将第一光斑对称轴与第二光斑对称轴的交点确定为光斑的中心位置,不仅可以提高光斑中心定位的效率,而且通过将像素相关性引入到光斑中心定位中,可以提高光斑中心定位的精度。The spot center positioning method provided by the present invention determines the first target area and the second target area of the spot image based on the gray histogram of the spot image, and then determines the symmetry of the first spot in the first target area based on the pixel correlation. Axis, determine the second spot symmetry axis in the second target area, and finally determine the intersection point of the first spot symmetry axis and the second spot symmetry axis as the center position of the spot, not only can improve the efficiency of spot center positioning, but also through the pixel Correlation is introduced into spot center positioning, which can improve the accuracy of spot center positioning.

可选地,基于像素相关性,在所述第一目标区域中确定第一光斑对称轴,并在所述第二目标区域中确定第二光斑对称轴,包括:Optionally, based on pixel correlation, determining a first light spot symmetry axis in the first target area, and determining a second light spot symmetry axis in the second target area includes:

确定由任意一条第一分割线对所述第一目标区域进行分割后的第一子区域和第二子区域,并获取所述第一子区域和第二子区域的第一像素相关度;determining a first subregion and a second subregion after the first target region is divided by any first dividing line, and obtaining a first pixel correlation between the first subregion and the second subregion;

确定与所有第一像素相关度中的最大第一像素相关度所对应的第一分割线为所述第一光斑对称轴;Determining a first dividing line corresponding to a maximum first pixel correlation among all first pixel correlations as the first spot symmetry axis;

确定由任意一条第二分割线对所述第二目标区域进行分割后的第三子区域和第四子区域,并获取所述第三子区域和第四子区域的第二像素相关度;determining a third sub-region and a fourth sub-region after dividing the second target region by any second dividing line, and obtaining a second pixel correlation degree between the third sub-region and the fourth sub-region;

确定与所有第二像素相关度中的最大第二像素相关度所对应的第二分割线为所述第二光斑对称轴。Determining a second dividing line corresponding to a maximum second pixel correlation among all second pixel correlations as the second light spot symmetry axis.

具体地,可以确定由任意一条第一分割线对第一目标区域进行分割后的第一子区域和第二子区域,并获取第一子区域和第二子区域的第一像素相关度;并确定与所有第一像素相关度中的最大第一像素相关度所对应的第一分割线为第一光斑对称轴。Specifically, the first sub-region and the second sub-region after the first target region is divided by any first dividing line may be determined, and the first pixel correlation between the first sub-region and the second sub-region is obtained; and The first division line corresponding to the maximum first pixel correlation among all the first pixel correlations is determined as the first light spot symmetry axis.

可选地,可以由任意一条第一分割线在第一目标区域的范围内每间隔整像素移动一次,并获取由第一分割线分割后的第一子区域和第二子区域的第一像素相关度。Optionally, any first dividing line can be used to move every integer pixel within the range of the first target area, and the first pixels of the first sub-area and the second sub-area divided by the first dividing line can be obtained relativity.

可选地,可以将获取的所有第一像素相关度中的最大第一像素相关度所对应的第一分割线作为第一光斑对称轴。Optionally, the first dividing line corresponding to the largest first pixel correlation among all the acquired first pixel correlations may be used as the first light spot symmetry axis.

可选地,在获取第一子区域和第二子区域的第一像素相关度时,可以首先以第一子区域和第二子区域中的较小区域为基准,并以第一分割线为对称轴,裁剪第一子区域和第二子区域中的较大区域,使得两个区域的大小相同并关于第一分割线对称,然后再确定第一子区域和第二子区域的第一像素相关度。Optionally, when obtaining the first pixel correlation degree between the first sub-region and the second sub-region, the smaller region in the first sub-region and the second sub-region can be used as a reference first, and the first dividing line is Symmetry axis, crop the larger area in the first sub-area and the second sub-area so that the two areas have the same size and are symmetrical about the first dividing line, and then determine the first pixel of the first sub-area and the second sub-area relativity.

具体地,可以确定由任意一条第二分割线对第二目标区域进行分割后的第三子区域和第四子区域,并获取第三子区域和第四子区域的第二像素相关度;并确定与所有第二像素相关度中的最大第二像素相关度所对应的第二分割线为第二光斑对称轴。Specifically, the third sub-region and the fourth sub-region after the second target region is divided by any second dividing line may be determined, and the second pixel correlation between the third sub-region and the fourth sub-region is obtained; and Determine the second dividing line corresponding to the maximum second pixel correlation among all the second pixel correlations as the second light spot symmetry axis.

可选地,可以由任意一条第二分割线在第二目标区域的范围内每间隔整像素移动一次,并获取由第二分割线分割后的第三子区域和第四子区域的第二像素相关度。Optionally, any second dividing line can be used to move every integer pixel within the range of the second target area, and obtain the second pixels of the third sub-area and the fourth sub-area divided by the second dividing line relativity.

可选地,可以将获取的所有第二像素相关度中的最大第二像素相关度所对应的第二分割线作为第二光斑对称轴。Optionally, a second dividing line corresponding to a maximum second pixel correlation among all acquired second pixel correlations may be used as a second light spot symmetry axis.

可选地,在获取第三子区域和第四子区域的第二像素相关度时,可以首先以第三子区域和第四子区域中的较小区域为基准,并以第二分割线为对称轴,裁剪第三子区域和第四子区域中的较大区域,使得两个区域的大小相同并关于第二分割线对称,然后再确定第三子区域和第四子区域的第二像素相关度。Optionally, when acquiring the second pixel correlation between the third sub-region and the fourth sub-region, the smaller region in the third sub-region and the fourth sub-region can be used as a reference first, and the second dividing line is Axis of symmetry, crop the larger area in the third sub-area and the fourth sub-area so that the size of the two areas is the same and symmetrical about the second dividing line, and then determine the second pixel of the third sub-area and the fourth sub-area relativity.

可选地,可以基于任意一种计算相关度的函数获取第一子区域和第二子区域的第一像素相关度,以及第三子区域和第四子区域的第二像素相关度,例如相关系数函数corr,本发明对此不作具体限定。Optionally, the first pixel correlation degree between the first sub-region and the second sub-region, and the second pixel correlation degree between the third sub-region and the fourth sub-region can be obtained based on any function for calculating the correlation degree, for example, the correlation The coefficient function corr is not specifically limited in the present invention.

本发明通过将像素相关性引入到光斑中心定位中,基于像素的相关度确定光斑的对称轴,进而基于光斑的对称轴确定光斑的中心位置,不仅可以提高光斑中心定位的精度,而且可以降低算法运行时间,提高光斑中心定位的效率。The present invention introduces pixel correlation into spot center positioning, determines the symmetry axis of the spot based on the correlation of pixels, and then determines the center position of the spot based on the symmetry axis of the spot, which can not only improve the accuracy of spot center positioning, but also reduce the algorithm Run time, improve the efficiency of spot center positioning.

可选地,基于光斑图像的灰度直方图,确定所述光斑图像的第一目标区域和第二目标区域,包括:Optionally, based on the grayscale histogram of the spot image, determining the first target area and the second target area of the spot image includes:

分别确定光斑图像的横向灰度直方图和纵向灰度直方图,所述横向灰度直方图的X坐标为所述光斑图像像元横向序列号,Y坐标为所述光斑图像的每一行像元的总灰度值,所述纵向灰度直方图的X坐标为所述光斑图像像元纵向序列号,Y坐标为所述光斑图像的每一列像元的总灰度值;Determine the horizontal grayscale histogram and vertical grayscale histogram of the spot image respectively, the X coordinate of the horizontal grayscale histogram is the horizontal serial number of the pixel of the spot image, and the Y coordinate is each row of pixels of the spot image The total gray value, the X coordinate of the longitudinal gray histogram is the longitudinal serial number of the pixel in the spot image, and the Y coordinate is the total gray value of each row of pixels in the spot image;

基于所述横向灰度直方图,确定所述第一目标区域,并基于所述纵向灰度直方图,确定所述第二目标区域。The first target area is determined based on the horizontal grayscale histogram, and the second target area is determined based on the vertical grayscale histogram.

具体地,可以首先确定光斑图像的横向灰度直方图和纵向灰度直方图,然后基于横向灰度直方图确定光斑图像的第一目标区域,并基于纵向灰度直方图确定光斑图像的第二目标区域。Specifically, the horizontal grayscale histogram and vertical grayscale histogram of the spot image can be determined first, then the first target area of the spot image can be determined based on the horizontal grayscale histogram, and the second target area of the spot image can be determined based on the vertical grayscale histogram. target area.

其中,横向灰度直方图的X坐标为光斑图像像元横向序列号,Y坐标为光斑图像的每一行像元的总灰度值,纵向灰度直方图的X坐标为光斑图像像元纵向序列号,Y坐标为光斑图像的每一列像元的总灰度值。Among them, the X coordinate of the horizontal grayscale histogram is the horizontal serial number of the spot image pixel, the Y coordinate is the total grayscale value of each row of pixels in the spot image, and the X coordinate of the vertical grayscale histogram is the vertical sequence of the spot image pixel No., and the Y coordinate is the total gray value of each row of pixels in the spot image.

可以理解的是,横向灰度直方图的X坐标是光斑图像的每一行像元的行序列号,Y坐标是光斑图像的每一行像元的总灰度值,例如光斑图像的像元有N行,则横向灰度直方图表示的是N个值的直方图序列。It can be understood that the X coordinate of the horizontal grayscale histogram is the row sequence number of each row of pixels of the spot image, and the Y coordinate is the total gray value of each row of pixels of the spot image. For example, the pixels of the spot image have N row, the horizontal grayscale histogram represents a histogram sequence of N values.

可以理解的是,纵向灰度直方图的X坐标是光斑图像的每一列像元的列序列号,Y坐标是光斑图像的每一列像元的总灰度值,例如光斑图像的像元有M列,则纵向灰度直方图表示的是M个值的直方图序列。It can be understood that the X coordinate of the vertical grayscale histogram is the column serial number of each column of pixels in the spot image, and the Y coordinate is the total gray value of each column of pixels in the spot image. For example, the pixels of the spot image have M column, the longitudinal gray histogram represents a histogram sequence of M values.

可选地,所述光斑图像为环形光斑图像;Optionally, the spot image is an annular spot image;

在所述光斑图像为环形光斑图像的情况下,基于所述横向灰度直方图,确定所述第一目标区域,并基于所述纵向灰度直方图,确定所述第二目标区域,包括:In the case where the spot image is an annular spot image, determining the first target area based on the horizontal grayscale histogram, and determining the second target area based on the vertical grayscale histogram include:

基于所述横向灰度直方图,确定距离所述横向灰度直方图的最大峰值点最近的两个第一波谷点;Based on the horizontal grayscale histogram, determine two first valley points closest to the maximum peak point of the horizontal grayscale histogram;

基于所述两个第一波谷点分别对应的X坐标,确定所述第一目标区域;Determining the first target area based on X coordinates corresponding to the two first trough points respectively;

基于所述纵向灰度直方图,确定距离所述纵向灰度直方图的最大峰值点最近的两个第二波谷点;Based on the longitudinal grayscale histogram, determine two second valley points closest to the maximum peak point of the longitudinal grayscale histogram;

基于所述两个第二波谷点分别对应的X坐标,确定所述第二目标区域。The second target area is determined based on X coordinates respectively corresponding to the two second valley points.

可选地,在本发明实施例中,光斑图像可以为环形光斑图像,即具有环状结构光斑的光斑图像。Optionally, in this embodiment of the present invention, the spot image may be an annular spot image, that is, a spot image with a ring-shaped structured spot.

具体地,在光斑图像为环形光斑图像的情况下,可以首先基于横向灰度直方图,确定距离横向灰度直方图的最大峰值点最近的两个第一波谷点,然后基于两个第一波谷点分别对应的X坐标确定第一目标区域。Specifically, when the spot image is an annular spot image, the two first valley points closest to the maximum peak point of the horizontal grayscale histogram can be determined first based on the horizontal grayscale histogram, and then based on the two first valley points The X coordinates corresponding to the points respectively determine the first target area.

具体地,在光斑图像为环形光斑图像的情况下,可以首先基于纵向灰度直方图,确定距离纵向灰度直方图的最大峰值点最近的两个第二波谷点,然后基于两个第二波谷点分别对应的X坐标确定第二目标区域。Specifically, when the spot image is an annular spot image, the two second valley points nearest to the maximum peak point of the longitudinal grayscale histogram can be determined first based on the longitudinal grayscale histogram, and then based on the two second valley points The X coordinates corresponding to the points determine the second target area.

可选地,所述光斑图像为非环形光斑图像;Optionally, the spot image is a non-annular spot image;

在所述光斑图像为非环形光斑图像的情况下,基于所述横向灰度直方图,确定所述第一目标区域,并基于所述纵向灰度直方图,确定所述第二目标区域,包括:In the case where the spot image is a non-annular spot image, determining the first target area based on the horizontal grayscale histogram, and determining the second target area based on the vertical grayscale histogram, including :

在所述横向灰度直方图中,确定第一目标点和第二目标点,所述第一目标点和第二目标点分别对应的灰度值是所述横向灰度直方图的最大峰值点对应的灰度值的预设倍数;In the horizontal grayscale histogram, determine the first target point and the second target point, the grayscale values corresponding to the first target point and the second target point respectively are the maximum peak points of the horizontal grayscale histogram The preset multiple of the corresponding gray value;

基于所述第一目标点的X坐标和所述第二目标点的X坐标,确定所述第一目标区域;determining the first target area based on the X coordinate of the first target point and the X coordinate of the second target point;

在所述纵向灰度直方图中,确定第三目标点和第四目标点,所述第三目标点和第四目标点分别对应的灰度值是所述纵向灰度直方图的最大峰值点对应的灰度值的预设倍数;In the vertical grayscale histogram, determine the third target point and the fourth target point, the grayscale values corresponding to the third target point and the fourth target point are the maximum peak points of the vertical grayscale histogram The preset multiple of the corresponding gray value;

基于所述第三目标点的X坐标和所述第四目标点的X坐标,确定所述第二目标区域。The second target area is determined based on the X coordinate of the third target point and the X coordinate of the fourth target point.

可选地,在本发明实施例中,光斑图像可以为非环形光斑图像,即不具有环状结构光斑的光斑图像。Optionally, in this embodiment of the present invention, the spot image may be a non-ring spot image, that is, a spot image without a ring-shaped structured spot.

具体地,在光斑图像为非环形光斑图像的情况下,可以首先在横向灰度直方图中确定第一目标点和第二目标点,其中第一目标点和第二目标点分别对应的灰度值是横向灰度直方图的最大峰值点对应的灰度值的预设倍数,然后基于第一目标点的X坐标和第二目标点的X坐标确定第一目标区域。Specifically, in the case that the spot image is a non-circular spot image, the first target point and the second target point can be determined first in the horizontal grayscale histogram, wherein the grayscales corresponding to the first target point and the second target point respectively The value is a preset multiple of the grayscale value corresponding to the maximum peak point of the horizontal grayscale histogram, and then the first target area is determined based on the X coordinate of the first target point and the X coordinate of the second target point.

具体地,在光斑图像为非环形光斑图像的情况下,可以首先在纵向灰度直方图中确定第三目标点和第四目标点,其中第三目标点和第四目标点分别对应的灰度值是纵向灰度直方图的最大峰值点对应的灰度值的预设倍数,然后基于第三目标点的X坐标和第四目标点的X坐标确定第二目标区域。Specifically, in the case that the spot image is a non-ring spot image, the third target point and the fourth target point can be determined first in the longitudinal grayscale histogram, where the grayscales of the third target point and the fourth target point respectively correspond to The value is a preset multiple of the grayscale value corresponding to the maximum peak point of the vertical grayscale histogram, and then the second target area is determined based on the X coordinate of the third target point and the X coordinate of the fourth target point.

可选地,在本发明实施例中,第一目标点和第二目标点分别对应的灰度值可以是横向灰度直方图的最大峰值点对应的灰度值的1/e,其中,e为自然底数。Optionally, in this embodiment of the present invention, the grayscale values corresponding to the first target point and the second target point may be 1/e of the grayscale value corresponding to the maximum peak point of the horizontal grayscale histogram, where e is the natural base.

可选地,在本发明实施例中,第三目标点和第四目标点分别对应的灰度值可以是纵向灰度直方图的最大峰值点对应的灰度值的1/e,其中,e为自然底数。Optionally, in this embodiment of the present invention, the grayscale values corresponding to the third target point and the fourth target point may be 1/e of the grayscale value corresponding to the maximum peak point of the longitudinal grayscale histogram, where e is the natural base.

图2是本发明提供的光斑中心定位方法的流程示意图之二,如图2所示,主要包括确定光斑对称轴的流程,具体包括如下步骤200-步骤230:Fig. 2 is the second schematic flow diagram of the spot center positioning method provided by the present invention. As shown in Fig. 2, it mainly includes the process of determining the symmetry axis of the spot, specifically including the following steps 200-step 230:

步骤200,计算光斑图像的灰度直方图。Step 200, calculating the grayscale histogram of the spot image.

可选地,可以计算光斑图像的Y方向的灰度直方图和X方向的灰度直方图,即光斑图像的横向灰度直方图和纵向灰度直方图。Optionally, a grayscale histogram in the Y direction and a grayscale histogram in the X direction of the spot image may be calculated, that is, a horizontal grayscale histogram and a vertical grayscale histogram of the spot image.

步骤210,根据灰度直方图确定光斑对称轴所在的区域。Step 210, determine the area where the symmetry axis of the light spot is located according to the grayscale histogram.

图3是本发明提供的环形光斑图像示意图,图4是本发明提供的环形光斑图像的纵向灰度直方图的示意图,图5是本发明提供的环形光斑图像的横向灰度直方图的示意图,如图3至图5所示,对于带有环状结构的光斑图像,光斑对称轴所在区域的范围m为:距离直方图最大峰值点最近的两个波谷点之间,即光斑对称轴可以从m的开始端到末尾端移动。Fig. 3 is a schematic diagram of an annular spot image provided by the present invention, Fig. 4 is a schematic diagram of a longitudinal grayscale histogram of an annular spot image provided by the present invention, and Fig. 5 is a schematic diagram of a horizontal grayscale histogram of an annular spot image provided by the present invention, As shown in Figure 3 to Figure 5, for a spot image with a ring structure, the range m of the area where the spot symmetry axis is located is: between the two valley points closest to the maximum peak point of the histogram, that is, the spot symmetry axis can be from Move from the start end of m to the end end.

可选地,可以通过数学中的求导法,求距离直方图最大峰值点最近的两个极小值,即可以得到距离直方图最大峰值点最近的两个波谷点。Optionally, the two minimum values that are closest to the maximum peak point of the histogram can be obtained through the derivation method in mathematics, that is, the two valley points closest to the maximum peak point of the histogram can be obtained.

步骤220,由任意一条分割线在光斑对称轴所在的区域内移动,并按照分割线两侧范围小的区域为基准,对分割线的两侧区域进行相关性计算。In step 220, any dividing line is moved in the area where the symmetry axis of the light spot is located, and the correlation calculation is performed on the areas on both sides of the dividing line based on the small areas on both sides of the dividing line.

可以理解的是,由于计算相关性的两块区域大小要求是一致的,因此可以以分割线两侧范围较小的区域为基准,裁剪分割线两侧范围较大的区域,使其与较小区域的大小相同,并且经过裁剪之后,两块区域关于分割线对称。It is understandable that, since the size requirements of the two areas for calculating the correlation are the same, it is possible to use the smaller areas on both sides of the dividing line as a benchmark, and crop the larger areas on both sides of the dividing line to make it correspond to the smaller The sizes of the regions are the same, and after cropping, the two regions are symmetrical about the dividing line.

步骤230,当相关度最大时,确定分割线所在的位置为光斑对称轴的位置。Step 230, when the degree of correlation is maximum, determine that the position of the dividing line is the position of the symmetry axis of the light spot.

可选地,可以确定由任意一条第一分割线从图4所示的m的始端到末端每间隔整像素移动一次,并且每移动一次,计算一次第一分割线两侧区域的相关度,当第一分割线两侧区域的相关度最大时,可以确定此时第一分割线所在的位置为第一条光斑对称轴的位置。Optionally, it can be determined that any one of the first dividing lines moves from the beginning to the end of m shown in FIG. When the correlation degree of the regions on both sides of the first dividing line is the largest, it can be determined that the position of the first dividing line at this time is the position of the symmetry axis of the first light spot.

可选地,可以确定由任意一条第二分割线从图5所示的m的始端到末端每间隔整像素移动一次,并且每移动一次,计算一次第二分割线两侧区域的相关度,当第二分割线两侧区域的相关度最大时,可以确定此时第二分割线所在的位置为第二条光斑对称轴的位置。Optionally, it can be determined that any second dividing line moves from the beginning to the end of m shown in FIG. When the correlation degree of the regions on both sides of the second dividing line is the largest, it can be determined that the position of the second dividing line at this time is the position of the symmetry axis of the second light spot.

可选地,可以在二维光斑图像的左右方向和上下方向都各自执行一次上述步骤200至步骤230,就会获得两条光斑对称轴,并可以确定该两条光斑对称轴的交点为光斑的中心位置。Optionally, the above-mentioned steps 200 to 230 can be performed once in the left-right direction and the up-down direction of the two-dimensional spot image, and then two spot symmetry axes can be obtained, and the intersection point of the two spot symmetry axes can be determined as the spot Central location.

可选地,在本发明实施例中,可以首先通过光斑图像的灰度直方图确定光斑对称轴的滑动区域,之后通过滑动对称轴的方法,对对称轴左右两边的图像进行相关度计算,相关度最大的对称轴即为光斑的一条对称轴,通过这种方法在二维光斑图像的横向和纵向确定出光斑的两条对称轴,交点即为光斑的中心。Optionally, in the embodiment of the present invention, the sliding area of the symmetry axis of the spot can be determined first through the gray histogram of the spot image, and then the correlation calculation is performed on the images on the left and right sides of the symmetry axis by sliding the symmetry axis, and the correlation The axis of symmetry with the largest degree is the axis of symmetry of the spot. By this method, two axes of symmetry of the spot are determined in the horizontal and vertical directions of the two-dimensional spot image, and the intersection point is the center of the spot.

本发明实施例提供的光斑中心定位方法,将相关性引入到光斑中心定位中,可以更加准确地对不规则圆形光斑的中心进行定位。The light spot center positioning method provided by the embodiment of the present invention introduces correlation into the light spot center positioning, so that the center of the irregular circular light spot can be positioned more accurately.

可选地,本发明实施例提供的光斑中心定位方法,不局限于光斑中心的定位,还可以适用于其他具有对称特性图像的中心定位场景中,下面以散斑图像为例进行说明。Optionally, the spot center positioning method provided in the embodiment of the present invention is not limited to the spot center positioning, and can also be applied to other center positioning scenarios of images with symmetrical characteristics. The speckle image is taken as an example for description below.

图6是本发明提供的散斑图像示意图,图7是本发明提供的散斑图像的纵向灰度直方图的示意图,图8是本发明提供的散斑图像的横向灰度直方图的示意图,如图6至图8所示,依然可以基于上述步骤200至步骤230确定散斑的对称轴,进而确定散斑的中心位置,对于散斑图像,对称轴所在区域的范围m的始端和末端对应的灰度值是横向灰度直方图的最大峰值点或纵向灰度直方图的最大峰值点对应的灰度值的预设倍数,例如该预设倍数可以是1/e,其中,e为自然底数。Fig. 6 is a schematic diagram of a speckle image provided by the present invention, Fig. 7 is a schematic diagram of a longitudinal grayscale histogram of a speckle image provided by the present invention, and Fig. 8 is a schematic diagram of a horizontal grayscale histogram of a speckle image provided by the present invention, As shown in Figures 6 to 8, the symmetry axis of the speckle can still be determined based on the above steps 200 to 230, and then the center position of the speckle can be determined. For the speckle image, the beginning and end of the range m where the symmetry axis is located correspond to The grayscale value of is the preset multiple of the grayscale value corresponding to the maximum peak point of the horizontal grayscale histogram or the maximum peak point of the vertical grayscale histogram. For example, the preset multiple can be 1/e, where e is natural Base number.

可选地,本发明实施例提供的光斑中心定位方法,可以应用于采集图像数据的过程中,提高光斑中心的定位精度。Optionally, the method for locating the center of the light spot provided in the embodiment of the present invention may be applied in the process of collecting image data to improve the positioning accuracy of the center of the light spot.

可以理解的是,在连续的光测图像中,光斑在整幅图像中所处的位置几乎不变。It can be understood that, in continuous photometric images, the position of the light spot in the whole image is almost unchanged.

因此,在本发明实施例中,可以仅确定连续的光测图像中的部分光斑图像的中心位置,或者可以每间隔预设数目张图像确定一次光斑中心位置,例如每间隔10张图像确定一次光斑中心位置。Therefore, in the embodiment of the present invention, only the central position of part of the spot images in the continuous photometric images can be determined, or the central position of the spot can be determined every preset number of images, for example, the spot can be determined once every 10 images Central location.

可选地,在需要将光斑中心位置的定位精度精确到亚像素的情况下,可以在基于上文描述的光斑中心定位方法获得整数位像素的光斑中心位置之后,基于该光斑中心位置和相似系数拟合法,将光斑的中心位置精确到亚像素。Optionally, in the case where the positioning accuracy of the spot center position needs to be accurate to sub-pixels, after obtaining the spot center position of integer bit pixels based on the spot center positioning method described above, based on the spot center position and the similarity coefficient Fitting method, the center position of the spot is accurate to sub-pixel.

具体地,可以基于整数位像素的光斑中心位置坐标以及该整数位像素的光斑中心位置的周围八邻域的像素位置坐标,通过二次曲面表达式F(x,y)=a1x2+a2y2+a3x+a4y+a5xy+a6,确定亚像素的光斑中心位置,其中,a1、a2、a3、a4、a5和a6为系数,x,y为像素位置坐标。Specifically, based on the coordinates of the spot center position of the integer bit pixel and the pixel position coordinates of the surrounding eight neighborhoods of the spot center position of the integer bit pixel, the quadratic surface expression F(x, y)=a 1 x 2 + a 2 y 2 +a 3 x+a 4 y+a 5 xy+a 6 , determine the spot center position of the sub-pixel, where a 1 , a 2 , a 3 , a 4 , a 5 and a 6 are coefficients, x, y are pixel position coordinates.

具体地,可以将整数位像素的光斑中心位置坐标及周围八邻域的像素位置坐标分别代入上述二次曲面表达式中,并解超定方程求得二次曲面表达式的各个系数的大小,之后对二次曲面表达式求导,计算极小值,此极小值对应的坐标即是亚像素的光斑中心位置。Specifically, the spot center position coordinates of integer-bit pixels and the pixel position coordinates of the surrounding eight neighborhoods can be substituted into the above-mentioned quadratic surface expression respectively, and the overdetermined equation is solved to obtain the size of each coefficient of the quadratic surface expression, Afterwards, the derivative of the quadratic surface expression is calculated to calculate the minimum value, and the coordinate corresponding to the minimum value is the center position of the sub-pixel spot.

本发明提供的光斑中心定位方法,通过基于光斑图像的灰度直方图,确定光斑图像的第一目标区域和第二目标区域,再基于像素相关性,在第一目标区域中确定第一光斑对称轴,在第二目标区域中确定第二光斑对称轴,最后将第一光斑对称轴与第二光斑对称轴的交点确定为光斑的中心位置,不仅可以提高光斑中心定位的效率,而且通过将像素相关性引入到光斑中心定位中,可以提高光斑中心定位的精度。The spot center positioning method provided by the present invention determines the first target area and the second target area of the spot image based on the gray histogram of the spot image, and then determines the symmetry of the first spot in the first target area based on the pixel correlation. Axis, determine the second spot symmetry axis in the second target area, and finally determine the intersection point of the first spot symmetry axis and the second spot symmetry axis as the center position of the spot, not only can improve the efficiency of spot center positioning, but also through the pixel Correlation is introduced into spot center positioning, which can improve the accuracy of spot center positioning.

下面对本发明提供的光斑中心定位装置进行描述,下文描述的光斑中心定位装置与上文描述的光斑中心定位方法可相互对应参照。The spot center positioning device provided by the present invention is described below, and the spot center positioning device described below and the spot center positioning method described above can be referred to in correspondence.

图9是本发明提供的光斑中心定位装置的结构示意图,如图9所示,该装置包括:第一确定模块910、第二确定模块920和第三确定模块930;其中:Fig. 9 is a schematic structural diagram of a spot center positioning device provided by the present invention. As shown in Fig. 9, the device includes: a first determining module 910, a second determining module 920 and a third determining module 930; wherein:

第一确定模块910用于基于光斑图像的灰度直方图,确定所述光斑图像的第一目标区域和第二目标区域;The first determining module 910 is configured to determine the first target area and the second target area of the spot image based on the gray histogram of the spot image;

第二确定模块920用于基于像素相关性,在所述第一目标区域中确定第一光斑对称轴,并在所述第二目标区域中确定第二光斑对称轴;The second determination module 920 is configured to determine a first light spot symmetry axis in the first target area based on pixel correlation, and determine a second light spot symmetry axis in the second target area;

第三确定模块930用于确定所述第一光斑对称轴与所述第二光斑对称轴的交点为光斑的中心位置。The third determination module 930 is configured to determine the intersection of the first light spot symmetry axis and the second light spot symmetry axis as the center position of the light spot.

具体地,本发明实施例提供的光斑中心定位装置,可以通过第一确定模块910基于光斑图像的灰度直方图,确定光斑图像的第一目标区域和第二目标区域;然后通过第二确定模块920基于像素相关性,在第一目标区域中确定第一光斑对称轴,并在第二目标区域中确定第二光斑对称轴;最后通过第三确定模块930确定第一光斑对称轴与第二光斑对称轴的交点为光斑的中心位置。Specifically, the spot center positioning device provided by the embodiment of the present invention can determine the first target area and the second target area of the spot image based on the gray histogram of the spot image through the first determining module 910; 920 Based on the pixel correlation, determine the first light spot symmetry axis in the first target area, and determine the second light spot symmetry axis in the second target area; finally determine the first light spot symmetry axis and the second light spot symmetry axis through the third determination module 930 The intersection point of the symmetry axis is the center position of the spot.

本发明提供的光斑中心定位装置,通过基于光斑图像的灰度直方图,确定光斑图像的第一目标区域和第二目标区域,再基于像素相关性,在第一目标区域中确定第一光斑对称轴,在第二目标区域中确定第二光斑对称轴,最后将第一光斑对称轴与第二光斑对称轴的交点确定为光斑的中心位置,不仅可以提高光斑中心定位的效率,而且通过将像素相关性引入到光斑中心定位中,可以提高光斑中心定位的精度。The spot center positioning device provided by the present invention determines the first target area and the second target area of the spot image based on the gray histogram of the spot image, and then determines the symmetry of the first spot in the first target area based on the pixel correlation. Axis, determine the second spot symmetry axis in the second target area, and finally determine the intersection point of the first spot symmetry axis and the second spot symmetry axis as the center position of the spot, not only can improve the efficiency of spot center positioning, but also through the pixel Correlation is introduced into spot center positioning, which can improve the accuracy of spot center positioning.

在此需要说明的是,本发明实施例提供的上述装置,能够实现上述光斑中心定位方法实施例所实现的所有方法步骤,且能够达到相同的技术效果,在此不再对本实施例中与方法实施例相同的部分及有益效果进行具体赘述。What needs to be explained here is that the above-mentioned device provided by the embodiment of the present invention can realize all the method steps realized by the above-mentioned light spot center positioning method embodiment, and can achieve the same technical effect. The same parts and beneficial effects of the embodiments are described in detail.

图10是本发明提供的电子设备的实体结构示意图,如图10所示,该电子设备可以包括:处理器(processor)1010、通信接口(Communications Interface)1020、存储器(memory)1030和通信总线1040,其中,处理器1010,通信接口1020,存储器1030通过通信总线1040完成相互间的通信。处理器1010可以调用存储器1030中的逻辑指令,以执行上述各方法所提供的光斑中心定位方法,该方法包括:Fig. 10 is a schematic diagram of the physical structure of the electronic device provided by the present invention. As shown in Fig. 10, the electronic device may include: a processor (processor) 1010, a communication interface (Communications Interface) 1020, a memory (memory) 1030 and a communication bus 1040 , wherein, the processor 1010 , the communication interface 1020 , and the memory 1030 communicate with each other through the communication bus 1040 . The processor 1010 can call the logic instructions in the memory 1030 to execute the method for locating the center of the light spot provided by the above-mentioned methods, and the method includes:

基于光斑图像的灰度直方图,确定所述光斑图像的第一目标区域和第二目标区域;determining a first target area and a second target area of the spot image based on a grayscale histogram of the spot image;

基于像素相关性,在所述第一目标区域中确定第一光斑对称轴,并在所述第二目标区域中确定第二光斑对称轴;determining a first spot symmetry axis in the first target area and determining a second spot symmetry axis in the second target area based on pixel correlation;

确定所述第一光斑对称轴与所述第二光斑对称轴的交点为光斑的中心位置。Determine the intersection of the first light spot symmetry axis and the second light spot symmetry axis as the center position of the light spot.

此外,上述的存储器1030中的逻辑指令可以通过软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。In addition, the above-mentioned logic instructions in the memory 1030 may be implemented in the form of software functional units and be stored in a computer-readable storage medium when sold or used as an independent product. Based on this understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in various embodiments of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk and other media that can store program codes. .

另一方面,本发明还提供一种计算机程序产品,所述计算机程序产品包括存储在非暂态计算机可读存储介质上的计算机程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,计算机能够执行上述各方法所提供的光斑中心定位方法,该方法包括:On the other hand, the present invention also provides a computer program product, the computer program product includes a computer program stored on a non-transitory computer-readable storage medium, the computer program includes program instructions, and when the program instructions are executed by a computer During execution, the computer can execute the spot center positioning method provided by the above-mentioned methods, and the method includes:

基于光斑图像的灰度直方图,确定所述光斑图像的第一目标区域和第二目标区域;determining a first target area and a second target area of the spot image based on a grayscale histogram of the spot image;

基于像素相关性,在所述第一目标区域中确定第一光斑对称轴,并在所述第二目标区域中确定第二光斑对称轴;determining a first spot symmetry axis in the first target area and determining a second spot symmetry axis in the second target area based on pixel correlation;

确定所述第一光斑对称轴与所述第二光斑对称轴的交点为光斑的中心位置。Determine the intersection of the first light spot symmetry axis and the second light spot symmetry axis as the center position of the light spot.

又一方面,本发明还提供一种非暂态计算机可读存储介质,其上存储有计算机程序,该计算机程序被处理器执行时实现以执行上述各提供的光斑中心定位方法,该方法包括:In yet another aspect, the present invention also provides a non-transitory computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, it is implemented to perform the methods for locating the center of the light spot provided above, the method comprising:

基于光斑图像的灰度直方图,确定所述光斑图像的第一目标区域和第二目标区域;determining a first target area and a second target area of the spot image based on a grayscale histogram of the spot image;

基于像素相关性,在所述第一目标区域中确定第一光斑对称轴,并在所述第二目标区域中确定第二光斑对称轴;determining a first spot symmetry axis in the first target area and determining a second spot symmetry axis in the second target area based on pixel correlation;

确定所述第一光斑对称轴与所述第二光斑对称轴的交点为光斑的中心位置。Determine the intersection of the first light spot symmetry axis and the second light spot symmetry axis as the center position of the light spot.

以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。本领域普通技术人员在不付出创造性的劳动的情况下,即可以理解并实施。The device embodiments described above are only illustrative, and the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in One place, or it can be distributed to multiple network elements. Part or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. It can be understood and implemented by those skilled in the art without any creative efforts.

通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到各实施方式可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件。基于这样的理解,上述技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在计算机可读存储介质中,如ROM/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行各个实施例或者实施例的某些部分所述的方法。Through the above description of the implementations, those skilled in the art can clearly understand that each implementation can be implemented by means of software plus a necessary general hardware platform, and of course also by hardware. Based on this understanding, the essence of the above technical solution or the part that contributes to the prior art can be embodied in the form of software products, and the computer software products can be stored in computer-readable storage media, such as ROM/RAM, magnetic discs, optical discs, etc., including several instructions to make a computer device (which may be a personal computer, server, or network device, etc.) execute the methods described in various embodiments or some parts of the embodiments.

最后应说明的是:以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: it can still be Modifications are made to the technical solutions described in the foregoing embodiments, or equivalent replacements are made to some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the various embodiments of the present invention.

Claims (10)

1.一种光斑中心定位方法,其特征在于,包括:1. A spot center location method, is characterized in that, comprises: 基于光斑图像的灰度直方图,确定所述光斑图像的第一目标区域和第二目标区域;determining a first target area and a second target area of the spot image based on a grayscale histogram of the spot image; 基于像素相关性,在所述第一目标区域中确定第一光斑对称轴,并在所述第二目标区域中确定第二光斑对称轴;determining a first spot symmetry axis in the first target area and determining a second spot symmetry axis in the second target area based on pixel correlation; 确定所述第一光斑对称轴与所述第二光斑对称轴的交点为光斑的中心位置。Determine the intersection of the first light spot symmetry axis and the second light spot symmetry axis as the center position of the light spot. 2.根据权利要求1所述的光斑中心定位方法,其特征在于,基于像素相关性,在所述第一目标区域中确定第一光斑对称轴,并在所述第二目标区域中确定第二光斑对称轴,包括:2. The spot center positioning method according to claim 1, characterized in that, based on pixel correlation, the first spot symmetry axis is determined in the first target area, and the second spot axis is determined in the second target area. The axis of symmetry of the spot, including: 确定由任意一条第一分割线对所述第一目标区域进行分割后的第一子区域和第二子区域,并获取所述第一子区域和第二子区域的第一像素相关度;determining a first subregion and a second subregion after the first target region is divided by any first dividing line, and obtaining a first pixel correlation between the first subregion and the second subregion; 确定与所有第一像素相关度中的最大第一像素相关度所对应的第一分割线为所述第一光斑对称轴;Determining a first dividing line corresponding to a maximum first pixel correlation among all first pixel correlations as the first spot symmetry axis; 确定由任意一条第二分割线对所述第二目标区域进行分割后的第三子区域和第四子区域,并获取所述第三子区域和第四子区域的第二像素相关度;determining a third sub-region and a fourth sub-region after dividing the second target region by any second dividing line, and obtaining a second pixel correlation degree between the third sub-region and the fourth sub-region; 确定与所有第二像素相关度中的最大第二像素相关度所对应的第二分割线为所述第二光斑对称轴。Determining a second dividing line corresponding to a maximum second pixel correlation among all second pixel correlations as the second light spot symmetry axis. 3.根据权利要求1或2所述的光斑中心定位方法,其特征在于,基于光斑图像的灰度直方图,确定所述光斑图像的第一目标区域和第二目标区域,包括:3. The spot center positioning method according to claim 1 or 2, wherein, based on the grayscale histogram of the spot image, determining the first target area and the second target area of the spot image comprises: 分别确定光斑图像的横向灰度直方图和纵向灰度直方图,所述横向灰度直方图的X坐标为所述光斑图像像元横向序列号,Y坐标为所述光斑图像的每一行像元的总灰度值,所述纵向灰度直方图的X坐标为所述光斑图像像元纵向序列号,Y坐标为所述光斑图像的每一列像元的总灰度值;Determine the horizontal grayscale histogram and vertical grayscale histogram of the spot image respectively, the X coordinate of the horizontal grayscale histogram is the horizontal serial number of the pixel of the spot image, and the Y coordinate is each row of pixels of the spot image The total gray value, the X coordinate of the longitudinal gray histogram is the longitudinal serial number of the pixel in the spot image, and the Y coordinate is the total gray value of each row of pixels in the spot image; 基于所述横向灰度直方图,确定所述第一目标区域,并基于所述纵向灰度直方图,确定所述第二目标区域。The first target area is determined based on the horizontal grayscale histogram, and the second target area is determined based on the vertical grayscale histogram. 4.根据权利要求3所述的光斑中心定位方法,其特征在于,所述光斑图像为环形光斑图像;4. The spot center positioning method according to claim 3, wherein the spot image is an annular spot image; 在所述光斑图像为环形光斑图像的情况下,基于所述横向灰度直方图,确定所述第一目标区域,并基于所述纵向灰度直方图,确定所述第二目标区域,包括:In the case where the spot image is an annular spot image, determining the first target area based on the horizontal grayscale histogram, and determining the second target area based on the vertical grayscale histogram include: 基于所述横向灰度直方图,确定距离所述横向灰度直方图的最大峰值点最近的两个第一波谷点;Based on the horizontal grayscale histogram, determine two first valley points closest to the maximum peak point of the horizontal grayscale histogram; 基于所述两个第一波谷点分别对应的X坐标,确定所述第一目标区域;Determining the first target area based on X coordinates corresponding to the two first trough points respectively; 基于所述纵向灰度直方图,确定距离所述纵向灰度直方图的最大峰值点最近的两个第二波谷点;Based on the longitudinal grayscale histogram, determine two second valley points closest to the maximum peak point of the longitudinal grayscale histogram; 基于所述两个第二波谷点分别对应的X坐标,确定所述第二目标区域。The second target area is determined based on X coordinates respectively corresponding to the two second valley points. 5.根据权利要求3所述的光斑中心定位方法,其特征在于,所述光斑图像为非环形光斑图像;5. The spot center positioning method according to claim 3, wherein the spot image is a non-ring spot image; 在所述光斑图像为非环形光斑图像的情况下,基于所述横向灰度直方图,确定所述第一目标区域,并基于所述纵向灰度直方图,确定所述第二目标区域,包括:In the case where the spot image is a non-annular spot image, determining the first target area based on the horizontal grayscale histogram, and determining the second target area based on the vertical grayscale histogram, including : 在所述横向灰度直方图中,确定第一目标点和第二目标点,所述第一目标点和第二目标点分别对应的灰度值是所述横向灰度直方图的最大峰值点对应的灰度值的预设倍数;In the horizontal grayscale histogram, determine the first target point and the second target point, the grayscale values corresponding to the first target point and the second target point respectively are the maximum peak points of the horizontal grayscale histogram The preset multiple of the corresponding gray value; 基于所述第一目标点的X坐标和所述第二目标点的X坐标,确定所述第一目标区域;determining the first target area based on the X coordinate of the first target point and the X coordinate of the second target point; 在所述纵向灰度直方图中,确定第三目标点和第四目标点,所述第三目标点和第四目标点分别对应的灰度值是所述纵向灰度直方图的最大峰值点对应的灰度值的预设倍数;In the vertical grayscale histogram, determine the third target point and the fourth target point, the grayscale values corresponding to the third target point and the fourth target point are the maximum peak points of the vertical grayscale histogram The preset multiple of the corresponding gray value; 基于所述第三目标点的X坐标和所述第四目标点的X坐标,确定所述第二目标区域。The second target area is determined based on the X coordinate of the third target point and the X coordinate of the fourth target point. 6.根据权利要求5所述的光斑中心定位方法,其特征在于,所述预设倍数为1/e,其中,e为自然底数。6. The spot center positioning method according to claim 5, wherein the preset multiple is 1/e, wherein e is a natural base. 7.一种光斑中心定位装置,其特征在于,包括:7. A spot center positioning device, characterized in that it comprises: 第一确定模块,用于基于光斑图像的灰度直方图,确定所述光斑图像的第一目标区域和第二目标区域;A first determining module, configured to determine a first target area and a second target area of the spot image based on a grayscale histogram of the spot image; 第二确定模块,用于基于像素相关性,在所述第一目标区域中确定第一光斑对称轴,并在所述第二目标区域中确定第二光斑对称轴;A second determining module, configured to determine a first light spot symmetry axis in the first target area based on pixel correlation, and determine a second light spot symmetry axis in the second target area; 第三确定模块,用于确定所述第一光斑对称轴与所述第二光斑对称轴的交点为光斑的中心位置。The third determination module is configured to determine the intersection of the first light spot symmetry axis and the second light spot symmetry axis as the center position of the light spot. 8.一种电子设备,包括存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序,其特征在于,所述处理器执行所述程序时实现如权利要求1至6任一项所述光斑中心定位方法。8. An electronic device comprising a memory, a processor, and a computer program stored on the memory and operable on the processor, wherein the processor according to claim 1 is implemented when executing the program. The spot center positioning method described in any one of to 6. 9.一种非暂态计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现如权利要求1至6任一项所述光斑中心定位方法。9. A non-transitory computer-readable storage medium, on which a computer program is stored, wherein when the computer program is executed by a processor, the spot center positioning method according to any one of claims 1 to 6 is implemented. 10.一种计算机程序产品,包括计算机程序,其特征在于,所述计算机程序被处理器执行时实现如权利要求1至6任一项所述光斑中心定位方法。10. A computer program product, comprising a computer program, characterized in that, when the computer program is executed by a processor, the spot center positioning method according to any one of claims 1 to 6 is implemented.
CN202210731240.3A 2022-06-24 2022-06-24 Light spot center positioning method and device Pending CN115272451A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210731240.3A CN115272451A (en) 2022-06-24 2022-06-24 Light spot center positioning method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210731240.3A CN115272451A (en) 2022-06-24 2022-06-24 Light spot center positioning method and device

Publications (1)

Publication Number Publication Date
CN115272451A true CN115272451A (en) 2022-11-01

Family

ID=83760558

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210731240.3A Pending CN115272451A (en) 2022-06-24 2022-06-24 Light spot center positioning method and device

Country Status (1)

Country Link
CN (1) CN115272451A (en)

Similar Documents

Publication Publication Date Title
CN112381847B (en) Pipeline end space pose measurement method and system
CN114332125A (en) Point cloud reconstruction method, device, electronic device and storage medium
CN112017232A (en) Method, device and equipment for positioning circular pattern in image
CN116385415A (en) Edge defect detection method, device, equipment and storage medium
CN116604212A (en) Robot weld joint identification method and system based on area array structured light
CN113878592A (en) Workpiece cutting method and device based on laser position finding and cutting robot
US20230267593A1 (en) Workpiece measurement method, workpiece measurement system, and program
CN115861368A (en) Multi-class contour tracking method, device and medium for multi-class images
CN114862816A (en) Glitch detection method, system, and computer-readable storage medium
CN115272451A (en) Light spot center positioning method and device
CN116542926B (en) Method, device, equipment and storage medium for identifying defects of two-dimension codes of battery
CN117372663A (en) Method, device, equipment and storage medium for supplementing log end face shielding
CN114494573B (en) Three-dimensional pipeline model labeling method and device, electronic equipment and storage medium
CN111462216A (en) Method for determining circle center pixel coordinates in circular array calibration plate
CN108389204B (en) Degraded image fuzzy kernel double-parameter direct estimation method for high-speed online detection
CN115131243B (en) Image processing method, device, electronic device and storage medium
CN117086878A (en) Groove cutting method, system, electronic equipment, storage medium and product
CN116977309A (en) Wafer surface characteristic measurement method, device, equipment and readable storage medium
CN111633337B (en) Reflection eliminating method and device for laser welding seam measurement
CN111633358B (en) Laser-based weld parameter measuring method and device
CN115082543A (en) A laser correction method
CN117807875B (en) Three-dimensional data reverse reconstruction and dimension measurement system and method for quartz device
CN118735802B (en) Image processing method, device and system based on pixel reconstruction
CN119356047B (en) Alignment mark center positioning method and related device
CN119205855B (en) Point cloud image registration method, device, electronic device and storage medium

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