[go: up one dir, main page]

CN118849098A - Automatic optical detection method, system, device and storage medium for die-cutting machine - Google Patents

Automatic optical detection method, system, device and storage medium for die-cutting machine Download PDF

Info

Publication number
CN118849098A
CN118849098A CN202410988701.4A CN202410988701A CN118849098A CN 118849098 A CN118849098 A CN 118849098A CN 202410988701 A CN202410988701 A CN 202410988701A CN 118849098 A CN118849098 A CN 118849098A
Authority
CN
China
Prior art keywords
image
finished product
workpiece
cutting
optical detection
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
CN202410988701.4A
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.)
Dongguan Linggong Industrial Co ltd
Original Assignee
Dongguan Linggong Industrial Co ltd
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 Dongguan Linggong Industrial Co ltd filed Critical Dongguan Linggong Industrial Co ltd
Priority to CN202410988701.4A priority Critical patent/CN118849098A/en
Publication of CN118849098A publication Critical patent/CN118849098A/en
Pending legal-status Critical Current

Links

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B26HAND CUTTING TOOLS; CUTTING; SEVERING
    • B26DCUTTING; DETAILS COMMON TO MACHINES FOR PERFORATING, PUNCHING, CUTTING-OUT, STAMPING-OUT OR SEVERING
    • B26D7/00Details of apparatus for cutting, cutting-out, stamping-out, punching, perforating, or severing by means other than cutting
    • B26D7/27Means for performing other operations combined with cutting
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B07SEPARATING SOLIDS FROM SOLIDS; SORTING
    • B07CPOSTAL SORTING; SORTING INDIVIDUAL ARTICLES, OR BULK MATERIAL FIT TO BE SORTED PIECE-MEAL, e.g. BY PICKING
    • B07C5/00Sorting according to a characteristic or feature of the articles or material being sorted, e.g. by control effected by devices which detect or measure such characteristic or feature; Sorting by manually actuated devices, e.g. switches
    • B07C5/34Sorting according to other particular properties
    • B07C5/342Sorting according to other particular properties according to optical properties, e.g. colour
    • B07C5/3422Sorting according to other particular properties according to optical properties, e.g. colour using video scanning devices, e.g. TV-cameras
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B26HAND CUTTING TOOLS; CUTTING; SEVERING
    • B26DCUTTING; DETAILS COMMON TO MACHINES FOR PERFORATING, PUNCHING, CUTTING-OUT, STAMPING-OUT OR SEVERING
    • B26D5/00Arrangements for operating and controlling machines or devices for cutting, cutting-out, stamping-out, punching, perforating, or severing by means other than cutting
    • B26D5/005Computer numerical control means
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B26HAND CUTTING TOOLS; CUTTING; SEVERING
    • B26DCUTTING; DETAILS COMMON TO MACHINES FOR PERFORATING, PUNCHING, CUTTING-OUT, STAMPING-OUT OR SEVERING
    • B26D5/00Arrangements for operating and controlling machines or devices for cutting, cutting-out, stamping-out, punching, perforating, or severing by means other than cutting
    • B26D5/20Arrangements for operating and controlling machines or devices for cutting, cutting-out, stamping-out, punching, perforating, or severing by means other than cutting with interrelated action between the cutting member and work feed
    • B26D5/30Arrangements for operating and controlling machines or devices for cutting, cutting-out, stamping-out, punching, perforating, or severing by means other than cutting with interrelated action between the cutting member and work feed having the cutting member controlled by scanning a record carrier
    • B26D5/34Arrangements for operating and controlling machines or devices for cutting, cutting-out, stamping-out, punching, perforating, or severing by means other than cutting with interrelated action between the cutting member and work feed having the cutting member controlled by scanning a record carrier scanning being effected by a photosensitive device
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B26HAND CUTTING TOOLS; CUTTING; SEVERING
    • B26FPERFORATING; PUNCHING; CUTTING-OUT; STAMPING-OUT; SEVERING BY MEANS OTHER THAN CUTTING
    • B26F1/00Perforating; Punching; Cutting-out; Stamping-out; Apparatus therefor
    • B26F1/38Cutting-out; Stamping-out

Landscapes

  • Engineering & Computer Science (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Forests & Forestry (AREA)
  • Mechanical Engineering (AREA)
  • Multimedia (AREA)
  • General Engineering & Computer Science (AREA)
  • Numerical Control (AREA)

Abstract

The application relates to the technical field of image recognition and discloses an automatic optical detection method, an automatic optical detection system, automatic optical detection equipment and a storage medium applied to a die cutting machine, wherein the method comprises the steps of determining workpiece shape and position parameters, raw material models and processing types of processing tasks, and setting an image cutting area to update an image cutting algorithm; before the workpiece is pressed and cut, a first optical detection image is acquired and input into an image preprocessing model, and correction cutting processing is carried out to generate a first correction image; intercepting a stage finished product area image from the first corrected image, comparing the stage finished product area image with a corresponding raw material reference image, generating feeding specification information, and generating a pressing and cutting starting instruction when the feeding specification information is qualified; after the workpiece is pressed and cut, a second optical detection image is obtained, a second correction image is generated through preprocessing, and the phase finished product pattern and the phase finished product boundary are intercepted from the second correction image and are compared with the corresponding finished product reference image and boundary reference image, so that finished product specification information is generated; the application has the effect of improving the detection timeliness of the die-cutting quality problem.

Description

应用于模切机的自动光学检测方法、系统、设备及存储介质Automatic optical detection method, system, device and storage medium for die-cutting machine

技术领域Technical Field

本申请涉及图像识别的技术领域,尤其是涉及一种应用于模切机的自动光学检测方法、系统、设备及存储介质。The present application relates to the technical field of image recognition, and in particular to an automatic optical detection method, system, device and storage medium applied to a die-cutting machine.

背景技术Background Art

模切机被大量应用于对板材、片材等工件进行裁剪加工,也可以用于压痕、烫金、材料贴合等制造工艺的加工;模切机在使用的过程中,常见的加工质量问题包括工件定位不准、工件变形、刀具损坏、待加工板、片材脏污等;目前针对此类质量问题的检测方法通常是对加工完成的工件进行检验后而确定的,对质量问题的发现具有较大的滞后性,难以在加工过程中及时发现质量问题并对设备进行维护。因此,上述相关技术存在模切质量问题检测及时性较差的问题。Die-cutting machines are widely used for cutting workpieces such as plates and sheets, and can also be used for manufacturing processes such as indentation, hot stamping, and material bonding. During the use of die-cutting machines, common processing quality problems include inaccurate positioning of workpieces, deformation of workpieces, damage to tools, dirty plates and sheets to be processed, etc. At present, the detection method for such quality problems is usually determined after inspecting the finished workpieces, and the discovery of quality problems has a large lag, making it difficult to timely discover quality problems and maintain the equipment during the processing process. Therefore, the above-mentioned related technologies have the problem of poor timeliness in detecting die-cutting quality problems.

发明内容Summary of the invention

为了提高模切质量问题检测的及时性,本申请提供一种应用于模切机的自动光学检测方法、系统、设备及存储介质。In order to improve the timeliness of the detection of die-cutting quality problems, the present application provides an automatic optical detection method, system, device and storage medium applied to a die-cutting machine.

本申请的发明目的一采用如下技术方案实现:The first invention objective of this application is achieved by adopting the following technical solution:

应用于模切机的自动光学检测方法,包括:Automatic optical inspection methods applied to die-cutting machines include:

确定当前加工任务的工件形位参数、原料型号、加工类型,基于工件形位参数设定当前加工任务的图像裁剪区域,以更新图像裁剪算法;Determine the workpiece shape and position parameters, raw material model, and processing type of the current processing task, and set the image cropping area of the current processing task based on the workpiece shape and position parameters to update the image cropping algorithm;

在工件压切开始前,获取压切版面的第一光学检测图像并输入至预设的图像预处理模型中,进行修正和裁剪处理以生成第一修正图像;Before the workpiece cutting begins, a first optical detection image of the cutting surface is obtained and input into a preset image preprocessing model, and correction and cropping are performed to generate a first corrected image;

基于工件形位参数从所述第一修正图像中截取阶段成品区域图像,将阶段成品区域图像与原料型号对应的原料基准图像进行对比,生成进料规范信息,当进料规范信息为合格时生成压切启动指令;Based on the workpiece shape and position parameters, a stage finished product area image is intercepted from the first corrected image, the stage finished product area image is compared with a raw material reference image corresponding to the raw material model, and feeding specification information is generated, and when the feeding specification information is qualified, a pressing and cutting start instruction is generated;

在工件压切后,获取第二光学检测图像,经预处理以生成第二修正图像,基于工件形位参数从第二修正图像中截取阶段成品图案和阶段成品边界,将阶段成品图案、阶段成品边界与加工类型对应的成品基准图像、边界基准图像进行对比,生成成品规范信息;After the workpiece is pressed and cut, a second optical detection image is obtained, and a second corrected image is generated after preprocessing. A stage finished product pattern and a stage finished product boundary are intercepted from the second corrected image based on the workpiece shape and position parameters, and the stage finished product pattern and the stage finished product boundary are compared with the finished product reference image and the boundary reference image corresponding to the processing type to generate finished product specification information;

所述模切机设置有用于拍摄压切版面以得到光学检测图像的成像组件;所述图像预处理模型内置有透视修正算法和图像裁剪算法。The die-cutting machine is provided with an imaging component for photographing the pressed and cut plate to obtain an optical detection image; the image preprocessing model is built with a perspective correction algorithm and an image cropping algorithm.

通过采用上述技术方案,确定当前模切机加工任务的工件形位参数、原料型号、加工类型,以便后续确定图像裁剪区域,减少对无效区域进行图像识别的计算机资源消耗;在工件压切开始前,获取压切版面的第一光学检测图像并输入至图像预处理模型中,以便对第一光学检测图像进行透视修正和图像裁剪以得到第一修正图像,便于后续进行图像对比;根据工件形位参数从第一修正图像中截取阶段成品区域图像,并与原料型号对应的原料基准图像进行对比,从而生成进料规范信息,当进料规范信息为合格时再生成压切启动指令,便于在原料不合格的情况下暂停模切机的工作以排除故障;在工件压切后,获取第二光学检测图像并进行预处理以得到第二修正图像,根据工件形位参数从第二修正图像中截取阶段成品图案、阶段成品边界,并与对应的成品基准图像、边界基准图像进行对比,以生成成品规范信息,用于判断成品质量是否合格,从而提高了模切质量问题检测的及时性。By adopting the above technical scheme, the workpiece shape and position parameters, raw material model, and processing type of the current die-cutting machine processing task are determined, so as to subsequently determine the image cropping area and reduce the computer resource consumption for image recognition of invalid areas; before the workpiece pressing and cutting begins, the first optical detection image of the pressing and cutting layout is obtained and input into the image preprocessing model, so as to perform perspective correction and image cropping on the first optical detection image to obtain a first corrected image, which is convenient for subsequent image comparison; according to the workpiece shape and position parameters, the stage finished product area image is intercepted from the first corrected image, and compared with the raw material reference image corresponding to the raw material model, so as to generate feeding specification information, and when the feeding specification information is qualified, the pressing and cutting start instruction is generated, so as to facilitate the suspension of the die-cutting machine in the case of unqualified raw materials to eliminate faults; after the workpiece is pressed and cut, the second optical detection image is obtained and preprocessed to obtain the second corrected image, and the stage finished product pattern and stage finished product boundary are intercepted from the second corrected image according to the workpiece shape and position parameters, and compared with the corresponding finished product reference image and boundary reference image, so as to generate finished product specification information, which is used to judge whether the finished product quality is qualified, thereby improving the timeliness of die-cutting quality problem detection.

本申请在一较佳示例中:所述确定当前加工任务的工件形位参数、原料型号、加工类型,基于工件形位参数设定当前加工任务的图像裁剪区域,以更新图像裁剪算法,包括:In a preferred example of the present application, the determining of the workpiece shape and position parameters, material model, and processing type of the current processing task, and setting the image cropping area of the current processing task based on the workpiece shape and position parameters to update the image cropping algorithm includes:

接收加工设定信息以设定目标模切机的加工程序,基于加工设定信息确定当前加工任务的工件形位参数、原料型号、加工类型;Receive processing setting information to set the processing program of the target die-cutting machine, and determine the workpiece shape and position parameters, raw material model, and processing type of the current processing task based on the processing setting information;

基于工件形位参数确定当前加工任务的工件阶段成品的形状信息、尺寸信息和相对于压切版面的位置信息,设定当前加工任务的图像裁剪区域,以更新图像裁剪算法。The shape information, size information and position information relative to the cutting surface of the finished product of the workpiece stage of the current processing task are determined based on the workpiece shape and position parameters, and the image cropping area of the current processing task is set to update the image cropping algorithm.

通过采用上述技术方案,接收加工设定信息,以设定目标模切机的加工程序,并根据加工设定信息确定当前加工任务所对应的工件形位参数、原料型号和加工类型等信息;基于工件形位参数确定当前加工任务的工件阶段成品的形状、尺寸和其相对于压切版面的位置,进而设定当前加工任务的图像裁剪区域,以更新图像裁剪算法,便于后续使用该图像裁剪算法对压切版面拍摄的图像进行裁剪,优化图像对比效率。By adopting the above technical solution, processing setting information is received to set the processing program of the target die-cutting machine, and the workpiece shape and position parameters, raw material model, processing type and other information corresponding to the current processing task are determined according to the processing setting information; the shape, size and position of the workpiece stage finished product of the current processing task relative to the cutting surface are determined based on the workpiece shape and position parameters, and then the image cropping area of the current processing task is set to update the image cropping algorithm, so as to facilitate the subsequent use of the image cropping algorithm to crop the image taken from the cutting surface and optimize the image comparison efficiency.

本申请在一较佳示例中:所述在工件压切开始前,获取压切版面的第一光学检测图像并输入至预设的图像预处理模型中,进行修正和裁剪处理以生成第一修正图像,包括:In a preferred example of the present application, before the workpiece cutting begins, a first optical detection image of the cutting surface is obtained and input into a preset image preprocessing model, and correction and cropping are performed to generate a first corrected image, including:

当原料输送到位,工件压切开始前,获取由成像组件拍摄的第一光学检测图像并输入至图像预处理模型中;When the raw material is delivered to the place and before the workpiece cutting begins, a first optical detection image taken by the imaging component is acquired and input into the image preprocessing model;

获取成像组件的视角信息和镜头轴线相对于压切版面的拍摄方位信息并载入至透视修正算法,通过透视修正算法对第一光学检测图像在不同方向上根据不同的缩放比例进行缩放处理,生成第一缩放图像;Obtaining the viewing angle information of the imaging component and the shooting orientation information of the lens axis relative to the pressed-cutting layout and loading them into the perspective correction algorithm, scaling the first optical detection image in different directions according to different scaling ratios through the perspective correction algorithm to generate a first scaled image;

从第一缩放图像中识别图像裁剪区域,基于图像裁剪区域对第一缩放图像进行裁剪处理,生成第一修正图像。An image cropping region is identified from the first zoomed image, and the first zoomed image is cropped based on the image cropping region to generate a first corrected image.

通过采用上述技术方案,当原料输送到位且工件压切开始前,获取由成像组件拍摄的压切版面的第一光学检测图像并输入至图像预处理模型中以便后续进行预处理;获取成像组件的视角信息和拍摄方位信息并载入至透视修正算法,以确定第一光学检测图像因透视原理所造成的图像形变情况,通过透视修正算法对第一光学检测图像在不同方向上以不同的缩放比例进行缩放处理,以生成第一缩放图像,减小因透视原理造成的图像畸变;从第一缩放图像中识别图像裁剪区域,以对第一缩放图像进行裁剪处理,从而生成第一修正图像,便于后续进行图像识别对比。By adopting the above technical scheme, when the raw material is delivered to the place and before the workpiece cutting begins, the first optical detection image of the cutting surface taken by the imaging component is obtained and input into the image preprocessing model for subsequent preprocessing; the viewing angle information and shooting orientation information of the imaging component are obtained and loaded into the perspective correction algorithm to determine the image deformation caused by the perspective principle of the first optical detection image, and the first optical detection image is scaled in different directions at different scaling ratios by the perspective correction algorithm to generate a first scaled image, thereby reducing the image distortion caused by the perspective principle; the image cropping area is identified from the first scaled image to crop the first scaled image, thereby generating a first corrected image, which is convenient for subsequent image recognition and comparison.

本申请在一较佳示例中:所述基于工件形位参数从所述第一修正图像中截取阶段成品区域图像,将阶段成品区域图像与原料型号对应的原料基准图像进行对比,生成进料规范信息,当进料规范信息为合格时生成压切启动指令,包括:In a preferred example of the present application, based on the workpiece shape and position parameters, the stage finished product area image is intercepted from the first corrected image, the stage finished product area image is compared with the raw material reference image corresponding to the raw material model, and the feed specification information is generated. When the feed specification information is qualified, a press-cut start instruction is generated, including:

基于工件形位参数,以根据各工件阶段成品的边界位置确定阶段成品区域,从所述第一修正图像中截取阶段成品区域图像;Based on the shape and position parameters of the workpiece, the stage finished product area is determined according to the boundary position of the stage finished product of each workpiece, and the stage finished product area image is intercepted from the first corrected image;

基于原料型号从预设的对比图像库中匹配对应的原料基准图像;Matching a corresponding raw material reference image from a preset comparison image library based on the raw material model;

将阶段成品区域图像与原料基准图像对比,判断阶段成品区域图像中是否存在异常图像特征,若无异常图像特征,生成合格的进料规范信息,同时生成压切启动指令并发送至模切控制器;Compare the stage finished product area image with the raw material reference image to determine whether there are abnormal image features in the stage finished product area image. If there are no abnormal image features, generate qualified feeding specification information, and generate a pressing and cutting start instruction and send it to the die-cutting controller;

所述阶段成品区域图像完全覆盖阶段成品图案和阶段成品边界所在区域。The stage finished product area image completely covers the stage finished product pattern and the area where the stage finished product boundary is located.

通过采用上述技术方案,基于工件形位参数确定各工件阶段成品的边界位置,进而再确定工件阶段成品在第一修正图像中的区域,以截取阶段成品区域图像;从预设的对比图像库中匹配出符合原料型号的片状原料的图像作为原料基准图像;将阶段成品区域图像与原料基准图像进行对比,以判断阶段成品区域图像中是否存在于原料基准图像不符的异常图像特征,当未发现异常图像特征时,则认为片状原料在阶段成品区域图像质量合格,以生成合格的进料规范信息,并生成压切启动指令并发送至模切控制器,以控制模切机开始模切工作。By adopting the above technical scheme, the boundary position of each stage finished product of the workpiece is determined based on the shape and position parameters of the workpiece, and then the area of the stage finished product of the workpiece in the first corrected image is determined to intercept the stage finished product area image; the image of the sheet raw material that meets the raw material model is matched from the preset comparison image library as the raw material reference image; the stage finished product area image is compared with the raw material reference image to determine whether there are abnormal image features in the stage finished product area image that are inconsistent with the raw material reference image. When no abnormal image features are found, it is considered that the quality of the sheet raw material in the stage finished product area image is qualified, so as to generate qualified feeding specification information, and generate a pressing and cutting start instruction and send it to the die-cutting controller to control the die-cutting machine to start die-cutting work.

本申请在一较佳示例中:所述基于工件形位参数从第二修正图像中截取阶段成品图案和阶段成品边界,将阶段成品图案、阶段成品边界与加工类型对应的成品基准图像、边界基准图像进行对比,生成成品规范信息,包括:In a preferred example of the present application, the method of intercepting a stage finished product pattern and a stage finished product boundary from the second corrected image based on the workpiece shape and position parameters, comparing the stage finished product pattern and the stage finished product boundary with the finished product reference image and the boundary reference image corresponding to the processing type, and generating finished product specification information includes:

基于工件形位参数,确定第二修正图像中工件阶段成品和模切边界所在区域,以从第二修正图像中截取相应区域的图像,得到阶段成品图案和阶段成品边界;Based on the shape and position parameters of the workpiece, the area where the staged product and the die-cutting boundary of the workpiece are located in the second corrected image is determined, so as to intercept the image of the corresponding area from the second corrected image to obtain the staged product pattern and the staged product boundary;

基于已知的原料型号和加工类型,从预设的对比图像库中匹配对应的成品基准图像和边界基准图像;Based on the known raw material model and processing type, the corresponding finished product reference image and boundary reference image are matched from the preset comparison image library;

将阶段成品图案与成品基准图像对比、阶段成品边界与边界基准图像对比,若两者均无异常图像特征,生成合格的成品规范信息。The stage finished product pattern is compared with the finished product reference image, and the stage finished product boundary is compared with the boundary reference image. If there are no abnormal image features in both, qualified finished product specification information is generated.

通过采用上述技术方案,基于工件形位参数,确定第二修正图像中工件阶段成品和模切边界所在区域,以从第二修正图像中根据工件阶段成品所在区域截取阶段成品图案,根据模切边界所在区域截取阶段成品边界;基于已知的原料型号和加工类型,从对比图像库中匹配在相同工况下模切工作的成功样品的工件阶段成品图像、模切边界图像作为成品基准图像、边界基准图像;将阶段成品图案与成品基准图像对比、阶段成品边界与边界基准图像对比,以判断本次模切工作的成品质量是否合格,若两个图像对比过程中均未出现异常图像特征,则生成合格的成品规范信息,便于获知当前的工件阶段成品加工质量合格。By adopting the above technical scheme, based on the workpiece shape and position parameters, the area where the workpiece stage finished product and the die-cutting boundary are located in the second corrected image is determined, so as to intercept the stage finished product pattern according to the area where the workpiece stage finished product is located in the second corrected image, and intercept the stage finished product boundary according to the area where the die-cutting boundary is located; based on the known raw material model and processing type, the workpiece stage finished product image and the die-cutting boundary image of the successful sample of the die-cutting work under the same working conditions are matched from the comparison image library as the finished product reference image and the boundary reference image; the stage finished product pattern is compared with the finished product reference image, and the stage finished product boundary is compared with the boundary reference image to determine whether the quality of the finished product of this die-cutting work is qualified. If no abnormal image features appear in the comparison process of the two images, qualified finished product specification information is generated, so as to facilitate the understanding that the current workpiece stage finished product processing quality is qualified.

本申请的发明目的二采用如下技术方案实现:The second invention objective of this application is achieved by the following technical solution:

应用于模切机的自动光学检测系统,应用于上述任一项所述应用于模切机的自动光学检测方法,包括:An automatic optical inspection system for a die-cutting machine, applied to any of the above-mentioned automatic optical inspection methods for a die-cutting machine, comprising:

图像裁剪算法更新模块,用于确定当前加工任务的工件形位参数、原料型号、加工类型,基于工件形位参数设定当前加工任务的图像裁剪区域,以更新图像裁剪算法;An image cropping algorithm update module is used to determine the workpiece shape and position parameters, raw material model, and processing type of the current processing task, and to set the image cropping area of the current processing task based on the workpiece shape and position parameters to update the image cropping algorithm;

第一修正图像生成模块,用于在工件压切开始前,获取压切版面的第一光学检测图像并输入至预设的图像预处理模型中,进行修正和裁剪处理以生成第一修正图像;A first corrected image generation module is used to obtain a first optical detection image of the pressing and cutting surface before the workpiece pressing and cutting begins, and input it into a preset image preprocessing model to perform correction and cropping processing to generate a first corrected image;

压切启动指令生成模块,用于基于工件形位参数从所述第一修正图像中截取阶段成品区域图像,将阶段成品区域图像与原料型号对应的原料基准图像进行对比,生成进料规范信息,当进料规范信息为合格时生成压切启动指令;A pressing and cutting start instruction generating module is used to intercept a stage finished product area image from the first corrected image based on the workpiece shape and position parameters, compare the stage finished product area image with a raw material reference image corresponding to the raw material model, generate feed specification information, and generate a pressing and cutting start instruction when the feed specification information is qualified;

成品规范信息生成模块,用于在工件压切后,获取第二光学检测图像,经预处理以生成第二修正图像,基于工件形位参数从第二修正图像中截取阶段成品图案和阶段成品边界,将阶段成品图案、阶段成品边界与加工类型对应的成品基准图像、边界基准图像进行对比,生成成品规范信息;The finished product specification information generating module is used to obtain the second optical detection image after the workpiece is pressed and cut, generate the second corrected image through preprocessing, intercept the stage finished product pattern and the stage finished product boundary from the second corrected image based on the workpiece shape and position parameters, compare the stage finished product pattern and the stage finished product boundary with the finished product reference image and the boundary reference image corresponding to the processing type, and generate the finished product specification information;

所述模切机设置有用于拍摄压切版面以得到光学检测图像的成像组件;所述图像预处理模型内置有透视修正算法和图像裁剪算法。The die-cutting machine is provided with an imaging component for photographing the pressed and cut plate to obtain an optical detection image; the image preprocessing model is built with a perspective correction algorithm and an image cropping algorithm.

本申请在一较佳示例中:所述图像裁剪算法更新模块包括:In a preferred example of the present application: the image cropping algorithm update module includes:

加工任务分析子模块,用于接收加工设定信息以设定目标模切机的加工程序,基于加工设定信息确定当前加工任务的工件形位参数、原料型号、加工类型;The processing task analysis submodule is used to receive processing setting information to set the processing program of the target die-cutting machine, and determine the workpiece shape and position parameters, raw material model, and processing type of the current processing task based on the processing setting information;

图像裁剪区域设定子模块,用于基于工件形位参数确定当前加工任务的工件阶段成品的形状信息、尺寸信息和相对于压切版面的位置信息,设定当前加工任务的图像裁剪区域,以更新图像裁剪算法。The image cropping area setting submodule is used to determine the shape information, size information and position information relative to the cutting surface of the workpiece stage finished product of the current processing task based on the workpiece shape and position parameters, set the image cropping area of the current processing task, and update the image cropping algorithm.

本申请在一较佳示例中:所述第一修正图像生成模块包括:In a preferred example of the present application: the first corrected image generation module includes:

第一光学检测图像获取子模块,用于当原料输送到位,工件压切开始前,获取由成像组件拍摄的第一光学检测图像并输入至图像预处理模型中;A first optical detection image acquisition submodule is used to acquire a first optical detection image taken by the imaging component and input it into an image preprocessing model when the raw material is delivered to the site and before the workpiece pressing and cutting begins;

第一缩放图像生成子模块,用于获取成像组件的视角信息和镜头轴线相对于压切版面的拍摄方位信息并载入至透视修正算法,通过透视修正算法对第一光学检测图像在不同方向上根据不同的缩放比例进行缩放处理,生成第一缩放图像;A first zoomed image generation submodule is used to obtain the viewing angle information of the imaging component and the shooting orientation information of the lens axis relative to the pressing and cutting surface and load them into the perspective correction algorithm, and to perform zooming processing on the first optical detection image in different directions according to different zooming ratios through the perspective correction algorithm to generate a first zoomed image;

缩放图像裁剪处理子模块,用于从第一缩放图像中识别图像裁剪区域,基于图像裁剪区域对第一缩放图像进行裁剪处理,生成第一修正图像。The scaled image cropping processing submodule is used to identify an image cropping area from the first scaled image, perform cropping processing on the first scaled image based on the image cropping area, and generate a first corrected image.

本申请的发明目的三采用如下技术方案实现:The third invention objective of this application is achieved by the following technical solution:

一种计算机设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现上述应用于模切机的自动光学检测方法的步骤。A computer device comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the automatic optical detection method applied to a die-cutting machine when executing the computer program.

本申请的发明目的四采用如下技术方案实现:The fourth invention objective of this application is achieved by the following technical solution:

一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时实现上述应用于模切机的自动光学检测方法的步骤。A computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the automatic optical detection method applied to a die-cutting machine are implemented.

综上所述,本申请包括以下至少一种有益技术效果:In summary, the present application includes at least one of the following beneficial technical effects:

1.确定当前模切机加工任务的工件形位参数、原料型号、加工类型,以便后续确定图像裁剪区域,减少对无效区域进行图像识别的计算机资源消耗;在工件压切开始前,获取压切版面的第一光学检测图像并输入至图像预处理模型中,以便对第一光学检测图像进行透视修正和图像裁剪以得到第一修正图像,便于后续进行图像对比;根据工件形位参数从第一修正图像中截取阶段成品区域图像,并与原料型号对应的原料基准图像进行对比,从而生成进料规范信息,当进料规范信息为合格时再生成压切启动指令,便于在原料不合格的情况下暂停模切机的工作以排除故障;在工件压切后,获取第二光学检测图像并进行预处理以得到第二修正图像,根据工件形位参数从第二修正图像中截取阶段成品图案、阶段成品边界,并与对应的成品基准图像、边界基准图像进行对比,以生成成品规范信息,用于判断成品质量是否合格,从而提高了模切质量问题检测的及时性。1. Determine the workpiece shape and position parameters, raw material model, and processing type of the current die-cutting machine processing task, so as to subsequently determine the image cropping area and reduce the computer resource consumption for image recognition of invalid areas; before the workpiece pressing and cutting begins, obtain the first optical detection image of the pressing and cutting layout and input it into the image preprocessing model, so as to perform perspective correction and image cropping on the first optical detection image to obtain a first corrected image, which is convenient for subsequent image comparison; intercept the stage finished product area image from the first corrected image according to the workpiece shape and position parameters, and compare it with the raw material reference image corresponding to the raw material model, so as to generate feeding specification information, and when the feeding specification information is qualified, generate a pressing and cutting start instruction, so as to facilitate the suspension of the die-cutting machine in the case of unqualified raw materials to eliminate faults; after the workpiece is pressed and cut, obtain the second optical detection image and perform preprocessing to obtain the second corrected image, intercept the stage finished product pattern and stage finished product boundary from the second corrected image according to the workpiece shape and position parameters, and compare it with the corresponding finished product reference image and boundary reference image, so as to generate finished product specification information, which is used to judge whether the finished product quality is qualified, thereby improving the timeliness of die-cutting quality problem detection.

2.接收加工设定信息,以设定目标模切机的加工程序,并根据加工设定信息确定当前加工任务所对应的工件形位参数、原料型号和加工类型等信息;基于工件形位参数确定当前加工任务的工件阶段成品的形状、尺寸和其相对于压切版面的位置,进而设定当前加工任务的图像裁剪区域,以更新图像裁剪算法,便于后续使用该图像裁剪算法对压切版面拍摄的图像进行裁剪,优化图像对比效率。2. Receive processing setting information to set the processing program of the target die-cutting machine, and determine the workpiece shape and position parameters, raw material model, processing type and other information corresponding to the current processing task based on the processing setting information; determine the shape, size and position of the workpiece stage finished product of the current processing task relative to the cutting surface based on the workpiece shape and position parameters, and then set the image cropping area of the current processing task to update the image cropping algorithm, so as to facilitate the subsequent use of the image cropping algorithm to crop the image taken from the cutting surface and optimize the image comparison efficiency.

3.当原料输送到位且工件压切开始前,获取由成像组件拍摄的压切版面的第一光学检测图像并输入至图像预处理模型中以便后续进行预处理;获取成像组件的视角信息和拍摄方位信息并载入至透视修正算法,以确定第一光学检测图像因透视原理所造成的图像形变情况,通过透视修正算法对第一光学检测图像在不同方向上以不同的缩放比例进行缩放处理,以生成第一缩放图像,减小因透视原理造成的图像畸变;从第一缩放图像中识别图像裁剪区域,以对第一缩放图像进行裁剪处理,从而生成第一修正图像,便于后续进行图像识别对比。3. When the raw material is delivered to the site and before the workpiece cutting begins, the first optical detection image of the cutting surface taken by the imaging component is obtained and input into the image preprocessing model for subsequent preprocessing; the viewing angle information and shooting orientation information of the imaging component are obtained and loaded into the perspective correction algorithm to determine the image deformation caused by the perspective principle of the first optical detection image, and the first optical detection image is scaled in different directions at different scaling ratios through the perspective correction algorithm to generate a first scaled image to reduce the image distortion caused by the perspective principle; the image cropping area is identified from the first scaled image to crop the first scaled image, thereby generating a first corrected image to facilitate subsequent image recognition and comparison.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

图1是本申请实施例一中应用于模切机的自动光学检测方法的流程图。FIG. 1 is a flow chart of an automatic optical detection method applied to a die-cutting machine in Embodiment 1 of the present application.

图2是本申请实施例二中应用于模切机的自动光学检测系统的一原理框图。FIG. 2 is a principle block diagram of an automatic optical inspection system applied to a die-cutting machine in a second embodiment of the present application.

图3是本申请实施例三中的设备示意图。FIG3 is a schematic diagram of the equipment in Example 3 of the present application.

具体实施方式DETAILED DESCRIPTION

以下结合附图1至3对本申请作进一步详细说明。The present application is further described in detail below in conjunction with Figures 1 to 3.

实施例一Embodiment 1

参照图1,本申请公开一种应用于模切机的自动光学检测方法,具体包括如下步骤:Referring to FIG. 1 , the present application discloses an automatic optical detection method applied to a die-cutting machine, which specifically includes the following steps:

S10:确定当前加工任务的工件形位参数、原料型号、加工类型,基于工件形位参数设定当前加工任务的图像裁剪区域,以更新图像裁剪算法。S10: Determine the workpiece shape and position parameters, material model, and processing type of the current processing task, and set the image cropping area of the current processing task based on the workpiece shape and position parameters to update the image cropping algorithm.

在本实施例中,一个加工任务是指一种工件阶段成品的生产任务;工件阶段成品是指当前加工任务工序所对应的成品;工件形位参数包括工件阶段成品的形状参数、尺寸参数和工件阶段成品相对于模切机加工版面的位置参数。In this embodiment, a processing task refers to a production task of a workpiece stage finished product; the workpiece stage finished product refers to the finished product corresponding to the current processing task process; the workpiece shape and position parameters include the shape parameters, size parameters and position parameters of the workpiece stage finished product relative to the die-cutting machine processing surface.

具体地,确定当前模切机加工任务的工件形位参数、原料型号、加工类型,以便后续确定图像裁剪区域,减少对无效区域进行图像识别的计算机资源消耗。Specifically, the workpiece shape and position parameters, raw material model, and processing type of the current die-cutting machine processing task are determined so as to subsequently determine the image cropping area and reduce the computer resource consumption for image recognition of invalid areas.

其中,在步骤S10中,包括:Wherein, in step S10, it includes:

S11:接收加工设定信息以设定目标模切机的加工程序,基于加工设定信息确定当前加工任务的工件形位参数、原料型号、加工类型。S11: receiving processing setting information to set the processing program of the target die-cutting machine, and determining the workpiece shape and position parameters, raw material model, and processing type of the current processing task based on the processing setting information.

在本实施例中,加工设定信息是指由模切机的操作人员向模切机输入的用于设定模切机加工程序,以控制模切机工作的信息,包括工件形位参数、原料型号、加工类型;原料型号是指加工任务对应所需使用原料的型号,具体可以是由材质、尺寸、外观等特征信息构成;加工类型是指模切机的工作模式,包括裁切、压痕、贴合、烫印等。In this embodiment, processing setting information refers to information input by the operator of the die-cutting machine to the die-cutting machine for setting the die-cutting machine processing program to control the operation of the die-cutting machine, including workpiece shape and position parameters, raw material model, and processing type; raw material model refers to the model of the raw material required to correspond to the processing task, which may be specifically composed of characteristic information such as material, size, and appearance; processing type refers to the working mode of the die-cutting machine, including cutting, creasing, laminating, hot stamping, etc.

具体地,接收加工设定信息,以设定目标模切机的加工程序,并根据加工设定信息确定当前加工任务所对应的工件形位参数、原料型号和加工类型等信息,便于后续匹配对应的对比图像和质量判断规则。Specifically, the processing setting information is received to set the processing program of the target die-cutting machine, and the workpiece shape and position parameters, raw material model and processing type corresponding to the current processing task are determined according to the processing setting information, so as to facilitate the subsequent matching of the corresponding comparison images and quality judgment rules.

S12:基于工件形位参数确定当前加工任务的工件阶段成品的形状信息、尺寸信息和相对于压切版面的位置信息,设定当前加工任务的图像裁剪区域,以更新图像裁剪算法。S12: determining the shape information, size information and position information relative to the cutting surface of the finished product of the workpiece stage of the current processing task based on the workpiece shape and position parameters, setting the image cropping area of the current processing task to update the image cropping algorithm.

具体地,基于工件形位参数确定当前加工任务的工件阶段成品的形状、尺寸和其相对于压切版面的位置,进而设定当前加工任务的图像裁剪区域,以更新图像裁剪算法,便于后续使用该图像裁剪算法对压切版面拍摄的图像进行裁剪,优化图像对比效率。Specifically, the shape, size and position of the finished workpiece stage of the current processing task relative to the cutting surface are determined based on the workpiece shape and position parameters, and then the image cropping area of the current processing task is set to update the image cropping algorithm, so as to facilitate the subsequent use of the image cropping algorithm to crop the images taken on the cutting surface and optimize the image comparison efficiency.

S20:在工件压切开始前,获取压切版面的第一光学检测图像并输入至预设的图像预处理模型中,进行修正和裁剪处理以生成第一修正图像。S20: Before the workpiece cutting begins, a first optical detection image of the cutting surface is obtained and input into a preset image preprocessing model, and correction and cropping are performed to generate a first corrected image.

在本实施例中,模切机设置有用于拍摄压切版面以得到光学检测图像的成像组件;图像预处理模型内置有透视修正算法和图像裁剪算法,用于对模切机成像组件所拍摄的图像进行预处理。In this embodiment, the die-cutting machine is provided with an imaging component for photographing the pressed and cut plate to obtain an optical detection image; the image preprocessing model has a built-in perspective correction algorithm and an image cropping algorithm for preprocessing the image photographed by the die-cutting machine imaging component.

具体地,在工件压切开始前,获取压切版面的第一光学检测图像并输入至图像预处理模型中,以便对第一光学检测图像进行透视修正和图像裁剪以得到第一修正图像,便于后续进行图像对比。Specifically, before the workpiece cutting begins, a first optical detection image of the cutting surface is acquired and input into an image preprocessing model so as to perform perspective correction and image cropping on the first optical detection image to obtain a first corrected image for subsequent image comparison.

其中,在步骤S20中,包括:Wherein, in step S20, it includes:

S21:当原料输送到位,工件压切开始前,获取由成像组件拍摄的第一光学检测图像并输入至图像预处理模型中。S21: When the raw material is delivered to the right place and before the workpiece cutting begins, a first optical detection image taken by the imaging component is acquired and input into the image preprocessing model.

具体地,当原料输送到位且工件压切开始前,获取由成像组件拍摄的压切版面的第一光学检测图像并输入至图像预处理模型中以便后续进行预处理。Specifically, when the raw material is delivered to the desired position and before the workpiece cutting begins, a first optical detection image of the cutting surface captured by the imaging component is acquired and input into the image preprocessing model for subsequent preprocessing.

S22:获取成像组件的视角信息和镜头轴线相对于压切版面的拍摄方位信息并载入至透视修正算法,通过透视修正算法对第一光学检测图像在不同方向上根据不同的缩放比例进行缩放处理,生成第一缩放图像。S22: Obtain the viewing angle information of the imaging component and the shooting orientation information of the lens axis relative to the cut surface and load them into the perspective correction algorithm, and use the perspective correction algorithm to scale the first optical detection image in different directions according to different scaling ratios to generate a first scaled image.

在本实施例中,压切版面是指模切机上用于放置原料、成品等片状材料的平面;拍摄方位信息具体包括成像组件的成像视锥参数、镜头轴线与压切版面的相对位置、相对方向参数;第一缩放图像是指对光学检测图像进行了透视修正处理后生成的图像。In this embodiment, the die-cutting surface refers to the plane on the die-cutting machine used to place raw materials, finished products and other sheet materials; the shooting orientation information specifically includes the imaging cone parameters of the imaging component, the relative position and relative direction parameters of the lens axis and the die-cutting surface; the first zoomed image refers to the image generated after the optical detection image is perspective corrected.

具体地,获取成像组件的视角信息和拍摄方位信息并载入至透视修正算法,以确定第一光学检测图像因透视原理所造成的图像形变情况,通过透视修正算法对第一光学检测图像在不同方向上以不同的缩放比例进行缩放处理,以生成第一缩放图像,减小因透视原理造成的图像畸变。Specifically, the viewing angle information and shooting orientation information of the imaging component are obtained and loaded into the perspective correction algorithm to determine the image deformation of the first optical detection image caused by the perspective principle. The first optical detection image is scaled in different directions at different scaling ratios through the perspective correction algorithm to generate a first scaled image, thereby reducing the image distortion caused by the perspective principle.

S23:从第一缩放图像中识别图像裁剪区域,基于图像裁剪区域对第一缩放图像进行裁剪处理,生成第一修正图像。S23: identifying an image cropping region from the first zoomed image, and performing cropping processing on the first zoomed image based on the image cropping region to generate a first corrected image.

在本实施例中,第一修正图像是指对第一缩放图像进行了图像裁剪处理后生成的图像。In this embodiment, the first corrected image refers to an image generated after performing image cropping processing on the first zoomed image.

具体地,从第一缩放图像中识别图像裁剪区域,以对第一缩放图像进行裁剪处理,从而生成第一修正图像,便于后续进行图像识别对比。Specifically, an image cropping region is identified from the first zoomed image to perform cropping processing on the first zoomed image, thereby generating a first corrected image to facilitate subsequent image recognition and comparison.

S30:基于工件形位参数从所述第一修正图像中截取阶段成品区域图像,将阶段成品区域图像与原料型号对应的原料基准图像进行对比,生成进料规范信息,当进料规范信息为合格时生成压切启动指令。S30: based on the workpiece shape and position parameters, a stage finished product area image is intercepted from the first corrected image, the stage finished product area image is compared with the raw material reference image corresponding to the raw material model, and feeding specification information is generated. When the feeding specification information is qualified, a pressing and cutting start instruction is generated.

在本实施例中,原料基准图像是指根据品质合格的原料在模切机上拍摄所得到的图像,用于后续判断实际加工过程中供应的原料是否存在脏污、破损、错误等问题;压切启动指令是指用于发送至模切机以控制模切机执行压切工作的指令。In this embodiment, the raw material reference image refers to the image obtained by photographing the qualified raw material on the die-cutting machine, which is used to subsequently determine whether the raw material supplied in the actual processing process is dirty, damaged, erroneous, etc.; the pressing and cutting start instruction refers to the instruction sent to the die-cutting machine to control the die-cutting machine to perform pressing and cutting.

具体地,根据工件形位参数从第一修正图像中截取阶段成品区域图像,并与原料型号对应的原料基准图像进行对比,从而生成进料规范信息,当进料规范信息为合格时再生成压切启动指令,便于在原料不合格的情况下暂停模切机的工作以排除故障。Specifically, the finished product area image is captured from the first corrected image based on the workpiece shape and position parameters, and compared with the raw material reference image corresponding to the raw material model, so as to generate feeding specification information. When the feeding specification information is qualified, the pressing and cutting start instruction is generated, so as to suspend the operation of the die-cutting machine to troubleshoot the problem when the raw material is unqualified.

其中,在步骤S30中,包括:Wherein, in step S30, it includes:

S31:基于工件形位参数,以根据各工件阶段成品的边界位置确定阶段成品区域,从所述第一修正图像中截取阶段成品区域图像。S31: Based on the shape and position parameters of the workpiece, the stage finished product area is determined according to the boundary position of each stage finished product of the workpiece, and the stage finished product area image is intercepted from the first corrected image.

在本实施例中,阶段成品区域图像完全覆盖阶段成品图案和阶段成品边界所在区域。In this embodiment, the staged finished product area image completely covers the staged finished product pattern and the area where the staged finished product boundary is located.

具体地,基于工件形位参数确定各工件阶段成品的边界位置,进而再确定工件阶段成品在第一修正图像中的区域,以截取阶段成品区域图像。Specifically, the boundary position of each stage product of the workpiece is determined based on the workpiece shape and position parameters, and then the area of the stage product of the workpiece in the first corrected image is determined to intercept the stage product area image.

S32:基于原料型号从预设的对比图像库中匹配对应的原料基准图像。S32: Matching a corresponding raw material reference image from a preset comparison image library based on the raw material model.

在本实施例中,对比图像库是指用于存储各类基准图像的数据库,以作为图像对比的标准图像。In this embodiment, the comparison image library refers to a database for storing various reference images as standard images for image comparison.

具体地,从预设的对比图像库中匹配出符合原料型号的片状原料的图像作为原料基准图像。Specifically, an image of a sheet material that meets the material model is matched from a preset comparison image library as a material reference image.

S33:将阶段成品区域图像与原料基准图像对比,判断阶段成品区域图像中是否存在异常图像特征,若无异常图像特征,生成合格的进料规范信息,同时生成压切启动指令并发送至模切控制器。S33: Compare the stage finished product area image with the raw material reference image to determine whether there are abnormal image features in the stage finished product area image. If there are no abnormal image features, generate qualified feeding specification information and generate a pressing and cutting start instruction and send it to the die-cutting controller.

具体地,将阶段成品区域图像与原料基准图像进行对比,以判断阶段成品区域图像中是否存在于原料基准图像不符的异常图像特征,当未发现异常图像特征时,则认为片状原料在阶段成品区域图像质量合格,以生成合格的进料规范信息,并生成压切启动指令并发送至模切控制器,以控制模切机开始模切工作。Specifically, the stage finished product area image is compared with the raw material reference image to determine whether there are abnormal image features in the stage finished product area image that are inconsistent with the raw material reference image. When no abnormal image features are found, it is considered that the image quality of the sheet raw material in the stage finished product area is qualified, so as to generate qualified feeding specification information, and generate a pressing and cutting start instruction and send it to the die-cutting controller to control the die-cutting machine to start die-cutting work.

S40:在工件压切后,获取第二光学检测图像,经预处理以生成第二修正图像,基于工件形位参数从第二修正图像中截取阶段成品图案和阶段成品边界,将阶段成品图案、阶段成品边界与加工类型对应的成品基准图像、边界基准图像进行对比,生成成品规范信息。S40: After the workpiece is pressed and cut, a second optical detection image is obtained, which is preprocessed to generate a second corrected image. The stage finished product pattern and the stage finished product boundary are intercepted from the second corrected image based on the workpiece shape and position parameters. The stage finished product pattern and the stage finished product boundary are compared with the finished product reference image and the boundary reference image corresponding to the processing type to generate finished product specification information.

在本实施例中,第二光学检测图像、第二修正图像的获取方式与第一光学检测图像、第一修正图像相同。In this embodiment, the second optical detection image and the second corrected image are acquired in the same manner as the first optical detection image and the first corrected image.

具体地,在工件压切后,获取压切版面的第二光学检测图像并输入至预设的图像预处理模型中进行透视修正、图像裁剪等预处理以得到第二修正图像,根据工件形位参数从第二修正图像中截取阶段成品图案、阶段成品边界,并与对应的成品基准图像、边界基准图像进行对比,以生成成品规范信息,用于判断成品质量是否合格,从而提高了模切质量问题检测的及时性。Specifically, after the workpiece is press-cut, a second optical inspection image of the press-cut surface is obtained and input into a preset image preprocessing model for perspective correction, image cropping and other preprocessing to obtain a second corrected image. The stage finished product pattern and stage finished product boundary are intercepted from the second corrected image according to the workpiece shape and position parameters, and compared with the corresponding finished product reference image and boundary reference image to generate finished product specification information for judging whether the finished product quality is qualified, thereby improving the timeliness of die-cutting quality problem detection.

其中,在步骤S40中,包括:Wherein, in step S40, it includes:

S41:基于工件形位参数,确定第二修正图像中工件阶段成品和模切边界所在区域,以从第二修正图像中截取相应区域的图像,得到阶段成品图案和阶段成品边界。S41: Based on the shape and position parameters of the workpiece, determine the area where the staged product and the die-cutting boundary of the workpiece are located in the second corrected image, so as to intercept the image of the corresponding area from the second corrected image to obtain the staged product pattern and the staged product boundary.

具体地,基于工件形位参数,确定第二修正图像中工件阶段成品和模切边界所在区域,以从第二修正图像中根据工件阶段成品所在区域截取阶段成品图案,根据模切边界所在区域截取阶段成品边界。Specifically, based on the workpiece shape and position parameters, the areas where the workpiece stage finished product and the die-cutting boundary are located in the second corrected image are determined, so as to intercept the stage finished product pattern according to the area where the workpiece stage finished product is located in the second corrected image, and intercept the stage finished product boundary according to the area where the die-cutting boundary is located.

S42:基于已知的原料型号和加工类型,从预设的对比图像库中匹配对应的成品基准图像和边界基准图像。S42: Based on the known raw material model and processing type, the corresponding finished product reference image and boundary reference image are matched from a preset comparison image library.

在本实施例中,成品基准图像、边界基准图像具体可以是从成功产出的工件阶段成品的图像中截取得到。In this embodiment, the finished product reference image and the boundary reference image may be specifically obtained by capturing an image of a successfully produced finished product at the workpiece stage.

具体地,基于已知的原料型号和加工类型,从对比图像库中匹配在相同工况下模切工作的成功样品的工件阶段成品图像、模切边界图像作为成品基准图像、边界基准图像。Specifically, based on the known raw material model and processing type, the workpiece stage finished product image and the die-cutting boundary image of the successful sample die-cutting under the same working conditions are matched from the comparison image library as the finished product reference image and the boundary reference image.

S43:将阶段成品图案与成品基准图像对比、阶段成品边界与边界基准图像对比,若两者均无异常图像特征,生成合格的成品规范信息。S43: Compare the stage finished product pattern with the finished product reference image, and compare the stage finished product boundary with the boundary reference image. If there are no abnormal image features in both, generate qualified finished product specification information.

具体地,将阶段成品图案与成品基准图像对比、阶段成品边界与边界基准图像对比,以判断本次模切工作的成品质量是否合格,若两个图像对比过程中均未出现异常图像特征,则生成合格的成品规范信息,便于获知当前的工件阶段成品加工质量合格。Specifically, the stage finished product pattern is compared with the finished product reference image, and the stage finished product boundary is compared with the boundary reference image to determine whether the quality of the finished product of this die-cutting work is qualified. If no abnormal image features appear during the comparison of the two images, qualified finished product specification information is generated, which makes it easy to know whether the current workpiece stage finished product processing quality is qualified.

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

实施例二Embodiment 2

一种应用于模切机的自动光学检测系统,该应用于模切机的自动光学检测系统与上述实施例中应用于模切机的自动光学检测方法相对应。An automatic optical detection system applied to a die-cutting machine corresponds to the automatic optical detection method applied to the die-cutting machine in the above embodiment.

如图2所示,应用于模切机的自动光学检测系统,包括图像裁剪算法更新模块、第一修正图像生成模块、压切启动指令生成模块和成品规范信息生成模块。各功能模块的详细说明如下:As shown in Figure 2, the automatic optical inspection system applied to the die-cutting machine includes an image cropping algorithm update module, a first correction image generation module, a pressing and cutting start instruction generation module, and a finished product specification information generation module. The detailed description of each functional module is as follows:

图像裁剪算法更新模块,用于确定当前加工任务的工件形位参数、原料型号、加工类型,基于工件形位参数设定当前加工任务的图像裁剪区域,以更新图像裁剪算法;An image cropping algorithm update module is used to determine the workpiece shape and position parameters, raw material model, and processing type of the current processing task, and to set the image cropping area of the current processing task based on the workpiece shape and position parameters to update the image cropping algorithm;

第一修正图像生成模块,用于在工件压切开始前,获取压切版面的第一光学检测图像并输入至预设的图像预处理模型中,进行修正和裁剪处理以生成第一修正图像;A first corrected image generation module is used to obtain a first optical detection image of the pressing and cutting surface before the workpiece pressing and cutting begins, and input it into a preset image preprocessing model to perform correction and cropping processing to generate a first corrected image;

压切启动指令生成模块,用于基于工件形位参数从所述第一修正图像中截取阶段成品区域图像,将阶段成品区域图像与原料型号对应的原料基准图像进行对比,生成进料规范信息,当进料规范信息为合格时生成压切启动指令;A pressing and cutting start instruction generating module is used to intercept a stage finished product area image from the first corrected image based on the workpiece shape and position parameters, compare the stage finished product area image with a raw material reference image corresponding to the raw material model, generate feed specification information, and generate a pressing and cutting start instruction when the feed specification information is qualified;

成品规范信息生成模块,用于在工件压切后,获取第二光学检测图像,经预处理以生成第二修正图像,基于工件形位参数从第二修正图像中截取阶段成品图案和阶段成品边界,将阶段成品图案、阶段成品边界与加工类型对应的成品基准图像、边界基准图像进行对比,生成成品规范信息。The module for generating finished product specification information is used to obtain a second optical detection image after the workpiece is pressed and cut, generate a second corrected image through preprocessing, extract the stage finished product pattern and stage finished product boundary from the second corrected image based on the workpiece shape and position parameters, compare the stage finished product pattern and stage finished product boundary with the finished product reference image and boundary reference image corresponding to the processing type, and generate finished product specification information.

其中,图像裁剪算法更新模块还包括:Among them, the image cropping algorithm update module also includes:

加工任务分析子模块,用于接收加工设定信息以设定目标模切机的加工程序,基于加工设定信息确定当前加工任务的工件形位参数、原料型号、加工类型;The processing task analysis submodule is used to receive processing setting information to set the processing program of the target die-cutting machine, and determine the workpiece shape and position parameters, raw material model, and processing type of the current processing task based on the processing setting information;

图像裁剪区域设定子模块,用于基于工件形位参数确定当前加工任务的工件阶段成品的形状信息、尺寸信息和相对于压切版面的位置信息,设定当前加工任务的图像裁剪区域,以更新图像裁剪算法。The image cropping area setting submodule is used to determine the shape information, size information and position information relative to the cutting surface of the workpiece stage finished product of the current processing task based on the workpiece shape and position parameters, set the image cropping area of the current processing task, and update the image cropping algorithm.

其中,第一修正图像生成模块还包括:Wherein, the first corrected image generation module further includes:

第一光学检测图像获取子模块,用于当原料输送到位,工件压切开始前,获取由成像组件拍摄的第一光学检测图像并输入至图像预处理模型中;A first optical detection image acquisition submodule is used to acquire a first optical detection image taken by the imaging component and input it into an image preprocessing model when the raw material is delivered to the site and before the workpiece pressing and cutting begins;

第一缩放图像生成子模块,用于获取成像组件的视角信息和镜头轴线相对于压切版面的拍摄方位信息并载入至透视修正算法,通过透视修正算法对第一光学检测图像在不同方向上根据不同的缩放比例进行缩放处理,生成第一缩放图像;A first zoomed image generation submodule is used to obtain the viewing angle information of the imaging component and the shooting orientation information of the lens axis relative to the pressing and cutting surface and load them into the perspective correction algorithm, and to perform zooming processing on the first optical detection image in different directions according to different zooming ratios through the perspective correction algorithm to generate a first zoomed image;

缩放图像裁剪处理子模块,用于从第一缩放图像中识别图像裁剪区域,基于图像裁剪区域对第一缩放图像进行裁剪处理,生成第一修正图像。The scaled image cropping processing submodule is used to identify an image cropping area from the first scaled image, perform cropping processing on the first scaled image based on the image cropping area, and generate a first corrected image.

其中,压切启动指令生成模块还包括:The pressure cutting start instruction generation module also includes:

阶段成品区域图像截取子模块,用于基于工件形位参数,以根据各工件阶段成品的边界位置确定阶段成品区域,从所述第一修正图像中截取阶段成品区域图像;The submodule for capturing the image of the stage finished product area is used to determine the stage finished product area according to the boundary position of each stage finished product of each workpiece based on the shape and position parameters of the workpiece, and to capture the image of the stage finished product area from the first corrected image;

原料基准图像匹配子模块,用于基于原料型号从预设的对比图像库中匹配对应的原料基准图像;A raw material reference image matching submodule, used to match the corresponding raw material reference image from a preset comparison image library based on the raw material model;

进料规范信息生成子模块,用于将阶段成品区域图像与原料基准图像对比,判断阶段成品区域图像中是否存在异常图像特征,若无异常图像特征,生成合格的进料规范信息,同时生成压切启动指令并发送至模切控制器。The feed specification information generation submodule is used to compare the stage finished product area image with the raw material reference image to determine whether there are abnormal image features in the stage finished product area image. If there are no abnormal image features, qualified feed specification information is generated, and a pressing and cutting start instruction is generated and sent to the die-cutting controller.

其中,成品规范信息生成模块还包括:Among them, the finished product specification information generation module also includes:

第二修正图像处理子模块,用于基于工件形位参数,确定第二修正图像中工件阶段成品和模切边界所在区域,以从第二修正图像中截取相应区域的图像,得到阶段成品图案和阶段成品边界;The second corrected image processing submodule is used to determine the area where the staged product and the die-cutting boundary of the workpiece are located in the second corrected image based on the shape and position parameters of the workpiece, so as to intercept the image of the corresponding area from the second corrected image to obtain the staged product pattern and the staged product boundary;

成品基准图像匹配子模块,用于基于已知的原料型号和加工类型,从预设的对比图像库中匹配对应的成品基准图像和边界基准图像;A finished product reference image matching submodule is used to match the corresponding finished product reference image and boundary reference image from a preset comparison image library based on the known raw material model and processing type;

成品图像对比子模块,用于将阶段成品图案与成品基准图像对比、阶段成品边界与边界基准图像对比,若两者均无异常图像特征,生成合格的成品规范信息。The finished product image comparison submodule is used to compare the stage finished product pattern with the finished product reference image, and the stage finished product boundary with the boundary reference image. If there are no abnormal image features in both, qualified finished product specification information is generated.

关于应用于模切机的自动光学检测系统的具体限定可以参见上文中对于应用于模切机的自动光学检测方法的限定,在此不再赘述;上述应用于模切机的自动光学检测系统中的各个模块可全部或部分通过软件、硬件及其组合来实现;上述各模块可以硬件形式内嵌于或独立于计算机设备中的处理器中,也可以是以软件形式存储于计算机设备中的存储器中,以便于处理器调用执行以上各个模块对应的操作。For the specific limitations on the automatic optical inspection system applied to the die-cutting machine, please refer to the limitations on the automatic optical inspection method applied to the die-cutting machine in the above text, which will not be repeated here; the various modules in the above-mentioned automatic optical inspection system applied to the die-cutting machine can be fully or partially implemented by software, hardware and their combination; the above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the corresponding operations of the above modules.

实施例三Embodiment 3

一种计算机设备,该计算机设备可以是服务器,其内部结构图可以如图3所示。该计算机设备包括通过系统总线连接的处理器、存储器、网络接口和数据库。其中,该计算机设备的处理器用于提供计算和控制能力。该计算机设备的存储器包括非易失性存储介质、内存储器。该非易失性存储介质存储有操作系统、计算机程序和数据库。该内存储器为非易失性存储介质中的操作系统和计算机程序的运行提供环境。该计算机设备的数据库用于存储工件形位参数、原料型号、加工类型、图像裁剪算法、第一光学检测图像、图像预处理模型、第一修正图像、阶段成品区域图像、原料基准图像、进料规范信息、压切启动指令、第二光学检测图像、第二修正图像、阶段成品图案、阶段成品边界、成品基准图像、边界基准图像和成品规范信息等数据。该计算机设备的网络接口用于与外部的终端通过网络连接通信。该计算机程序被处理器执行时以实现应用于模切机的自动光学检测方法。A computer device, which may be a server, and its internal structure diagram may be shown in FIG3. The computer device includes a processor, a memory, a network interface and a database connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data such as workpiece shape and position parameters, raw material model, processing type, image clipping algorithm, first optical detection image, image preprocessing model, first correction image, stage finished product area image, raw material reference image, feeding specification information, pressing and cutting start instruction, second optical detection image, second correction image, stage finished product pattern, stage finished product boundary, finished product reference image, boundary reference image and finished product specification information. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, an automatic optical detection method applied to a die-cutting machine is implemented.

在一个实施例中,提供了一种计算机设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,处理器执行计算机程序时实现以下步骤:In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the following steps when executing the computer program:

S10:确定当前加工任务的工件形位参数、原料型号、加工类型,基于工件形位参数设定当前加工任务的图像裁剪区域,以更新图像裁剪算法;S10: determining the workpiece shape and position parameters, raw material model, and processing type of the current processing task, and setting the image cropping area of the current processing task based on the workpiece shape and position parameters to update the image cropping algorithm;

S20:在工件压切开始前,获取压切版面的第一光学检测图像并输入至预设的图像预处理模型中,进行修正和裁剪处理以生成第一修正图像;S20: before the workpiece cutting starts, a first optical detection image of the cutting surface is obtained and input into a preset image preprocessing model, and correction and cropping are performed to generate a first corrected image;

S30:基于工件形位参数从所述第一修正图像中截取阶段成品区域图像,将阶段成品区域图像与原料型号对应的原料基准图像进行对比,生成进料规范信息,当进料规范信息为合格时生成压切启动指令;S30: intercepting a stage finished product area image from the first corrected image based on the workpiece shape and position parameters, comparing the stage finished product area image with a raw material reference image corresponding to the raw material model, generating feed specification information, and generating a press-cut start instruction when the feed specification information is qualified;

S40:在工件压切后,获取第二光学检测图像,经预处理以生成第二修正图像,基于工件形位参数从第二修正图像中截取阶段成品图案和阶段成品边界,将阶段成品图案、阶段成品边界与加工类型对应的成品基准图像、边界基准图像进行对比,生成成品规范信息。S40: After the workpiece is pressed and cut, a second optical detection image is obtained, which is preprocessed to generate a second corrected image. The stage finished product pattern and the stage finished product boundary are intercepted from the second corrected image based on the workpiece shape and position parameters. The stage finished product pattern and the stage finished product boundary are compared with the finished product reference image and the boundary reference image corresponding to the processing type to generate finished product specification information.

在一个实施例中,提供了一种计算机可读存储介质,其上存储有计算机程序,计算机程序被处理器执行时实现以下步骤:In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:

S10:确定当前加工任务的工件形位参数、原料型号、加工类型,基于工件形位参数设定当前加工任务的图像裁剪区域,以更新图像裁剪算法;S10: determining the workpiece shape and position parameters, raw material model, and processing type of the current processing task, and setting the image cropping area of the current processing task based on the workpiece shape and position parameters to update the image cropping algorithm;

S20:在工件压切开始前,获取压切版面的第一光学检测图像并输入至预设的图像预处理模型中,进行修正和裁剪处理以生成第一修正图像;S20: before the workpiece cutting starts, a first optical detection image of the cutting surface is obtained and input into a preset image preprocessing model, and correction and cropping are performed to generate a first corrected image;

S30:基于工件形位参数从所述第一修正图像中截取阶段成品区域图像,将阶段成品区域图像与原料型号对应的原料基准图像进行对比,生成进料规范信息,当进料规范信息为合格时生成压切启动指令;S30: intercepting a stage finished product area image from the first corrected image based on the workpiece shape and position parameters, comparing the stage finished product area image with a raw material reference image corresponding to the raw material model, generating feed specification information, and generating a press-cut start instruction when the feed specification information is qualified;

S40:在工件压切后,获取第二光学检测图像,经预处理以生成第二修正图像,基于工件形位参数从第二修正图像中截取阶段成品图案和阶段成品边界,将阶段成品图案、阶段成品边界与加工类型对应的成品基准图像、边界基准图像进行对比,生成成品规范信息。S40: After the workpiece is pressed and cut, a second optical detection image is obtained, which is preprocessed to generate a second corrected image. The stage finished product pattern and the stage finished product boundary are intercepted from the second corrected image based on the workpiece shape and position parameters. The stage finished product pattern and the stage finished product boundary are compared with the finished product reference image and the boundary reference image corresponding to the processing type to generate finished product specification information.

本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一非易失性计算机可读取存储介质中,该计算机程序在执行时,可包括如上述各方法的实施例的流程。其中,本申请所提供的各实施例中所使用的对存储器、存储、数据库或其它介质的任何引用,均可包括非易失性和/或易失性存储器。非易失性存储器可包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM)或者外部高速缓冲存储器。作为说明而非局限,RAM以多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双数据率SDRAM(DDRSDRAM)、增强型SDRAM(ESDRAM)、同步链路(Synchlink)、DRAM(SLDRAM)、存储器总线(Rambus)直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存储器总线动态RAM(RDRAM)等。Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in the present application can include non-volatile and/or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink), DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,仅以上述各功能单元、模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能单元、模块完成,即将所述装置的内部结构划分成不同的功能单元或模块,以完成以上描述的全部或者部分功能。Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example. In actual applications, the above-mentioned functions can be distributed and completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above.

以上所述实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域普通技术人员应当理解;其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围,均应包含在本申请的保护范围之内。The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, it should be understood by those skilled in the art that the technical solutions described in the aforementioned embodiments may still be modified, or some of the features thereof may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

Claims (10)

1. The automatic optical detection method applied to the die cutting machine is characterized by comprising the following steps of:
Determining workpiece shape and position parameters, raw material model and processing type of a current processing task, and setting an image cutting area of the current processing task based on the workpiece shape and position parameters so as to update an image cutting algorithm;
Before the workpiece is pressed and cut, a first optical detection image of a pressing and cutting plate surface is obtained and input into a preset image preprocessing model, and correction and cutting processing are carried out to generate a first correction image;
Intercepting a stage finished product area image from the first corrected image based on the workpiece shape and position parameters, comparing the stage finished product area image with a raw material reference image corresponding to the raw material model, generating feeding specification information, and generating a press cutting starting instruction when the feeding specification information is qualified;
After the workpiece is pressed and cut, a second optical detection image is obtained, a second correction image is generated through preprocessing, a stage finished product pattern and a stage finished product boundary are intercepted from the second correction image based on the workpiece shape and position parameters, and the stage finished product pattern and the stage finished product boundary are compared with a finished product reference image and a boundary reference image corresponding to the processing type to generate finished product specification information;
The die cutting machine is provided with an imaging component for shooting the press-cut surface to obtain an optical detection image; the image preprocessing model is internally provided with a perspective correction algorithm and an image clipping algorithm.
2. The automatic optical inspection method applied to a die cutting machine according to claim 1, wherein: the determining of the workpiece shape and position parameter, the raw material model and the processing type of the current processing task, setting the image clipping area of the current processing task based on the workpiece shape and position parameter so as to update the image clipping algorithm, and the method comprises the following steps:
receiving processing setting information to set a processing program of a target die-cutting machine, and determining workpiece shape and position parameters, raw material models and processing types of a current processing task based on the processing setting information;
And determining the shape information, the size information and the position information of a finished product at the workpiece stage of the current processing task relative to the press layout on the basis of the workpiece shape and position parameters, and setting an image cutting area of the current processing task so as to update an image cutting algorithm.
3. The automatic optical inspection method applied to a die cutting machine according to claim 1, wherein: before the workpiece is pressed and cut, a first optical detection image of a pressing and cutting plate surface is acquired and input into a preset image preprocessing model, and correction and cutting processing are carried out to generate a first correction image, wherein the method comprises the following steps of:
When the raw materials are conveyed in place, a first optical detection image shot by an imaging assembly is acquired and input into an image preprocessing model before the workpiece is pressed and cut;
Acquiring visual angle information of an imaging assembly and shooting azimuth information of a lens axis relative to a press-cut panel, loading the visual angle information and the shooting azimuth information into a perspective correction algorithm, and performing scaling processing on a first optical detection image in different directions according to different scaling ratios through the perspective correction algorithm to generate a first scaled image;
An image cropping area is identified from the first scaled image, cropping processing is performed on the first scaled image based on the image cropping area, and a first corrected image is generated.
4. The automatic optical inspection method applied to a die cutting machine according to claim 1, wherein: intercepting a stage finished product area image from the first corrected image based on workpiece shape and position parameters, comparing the stage finished product area image with a raw material reference image corresponding to a raw material model, generating feeding specification information, and generating a pressing and cutting starting instruction when the feeding specification information is qualified, wherein the method comprises the following steps:
based on the workpiece shape and position parameters, determining a stage finished product area according to the boundary position of each workpiece stage finished product, and intercepting a stage finished product area image from the first corrected image;
matching corresponding raw material reference images from a preset comparison image library based on the raw material model;
Comparing the stage finished product area image with the raw material reference image, judging whether abnormal image features exist in the stage finished product area image, if the abnormal image features do not exist, generating qualified feeding standard information, generating a press cutting starting instruction at the same time, and sending the press cutting starting instruction to a die cutting controller;
and the stage finished product area image completely covers the stage finished product pattern and the area where the stage finished product boundary is located.
5. The automatic optical inspection method applied to a die cutting machine according to claim 1, wherein: intercepting a stage finished product pattern and a stage finished product boundary from a second corrected image based on workpiece shape and position parameters, comparing the stage finished product pattern and the stage finished product boundary with a finished product reference image and a boundary reference image corresponding to a processing type, and generating finished product specification information, wherein the method comprises the following steps of:
Determining the areas where the workpiece stage finished product and the die cutting boundary are located in the second corrected image based on the workpiece shape and position parameters, so as to intercept the image of the corresponding area from the second corrected image, and obtaining the stage finished product pattern and the stage finished product boundary;
based on the known raw material model and processing type, matching corresponding finished product reference images and boundary reference images from a preset comparison image library;
And comparing the stage finished product pattern with a finished product reference image, and comparing the stage finished product boundary with a boundary reference image, and if the stage finished product pattern and the boundary reference image have no abnormal image characteristics, generating qualified finished product specification information.
6. An automatic optical detection system applied to a die cutting machine, characterized in that it is applied to the automatic optical detection method applied to a die cutting machine according to any one of claims 1 to 5, comprising:
The image clipping algorithm updating module is used for determining workpiece shape and position parameters, raw material model and processing type of the current processing task, and setting an image clipping area of the current processing task based on the workpiece shape and position parameters so as to update the image clipping algorithm;
The first correction image generation module is used for acquiring a first optical detection image of the pressing and cutting plate before the workpiece is pressed and cut, inputting the first optical detection image into a preset image preprocessing model, and carrying out correction and cutting processing to generate a first correction image;
The pressing and cutting start instruction generation module is used for intercepting a stage finished product area image from the first corrected image based on the workpiece shape and position parameters, comparing the stage finished product area image with a raw material reference image corresponding to the raw material model, generating feeding standard information, and generating a pressing and cutting start instruction when the feeding standard information is qualified;
The finished product standard information generation module is used for acquiring a second optical detection image after the workpiece is pressed and cut, generating a second corrected image through preprocessing, intercepting a stage finished product pattern and a stage finished product boundary from the second corrected image based on the workpiece shape and position parameters, and comparing the stage finished product pattern and the stage finished product boundary with a finished product reference image and a boundary reference image corresponding to the processing type to generate finished product standard information;
The die cutting machine is provided with an imaging component for shooting the press-cut surface to obtain an optical detection image; the image preprocessing model is internally provided with a perspective correction algorithm and an image clipping algorithm.
7. The automated optical inspection system for a die cutting machine of claim 6 wherein: the image clipping algorithm updating module comprises:
The processing task analysis submodule is used for receiving processing setting information to set a processing program of the target die-cutting machine, and determining workpiece shape and position parameters, raw material models and processing types of the current processing task based on the processing setting information;
The image cutting area setting sub-module is used for determining the shape information, the size information and the position information relative to the press cutting plate surface of a finished product at the workpiece stage of the current processing task based on the workpiece shape and position parameters, and setting the image cutting area of the current processing task so as to update an image cutting algorithm.
8. The automated optical inspection system for a die cutting machine of claim 6 wherein: the first corrected image generation module includes:
the first optical detection image acquisition sub-module is used for acquiring a first optical detection image shot by the imaging component and inputting the first optical detection image into the image preprocessing model before the workpiece is pressed and cut when the raw material is conveyed in place;
The first zoom image generation sub-module is used for acquiring visual angle information of the imaging component and shooting azimuth information of the lens axis relative to the press-cut surface, loading the visual angle information and the shooting azimuth information into a perspective correction algorithm, and performing zoom processing on the first optical detection image in different directions according to different zoom scales through the perspective correction algorithm to generate a first zoom image;
And the scaled image clipping processing submodule is used for identifying an image clipping region from the first scaled image, clipping the first scaled image based on the image clipping region and generating a first corrected image.
9. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor, when executing the computer program, realizes the steps of the automatic optical inspection method applied to a die cutting machine according to any one of claims 1 to 5.
10. A computer readable storage medium storing a computer program, wherein the computer program when executed by a processor implements the steps of the automatic optical inspection method according to any one of claims 1 to 5 applied to a die cutting machine.
CN202410988701.4A 2024-07-22 2024-07-22 Automatic optical detection method, system, device and storage medium for die-cutting machine Pending CN118849098A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410988701.4A CN118849098A (en) 2024-07-22 2024-07-22 Automatic optical detection method, system, device and storage medium for die-cutting machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410988701.4A CN118849098A (en) 2024-07-22 2024-07-22 Automatic optical detection method, system, device and storage medium for die-cutting machine

Publications (1)

Publication Number Publication Date
CN118849098A true CN118849098A (en) 2024-10-29

Family

ID=93169649

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410988701.4A Pending CN118849098A (en) 2024-07-22 2024-07-22 Automatic optical detection method, system, device and storage medium for die-cutting machine

Country Status (1)

Country Link
CN (1) CN118849098A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN205404440U (en) * 2016-03-01 2016-07-27 广东飞新达智能设备股份有限公司 Die-cut product online visual inspection system
US20190001515A1 (en) * 2017-06-28 2019-01-03 Brother Kogyo Kabushiki Kaisha Cutting device and non-transitory computer-readable storage medium
CN109741323A (en) * 2019-01-09 2019-05-10 广州市顶丰自动化设备有限公司 Pole piece detection method, device, computer equipment and the storage medium of lithium battery
CN113935994A (en) * 2021-12-15 2022-01-14 深圳市巨力方视觉技术有限公司 Die cutting material defect checking method, device and system based on cloud data sharing
CN114727502A (en) * 2022-05-24 2022-07-08 浙江树人学院 Computer-aided PCB automatic alignment cutting method and system
CN117094988A (en) * 2023-10-16 2023-11-21 成都电科星拓科技有限公司 ResNet50 network model-based piezoresistor surface microscopic defect detection method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN205404440U (en) * 2016-03-01 2016-07-27 广东飞新达智能设备股份有限公司 Die-cut product online visual inspection system
US20190001515A1 (en) * 2017-06-28 2019-01-03 Brother Kogyo Kabushiki Kaisha Cutting device and non-transitory computer-readable storage medium
CN109741323A (en) * 2019-01-09 2019-05-10 广州市顶丰自动化设备有限公司 Pole piece detection method, device, computer equipment and the storage medium of lithium battery
CN113935994A (en) * 2021-12-15 2022-01-14 深圳市巨力方视觉技术有限公司 Die cutting material defect checking method, device and system based on cloud data sharing
CN114727502A (en) * 2022-05-24 2022-07-08 浙江树人学院 Computer-aided PCB automatic alignment cutting method and system
CN117094988A (en) * 2023-10-16 2023-11-21 成都电科星拓科技有限公司 ResNet50 network model-based piezoresistor surface microscopic defect detection method

Similar Documents

Publication Publication Date Title
CN115805457B (en) Clamp regulation and control method and device based on computer vision, terminal and storage medium
CN114708587B (en) Image recognition-based numerical control machine tool workpiece machining allowance determination method
CN113313135A (en) Marking control method and device and computer readable storage medium
CN111931959B (en) Method and device for controlling repair of workpiece and readable storage medium
JP6401623B2 (en) Panel vendor
CN110961778B (en) Method for automatically identifying welding area of welding workpiece, computer device and computer-readable storage medium
CN118849098A (en) Automatic optical detection method, system, device and storage medium for die-cutting machine
CN110936026B (en) Cutting method, cutting device, cutting equipment and storage medium for plate excess material
CN116001000A (en) Intelligent control method and system for PCB (printed circuit board) dividing machine
KR20130117967A (en) Monitorinr system and method for wire drawing machine
CN117291987B (en) Method, device, computer equipment and storage medium for identifying cutting position of excess material
CN112802029B (en) Welding spot positioning method and device
CN118559246A (en) Intelligent pipe feeding method and system based on machine vision
CN118150578A (en) Visual detection method, system and medium for automobile welding production line
KR102280203B1 (en) Numerical Control Data Automatic Generation System of Roll Bending System and Automatic Generating Method for Numerical Control Data
CN116596903A (en) Defect identification method, device, electronic equipment and readable storage medium
CN113215732B (en) Full-automatic template sewing numerical control method and system
JP7485767B2 (en) Method and diagnostic system for identifying and correcting a machine condition of a machine tool - Patents.com
CN113160147B (en) Image feature recognition and matching system for heat treatment workpiece
CN111914857B (en) Layout method, device and system for plate excess material, electronic equipment and storage medium
TWI582721B (en) Workpiece conductive feature inspection method and workpiece conductive feature inspection system
CN116441773B (en) Marking defect identification processing method, system and terminal for laser marking machine
CN119023700B (en) A detection system and detection method for ceramic splitting knife
CN117656066B (en) Calibration and material taking method and calibration system based on manipulator
CN114749849B (en) Welding control method, device and system

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