CN117911419A - Method and device for detecting steel rotation angle enhancement of medium plate, medium and equipment - Google Patents

Method and device for detecting steel rotation angle enhancement of medium plate, medium and equipment Download PDF

Info

Publication number
CN117911419A
CN117911419A CN202410317919.7A CN202410317919A CN117911419A CN 117911419 A CN117911419 A CN 117911419A CN 202410317919 A CN202410317919 A CN 202410317919A CN 117911419 A CN117911419 A CN 117911419A
Authority
CN
China
Prior art keywords
image
area
pixel
steel billet
steel
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
CN202410317919.7A
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.)
Northeastern University China
Original Assignee
Northeastern University China
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 Northeastern University China filed Critical Northeastern University China
Priority to CN202410317919.7A priority Critical patent/CN117911419A/en
Publication of CN117911419A publication Critical patent/CN117911419A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/0002Inspection of images, e.g. flaw detection
    • G06T7/0004Industrial image inspection
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/13Edge detection
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/155Segmentation; Edge detection involving morphological operators
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/181Segmentation; Edge detection involving edge growing; involving edge linking
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/187Segmentation; Edge detection involving region growing; involving region merging; involving connected component labelling
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/194Segmentation; Edge detection involving foreground-background segmentation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/60Analysis of geometric attributes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10016Video; Image sequence
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Geometry (AREA)
  • Quality & Reliability (AREA)
  • Image Processing (AREA)

Abstract

The application relates to the field of rolling image analysis, and discloses a method and a device for detecting steel-turning angle enhancement of a medium plate, a medium and equipment. The method comprises the following steps: shooting a billet image by a target camera, and carrying out distortion correction on the billet image according to camera parameters; sequentially performing defogging treatment and contrast enhancement treatment on the billet image; based on the gray scale of each pixel point in the billet image, a foreground area and a background area are identified, and holes in the foreground area are filled; performing image morphology opening operation on the billet image; determining a target communication area based on the communication relation of the foreground area, and fitting the edge contour of the target communication area; fitting a circumscribed minimum rectangle corresponding to the target communication area according to the edge profile, and determining the angle of the billet according to the offset angle of the rectangle relative to the preset reference direction. The method solves the problems that the image of the existing method has the defects of blurring, noise and the like, and a stable angle detection result cannot be obtained.

Description

中厚板转钢角度增强检测方法及装置、介质、设备Method, device, medium and equipment for enhanced detection of steel turning angle of medium and thick plate

技术领域Technical Field

本申请涉及轧制图像分析领域,尤其是涉及到一种中厚板转钢角度增强检测方法及装置、介质、设备。The present application relates to the field of rolling image analysis, and in particular to a method and device, medium, and equipment for enhanced detection of steel turning angles of medium and thick plates.

背景技术Background Art

按照现行的国家标准GB709--2006《热轧钢板和钢带尺寸、外形、重量及允许偏差》规定,热轧钢板分类可按厚度偏差的分类、厚度进级的划分、热轧钢板尺寸范围等三种方式进行分类。在习惯上,钢板按照厚度可分为中厚板、厚板、特厚板,通常厚度为4~20mm的钢板称为中厚板。在中厚板轧制生产中,转钢操作是重要的环节,如今我国钢厂已经建设了装备精良、工艺完备、自动化程度高的现代化中厚板生产线,特别在轧区,除了转钢操作均已实现自动控制。转钢操作成为中厚板轧区全自动控制的唯一瓶颈。According to the current national standard GB709--2006 "Dimensions, Shapes, Weights and Permissible Deviations of Hot-rolled Steel Plates and Strips", hot-rolled steel plates can be classified by three methods: classification of thickness deviation, classification of thickness upgrades, and size range of hot-rolled steel plates. Conventionally, steel plates can be divided into medium-thick plates, thick plates, and extra-thick plates according to thickness. Usually, steel plates with a thickness of 4~20mm are called medium-thick plates. In the rolling production of medium-thick plates, steel transfer operation is an important link. Today, my country's steel mills have built modern medium-thick plate production lines with sophisticated equipment, complete processes, and high automation. Especially in the rolling area, except for steel transfer operation, all other operations have been automatically controlled. Steel transfer operation has become the only bottleneck for fully automatic control of the medium-thick plate rolling area.

转钢过程钢坯角度的检测算法是转钢实现自动控制的前提条件,传统的人工转钢操作主要通过目视进行钢坯的检测,这种方式太依赖操作工的工作经验,无论在效率还是准确率上都比较低。随着智能化技术的发展,机器视觉识别技术目前已广泛应用于工业领域,具备处理速度快,检测精度高,易于集成等优势,在国内钢铁行业中的炼钢、连铸、轧制工序已经有了广泛的应用。The detection algorithm of the billet angle in the steel turning process is a prerequisite for automatic control of steel turning. The traditional manual steel turning operation mainly detects the billet visually, which is too dependent on the operator's work experience and has low efficiency and accuracy. With the development of intelligent technology, machine vision recognition technology has been widely used in the industrial field. It has the advantages of fast processing speed, high detection accuracy, and easy integration. It has been widely used in steelmaking, continuous casting, and rolling processes in the domestic steel industry.

然而,在实际生产过程中由于钢坯温度变化、高压水除磷和轧辊辊身冷却系统造成的水汽及钢坯表面灰度分布不均等问题,导致采集到的图像不可避免的存在模糊、噪点等缺陷,严重影响图像质量,无法获得稳定的角度检测结果。However, in the actual production process, due to the temperature changes of the billet, the water vapor caused by the high-pressure water dephosphorization and the roller cooling system, and the uneven grayscale distribution on the billet surface, the collected images inevitably have defects such as blur and noise, which seriously affect the image quality and make it impossible to obtain stable angle detection results.

发明内容Summary of the invention

有鉴于此,本申请提供了一种中厚板转钢角度增强检测方法及装置、介质、设备,解决了现有方法图像存在模糊、噪点等缺陷,无法获得稳定的角度检测结果的问题。In view of this, the present application provides a method and device, medium, and equipment for enhanced detection of the angle of steel turning of medium and thick plates, which solves the problem that the existing methods have defects such as blur and noise in the images and cannot obtain stable angle detection results.

根据本申请的一个方面,提供了一种中厚板转钢角度增强检测方法,包括:According to one aspect of the present application, a method for enhanced detection of steel turning angle of medium and thick plates is provided, comprising:

在中厚板轧制的转钢环节中通过目标摄像机拍摄钢坯图像,并根据所述目标摄像机的摄像机参数对所述钢坯图像进行畸变校正;In the steel transfer process of medium and thick plate rolling, a target camera is used to capture a steel billet image, and distortion correction is performed on the steel billet image according to camera parameters of the target camera;

对畸变校正后的钢坯图像依次进行去雾处理和对比度增强处理;The billet image after distortion correction is subjected to defogging and contrast enhancement processing in sequence;

在基于对比度增强处理后的钢坯图像中每个像素点的灰度,识别前景区域以及背景区域,并针对所述前景区域中的孔洞进行填充;Based on the grayscale of each pixel in the steel billet image after contrast enhancement, identify the foreground area and the background area, and fill the holes in the foreground area;

对孔洞填充后的钢坯图像进行图像形态学的开操作;Perform image morphological opening operation on the billet image after hole filling;

基于开操作后的钢坯图像中前景区域的连通关系确定目标连通区域,并拟合所述目标连通区域的边缘轮廓;Determine a target connected area based on the connectivity relationship of the foreground area in the steel billet image after the opening operation, and fit the edge contour of the target connected area;

根据所述边缘轮廓拟合所述目标连通区域对应的外接最小矩形,并根据所述矩形相对于预设参考方向的偏移角度确定钢坯角度。The minimum circumscribed rectangle corresponding to the target connected area is fitted according to the edge contour, and the angle of the steel billet is determined according to the offset angle of the rectangle relative to a preset reference direction.

可选地,所述对畸变校正后的钢坯图像依次进行去雾处理和对比度增强处理,包括:Optionally, the defogging and contrast enhancement processing are sequentially performed on the distortion-corrected billet image, comprising:

确定畸变校正后的钢坯图像对应的大气光成分,根据所述大气光成分,确定所述畸变校正后的钢坯图像中每个像素点的透视率,根据所述大气光成分以及所述透视率,对所述畸变校正后的钢坯图像进行去雾处理;Determine an atmospheric light component corresponding to the distortion-corrected steel billet image, determine the perspective of each pixel in the distortion-corrected steel billet image according to the atmospheric light component, and perform defogging on the distortion-corrected steel billet image according to the atmospheric light component and the perspective;

通过线性变换方法拉伸去雾处理后的钢坯图像中每个像素点的灰度值,得到对比度增强处理后的钢坯图像。The gray value of each pixel in the dehazed billet image is stretched by a linear transformation method to obtain a contrast-enhanced billet image.

可选地,所述基于对比度增强处理后的钢坯图像中,每个像素点的灰度,识别前景区域以及背景区域,并针对所述前景区域中的孔洞进行填充,包括:Optionally, the identifying of the foreground area and the background area based on the grayscale of each pixel in the steel billet image after contrast enhancement processing, and filling the holes in the foreground area includes:

计算对比度增强处理后的钢坯图像中每个局部窗口的平均灰度值,分别计算对比度增强处理后的钢坯图像中每个待识别像素点的灰度值与所述平均灰度值之间的偏差;Calculating the average grayscale value of each local window in the steel billet image after contrast enhancement processing, and respectively calculating the deviation between the grayscale value of each pixel to be identified in the steel billet image after contrast enhancement processing and the average grayscale value;

若所述偏差大于偏差阈值,则确定所述待识别像素点为前景像素点,否则确定所述待识别像素点为背景像素点;If the deviation is greater than the deviation threshold, the pixel to be identified is determined to be a foreground pixel; otherwise, the pixel to be identified is determined to be a background pixel;

根据所述前景像素点确定所述前景区域,并在所述前景区域内扫描所述背景像素点;Determine the foreground area according to the foreground pixels, and scan the background pixels in the foreground area;

基于所述扫描结果确定所述前景区域中的孔洞,并填充所述孔洞。Holes in the foreground area are determined based on the scanning result, and the holes are filled.

可选地,所述基于开操作后的钢坯图像中前景区域的连通关系确定目标连通区域,并拟合所述目标连通区域的边缘轮廓,包括:Optionally, determining a target connected area based on the connectivity relationship of the foreground area in the steel billet image after the opening operation, and fitting an edge contour of the target connected area, comprises:

遍历所述前景区域中的像素点,并基于每个像素点的邻接关系,确定所述至少一个连通区域;Traversing the pixels in the foreground area, and determining the at least one connected area based on the adjacency relationship of each pixel;

根据每个所述连通区域的面积以及矩形度,确定一个连通区域为所述目标连通区域;According to the area and rectangularity of each of the connected regions, determining a connected region as the target connected region;

利用三点插值方法拟合所述目标连通区域的边缘曲线,得到所述目标连通区域对应的轮廓点集。The edge curve of the target connected area is fitted using a three-point interpolation method to obtain a contour point set corresponding to the target connected area.

可选地,所述根据所述边缘轮廓拟合所述目标连通区域对应的外接最小矩形,包括:Optionally, the step of fitting a minimum circumscribed rectangle corresponding to the target connected area according to the edge contour includes:

对所述轮廓点集进行预处理,并利用最小二乘法拟合方法对预处理后的轮廓点集进行初始拟合,得到拟合矩形;Preprocessing the contour point set, and performing initial fitting on the preprocessed contour point set using a least squares fitting method to obtain a fitting rectangle;

分别计算预处理后的轮廓点集中每个轮廓点到所述拟合矩形的残差,并对所述残差进行加权;Residuals from each contour point in the preprocessed contour point set to the fitting rectangle are calculated respectively, and the residuals are weighted;

根据加权后的残差进行再次拟合,得到新的拟合矩形,并返回至分别计算预处理后的轮廓点集中每个轮廓点到所述拟合矩形的残差的步骤,直至达到预设的终止迭代条件,并确定当前的拟合矩形为所述外接最小矩形。The weighted residual is refitted to obtain a new fitting rectangle, and the process returns to the step of respectively calculating the residual from each contour point in the preprocessed contour point set to the fitting rectangle, until the preset termination iteration condition is reached, and the current fitting rectangle is determined to be the circumscribed minimum rectangle.

可选地,所述残差对应的权重与所述残差负相关。Optionally, the weight corresponding to the residual is negatively correlated with the residual.

可选地,在所述根据所述目标摄像机的摄像机参数对所述钢坯图像进行畸变校正之前,包括:Optionally, before performing distortion correction on the steel billet image according to the camera parameters of the target camera, the method further comprises:

利用所述目标摄像机拍摄多张不同角度的标定板图片,并基于所述标定板图片对所述目标摄像机进行标定,得到所述摄像机参数,其中,所述摄像机参数包括内参、外参以及畸变参数。The target camera is used to take a plurality of calibration plate images at different angles, and the target camera is calibrated based on the calibration plate images to obtain the camera parameters, wherein the camera parameters include intrinsic parameters, extrinsic parameters and distortion parameters.

根据本申请的另一方面,提供了一种中厚板转钢角度增强检测装置,所述装置包括:According to another aspect of the present application, a device for detecting the enhanced steel turning angle of a medium and thick plate is provided, the device comprising:

图像拍摄模块,用于在中厚板轧制的转钢环节中通过目标摄像机拍摄钢坯图像,并根据所述目标摄像机的摄像机参数对所述钢坯图像进行畸变校正;An image shooting module, used to shoot a steel billet image through a target camera in the steel transfer link of medium and thick plate rolling, and perform distortion correction on the steel billet image according to the camera parameters of the target camera;

图像处理模块,用于对畸变校正后的钢坯图像依次进行去雾处理和对比度增强处理;以及,基于对比度增强后的钢坯图像中根据每个像素点的灰度,识别前景区域以及背景区域,并针对所述前景区域中的孔洞进行填充;以及,对孔洞填充后的钢坯图像进行图像形态学的开操作;以及,基于开操作后的钢坯图像中前景区域的连通关系确定目标连通区域,并拟合所述目标连通区域的边缘轮廓;An image processing module is used to sequentially perform defogging and contrast enhancement processing on the steel billet image after distortion correction; and, based on the grayscale of each pixel in the steel billet image after contrast enhancement, identify the foreground area and the background area, and fill the holes in the foreground area; and, perform image morphological opening operation on the steel billet image after the hole filling; and, based on the connectivity relationship of the foreground area in the steel billet image after the opening operation, determine the target connected area, and fit the edge contour of the target connected area;

角度检测模块,用于根据所述边缘轮廓拟合所述目标连通区域对应的外接最小矩形,并根据所述矩形相对于预设参考方向的偏移角度确定钢坯角度。The angle detection module is used to fit the circumscribed minimum rectangle corresponding to the target connected area according to the edge contour, and determine the angle of the steel billet according to the offset angle of the rectangle relative to a preset reference direction.

可选地,所述图像处理模块用于:Optionally, the image processing module is used to:

确定畸变校正后的钢坯图像对应的大气光成分,根据所述大气光成分,确定所述畸变校正后的钢坯图像中每个像素点的透视率,根据所述大气光成分以及所述透视率,对所述畸变校正后的钢坯图像进行去雾处理;Determine an atmospheric light component corresponding to the distortion-corrected steel billet image, determine the perspective of each pixel in the distortion-corrected steel billet image according to the atmospheric light component, and perform defogging on the distortion-corrected steel billet image according to the atmospheric light component and the perspective;

通过线性变换方法拉伸去雾处理后的钢坯图像中每个像素点的灰度值,得到对比度增强处理后的钢坯图像。The gray value of each pixel in the dehazed billet image is stretched by a linear transformation method to obtain a contrast-enhanced billet image.

可选地,所述图像处理模块用于:Optionally, the image processing module is used to:

计算对比度增强处理后的钢坯图像中每个局部窗口的平均灰度值,分别计算对比度增强处理后的钢坯图像中每个待识别像素点的灰度值与所述平均灰度值之间的偏差;Calculating the average grayscale value of each local window in the steel billet image after contrast enhancement processing, and respectively calculating the deviation between the grayscale value of each pixel to be identified in the steel billet image after contrast enhancement processing and the average grayscale value;

若所述偏差大于偏差阈值,则确定所述待识别像素点为前景像素点,否则确定所述待识别像素点为背景像素点;If the deviation is greater than the deviation threshold, the pixel to be identified is determined to be a foreground pixel; otherwise, the pixel to be identified is determined to be a background pixel;

根据所述前景像素点确定所述前景区域,并在所述前景区域内扫描所述背景像素点;Determine the foreground area according to the foreground pixels, and scan the background pixels in the foreground area;

基于所述扫描结果确定所述前景区域中的孔洞,并填充所述孔洞。Holes in the foreground area are determined based on the scanning result, and the holes are filled.

可选地,所述图像处理模块用于:Optionally, the image processing module is used to:

遍历所述前景区域中的像素点,并基于每个像素点的邻接关系,确定所述至少一个连通区域;Traversing the pixels in the foreground area, and determining the at least one connected area based on the adjacency relationship of each pixel;

根据每个所述连通区域的面积以及矩形度,确定一个连通区域为所述目标连通区域;According to the area and rectangularity of each of the connected regions, determining a connected region as the target connected region;

利用三点插值方法拟合所述目标连通区域的边缘曲线,得到所述目标连通区域对应的轮廓点集。The edge curve of the target connected area is fitted using a three-point interpolation method to obtain a contour point set corresponding to the target connected area.

可选地,所述角度检测模块用于:Optionally, the angle detection module is used to:

对所述轮廓点集进行预处理,并利用最小二乘法拟合方法对预处理后的轮廓点集进行初始拟合,得到拟合矩形;Preprocessing the contour point set, and performing initial fitting on the preprocessed contour point set using a least squares fitting method to obtain a fitting rectangle;

分别计算预处理后的轮廓点集中每个轮廓点到所述拟合矩形的残差,并对所述残差进行加权;Residuals from each contour point in the preprocessed contour point set to the fitting rectangle are calculated respectively, and the residuals are weighted;

根据加权后的残差进行再次拟合,得到新的拟合矩形,并返回至分别计算预处理后的轮廓点集中每个轮廓点到所述拟合矩形的残差的步骤,直至达到预设的终止迭代条件,并确定当前的拟合矩形为所述外接最小矩形。The weighted residual is refitted to obtain a new fitting rectangle, and the process returns to the step of respectively calculating the residual from each contour point in the preprocessed contour point set to the fitting rectangle, until the preset termination iteration condition is reached, and the current fitting rectangle is determined to be the circumscribed minimum rectangle.

可选地,所述残差对应的权重与所述残差负相关。Optionally, the weight corresponding to the residual is negatively correlated with the residual.

可选地,所述装置还包括摄像机参数获取模块,用于:Optionally, the device further includes a camera parameter acquisition module, which is used to:

利用所述目标摄像机拍摄多张不同角度的标定板图片,并基于所述标定板图片对所述目标摄像机进行标定,得到所述摄像机参数,其中,所述摄像机参数包括内参、外参以及畸变参数。The target camera is used to take a plurality of calibration plate images at different angles, and the target camera is calibrated based on the calibration plate images to obtain the camera parameters, wherein the camera parameters include intrinsic parameters, extrinsic parameters and distortion parameters.

根据本申请又一个方面,提供了一种介质,其上存储有程序或指令,所述程序或指令被处理器执行时实现上述中厚板转钢角度增强检测方法。According to another aspect of the present application, a medium is provided, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the above-mentioned method for enhanced detection of steel turning angles of medium and thick plates is implemented.

根据本申请再一个方面,提供了一种设备,包括存储介质和处理器,所述存储介质存储有计算机程序,所述处理器执行所述计算机程序时实现上述中厚板转钢角度增强检测方法。According to another aspect of the present application, a device is provided, including a storage medium and a processor, wherein the storage medium stores a computer program, and the processor implements the above-mentioned method for enhanced detection of steel turning angles of medium and thick plates when executing the computer program.

借由上述技术方案,本申请基于机器视觉技术,采集钢坯实时图像,基于相机标定及畸变校正、图像去雾处理、灰度线性变换、动态阈值分割、填充、开操作、特征筛选、亚像素边缘检测与外接最小矩形拟合,开发了基于机器视觉技术的转钢过程钢坯角度检测增强算法,可实现对于机前、机后钢坯角度的实时提取,能够适应生产过程中的复杂环境变化,为自动转钢控制系统提供实时、稳定的角度检测反馈值。With the help of the above-mentioned technical scheme, this application is based on machine vision technology to collect real-time images of steel billets, and based on camera calibration and distortion correction, image defogging, grayscale linear transformation, dynamic threshold segmentation, filling, opening operation, feature screening, sub-pixel edge detection and external minimum rectangle fitting, develops a steel billet angle detection enhancement algorithm for the steel turning process based on machine vision technology. It can realize real-time extraction of the angles of the steel billets before and after the machine, can adapt to complex environmental changes in the production process, and provide real-time and stable angle detection feedback values for the automatic steel turning control system.

上述说明仅是本申请技术方案的概述,为了能够更清楚了解本申请的技术手段,而可依照说明书的内容予以实施,并且为了让本申请的上述和其它目的、特征和优点能够更明显易懂,以下特举本申请的具体实施方式。The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

此处所说明的附图用来提供对本申请的进一步理解,构成本申请的一部分,本申请的示意性实施例及其说明用于解释本申请,并不构成对本申请的不当限定。在附图中:The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

图1示出了本申请实施例提供的一种中厚板转钢角度增强检测方法的流程示意图;FIG1 is a schematic diagram showing a flow chart of a method for enhanced detection of steel turning angle of medium and thick plates provided in an embodiment of the present application;

图2示出了本申请实施例提供的另一种中厚板转钢角度增强检测方法的流程示意图;FIG2 is a schematic diagram showing a flow chart of another method for enhancing detection of steel turning angle of medium and thick plates provided in an embodiment of the present application;

图3示出了本申请实施例提供的又一种中厚板转钢角度增强检测方法的流程示意图;FIG3 shows a schematic flow chart of another method for enhanced detection of steel turning angle of medium and thick plates provided in an embodiment of the present application;

图4示出了本申请实施例提供的再一种中厚板转钢角度增强检测方法的流程示意图;FIG4 is a schematic diagram showing a flow chart of another method for enhanced detection of steel turning angle of medium and thick plates provided in an embodiment of the present application;

图5示出了本申请实施例提供的第五种中厚板转钢角度增强检测方法的流程示意图;FIG5 shows a schematic flow chart of a fifth method for enhanced detection of steel turning angles of medium and thick plates provided in an embodiment of the present application;

图6示出了本申请实施例提供的第六种中厚板转钢角度增强检测方法的流程示意图;FIG6 shows a schematic flow chart of a sixth method for enhanced detection of steel turning angles of medium and thick plates provided in an embodiment of the present application;

图7示出了本申请实施例提供的第七种中厚板转钢角度增强检测方法的流程示意图;FIG. 7 shows a schematic flow chart of a seventh method for enhanced detection of steel turning angles of medium and thick plates provided in an embodiment of the present application;

图8示出了本申请实施例提供的一种动态阈值分割示意图;FIG8 shows a schematic diagram of a dynamic threshold segmentation provided in an embodiment of the present application;

图9示出了本申请实施例提供的一种填充示意图;FIG9 shows a filling schematic diagram provided in an embodiment of the present application;

图10示出了本申请实施例提供的一种开操作示意图;FIG10 shows a schematic diagram of an opening operation provided by an embodiment of the present application;

图11示出了本申请实施例提供的一种亚像素级边缘检测示意图;FIG11 shows a schematic diagram of sub-pixel edge detection provided by an embodiment of the present application;

图12示出了本申请实施例提供的一种外接最小矩阵拟合示意图;FIG12 shows a schematic diagram of an external minimum matrix fitting provided in an embodiment of the present application;

图13示出了本申请实施例提供的一种钢坯实时角度示意图;FIG13 shows a schematic diagram of a real-time angle of a steel billet provided in an embodiment of the present application;

图14示出了本申请实施例提供的一种中厚板转钢角度增强检测装置的结构框图。FIG. 14 shows a structural block diagram of a device for enhanced detection of steel turning angles of medium and thick plates provided in an embodiment of the present application.

具体实施方式DETAILED DESCRIPTION

下文中将参考附图并结合实施例来详细说明本申请。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。The present application will be described in detail below with reference to the accompanying drawings and in combination with embodiments. It should be noted that the embodiments and features in the embodiments of the present application can be combined with each other without conflict.

在本实施例中提供了一种中厚板转钢角度增强检测方法,具体是中厚板转钢角度增强检测方法,如图1所示,该方法包括:In this embodiment, a method for enhancing the detection of the steel turning angle of a medium and thick plate is provided, specifically a method for enhancing the detection of the steel turning angle of a medium and thick plate, as shown in FIG1 , the method comprises:

步骤101,在中厚板轧制的转钢环节中通过目标摄像机拍摄钢坯图像,并根据目标摄像机的摄像机参数对钢坯图像进行畸变校正。Step 101 , in the steel transfer process of medium and thick plate rolling, a target camera is used to capture a steel billet image, and distortion correction is performed on the steel billet image according to camera parameters of the target camera.

具体地,轧制指的是将金属通过一对滚轮,利用滚动压制成型的过程,而转钢环节是轧制过程中的一个重要环节,指的是金属板在不同的轧制方向和位置之间进行旋转。而本申请实施例提供的中厚板转钢角度增强检测方法,用于在中厚板轧制的转钢环节中分析目标摄像机实时采集到的钢坯图像,得到钢坯角度,以便在后续的轧制过程中保持正确的轧制方向和位置,实现中厚板转钢操作的自动控制。Specifically, rolling refers to the process of passing metal through a pair of rollers and forming it by rolling, and the steel transfer link is an important link in the rolling process, which refers to the rotation of the metal plate between different rolling directions and positions. The medium and thick plate steel transfer angle enhancement detection method provided in the embodiment of the present application is used to analyze the steel billet image collected by the target camera in real time during the steel transfer link of medium and thick plate rolling to obtain the steel billet angle, so as to maintain the correct rolling direction and position in the subsequent rolling process, and realize the automatic control of the medium and thick plate steel transfer operation.

在该步骤中,由于目标摄像机所在位置可能与钢坯不平行,导致其拍摄的钢坯图像发生畸变,从而影响对钢坯角度的准确测量,因此,首先要根据摄像机参数如畸变参数等,重新计算钢坯图像中的像素坐标,对图像进行畸变校正,以消除畸变带来的影响。In this step, since the position of the target camera may not be parallel to the billet, the billet image it captures is distorted, which affects the accurate measurement of the billet angle. Therefore, it is necessary to first recalculate the pixel coordinates in the billet image based on camera parameters such as distortion parameters, and perform distortion correction on the image to eliminate the impact of distortion.

步骤102,对畸变校正后的钢坯图像依次进行去雾处理和对比度增强处理。Step 102, performing defogging and contrast enhancement processing on the distortion-corrected billet image in sequence.

在该步骤中,由于大气散射会导致钢坯图像模糊,降低图像质量,因此,可对畸变校正后的钢坯图像进行去雾处理,使得图像更加清晰,细节更加明确,进而得到更加精准的角度检测结果。例如,可通过分析图像中的雾霾程度来恢复图像的细节,具体地,基于大气光模型,利用雾霾对钢坯图像的亮度和对比度造成的影响,以及通过透射率估计来去除雾霾。在去雾处理后,还可进行对比度增强处理,通过提高钢坯图像的对比度,让亮度高的位置更亮、亮度低的位置更暗,从而便于分割出钢坯所在位置。In this step, since atmospheric scattering will cause the billet image to blur and reduce the image quality, the billet image after distortion correction can be defogged to make the image clearer and the details more specific, thereby obtaining a more accurate angle detection result. For example, the details of the image can be restored by analyzing the degree of haze in the image. Specifically, based on the atmospheric light model, the effect of haze on the brightness and contrast of the billet image is utilized, and the haze is removed by transmittance estimation. After defogging, contrast enhancement processing can also be performed. By increasing the contrast of the billet image, the position with high brightness is brighter and the position with low brightness is darker, so as to facilitate the segmentation of the position of the billet.

步骤103,基于对比度增强处理后的钢坯图像中每个像素点的灰度,识别前景区域以及背景区域,并针对前景区域中的孔洞进行填充。Step 103, based on the grayscale of each pixel in the steel billet image after contrast enhancement processing, identify the foreground area and the background area, and fill the holes in the foreground area.

在该步骤中,根据对比度增强处理后的钢坯图像中每个像素点的灰度,也即根据对比度增强处理后的钢坯图像中不同位置的明暗,在图像中识别出亮度较高的前景区域和亮度较低的背景区域,钢坯对应的位置即在前景区域中。此外,由于前景区域也可能存在部分亮度较暗的像素点,因此再进一步对前景区域中的孔洞进行填充,得到更加完整的前景区域。In this step, according to the grayscale of each pixel in the steel billet image after contrast enhancement, that is, according to the brightness of different positions in the steel billet image after contrast enhancement, the foreground area with higher brightness and the background area with lower brightness are identified in the image, and the position corresponding to the steel billet is in the foreground area. In addition, since there may be some pixels with lower brightness in the foreground area, the holes in the foreground area are further filled to obtain a more complete foreground area.

步骤104,对孔洞填充后的钢坯图像进行图像形态学的开操作。Step 104, performing an image morphological opening operation on the steel billet image after the holes are filled.

在该步骤中,对比度增强处理后的钢坯图像,其中,开操作是通过先腐蚀运算后膨胀运算的操作。腐蚀是将矩形结构内核滑过图像,通过将二值图像对应的像素点与结构元素的像素进行对比,得到的交集即为腐蚀后的图像像素。通过腐蚀运算将独立的钢坯元素相互连通并从背景元素中分离出来,同时消除背景区域中的小块噪声物体。膨胀是将矩形结构内核滑过图像,对比二值图像的像素点与其对应结构元素的像素点,对比完成后得到的并集即为膨胀后的图像像素。通过膨胀填补腐蚀操作中由于过度腐蚀留下的图像像素间隙。通过开操作能去除一些孤立的、细小的点与粗糙的边缘线,消除毛刺和狭窄的连接,又可以保留了大部分区域原来的面积,开操作的计算公式如下:。式中,表示利用结构元素B对A进行开操作,表示A被B腐蚀,表示被B膨胀。In this step, the steel billet image after contrast enhancement processing, wherein the opening operation is an operation of first corrosion operation and then expansion operation. Corrosion is to slide the rectangular structure kernel over the image, and compare the pixels corresponding to the binary image with the pixels of the structural element, and the intersection obtained is the image pixel after corrosion. Through the corrosion operation, the independent steel billet elements are interconnected and separated from the background elements, and the small noise objects in the background area are eliminated. Dilation is to slide the rectangular structure kernel over the image, compare the pixels of the binary image with the pixels of its corresponding structural element, and the union obtained after the comparison is completed is the image pixel after expansion. Dilation is used to fill the image pixel gaps left by excessive corrosion in the corrosion operation. The opening operation can remove some isolated, small points and rough edge lines, eliminate burrs and narrow connections, and retain the original area of most areas. The calculation formula of the opening operation is as follows: In the formula, Indicates that A is opened using the structural element B. It means A is corroded by B. express Inflated by B.

步骤105,基于开操作后的钢坯图像中前景区域的连通关系确定目标连通区域,并拟合目标连通区域的边缘轮廓。Step 105, determining a target connected area based on the connectivity relationship of the foreground area in the steel billet image after the opening operation, and fitting the edge contour of the target connected area.

在该步骤中,考虑到可能存在两个前景区域在对角线的方向连接,这两个离散的前景区域应串接起来的情况,因此在开操作后的钢坯图像中,基于前景区域中每个像素点的邻域扫描连通区域,得到确定钢坯对应的目标连通区域,拟合目标连通区域的边缘轮廓,即可得到钢坯的轮廓。In this step, considering that there may be two foreground areas connected in the diagonal direction, these two discrete foreground areas should be connected in series. Therefore, in the billet image after the opening operation, the connected area is scanned based on the neighborhood of each pixel point in the foreground area to determine the target connected area corresponding to the billet, and the edge contour of the target connected area is fitted to obtain the contour of the billet.

步骤106,根据边缘轮廓拟合目标连通区域对应的外接最小矩形,并根据矩形相对于预设参考方向的偏移角度确定钢坯角度。Step 106 , fitting a circumscribed minimum rectangle corresponding to the target connected area according to the edge contour, and determining the angle of the steel billet according to an offset angle of the rectangle relative to a preset reference direction.

在该步骤中,由于前述步骤得到的目标连通区域可能为不规则形状,而钢坯通常为矩形,因此通过拟合外接最小矩形,得到能够包含目标连通区域的最小的矩形形状。此时,矩形相对于预设参考方向的偏移角度即为钢坯角度。In this step, since the target connected area obtained in the previous step may be an irregular shape, and the steel billet is usually rectangular, the smallest rectangular shape that can contain the target connected area is obtained by fitting the circumscribed minimum rectangle. At this time, the offset angle of the rectangle relative to the preset reference direction is the steel billet angle.

该实施例基于机器视觉技术,采集钢坯实时图像,基于相机标定及畸变校正、图像去雾处理、灰度线性变换、动态阈值分割、填充、开操作、特征筛选、亚像素边缘检测与外接最小矩形拟合,开发了基于机器视觉技术的转钢过程钢坯角度检测增强算法,可实现对于机前、机后钢坯角度的实时提取,能够适应生产过程中的复杂环境变化,为自动转钢控制系统提供实时、稳定的角度检测反馈值。This embodiment is based on machine vision technology to collect real-time images of steel billets, and has developed a steel billet angle detection enhancement algorithm for the steel turning process based on machine vision technology based on camera calibration and distortion correction, image defogging, grayscale linear transformation, dynamic threshold segmentation, filling, opening operation, feature screening, sub-pixel edge detection and external minimum rectangle fitting. The algorithm can realize real-time extraction of the angles of the steel billets before and after the machine, can adapt to complex environmental changes in the production process, and provide real-time and stable angle detection feedback values for the automatic steel turning control system.

进一步地,作为上述实施例具体实施方式的细化和扩展,为了完整说明本实施例的具体实施过程,提供了另一种中厚板转钢角度增强检测方法,该方法进一步限定了“对畸变校正后的钢坯图像依次进行去雾处理和对比度增强处理”的内容,如图2所示,包括如下步骤:Further, as a refinement and extension of the specific implementation of the above embodiment, in order to fully illustrate the specific implementation process of this embodiment, another method for enhancing the detection of the steel turning angle of medium and thick plates is provided. The method further defines the content of "defogging and contrast enhancement processing are sequentially performed on the steel billet image after distortion correction", as shown in Figure 2, including the following steps:

步骤201,确定畸变校正后的钢坯图像对应的大气光成分,根据大气光成分,确定畸变校正后的钢坯图像中每个像素点的透视率,根据大气光成分以及透视率,对畸变校正后的钢坯图像进行去雾处理;Step 201, determining the atmospheric light component corresponding to the distortion-corrected billet image, determining the perspective of each pixel in the distortion-corrected billet image according to the atmospheric light component, and performing defogging on the distortion-corrected billet image according to the atmospheric light component and the perspective;

步骤202,通过线性变换方法拉伸去雾处理后的钢坯图像中每个像素点的灰度值,得到对比度增强处理后的钢坯图像。Step 202, stretching the gray value of each pixel in the steel billet image after defogging by a linear transformation method to obtain the steel billet image after contrast enhancement.

在该实施例中,首先利用大气散射模型进行去雾处理,在机器视觉领域,大气散射模型能够用于图像去雾,公式为。其中,表示有雾图像,表示无雾图像,为透射率,A表示全球大气光值。In this embodiment, the atmospheric scattering model is first used for defogging. In the field of machine vision, the atmospheric scattering model can be used for image defogging. The formula is: .in, represents a foggy image, represents a haze-free image, is the transmittance, and A represents the global atmospheric light value.

在具体应用过程中,首先针对畸变校正后的钢坯图像中每个像素点,在RGB三个通道中选择最小的像素值作为灰度值,然后对实数图像进行矩形形态学腐蚀操作,生成暗通道图像。其中,图像形态学操作是指基于形状的一系列图像处理操作的合集,具有四个基本操作:腐蚀、膨胀、开操作、闭操作,其中,腐蚀就是清除掉图像的一些毛刺和细节,腐蚀一般可以用来消除噪点,分割出独立的图像元素等,其本质上也是一种空间滤波。In the specific application process, for each pixel in the distortion-corrected billet image, the smallest pixel value in the three RGB channels is first selected as the grayscale value, and then the real image is subjected to rectangular morphological corrosion to generate a dark channel image. Among them, image morphological operation refers to a collection of a series of image processing operations based on shape, with four basic operations: corrosion, expansion, opening operation, and closing operation. Among them, corrosion is to remove some burrs and details of the image. Corrosion can generally be used to eliminate noise, segment independent image elements, etc., which is essentially a spatial filter.

可以理解的是,通常在无雾非纯白区域,RGB三个通道中通常存在一个通道的像素值很低,接近于0,而在有雾图像中,其暗通道区域都远大于0,呈灰色。因此,在生成的暗通道图像中,可根据每个像素点的亮度大小确定有雾区域。基于此,在生成暗通道图像后,在暗通道图中按照亮度的大小提取最亮的0.1%的像素,在原始有雾图像中找对应位置上具有最高亮度的点的值,作为大气光值,也即大气光成分A。It is understandable that in fog-free non-pure white areas, one of the three RGB channels usually has a very low pixel value, close to 0, while in foggy images, the dark channel area is much greater than 0 and appears gray. Therefore, in the generated dark channel image, the foggy area can be determined according to the brightness of each pixel. Based on this, after generating the dark channel image, the brightest 0.1% of pixels are extracted according to the brightness in the dark channel image, and the value of the point with the highest brightness at the corresponding position in the original foggy image is found as the atmospheric light value, that is, the atmospheric light component A.

根据大气光成分,在原始图像中估计每个像素的透视率。透射率的计算公式为:According to the atmospheric light component, the perspective of each pixel in the original image is estimated. The formula for calculating the transmittance is: .

式中ω取值为0.95,表示以像素x为中心的窗口。In the formula, ω is taken as 0.95. represents a window centered at pixel x.

当透射率t偏小时,会造成J偏大,因此需要对t做下界t0的限制,其取值为0.1,当时,令,最终无雾图像可表示为下式:When the transmittance t is too small, J will be too large. Therefore, it is necessary to set a lower limit t 0 for t, and its value is 0.1. season , the final haze-free image It can be expressed as the following formula:

基于上述公式,即可根据透视率和大气光成分,对钢坯图像进行去雾处理,恢复去雾后的图像。Based on the above formula, the steel billet image can be dehazed according to the perspective and atmospheric light components to restore the dehazed image.

在去雾处理后,可通过线性变换方法改变每个像素点的灰度值,以提高图像的明暗对比度。其中,线性变换公式如下式所示:Mult +Add。式中,表示钢坯图像进行灰度拉伸操作前的灰度值,表示钢坯图像进行灰度拉伸后的灰度值,Mult表示乘数因子,Add表示加数因子。可以理解的是,灰度值指的是黑白图像中的颜色深度,颜色灰度值越大表示像素点越亮,因此,在不改变像素点灰度值之间大小关系的前提下,拉大灰度值之间的差距,能够提高图像的对比度。该实施例通过选择合适的参数,能够拉开钢坯图像的对比度,让背景部分更黑,钢坯部分更亮。After dehazing, the grayscale value of each pixel can be changed by linear transformation to improve the image contrast. The linear transformation formula is as follows: Mult +Add. In the formula, Represents the grayscale value of the billet image before grayscale stretching operation. represents the grayscale value of the steel billet image after grayscale stretching, Mult represents the multiplication factor, and Add represents the addend factor. It can be understood that the grayscale value refers to the color depth in a black and white image. The larger the grayscale value, the brighter the pixel. Therefore, without changing the size relationship between the grayscale values of the pixels, widening the gap between the grayscale values can improve the contrast of the image. By selecting appropriate parameters, this embodiment can increase the contrast of the steel billet image, making the background darker and the steel billet brighter.

该实施例对钢坯图像进行去雾处理以及对比度增强处理,提高了图像的清晰度,并使得钢坯部分与背景部分的亮度差距更大,更便于在图像中分割出钢坯部分,解决由于图像不清晰导致钢坯角度的检测准确度降低的问题。This embodiment performs dehazing and contrast enhancement processing on the billet image, thereby improving the clarity of the image and making the brightness difference between the billet part and the background part larger, making it easier to segment the billet part in the image, and solving the problem of reduced detection accuracy of the billet angle due to unclear image.

进一步地,作为上述实施例具体实施方式的细化和扩展,为了完整说明本实施例的具体实施过程,提供了另一种中厚板转钢角度增强检测方法,该方法进一步限定了“基于对比度增强处理后的钢坯图像中,每个像素点的灰度,识别前景区域以及背景区域,并针对前景区域中的孔洞进行填充”的内容,如图3所示,包括如下步骤:Further, as a refinement and extension of the specific implementation of the above embodiment, in order to fully illustrate the specific implementation process of this embodiment, another method for enhancing the detection of the steel turning angle of medium and thick plates is provided. The method further defines the content of "based on the grayscale of each pixel point in the steel billet image after contrast enhancement processing, identifying the foreground area and the background area, and filling the holes in the foreground area", as shown in Figure 3, including the following steps:

步骤301,计算对比度增强处理后的钢坯图像中每个局部窗口的平均灰度值,分别计算对比度增强处理后的钢坯图像中每个待识别像素点的灰度值与平均灰度值之间的偏差;Step 301, calculating the average gray value of each local window in the steel billet image after contrast enhancement processing, and respectively calculating the deviation between the gray value of each pixel to be identified in the steel billet image after contrast enhancement processing and the average gray value;

步骤302,若偏差大于偏差阈值,则确定待识别像素点为前景像素点,否则确定待识别像素点为背景像素点;Step 302: if the deviation is greater than the deviation threshold, the pixel to be identified is determined to be a foreground pixel; otherwise, the pixel to be identified is determined to be a background pixel;

步骤303,根据前景像素点确定前景区域,并在前景区域内扫描背景像素点;Step 303, determining a foreground area according to the foreground pixels, and scanning background pixels in the foreground area;

步骤304,基于扫描结果确定前景区域中的孔洞,并填充孔洞。Step 304: determine holes in the foreground area based on the scanning result and fill the holes.

在该实施例中,针对经过对比度增强处理后的钢坯图像进行前景和背景的识别。其中,由于钢坯受水汽遮挡,表面明暗不一,无法对整幅图像找到一个合适的阈值来分割前景和背景。但是在局部区域中,前景和背景存在比较明显的对比度,基于此,该实施例通过使用动态阈值算子,根据局部区域的背景灰度值来分割感兴趣区域也即前景区域。In this embodiment, the foreground and background are identified for the steel billet image after contrast enhancement. Since the steel billet is blocked by water vapor and the surface is bright and dark, it is impossible to find a suitable threshold for the entire image to segment the foreground and background. However, in the local area, there is a relatively obvious contrast between the foreground and the background. Based on this, this embodiment uses a dynamic threshold operator to segment the region of interest, i.e., the foreground area, according to the background grayscale value of the local area.

在具体应用过程中,首先使用均值滤波对图像进行平滑处理,计算得到当前窗口的平均灰度值。使用这个值作为局部区域的背景估计值。用对比度增强处理后的钢坯图像和平滑处理后的图像逐个像素做比较,通过二者之间的偏差,来动态确定阈值。根据动态阈值分割出比平滑后的图像灰度高若干个灰度值的区域。具体地,若偏差大于偏差阈值,则确定待识别像素点为前景像素点,否则确定待识别像素点为背景像素点,根据前景像素点即可确定前景区域。例如,原始图像中像素点的灰度值为g0,在其对应的局部范围内,均值滤波平滑后的图像灰度值为gt,offset为偏差阈值,其中偏差阈值表示原始图像与阈值图像灰度值偏差的可接受范围,则可选择满足g0 ≥ gt + Offset条件的区域为感兴趣区域,也即前景区域。In the specific application process, the image is first smoothed using the mean filter to calculate the average gray value of the current window. This value is used as the background estimation value of the local area. The billet image after contrast enhancement and the image after smoothing are compared pixel by pixel, and the threshold is dynamically determined by the deviation between the two. According to the dynamic threshold, the area with a gray value higher than the gray value of the smoothed image is segmented. Specifically, if the deviation is greater than the deviation threshold, the pixel to be identified is determined to be a foreground pixel, otherwise the pixel to be identified is determined to be a background pixel, and the foreground area can be determined based on the foreground pixel. For example, the gray value of the pixel in the original image is g0, and in its corresponding local range, the gray value of the image after mean filtering and smoothing is gt, and offset is the deviation threshold, where the deviation threshold represents the acceptable range of the gray value deviation between the original image and the threshold image. The area that satisfies the condition of g0 ≥ gt + Offset can be selected as the area of interest, that is, the foreground area.

在得到前景区域后,针对前景区域中的背景像素进行填充,避免前景区域内出现孔洞。具体地,从用户输入的源区域开始,按照特定的顺序,如从上到下、从左到右的顺序扫描前景区域内的像素。当扫描到一个背景像素时,通过从该点开始进行连通域搜索,找到所有与之相连的背景像素。将搜索到的连通域内的所有像素标记为填充区域。继续扫描下一个未访问过的像素,重复上述步骤,直到完成整个前景区域的扫描,对动态阈值分割后的前景区域进行填充。After obtaining the foreground area, fill the background pixels in the foreground area to avoid holes in the foreground area. Specifically, starting from the source area input by the user, scan the pixels in the foreground area in a specific order, such as from top to bottom and from left to right. When a background pixel is scanned, all background pixels connected to it are found by searching the connected domain from that point. All pixels in the searched connected domain are marked as the filling area. Continue to scan the next unvisited pixel and repeat the above steps until the entire foreground area is scanned and the foreground area after dynamic threshold segmentation is filled.

该实施例依次进行取前景(边缘)、阈值分割边缘、去背景连通区域、填孔的操作,在钢坯图像中分割出钢坯可能属于的区域,进而在后续步骤中对该区域进行进一步的处理,并进行钢坯角度的检测。This embodiment sequentially performs the operations of taking the foreground (edge), threshold segmenting the edge, removing the background connected area, and filling the holes, so as to segment the area to which the billet may belong in the billet image, and then further processes the area in subsequent steps and detects the angle of the billet.

进一步地,作为上述实施例具体实施方式的细化和扩展,为了完整说明本实施例的具体实施过程,提供了另一种中厚板转钢角度增强检测方法,该方法进一步限定了“基于开操作后的钢坯图像中前景区域的连通关系确定目标连通区域,并拟合目标连通区域的边缘轮廓”的内容,如图4所示,包括如下步骤:Further, as a refinement and extension of the specific implementation of the above embodiment, in order to fully illustrate the specific implementation process of this embodiment, another method for enhancing the detection of the steel turning angle of medium and thick plates is provided. The method further defines the content of "determining the target connected area based on the connectivity relationship of the foreground area in the steel billet image after the opening operation, and fitting the edge contour of the target connected area", as shown in Figure 4, including the following steps:

步骤401,遍历前景区域中的像素点,并基于每个像素点的邻接关系,确定至少一个连通区域;Step 401, traverse the pixels in the foreground area, and determine at least one connected area based on the adjacency relationship of each pixel;

步骤402,根据每个连通区域的面积以及矩形度,确定一个连通区域为目标连通区域;Step 402, determining a connected region as a target connected region according to the area and rectangularity of each connected region;

步骤403,利用三点插值方法拟合目标连通区域的边缘曲线,得到目标连通区域对应的轮廓点集。Step 403: Fit the edge curve of the target connected area using a three-point interpolation method to obtain a contour point set corresponding to the target connected area.

在该实施例中,首先在前景区域中进一步筛选出钢坯所在的目标连通区域,具体地,首先根据区域的面积和矩形度来筛选区域,使用8邻域邻接关系遍历分割出来的区域,将具有相同连通关系的像素分配到同一个连通区域中。对于每个连通区域,通过统计区域中的像素数量来计算像素面积。对保存的连通区域按像素面积进行排序,根据像素面积在连通区域中选择一个目标连通区域,作为钢坯特征图像。此外,也可同时考虑像素面积和区域的矩形度,得到最终的目标连通区域。In this embodiment, the target connected area where the steel billet is located is first further screened out in the foreground area. Specifically, the area is first screened according to the area and rectangularity of the area, and the segmented area is traversed using the 8-neighborhood adjacency relationship, and pixels with the same connectivity relationship are assigned to the same connected area. For each connected area, the pixel area is calculated by counting the number of pixels in the area. The saved connected areas are sorted by pixel area, and a target connected area is selected from the connected areas according to the pixel area as the steel billet feature image. In addition, the pixel area and the rectangularity of the area can also be considered at the same time to obtain the final target connected area.

然后对目标连通区域进行边缘轮廓的曲线拟合,具体地,对于像素级边缘点,使用三点插值拟合边缘曲线,在X方向上取三个插值点,对应的函数值为。同理,在Y方向上取三个插值点,对应的函数值为。将X、Y方向选择的插值点代入插值公式中,分别求得X方向的二次插值函数和Y 方向的二次插值函数,表达式如下式所示:Then, the target connected area is subjected to curve fitting of the edge contour. Specifically, for the pixel-level edge points , use three-point interpolation to fit the edge curve, take three interpolation points in the X direction , , , the corresponding function value is , , Similarly, take three interpolation points in the Y direction , , , the corresponding function value is , , Substitute the interpolation points selected in the X and Y directions into the interpolation formula to obtain the quadratic interpolation function in the X direction. and quadratic interpolation function in the Y direction , the expression is as follows:

以上二次曲线的导数为0处即为X、Y方向的亚像素坐标,令=0,得到坐标,令=0,得到坐标。具体表达式如下:The derivative of the above quadratic curve is 0, which is the sub-pixel coordinate in the X and Y directions. =0, get the coordinates ,make =0, get the coordinates The specific expression is as follows:

求得所有边缘位置亚像素点及其坐标后连接各点即可得到图像的亚像素边缘轮廓。After obtaining all the sub-pixel points at the edge position and their coordinates, the sub-pixel edge contour of the image can be obtained by connecting the points.

该实施例基于每个像素点的连通关系,在前景区域中精准找到钢坯所在的位置,并且利用亚像素级边缘检测,在像素级的基础上,对图像进行更加细致的分析,获得更精确的边缘位置信息,使得后续的图像处理任务可以更加精确和可靠。This embodiment accurately finds the position of the steel billet in the foreground area based on the connectivity relationship of each pixel point, and uses sub-pixel edge detection to perform a more detailed analysis of the image on the basis of the pixel level to obtain more accurate edge position information, so that subsequent image processing tasks can be more accurate and reliable.

进一步地,作为上述实施例具体实施方式的细化和扩展,为了完整说明本实施例的具体实施过程,提供了另一种中厚板转钢角度增强检测方法,该方法进一步限定了“根据边缘轮廓拟合目标连通区域对应的外接最小矩形”的内容,如图5所示,包括如下步骤:Further, as a refinement and extension of the specific implementation of the above embodiment, in order to fully illustrate the specific implementation process of this embodiment, another method for enhanced detection of steel turning angle of medium and thick plates is provided. The method further defines the content of "fitting the circumscribed minimum rectangle corresponding to the target connected area according to the edge contour", as shown in Figure 5, including the following steps:

步骤501,对轮廓点集进行预处理,并利用最小二乘法拟合方法对预处理后的轮廓点集进行初始拟合,得到拟合矩形;Step 501, preprocessing the contour point set, and performing initial fitting on the preprocessed contour point set using a least squares fitting method to obtain a fitting rectangle;

步骤502,分别计算预处理后的轮廓点集中每个轮廓点到拟合矩形的残差,并对残差进行加权;Step 502, respectively calculating the residual from each contour point in the preprocessed contour point set to the fitting rectangle, and weighting the residual;

步骤503,根据加权后的残差进行再次拟合,得到新的拟合矩形,并返回至分别计算预处理后的轮廓点集中每个轮廓点到拟合矩形的残差的步骤,直至达到预设的终止迭代条件,并确定当前的拟合矩形为外接最小矩形。Step 503, refitting is performed based on the weighted residual to obtain a new fitting rectangle, and the process returns to the step of respectively calculating the residual from each contour point in the preprocessed contour point set to the fitting rectangle, until the preset termination iteration condition is reached, and the current fitting rectangle is determined to be the circumscribed minimum rectangle.

在该实施例中,拟合目标连通区域对应的外接最小矩形,进而根据该矩形的倾斜角度得到钢坯角度。具体地,可按照如下步骤拟合得到外接最小矩形:将输入的轮廓点集进行预处理。包括对数据进行排序、去除异常值等数据处理技术,目的是减少异常值对拟合结果的影响;使用传统的最小二乘法拟合方法对预处理后的轮廓点集进行初始拟合;计算每个轮廓点到初始拟合矩形的残差,残差表示了每个点与拟合矩形之间的差异;应用Tukey加权函数对残差进行加权;根据加权后的残差,重新拟合矩形,得到一个更鲁棒的拟合结果。这个过程需要进行多次迭代,以进一步优化拟合结果。在每次迭代中,根据加权函数重新计算残差,并重新拟合矩形。直至得到最终的外接最小矩形,此时矩形长轴与x轴的夹角即为钢坯角度。In this embodiment, the circumscribed minimum rectangle corresponding to the target connected area is fitted, and then the billet angle is obtained according to the inclination angle of the rectangle. Specifically, the circumscribed minimum rectangle can be fitted according to the following steps: the input contour point set is preprocessed. Including data processing techniques such as sorting data and removing outliers, the purpose is to reduce the influence of outliers on the fitting results; the preprocessed contour point set is initially fitted using the traditional least squares fitting method; the residual from each contour point to the initial fitting rectangle is calculated, and the residual represents the difference between each point and the fitting rectangle; the Tukey weighting function is applied to weight the residual; according to the weighted residual, the rectangle is refitted to obtain a more robust fitting result. This process requires multiple iterations to further optimize the fitting results. In each iteration, the residual is recalculated according to the weighting function, and the rectangle is refitted. Until the final circumscribed minimum rectangle is obtained, the angle between the major axis of the rectangle and the x-axis is the billet angle.

该实施例拟合目标连通区域得到的外接最小矩形,具有一定的鲁棒性和稳定性,对于目标连通区域形状的变化、旋转或者部分遮挡有一定的容忍度。相比于目标连通区域的轮廓,最小外接矩形表示更加稳定,不容易受到噪声、不完整边缘或者形状变化的干扰。此外,最小外接矩形的形状更加规则,因此能够清晰地标识出钢坯的位置以及形状,更有利于得到钢坯角度。The minimum circumscribed rectangle obtained by fitting the target connected area in this embodiment has certain robustness and stability, and has a certain tolerance for changes in the shape, rotation or partial occlusion of the target connected area. Compared with the outline of the target connected area, the minimum circumscribed rectangle representation is more stable and is not easily disturbed by noise, incomplete edges or shape changes. In addition, the shape of the minimum circumscribed rectangle is more regular, so the position and shape of the billet can be clearly identified, which is more conducive to obtaining the billet angle.

进一步地,作为上述实施例具体实施方式的细化和扩展,为了完整说明本实施例的具体实施过程,提供了另一种中厚板转钢角度增强检测方法,该方法进一步限定了在“根据目标摄像机的摄像机参数对钢坯图像进行畸变校正”的步骤之前,还包括“获取摄像机参数”的内容,如图6所示,包括如下步骤:Further, as a refinement and extension of the specific implementation of the above embodiment, in order to fully illustrate the specific implementation process of this embodiment, another method for enhancing the detection of the steel turning angle of a medium and thick plate is provided. The method further defines that before the step of "correcting the distortion of the steel billet image according to the camera parameters of the target camera", it also includes the content of "obtaining the camera parameters", as shown in FIG6, including the following steps:

步骤601,利用目标摄像机拍摄多张不同角度的标定板图片,并基于标定板图片对目标摄像机进行标定,得到摄像机参数,其中,摄像机参数包括内参、外参以及畸变参数。Step 601: Use a target camera to take multiple calibration plate images at different angles, and calibrate the target camera based on the calibration plate images to obtain camera parameters, wherein the camera parameters include intrinsic parameters, extrinsic parameters, and distortion parameters.

在该实施例中,通过安装在辊道斜上方的CCD(Charge Coupled Device,电荷耦合器件)摄像机拍摄20张不同角度标定板图片,并基于标定板图片进行摄像机标定,计算得到摄像机参数,比如摄像机内参、外参以及畸变参数,进而可利用摄像机参数对钢坯图像进行畸变校正。其中,标定板可以为圆点标定板,也可为棋盘格标定板等,在标定过程中,可采用张正友标定法。In this embodiment, a CCD (Charge Coupled Device) camera installed obliquely above the roller takes 20 calibration plate images at different angles, and the camera is calibrated based on the calibration plate images to calculate the camera parameters, such as the camera internal parameters, external parameters and distortion parameters, and then the camera parameters can be used to correct the distortion of the billet image. The calibration plate can be a dot calibration plate or a checkerboard calibration plate, etc. During the calibration process, the Zhang Zhengyou calibration method can be used.

图7示出了本申请另一实施例提供的中厚板转钢角度增强检测方法,如图所示,该方法包括如下步骤:FIG. 7 shows a method for enhanced detection of steel turning angle of medium and thick plates provided by another embodiment of the present application. As shown in the figure, the method comprises the following steps:

步骤701,摄像机标定及畸变校正。Step 701: camera calibration and distortion correction.

在该步骤中,使用张正友标定法进行摄像机参数确定与畸变校正,使用圆点标定板作为标定物。圆点标定板由7×7的圆点阵列和一个带切角的方框组成,标定板大小为800mm×800mm,每个圆点直径为50mm,相邻圆点之间的距离为100mm,各个圆点以及边框作为特征参考点,通过张正友标定法比对拍摄20张图片中的特征点数据进行相机内外参数的修正。In this step, the Zhang Zhengyou calibration method is used to determine the camera parameters and correct the distortion, and the dot calibration plate is used as the calibration object. The dot calibration plate consists of a 7×7 dot array and a square frame with cut corners. The calibration plate size is 800mm×800mm, each dot has a diameter of 50mm, and the distance between adjacent dots is 100mm. Each dot and the frame are used as feature reference points. The Zhang Zhengyou calibration method is used to compare the feature point data in 20 pictures to correct the internal and external parameters of the camera.

标定结果如下表1-3所示:The calibration results are shown in Table 1-3 below:

表1 摄像机内参Table 1 Camera internal parameters

像元宽/μmPixel width/μm 像元高/μmPixel height/μm 焦距/mmFocal length/mm 中心x坐标/PixelCenter x coordinate/Pixel 中心y坐标/PixelCenter y coordinate/Pixel 像宽/PixelImage width/Pixel 像高/PixelPixel 8.298628.29862 8.38.3 11.650311.6503 359.379359.379 235.82235.82 659659 494494

表2 摄像机外参Table 2 Camera external parameters

X方向平移/mmX-direction translation/mm Y方向平移/mmY direction translation/mm Z方向平移/mmZ direction translation/mm X方向旋转X-axis rotation Y方向旋转/°Y direction rotation/° Z方向旋转/°Z direction rotation/° 6.605476.60547 1.938441.93844 425.423425.423 3.559313.55931 354.219354.219 180.613180.613

表3 摄像机畸变系数Table 3 Camera distortion coefficients

K1(1/m2)K1(1/m2) K2(1/m4)K2(1/m4) K3(1/m6)K3(1/m6) P1(1/m2)P1(1/m2) P2(1/m2)P2(1/m2) 0.20930.2093 -0.7269-0.7269 0.29620.2962 0.13160.1316 0.06320.0632

步骤702,图像去雾处理。Step 702: image dehazing processing.

在该步骤中,获得暗通道图像,计算透视率和大气光成分,代入大气散射模型对原始图像进行去雾处理。In this step, the dark channel image is obtained, the perspective and atmospheric light components are calculated, and the atmospheric scattering model is substituted to perform dehazing on the original image.

步骤703,灰度线性变换。Step 703: grayscale linear transformation.

在该步骤中,选择乘数因子Mult为5,加数因子Add为-150,可以实现将灰度值80以下的像素灰度值降为0,80以上的像素灰度值变换为250,大大提高钢坯图像的对比度。In this step, the multiplication factor Mult is selected as 5 and the addend factor Add is selected as -150, so that the grayscale values of pixels below 80 can be reduced to 0 and the grayscale values of pixels above 80 can be converted to 250, thereby greatly improving the contrast of the billet image.

步骤704,动态阈值分割。Step 704: dynamic threshold segmentation.

在该步骤中,设置均值滤波掩膜宽度为230,高度为230。动态阈值分割中偏差值offset为12,提取方式为“light模式”,即将原图比均值滤波后的图像亮12个灰阶以上的区域提取出来。通过动态阈值分割处理后的图片如图8所示。In this step, the mean filter mask width is set to 230 and the height is set to 230. The offset value in dynamic threshold segmentation is 12, and the extraction mode is "light mode", that is, the area of the original image that is brighter than the image after mean filtering by 12 gray levels is extracted. The image processed by dynamic threshold segmentation is shown in Figure 8.

步骤705,填充。Step 705, filling.

在该步骤中,将分割后区域内的空洞进行填充,使区域更加连续和完整,便于后续的分析和处理。通过填充处理后的图片如图9所示。In this step, the holes in the segmented area are filled to make the area more continuous and complete, which is convenient for subsequent analysis and processing. The image after filling is shown in Figure 9.

步骤706,开操作。Step 706, start operation.

设置开操作中矩形结构内核的宽度为20,高度为20。通过开操作处理后的图片如图10所示。The width and height of the rectangular structure kernel in the opening operation are set to 20 and 20, respectively. The image processed by the opening operation is shown in Figure 10.

步骤707,特征筛选。Step 707, feature screening.

在该步骤中,按照钢坯的基本面积范围和矩形度进行筛选,根据实际生产情况设置钢坯面积最小值为18000,面积最大值为400000。矩形度最小值为0.8,最大值为1.0。根据以上条件筛选区域,对筛选出的连通域按像素面积进行排序,选择像素面积最大的连通区域作为钢坯特征图像。In this step, the steel billet is screened according to its basic area range and rectangularity. The minimum area of the steel billet is set to 18000 and the maximum area is set to 400000 according to the actual production situation. The minimum rectangularity is 0.8 and the maximum is 1.0. The area is screened according to the above conditions, and the screened connected domains are sorted by pixel area. The connected region with the largest pixel area is selected as the steel billet feature image.

步骤708,亚像素边缘检测。Step 708: sub-pixel edge detection.

在该步骤中,使用多项式插值法计算亚像素坐标,通过亚像素边缘检测算法处理后的图片如图11所示。In this step, the sub-pixel coordinates are calculated using the polynomial interpolation method, and the image processed by the sub-pixel edge detection algorithm is shown in FIG11 .

步骤709,外接最小矩形拟合。Step 709: fitting the minimum circumscribed rectangle.

最小二乘法通过对数据点的拟合来求取直线。其基本原理是求取所有点到拟合直线之间距离的平方和误差最小。假设直线的表达式为:,则平方和误差为:The least squares method finds a straight line by fitting data points. Its basic principle is to find the minimum sum of squares of the distances between all points and the fitted straight line. Assume that the expression of the straight line is: , then the sum of square errors is:

在一些边缘噪声比较大的情况下,数据中含大量噪声点,传统最小二乘法并不能得到最优结果,因此本发明采用基于加权的最小二乘法进行拟合。增加权重函数的直线拟合考虑了不同点到直线的距离,减少了拟合误差,可以提高拟合精度。基于Tukey加权函数的权重函数定义为:In some cases where the edge noise is relatively large, the data contains a large number of noise points, and the traditional least squares method cannot obtain the optimal result. Therefore, the present invention adopts the weighted least squares method for fitting. The straight line fitting with the weight function takes into account the distance from different points to the straight line, reduces the fitting error, and can improve the fitting accuracy. The weight function based on Tukey weighting function is defined as:

式中,表示点到直线的距离,是削波系数,表示距离,其作用是对离群点进行判定。In the formula, represents the distance from a point to a line, It is the clipping coefficient, which indicates the distance. Its function is to judge the outliers.

时,加权函数的值为0,表示较大的残差给予较小的权重。当时,加权函数的值在(0,1)区间随距离的大小而变化,点到直线的距离越小,加权函数的值越大,表示较小的残差给予较大的权重。削波系数根据一维高斯分布标准方差来自适应设定。when When , the value of the weighting function is 0, indicating that larger residuals are given smaller weights. When , the value of the weighting function changes with the distance in the interval (0,1). The smaller the distance from the point to the line, the larger the value of the weighting function, which means that a smaller residual is given a larger weight. The standard deviation is adaptively set according to a one-dimensional Gaussian distribution.

在加权最小二乘法条件下,求取残差最小的表达式为:Under the condition of weighted least squares method, the expression for minimizing the residual error is:

当残差最小时,得到直线方程参数。When the residual is minimum, the parameters of the straight line equation are obtained.

基于Tukey权重函数的拟合可以消除离群值的影响,得到更精确的拟合结果。通过外接最小矩形拟合算法处理后的图片如图12所示。矩形长轴与x轴的夹角(-89.45°)即为钢坯实时角度,如图13所示。Fitting based on Tukey weight function can eliminate the influence of outliers and obtain more accurate fitting results. The image processed by the circumscribed minimum rectangle fitting algorithm is shown in Figure 12. The angle between the major axis of the rectangle and the x-axis (-89.45°) is the real-time angle of the billet, as shown in Figure 13.

应理解,上述实施例中各步骤的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本发明实施例的实施过程构成任何限定。It should be understood that the order of execution of the steps in the above embodiment does not necessarily mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present invention.

进一步地,作为上述中厚板转钢角度增强检测方法的具体实现,本申请实施例提供了一种中厚板转钢角度增强检测装置,如图14所示,该装置包括:图像拍摄模块、图像处理模块以及角度检测模块,其中:Further, as a specific implementation of the above-mentioned medium and thick plate steel turning angle enhancement detection method, the embodiment of the present application provides a medium and thick plate steel turning angle enhancement detection device, as shown in FIG14, the device includes: an image capture module, an image processing module and an angle detection module, wherein:

图像拍摄模块,用于在中厚板轧制的转钢环节中通过目标摄像机拍摄钢坯图像,并根据目标摄像机的摄像机参数对钢坯图像进行畸变校正;An image capture module is used to capture the image of the steel billet through a target camera in the steel transfer process of medium and thick plate rolling, and to perform distortion correction on the steel billet image according to the camera parameters of the target camera;

图像处理模块,用于对畸变校正后的钢坯图像依次进行去雾处理和对比度增强处理;以及,基于对比度增强后的钢坯图像中根据每个像素点的灰度,识别前景区域以及背景区域,并针对前景区域中的孔洞进行填充;以及,对孔洞填充后的钢坯图像进行图像形态学的开操作;以及,基于开操作后的钢坯图像中前景区域的连通关系确定目标连通区域,并拟合目标连通区域的边缘轮廓;An image processing module is used to sequentially perform defogging and contrast enhancement processing on the billet image after distortion correction; and, based on the grayscale of each pixel in the billet image after contrast enhancement, identify the foreground area and the background area, and fill the holes in the foreground area; and, perform image morphological opening operation on the billet image after the hole filling; and, based on the connectivity relationship of the foreground area in the billet image after the opening operation, determine the target connected area, and fit the edge contour of the target connected area;

角度检测模块,用于根据边缘轮廓拟合目标连通区域对应的外接最小矩形,并根据矩形相对于预设参考方向的偏移角度确定钢坯角度。The angle detection module is used to fit the circumscribed minimum rectangle corresponding to the target connected area according to the edge contour, and determine the angle of the steel billet according to the offset angle of the rectangle relative to the preset reference direction.

可选地,图像处理模块用于:Optionally, the image processing module is used to:

确定畸变校正后的钢坯图像对应的大气光成分,根据大气光成分,确定畸变校正后的钢坯图像中每个像素点的透视率,根据大气光成分以及透视率,对畸变校正后的钢坯图像进行去雾处理;Determine the atmospheric light component corresponding to the distortion-corrected billet image, determine the perspective of each pixel in the distortion-corrected billet image according to the atmospheric light component, and perform defogging on the distortion-corrected billet image according to the atmospheric light component and the perspective;

通过线性变换方法拉伸去雾处理后的钢坯图像中每个像素点的灰度值,得到对比度增强处理后的钢坯图像。The gray value of each pixel in the dehazed billet image is stretched by a linear transformation method to obtain a contrast-enhanced billet image.

可选地,图像处理模块用于:Optionally, the image processing module is used to:

计算对比度增强处理后的钢坯图像中每个局部窗口的平均灰度值,分别计算对比度增强处理后的钢坯图像中每个待识别像素点的灰度值与平均灰度值之间的偏差;Calculate the average gray value of each local window in the steel billet image after contrast enhancement processing, and respectively calculate the deviation between the gray value of each pixel to be identified in the steel billet image after contrast enhancement processing and the average gray value;

若偏差大于偏差阈值,则确定待识别像素点为前景像素点,否则确定待识别像素点为背景像素点;If the deviation is greater than the deviation threshold, the pixel to be identified is determined to be a foreground pixel, otherwise the pixel to be identified is determined to be a background pixel;

根据前景像素点确定前景区域,并在前景区域内扫描背景像素点;Determine the foreground area according to the foreground pixels, and scan the background pixels in the foreground area;

基于扫描结果确定前景区域中的孔洞,并填充孔洞。Holes in the foreground area are determined based on the scan results and filled.

可选地,图像处理模块用于:Optionally, the image processing module is used to:

遍历前景区域中的像素点,并基于每个像素点的邻接关系,确定至少一个连通区域;Traversing the pixels in the foreground area, and determining at least one connected area based on the adjacency relationship of each pixel;

根据每个连通区域的面积以及矩形度,确定一个连通区域为目标连通区域;According to the area and rectangularity of each connected region, a connected region is determined as the target connected region;

利用三点插值方法拟合目标连通区域的边缘曲线,得到目标连通区域对应的轮廓点集。The edge curve of the target connected area is fitted using the three-point interpolation method to obtain the contour point set corresponding to the target connected area.

可选地,角度检测模块用于:Optionally, the angle detection module is used to:

对轮廓点集进行预处理,并利用最小二乘法拟合方法对预处理后的轮廓点集进行初始拟合,得到拟合矩形;Preprocessing the contour point set, and using the least squares fitting method to perform initial fitting on the preprocessed contour point set to obtain a fitting rectangle;

分别计算预处理后的轮廓点集中每个轮廓点到拟合矩形的残差,并对残差进行加权;Calculate the residual from each contour point in the preprocessed contour point set to the fitting rectangle, and weight the residual;

根据加权后的残差进行再次拟合,得到新的拟合矩形,并返回至分别计算预处理后的轮廓点集中每个轮廓点到拟合矩形的残差的步骤,直至达到预设的终止迭代条件,并确定当前的拟合矩形为外接最小矩形。The weighted residual is refitted to obtain a new fitting rectangle, and the process returns to the step of calculating the residual from each contour point in the preprocessed contour point set to the fitting rectangle, until the preset termination condition is reached and the current fitting rectangle is determined to be the minimum circumscribed rectangle.

可选地,残差对应的权重与残差负相关。Optionally, the weight corresponding to the residual is negatively correlated with the residual.

可选地,装置还包括摄像机参数获取模块,用于:Optionally, the device further includes a camera parameter acquisition module, which is used to:

利用目标摄像机拍摄多张不同角度的标定板图片,并基于标定板图片对目标摄像机进行标定,得到摄像机参数,其中,摄像机参数包括内参、外参以及畸变参数。The target camera is used to take multiple calibration plate images at different angles, and the target camera is calibrated based on the calibration plate images to obtain camera parameters, where the camera parameters include intrinsic parameters, extrinsic parameters, and distortion parameters.

根据本申请又一个方面,提供了一种介质,其上存储有程序或指令,所述程序或指令被处理器执行时实现上述中厚板转钢角度增强检测方法。According to another aspect of the present application, a medium is provided, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the above-mentioned method for enhanced detection of steel turning angles of medium and thick plates is implemented.

需要说明的是,本申请实施例提供的一种中厚板转钢角度增强检测装置所涉及各功能模块的其他相应描述,可以参考上述方法中的对应描述,在此不再赘述。It should be noted that for other corresponding descriptions of the functional modules involved in the medium and thick plate steel turning angle enhancement detection device provided in the embodiment of the present application, reference can be made to the corresponding descriptions in the above method and will not be repeated here.

基于上述方法,相应的,本申请实施例还提供了一种存储介质,其上存储有计算机程序,该程序被处理器执行时实现上述中厚板转钢角度增强检测方法。Based on the above method, accordingly, an embodiment of the present application further provides a storage medium on which a computer program is stored, and when the program is executed by a processor, the above method for enhanced detection of steel turning angles of medium and thick plates is implemented.

基于这样的理解,本申请的技术方案可以以软件产品的形式体现出来,该软件产品可以存储在一个非易失性存储介质(可以是CD-ROM,U盘,移动硬盘等)中,包括若干指令用以使得一台电子设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施场景所述的方法。Based on this understanding, the technical solution of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.), and includes a number of instructions for enabling an electronic device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each implementation scenario of the present application.

基于上述如图1至图13所示的方法,以及图14所示的虚拟装置实施例,为了实现上述目的,本申请实施例还提供了一种设备,具体可以为个人计算机、服务器、网络设备等,该电子设备包括存储介质和处理器;存储介质,用于存储计算机程序;处理器,用于执行计算机程序以实现上述如图1至图13所示的中厚板转钢角度增强检测方法。Based on the above-mentioned method as shown in Figures 1 to 13, and the virtual device embodiment shown in Figure 14, in order to achieve the above-mentioned purpose, the embodiment of the present application also provides a device, which can be specifically a personal computer, a server, a network device, etc. The electronic device includes a storage medium and a processor; the storage medium is used to store a computer program; the processor is used to execute the computer program to implement the above-mentioned method for enhanced detection of medium and thick plate turning angles as shown in Figures 1 to 13.

可选地,该电子设备还可以包括用户接口、网络接口、摄像头、射频(RadioFrequency,RF)电路,传感器、音频电路、WI-FI模块等等。用户接口可以包括显示屏(Display)、输入单元比如键盘(Keyboard)等,可选用户接口还可以包括USB接口、读卡器接口等。网络接口可选的可以包括标准的有线接口、无线接口(如蓝牙接口、WI-FI接口)等。Optionally, the electronic device may further include a user interface, a network interface, a camera, a radio frequency (RF) circuit, a sensor, an audio circuit, a WI-FI module, etc. The user interface may include a display, an input unit such as a keyboard, etc., and the optional user interface may also include a USB interface, a card reader interface, etc. The network interface may optionally include a standard wired interface, a wireless interface (such as a Bluetooth interface, a WI-FI interface), etc.

本领域技术人员可以理解,本实施例提供的一种电子设备结构并不构成对该电子设备的限定,可以包括更多或更少的部件,或者组合某些部件,或者不同的部件布置。Those skilled in the art will appreciate that the electronic device structure provided in this embodiment does not limit the electronic device, and may include more or fewer components, or a combination of certain components, or different component arrangements.

存储介质中还可以包括操作系统、网络通信模块。操作系统是管理和保存电子设备硬件和软件资源的程序,支持信息处理程序以及其它软件和/或程序的运行。网络通信模块用于实现存储介质内部各控件之间的通信,以及与该实体设备中其它硬件和软件之间通信。The storage medium may also include an operating system and a network communication module. The operating system is a program that manages and saves the hardware and software resources of the electronic device, and supports the operation of information processing programs and other software and/or programs. The network communication module is used to realize communication between the various controls inside the storage medium, and communication with other hardware and software in the physical device.

通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到本申请可以借助软件加必要的通用硬件平台的方式来实现,也可以通过硬件实现。Through the description of the above implementation methods, those skilled in the art can clearly understand that the present application can be implemented by means of software plus a necessary general hardware platform, or by hardware.

本领域技术人员可以理解附图只是一个优选实施场景的示意图,附图中的单元或流程并不一定是实施本申请所必须的。本领域技术人员可以理解实施场景中的装置中的单元可以按照实施场景描述进行分布于实施场景的装置中,也可以进行相应变化位于不同于本实施场景的一个或多个装置中。上述实施场景的单元可以合并为一个单元,也可以进一步拆分成多个子单元。Those skilled in the art will appreciate that the accompanying drawings are only schematic diagrams of a preferred implementation scenario, and the units or processes in the accompanying drawings are not necessarily necessary for implementing the present application. Those skilled in the art will appreciate that the units in the devices in the implementation scenario can be distributed in the devices of the implementation scenario according to the description of the implementation scenario, or can be changed accordingly and located in one or more devices different from the present implementation scenario. The units of the above-mentioned implementation scenarios can be combined into one unit, or can be further split into multiple sub-units.

上述本申请序号仅仅为了描述,不代表实施场景的优劣。以上公开的仅为本申请的几个具体实施场景,但是,本申请并非局限于此,任何本领域的技术人员能思之的变化都应落入本申请的保护范围。The above serial numbers of this application are only for description and do not represent the advantages and disadvantages of the implementation scenarios. The above disclosure is only a few specific implementation scenarios of this application, but this application is not limited to them, and any changes that can be thought of by technicians in this field should fall within the scope of protection of this application.

Claims (10)

1.一种中厚板转钢角度增强检测方法,其特征在于,所述方法包括:1. A method for enhancing the detection of steel turning angle of medium and thick plates, characterized in that the method comprises: 在中厚板轧制的转钢环节中通过目标摄像机拍摄钢坯图像,并根据所述目标摄像机的摄像机参数对所述钢坯图像进行畸变校正;In the steel transfer process of medium and thick plate rolling, a target camera is used to capture a steel billet image, and distortion correction is performed on the steel billet image according to camera parameters of the target camera; 对畸变校正后的钢坯图像依次进行去雾处理和对比度增强处理;The billet image after distortion correction is subjected to defogging and contrast enhancement processing in sequence; 基于对比度增强处理后的钢坯图像中每个像素点的灰度,识别前景区域以及背景区域,并针对所述前景区域中的孔洞进行填充;Based on the grayscale of each pixel in the steel billet image after contrast enhancement processing, a foreground area and a background area are identified, and holes in the foreground area are filled; 对孔洞填充后的钢坯图像进行图像形态学的开操作;Perform image morphological opening operation on the billet image after hole filling; 基于开操作后的钢坯图像中前景区域的连通关系确定目标连通区域,并拟合所述目标连通区域的边缘轮廓;Determine a target connected area based on the connectivity relationship of the foreground area in the steel billet image after the opening operation, and fit the edge contour of the target connected area; 根据所述边缘轮廓拟合所述目标连通区域对应的外接最小矩形,并根据所述矩形相对于预设参考方向的偏移角度确定钢坯角度。The minimum circumscribed rectangle corresponding to the target connected area is fitted according to the edge contour, and the angle of the steel billet is determined according to the offset angle of the rectangle relative to a preset reference direction. 2.根据权利要求1所述的方法,其特征在于,所述对畸变校正后的钢坯图像依次进行去雾处理和对比度增强处理,包括:2. The method according to claim 1, characterized in that the step of sequentially performing defogging and contrast enhancement processing on the distortion-corrected billet image comprises: 确定畸变校正后的钢坯图像对应的大气光成分,根据所述大气光成分,确定所述畸变校正后的钢坯图像中每个像素点的透视率,根据所述大气光成分以及所述透视率,对所述畸变校正后的钢坯图像进行去雾处理;Determine an atmospheric light component corresponding to the distortion-corrected steel billet image, determine the perspective of each pixel in the distortion-corrected steel billet image according to the atmospheric light component, and perform defogging on the distortion-corrected steel billet image according to the atmospheric light component and the perspective; 通过线性变换方法拉伸去雾处理后的钢坯图像中每个像素点的灰度值,得到对比度增强处理后的钢坯图像。The gray value of each pixel in the dehazed billet image is stretched by a linear transformation method to obtain a contrast-enhanced billet image. 3.根据权利要求1所述的方法,其特征在于,所述基于对比度增强处理后的钢坯图像中,每个像素点的灰度,识别前景区域以及背景区域,并针对所述前景区域中的孔洞进行填充,包括:3. The method according to claim 1, characterized in that the foreground area and the background area are identified based on the grayscale of each pixel in the steel billet image after contrast enhancement processing, and the holes in the foreground area are filled, comprising: 计算对比度增强处理后的钢坯图像中每个局部窗口的平均灰度值,分别计算对比度增强处理后的钢坯图像中每个待识别像素点的灰度值与所述平均灰度值之间的偏差;Calculating the average grayscale value of each local window in the steel billet image after contrast enhancement processing, and respectively calculating the deviation between the grayscale value of each pixel to be identified in the steel billet image after contrast enhancement processing and the average grayscale value; 若所述偏差大于偏差阈值,则确定所述待识别像素点为前景像素点,否则确定所述待识别像素点为背景像素点;If the deviation is greater than the deviation threshold, the pixel to be identified is determined to be a foreground pixel; otherwise, the pixel to be identified is determined to be a background pixel; 根据所述前景像素点确定所述前景区域,并在所述前景区域内扫描所述背景像素点;Determine the foreground area according to the foreground pixels, and scan the background pixels in the foreground area; 基于所述扫描结果确定所述前景区域中的孔洞,并填充所述孔洞。Holes in the foreground area are determined based on the scanning result, and the holes are filled. 4.根据权利要求1所述的方法,其特征在于,所述基于开操作后的钢坯图像中前景区域的连通关系确定目标连通区域,并拟合所述目标连通区域的边缘轮廓,包括:4. The method according to claim 1, characterized in that the step of determining the target connected area based on the connectivity relationship of the foreground area in the steel billet image after the opening operation and fitting the edge contour of the target connected area comprises: 遍历所述前景区域中的像素点,并基于每个像素点的邻接关系,确定所述至少一个连通区域;Traversing the pixels in the foreground area, and determining the at least one connected area based on the adjacency relationship of each pixel; 根据每个所述连通区域的面积以及矩形度,确定一个连通区域为所述目标连通区域;According to the area and rectangularity of each of the connected regions, determining a connected region as the target connected region; 利用三点插值方法拟合所述目标连通区域的边缘曲线,得到所述目标连通区域对应的轮廓点集。The edge curve of the target connected area is fitted using a three-point interpolation method to obtain a contour point set corresponding to the target connected area. 5.根据权利要求1所述的方法,其特征在于,所述根据所述边缘轮廓拟合所述目标连通区域对应的外接最小矩形,包括:5. The method according to claim 1, characterized in that the step of fitting the circumscribed minimum rectangle corresponding to the target connected area according to the edge contour comprises: 对所述轮廓点集进行预处理,并利用最小二乘法拟合方法对预处理后的轮廓点集进行初始拟合,得到拟合矩形;Preprocessing the contour point set, and performing initial fitting on the preprocessed contour point set using a least squares fitting method to obtain a fitting rectangle; 分别计算预处理后的轮廓点集中每个轮廓点到所述拟合矩形的残差,并对所述残差进行加权;Residuals from each contour point in the preprocessed contour point set to the fitting rectangle are calculated respectively, and the residuals are weighted; 根据加权后的残差进行再次拟合,得到新的拟合矩形,并返回至分别计算预处理后的轮廓点集中每个轮廓点到所述拟合矩形的残差的步骤,直至达到预设的终止迭代条件,并确定当前的拟合矩形为所述外接最小矩形。The weighted residual is refitted to obtain a new fitting rectangle, and the process returns to the step of respectively calculating the residual from each contour point in the preprocessed contour point set to the fitting rectangle, until the preset termination iteration condition is reached, and the current fitting rectangle is determined to be the circumscribed minimum rectangle. 6.根据权利要求5所述的方法,其特征在于,所述残差对应的权重与所述残差负相关。6. The method according to claim 5, characterized in that the weight corresponding to the residual is negatively correlated with the residual. 7.根据权利要求1所述的方法,其特征在于,在所述根据所述目标摄像机的摄像机参数对所述钢坯图像进行畸变校正之前,包括:7. The method according to claim 1, characterized in that before the distortion correction of the steel billet image according to the camera parameters of the target camera is performed, it comprises: 利用所述目标摄像机拍摄多张不同角度的标定板图片,并基于所述标定板图片对所述目标摄像机进行标定,得到所述摄像机参数,其中,所述摄像机参数包括内参、外参以及畸变参数。The target camera is used to take a plurality of calibration plate images at different angles, and the target camera is calibrated based on the calibration plate images to obtain the camera parameters, wherein the camera parameters include intrinsic parameters, extrinsic parameters and distortion parameters. 8.一种中厚板转钢角度增强检测装置,其特征在于,所述装置包括:8. A device for detecting the enhanced steel turning angle of a medium and thick plate, characterized in that the device comprises: 图像拍摄模块,用于在中厚板轧制的转钢环节中通过目标摄像机拍摄钢坯图像,并根据所述目标摄像机的摄像机参数对所述钢坯图像进行畸变校正;An image shooting module, used to shoot a steel billet image through a target camera in the steel transfer link of medium and thick plate rolling, and perform distortion correction on the steel billet image according to the camera parameters of the target camera; 图像处理模块,用于对畸变校正后的钢坯图像依次进行去雾处理和对比度增强处理;以及,基于对比度增强后的钢坯图像中根据每个像素点的灰度,识别前景区域以及背景区域,并针对所述前景区域中的孔洞进行填充;以及,对孔洞填充后的钢坯图像进行图像形态学的开操作;以及,基于开操作后的钢坯图像中前景区域的连通关系确定目标连通区域,并拟合所述目标连通区域的边缘轮廓;An image processing module is used to sequentially perform defogging and contrast enhancement processing on the steel billet image after distortion correction; and, based on the grayscale of each pixel in the steel billet image after contrast enhancement, identify the foreground area and the background area, and fill the holes in the foreground area; and, perform image morphological opening operation on the steel billet image after the hole filling; and, based on the connectivity relationship of the foreground area in the steel billet image after the opening operation, determine the target connected area, and fit the edge contour of the target connected area; 角度检测模块,用于根据所述边缘轮廓拟合所述目标连通区域对应的外接最小矩形,并根据所述矩形相对于预设参考方向的偏移角度确定钢坯角度。The angle detection module is used to fit the circumscribed minimum rectangle corresponding to the target connected area according to the edge contour, and determine the angle of the steel billet according to the offset angle of the rectangle relative to a preset reference direction. 9.一种存储介质,其上存储有程序或指令,其特征在于,所述程序或指令被处理器执行时实现如权利要求1至7中任一项所述的方法。9. A storage medium having a program or instruction stored thereon, wherein the program or instruction, when executed by a processor, implements the method according to any one of claims 1 to 7. 10.一种电子设备,包括存储介质和处理器,其特征在于,所述存储介质存储有计算机程序,所述处理器执行所述计算机程序时实现权利要求1至7中任一项所述的方法。10. An electronic device comprising a storage medium and a processor, wherein the storage medium stores a computer program, and the processor implements the method according to any one of claims 1 to 7 when executing the computer program.
CN202410317919.7A 2024-03-20 2024-03-20 Method and device for detecting steel rotation angle enhancement of medium plate, medium and equipment Pending CN117911419A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410317919.7A CN117911419A (en) 2024-03-20 2024-03-20 Method and device for detecting steel rotation angle enhancement of medium plate, medium and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410317919.7A CN117911419A (en) 2024-03-20 2024-03-20 Method and device for detecting steel rotation angle enhancement of medium plate, medium and equipment

Publications (1)

Publication Number Publication Date
CN117911419A true CN117911419A (en) 2024-04-19

Family

ID=90684073

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410317919.7A Pending CN117911419A (en) 2024-03-20 2024-03-20 Method and device for detecting steel rotation angle enhancement of medium plate, medium and equipment

Country Status (1)

Country Link
CN (1) CN117911419A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118710675A (en) * 2024-08-27 2024-09-27 陕西首铝模架科技有限公司 A method and device for extrusion integrated molding of high-strength alloy template

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101574709A (en) * 2009-06-12 2009-11-11 东北大学 Automatic steel rotation method for medium plates
KR20100120791A (en) * 2009-05-07 2010-11-17 엘지이노텍 주식회사 Apparatus for measuring rotation angle and method for operating the same
CN104634261A (en) * 2014-12-05 2015-05-20 浙江理工大学 Line laser source based medium plate shape inspection system and method
CN104981105A (en) * 2015-07-09 2015-10-14 广东工业大学 Detecting and error-correcting method capable of rapidly and accurately obtaining element center and deflection angle
CN109190628A (en) * 2018-08-15 2019-01-11 东北大学 A kind of plate camber detection method based on machine vision
WO2022127217A1 (en) * 2020-12-18 2022-06-23 华能(福建漳州)能源有限责任公司 Rotation angle measurement mechanism of stacker-reclaimer
CN116740332A (en) * 2023-06-01 2023-09-12 南京航空航天大学 Method for positioning center and measuring angle of space target component on satellite based on region detection
WO2023185118A1 (en) * 2022-03-29 2023-10-05 广东利元亨智能装备股份有限公司 Image processing method and apparatus, electronic device, and storage medium
WO2024007614A1 (en) * 2022-07-08 2024-01-11 中交第二航务工程局有限公司 Construction control method for partition type concrete diaphragm wall anchorage foundation

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20100120791A (en) * 2009-05-07 2010-11-17 엘지이노텍 주식회사 Apparatus for measuring rotation angle and method for operating the same
CN101574709A (en) * 2009-06-12 2009-11-11 东北大学 Automatic steel rotation method for medium plates
CN104634261A (en) * 2014-12-05 2015-05-20 浙江理工大学 Line laser source based medium plate shape inspection system and method
CN104981105A (en) * 2015-07-09 2015-10-14 广东工业大学 Detecting and error-correcting method capable of rapidly and accurately obtaining element center and deflection angle
CN109190628A (en) * 2018-08-15 2019-01-11 东北大学 A kind of plate camber detection method based on machine vision
WO2022127217A1 (en) * 2020-12-18 2022-06-23 华能(福建漳州)能源有限责任公司 Rotation angle measurement mechanism of stacker-reclaimer
WO2023185118A1 (en) * 2022-03-29 2023-10-05 广东利元亨智能装备股份有限公司 Image processing method and apparatus, electronic device, and storage medium
WO2024007614A1 (en) * 2022-07-08 2024-01-11 中交第二航务工程局有限公司 Construction control method for partition type concrete diaphragm wall anchorage foundation
CN116740332A (en) * 2023-06-01 2023-09-12 南京航空航天大学 Method for positioning center and measuring angle of space target component on satellite based on region detection

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
张旭昶: "基于图像处理技术的矩形类零件测量方法的研究与应用", 《中国优秀硕士学位论文全文数据库信息科技辑》, 15 April 2013 (2013-04-15), pages 62 - 64 *
秦豆豆 等: "工件外观识别与视觉检测技术的研究", 《组合机床与自动化加工技术》, 30 September 2018 (2018-09-30), pages 84 - 88 *
郝丁丁;王渊;郭卫;: "基于机器视觉的液压支架高度测量方法", 现代电子技术, no. 02, 15 January 2020 (2020-01-15) *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118710675A (en) * 2024-08-27 2024-09-27 陕西首铝模架科技有限公司 A method and device for extrusion integrated molding of high-strength alloy template

Similar Documents

Publication Publication Date Title
CN110866924B (en) Line structured light center line extraction method and storage medium
CN109242853B (en) An intelligent detection method for PCB defects based on image processing
CN107301661B (en) High-resolution remote sensing image registration method based on edge point features
CN109658381B (en) Method for detecting copper surface defects of flexible IC packaging substrate based on super-pixels
CN102156996B (en) Image edge detection method
CN104700421A (en) Edge detection algorithm based on canny self-adaptive threshold value
CN111598897B (en) Infrared image segmentation method based on Otsu and improved Bernsen
CN109540925B (en) Complex ceramic tile surface defect detection method based on difference method and local variance measurement operator
JP5812705B2 (en) Crack detection method
CN113971681B (en) A belt conveyor edge detection method in complex environment
CN106204617A (en) Adapting to image binarization method based on residual image rectangular histogram cyclic shift
CN117094975A (en) Method and device for detecting surface defects of steel and electronic equipment
CN101706959A (en) Method for extracting surface defects of metal sheets and strips on basis of two-dimensional information entropy
CN113362238A (en) Test image processing method and device, electronic equipment and storage medium
CN117853510A (en) Canny edge detection method based on bilateral filtering and self-adaptive threshold
CN116152261B (en) Visual inspection system for quality of printed product
CN117911419A (en) Method and device for detecting steel rotation angle enhancement of medium plate, medium and equipment
CN117635615A (en) Defect detection method and system for realizing punching die based on deep learning
CN111310754A (en) Method for segmenting license plate characters
CN114332081A (en) Textile surface abnormity determination method based on image processing
CN112419407B (en) Cloud cluster displacement vector calculation method and device based on cloud cluster edge recognition
CN112102189B (en) Line structure light bar center line extraction method
CN113643290B (en) Straw counting method and device based on image processing and storage medium
CN111178111A (en) Two-dimensional code detection method, electronic device, storage medium and system
CN110298799B (en) PCB image positioning correction method

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