[go: up one dir, main page]

CN117564501A - Method and system for cutting veneer by laser - Google Patents

Method and system for cutting veneer by laser Download PDF

Info

Publication number
CN117564501A
CN117564501A CN202311670869.2A CN202311670869A CN117564501A CN 117564501 A CN117564501 A CN 117564501A CN 202311670869 A CN202311670869 A CN 202311670869A CN 117564501 A CN117564501 A CN 117564501A
Authority
CN
China
Prior art keywords
laser cutting
veneer
path
cutting
optimized
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
CN202311670869.2A
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.)
Guangdong Yufeng Industry Group Co ltd
Original Assignee
Guangdong Yufeng Industry Group 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 Guangdong Yufeng Industry Group Co ltd filed Critical Guangdong Yufeng Industry Group Co ltd
Priority to CN202311670869.2A priority Critical patent/CN117564501A/en
Publication of CN117564501A publication Critical patent/CN117564501A/en
Pending legal-status Critical Current

Links

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B23MACHINE TOOLS; METAL-WORKING NOT OTHERWISE PROVIDED FOR
    • B23KSOLDERING OR UNSOLDERING; WELDING; CLADDING OR PLATING BY SOLDERING OR WELDING; CUTTING BY APPLYING HEAT LOCALLY, e.g. FLAME CUTTING; WORKING BY LASER BEAM
    • B23K26/00Working by laser beam, e.g. welding, cutting or boring
    • B23K26/36Removing material
    • B23K26/38Removing material by boring or cutting
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B23MACHINE TOOLS; METAL-WORKING NOT OTHERWISE PROVIDED FOR
    • B23KSOLDERING OR UNSOLDERING; WELDING; CLADDING OR PLATING BY SOLDERING OR WELDING; CUTTING BY APPLYING HEAT LOCALLY, e.g. FLAME CUTTING; WORKING BY LASER BEAM
    • B23K26/00Working by laser beam, e.g. welding, cutting or boring
    • B23K26/70Auxiliary operations or equipment
    • 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)
  • Optics & Photonics (AREA)
  • Plasma & Fusion (AREA)
  • Mechanical Engineering (AREA)
  • Laser Beam Processing (AREA)

Abstract

本发明公开了一种激光切割木皮的方法及系统,其中,所述方法包括:获取木皮信息数据和切割工艺参数;基于所述木皮信息数据利用烟花算法进行激光切割路径规划处理,获得优化激光切割路径;基于所述优化激光切割路径利用所述木皮信息数据计算激光切割速度;基于多目标布谷鸟算法对所述切割工艺参数进行优化处理,获得优化切割工艺参数;激光切割设备基于所述优化激光切割路径、激光切割速度和优化切割工艺参数对木皮进行切割处理,获得切割处理后的木皮;对切割处理后的木皮进行质量检验,并生成质量检验报告。本发明不仅能够有效提高激光切割木皮的效率,并且保障了激光切割的稳定性,降低了工艺条件对激光切割的影响。

The invention discloses a method and system for laser cutting veneer, wherein the method includes: obtaining veneer information data and cutting process parameters; using fireworks algorithm to perform laser cutting path planning processing based on the veneer information data to obtain optimized laser cutting Path; use the veneer information data to calculate the laser cutting speed based on the optimized laser cutting path; optimize the cutting process parameters based on the multi-objective cuckoo algorithm to obtain optimized cutting process parameters; the laser cutting equipment is based on the optimized laser The cutting path, laser cutting speed and optimized cutting process parameters are used to cut the veneer to obtain the cut veneer; perform quality inspection on the cut veneer and generate a quality inspection report. The invention can not only effectively improve the efficiency of laser cutting veneer, but also ensure the stability of laser cutting and reduce the impact of process conditions on laser cutting.

Description

一种激光切割木皮的方法及系统A method and system for laser cutting veneer

技术领域Technical field

本发明涉及计算机技术领域,尤其涉及一种激光切割木皮的方法及系统。The present invention relates to the field of computer technology, and in particular to a method and system for laser cutting veneer.

背景技术Background technique

随着定制式木皮的发展和需求的扩大,人工切割木皮的方式已无法满足市场对木皮切割的要求,如今,大部分企业都采用激光切割的方式来切割木皮,激光切割木皮不仅可以解决人工切割过于依赖操作人员技术的问题,并且能够有效提高木皮切割的效率,但现有的激光切割木皮技术仍存在需要改进的地方,现有的激光切割木皮技术没有考虑到工艺参数的优化,可能会受到切割工艺条件和周围环境变化的影响,导致切割的稳定性难以保证,并且由于激光切割速度会收到木皮厚度的影响,需要精准地规划切割路径和切割速度,才能保障切割的质量和效率,需要改进以上问题,才能提高木皮产品在市场上的竞争力。With the development of customized veneer and the expansion of demand, the manual cutting of veneer can no longer meet the market's requirements for veneer cutting. Nowadays, most companies use laser cutting to cut veneer. Laser cutting of veneer can not only solve the problem of manual cutting. The problem of over-reliance on operator skills can effectively improve the efficiency of veneer cutting. However, the existing laser cutting veneer technology still needs improvement. The existing laser cutting veneer technology does not take into account the optimization of process parameters and may be affected by The influence of cutting process conditions and changes in the surrounding environment makes it difficult to guarantee the stability of cutting. Moreover, because the laser cutting speed will be affected by the thickness of the veneer, it is necessary to accurately plan the cutting path and cutting speed to ensure the quality and efficiency of cutting. This requires Only by improving the above problems can the competitiveness of veneer products in the market be improved.

发明内容Contents of the invention

本发明的目的在于克服现有技术的不足,本发明提供了一种激光切割木皮的方法及系统,不仅能够有效提高激光切割木皮的效率,并且保障了激光切割的稳定性,降低了工艺条件对激光切割的影响。The purpose of the present invention is to overcome the deficiencies of the prior art. The present invention provides a method and system for laser cutting veneer, which can not only effectively improve the efficiency of laser cutting veneer, but also ensure the stability of laser cutting and reduce the impact of process conditions on Effects of laser cutting.

为了解决上述技术问题,本发明提供了一种激光切割木皮的方法,所述方法包括:In order to solve the above technical problems, the present invention provides a method for laser cutting veneer, which method includes:

获取木皮信息数据和切割工艺参数;Obtain veneer information data and cutting process parameters;

基于所述木皮信息数据利用烟花算法进行激光切割路径规划处理,获得优化激光切割路径;Based on the veneer information data, the fireworks algorithm is used to perform laser cutting path planning processing to obtain an optimized laser cutting path;

基于所述优化激光切割路径利用所述木皮信息数据计算激光切割速度;Calculate laser cutting speed based on the optimized laser cutting path using the veneer information data;

基于多目标布谷鸟算法对所述切割工艺参数进行优化处理,获得优化切割工艺参数;Optimize the cutting process parameters based on the multi-objective cuckoo algorithm to obtain optimized cutting process parameters;

激光切割设备基于所述优化激光切割路径、激光切割速度和优化切割工艺参数对木皮进行切割处理,获得切割处理后的木皮;The laser cutting equipment cuts the veneer based on the optimized laser cutting path, laser cutting speed and optimized cutting process parameters to obtain the cut veneer;

对切割处理后的木皮进行质量检验,并生成质量检验报告。Conduct quality inspection on the cut veneer and generate a quality inspection report.

可选的,所述获取木皮信息数据和切割工艺参数,包括:Optionally, the obtaining of veneer information data and cutting process parameters includes:

基于数据采集传感器设备采集木皮信息数据,其中,所述木皮信息数据包括:木皮种类、木皮厚度和木皮尺寸;The veneer information data is collected based on the data collection sensor device, where the veneer information data includes: veneer type, veneer thickness and veneer size;

基于预设切割工艺参数表提取切割工艺参数,其中,所述切割工艺参数包括:切割功率、焦距和切割功率稳定度。The cutting process parameters are extracted based on the preset cutting process parameter table, where the cutting process parameters include: cutting power, focal length and cutting power stability.

可选的,所述基于所述木皮信息数据利用烟花算法进行激光切割路径规划处理,获得优化激光切割路径,包括:Optionally, the fireworks algorithm is used to perform laser cutting path planning processing based on the veneer information data to obtain an optimized laser cutting path, including:

基于所述木皮信息数据设置激光切割路径起点和激光切割路径终点,并基于所述激光切割路径起点和激光切割路径终点生成若干条激光切割路径,将若干条激光切割路径作为初始烟花族群,其中,每一条激光切割路径作为初始烟花族群中的一个烟花;The laser cutting path starting point and the laser cutting path end point are set based on the veneer information data, and several laser cutting paths are generated based on the laser cutting path starting point and the laser cutting path end point, and the several laser cutting paths are used as the initial fireworks group, where, Each laser cutting path serves as a firework in the initial firework group;

基于爆炸算子和高斯算子对所述初始烟花族群进行计算,获得变异火花,其中,所述变异火花包括:爆炸火花和高斯火花;The initial fireworks population is calculated based on the explosion operator and the Gaussian operator to obtain mutant sparks, where the mutant sparks include: explosion sparks and Gaussian sparks;

基于所述变异火花利用选择算法生成新烟花族群,计算所述新烟花族群中每个烟花的适应度,选择适应度最大的两个烟花生成烟花粒子群体;Use a selection algorithm to generate a new fireworks group based on the mutated sparks, calculate the fitness of each firework in the new firework group, and select the two fireworks with the largest fitness to generate a fireworks particle group;

对所述烟花粒子群体进行变异处理,获得变异烟花粒子群体,并计算所述变异烟花粒子群体的目标函数值;Perform mutation processing on the population of fireworks particles to obtain a population of mutant fireworks particles, and calculate the objective function value of the population of mutant fireworks particles;

判断变异烟花粒子群体的目标函数值是否大于预设阈值,其中,若变异烟花粒子群体的目标函数值大于预设阈值,则计算变异烟花粒子群体中每个烟花的适应度,将适应度最大的烟花作为优化激光切割路径;若变异粒子群体的目标函数值小于或等于预设阈值,则将变异烟花粒子群体作为初始烟花族群重新进行迭代处理至预设迭代次数。Determine whether the objective function value of the mutant fireworks particle population is greater than the preset threshold. If the objective function value of the mutant fireworks particle population is greater than the preset threshold, then calculate the fitness of each firework in the mutant fireworks particle population, and select the one with the largest fitness Fireworks are used as the optimized laser cutting path; if the objective function value of the mutant particle population is less than or equal to the preset threshold, the mutant fireworks particle population will be used as the initial fireworks population to re-iterate to the preset number of iterations.

可选的,所述基于爆炸算子和高斯算子对所述初始烟花族群进行计算,获得变异火花,包括:Optionally, the initial fireworks population is calculated based on explosion operators and Gaussian operators to obtain mutant sparks, including:

基于爆炸算子利用启发式算法对所述初始烟花族群进行计算,获得爆炸火花;Use a heuristic algorithm to calculate the initial fireworks population based on the explosion operator to obtain explosion sparks;

基于高斯算子对所述爆炸火花进行位移和变异处理,获得高斯火花。The explosion spark is subjected to displacement and mutation processing based on a Gaussian operator to obtain a Gaussian spark.

可选的,所述基于所述优化激光切割路径利用所述木皮信息数据计算激光切割速度,包括:Optionally, calculating the laser cutting speed using the veneer information data based on the optimized laser cutting path includes:

将所述优化激光切割路径进行切分,获得若干条激光切割路径分段;Segment the optimized laser cutting path to obtain several laser cutting path segments;

获取每条激光切割路径分段中的分段路径起始点,分段路径中点和分段路径终止点,并基于所述木皮信息数据获取分段路径起始点,分段路径中点和分段路径终止点对应的木皮厚度;Obtain the starting point of the segment path, the midpoint of the segmented path and the end point of the segmented path in each laser cutting path segment, and obtain the starting point of the segmented path, the midpoint of the segmented path and the segmented path based on the veneer information data The thickness of the veneer corresponding to the end point of the path;

对每条激光切割路径分段利用分段路径起始点,分段路径中点和分段路径终止点及对应的木皮厚度计算对应的分段切割速度;For each laser cutting path segment, calculate the corresponding segment cutting speed using the segment path starting point, segment path midpoint and segment path end point and the corresponding veneer thickness;

基于所有激光切割路径分段和对应的分段切割速度计算激光切割速度。The laser cutting speed is calculated based on all laser cutting path segments and the corresponding segment cutting speeds.

可选的,所述对每条激光切割路径分段利用分段路径起始点,分段路径中点和分段路径终止点及对应的木皮厚度计算对应的分段切割速度,包括:Optionally, for each laser cutting path segment, the corresponding segment cutting speed is calculated using the segment path starting point, segment path midpoint, segment path end point and corresponding veneer thickness, including:

对每条激光切割路径分段利用分段路径起始点和分段路径起始点对应的木皮厚度计算第一拐点速度;For each laser cutting path segment, calculate the first inflection point speed using the starting point of the segmented path and the veneer thickness corresponding to the starting point of the segmented path;

对每条激光切割路径分段利用分段路径中点和分段路径中点对应的木皮厚度计算切向速度;For each laser cutting path segment, calculate the tangential velocity using the segmented path midpoint and the veneer thickness corresponding to the segmented path midpoint;

对每条激光切割路径分段利用分段路径终止点和分段路径终止点对应的木皮厚度计算第二拐点速度;For each laser cutting path segment, calculate the second inflection point speed using the segmented path end point and the veneer thickness corresponding to the segmented path end point;

基于所述第一拐点速度、切向速度和第二拐点速度计算每条激光切割路径分段对应的分段切割速度。The segment cutting speed corresponding to each laser cutting path segment is calculated based on the first inflection point speed, the tangential speed and the second inflection point speed.

可选的,所述基于多目标布谷鸟算法对所述切割工艺参数进行优化处理,获得优化切割工艺参数,包括:Optionally, the cutting process parameters are optimized based on the multi-objective cuckoo algorithm to obtain optimized cutting process parameters, including:

基于所述切割工艺参数进行初始化处理,获得布谷鸟种群,其中,所述布谷鸟种群包含若干个初始巢穴;Perform initialization processing based on the cutting process parameters to obtain a cuckoo population, where the cuckoo population contains several initial nests;

计算布谷鸟种群中所有初始巢穴的适应度值;Calculate the fitness values of all initial nests in the cuckoo population;

基于莱维飞行算法对若干个初始巢穴进行更新处理,获得若干个更新巢穴,并计算所有更新巢穴的适应度值;Based on the Levy flight algorithm, several initial nests are updated to obtain several updated nests, and the fitness values of all updated nests are calculated;

将所有初始巢穴根据初始巢穴的适应度值进行升序排序,并将所有更新巢穴根据更新巢穴的适应度值进行升序排序;Sort all initial nests in ascending order according to the fitness value of the initial nest, and sort all updated nests in ascending order according to the fitness value of the updated nest;

基于升序顺序将所有初始巢穴与所有更新巢穴进行比较,若更新巢穴的适应度值大于初始巢穴,则将初始巢穴替换为更新巢穴,若更新巢穴的适应度值小于或等于初始巢穴,则初始巢穴不需要替换,将所有初始巢穴和更新巢穴进行比较和替换处理后,获得新布谷鸟种群;Compare all initial nests with all updated nests based on ascending order. If the fitness value of the updated nest is greater than the initial nest, replace the initial nest with the updated nest. If the fitness value of the updated nest is less than or equal to the initial nest, replace the initial nest. No replacement is required. After comparing and replacing all initial nests and updated nests, a new cuckoo population is obtained;

对新布谷鸟种群中的巢穴重新进行更新、比较和替换处理至预设迭代次数,获得优化布谷鸟种群,将优化布谷鸟种群中适应度值最大的巢穴作为优化切割工艺参数。The nests in the new cuckoo population are updated, compared and replaced to the preset number of iterations to obtain the optimized cuckoo population. The nest with the largest fitness value in the optimized cuckoo population is used as the optimized cutting process parameter.

可选的,所述激光切割设备基于所述优化激光切割路径、激光切割速度和优化切割工艺参数对木皮进行切割处理,获得切割处理后的木皮,包括:Optionally, the laser cutting equipment cuts the veneer based on the optimized laser cutting path, laser cutting speed and optimized cutting process parameters to obtain the cut veneer, including:

基于机械臂将木皮抓取至激光切割设备的工作台面;The robotic arm is used to grab the wood veneer to the work surface of the laser cutting equipment;

基于所述优化激光切割路径、激光切割速度和优化切割工艺参数对激光切割设备进行调整,调整后的激光切割设备对工作台面上的木皮进行校准和切割处理,获得切割处理后的木皮。The laser cutting equipment is adjusted based on the optimized laser cutting path, laser cutting speed and optimized cutting process parameters. The adjusted laser cutting equipment calibrates and cuts the veneer on the work surface to obtain the cut veneer.

可选的,所述对切割处理后的木皮进行质量检验,并生成质量检验报告,包括:Optionally, perform quality inspection on the cut veneer and generate a quality inspection report, including:

获取切割处理后的木皮图像,将切割处理后的木皮图像与模板图像进行比对处理,获得比对结果;Obtain the cut veneer image, compare the cut veneer image with the template image, and obtain the comparison result;

基于测量设备对切割处理后的木皮进行尺寸测量,获得尺寸测量结果;Measure the dimensions of the cut veneer based on the measuring equipment to obtain the dimensional measurement results;

基于预设标准对比对结果和尺寸测量结果进行检验,获得质量检验结果,并基于所述质量检验结果利用预设脚本生成质量检验报告。The comparison results and the dimensional measurement results are inspected based on preset standards to obtain quality inspection results, and a preset script is used to generate a quality inspection report based on the quality inspection results.

另外,本发明还提供了一种激光切割木皮的系统,所述系统包括:In addition, the present invention also provides a system for laser cutting veneer, which system includes:

数据获取模块,用于获取木皮信息数据和切割工艺参数;Data acquisition module, used to obtain veneer information data and cutting process parameters;

切割路径规划模块,用于基于所述木皮信息数据利用烟花算法进行激光切割路径规划处理,获得优化激光切割路径;A cutting path planning module is used to perform laser cutting path planning processing using a fireworks algorithm based on the veneer information data to obtain an optimized laser cutting path;

切割速度计算模块,用于基于所述优化激光切割路径计算激光切割速度;A cutting speed calculation module, used to calculate the laser cutting speed based on the optimized laser cutting path;

工艺参数优化模块,用于基于多目标布谷鸟算法对所述切割工艺参数进行优化处理,获得优化切割工艺参数;A process parameter optimization module, used to optimize the cutting process parameters based on a multi-objective cuckoo algorithm to obtain optimized cutting process parameters;

切割模块,用于激光切割设备基于所述优化激光切割路径、激光切割速度和优化切割工艺参数对木皮进行切割处理,获得切割处理后的木皮;A cutting module is used for the laser cutting equipment to cut the veneer based on the optimized laser cutting path, laser cutting speed and optimized cutting process parameters, and obtain the cut veneer;

质量检验模块,用于对切割处理后的木皮进行质量检验,并生成质量检验报告。The quality inspection module is used to conduct quality inspection on the cut veneer and generate a quality inspection report.

在本发明实施例中,利用烟花算法进行激光切割路径规划,烟花算法可以进行大范围的搜索,使得路径的规划能够更快地搜索至优化切割路径,从而加快路径规划速度,并更为精准的规划激光切割路径,根据规划的激光切割路径计算激光切割速度,将木皮厚度与切割路径加入至切割速度的计算中,保障了激光切割的质量和效率,采用多目标布谷鸟算法对切割工艺参数进行优化,避免激光切割受到切割工艺条件和周围环境变化的影响,保证切割的稳定性,不仅能够有效提高激光切割木皮的效率,并且保障了激光切割的稳定性,降低了工艺条件对激光切割的影响。In the embodiment of the present invention, the fireworks algorithm is used for laser cutting path planning. The fireworks algorithm can conduct a wide range of searches, so that the path planning can search for the optimized cutting path faster, thereby speeding up path planning and making it more accurate. Plan the laser cutting path and calculate the laser cutting speed based on the planned laser cutting path. Add the veneer thickness and cutting path to the calculation of the cutting speed to ensure the quality and efficiency of laser cutting. Use the multi-objective cuckoo algorithm to calculate the cutting process parameters. Optimize to avoid laser cutting being affected by changes in cutting process conditions and surrounding environment and ensure the stability of cutting. It can not only effectively improve the efficiency of laser cutting veneer, but also ensure the stability of laser cutting and reduce the impact of process conditions on laser cutting. .

附图说明Description of the drawings

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

图1是本发明实施例中的激光切割木皮的方法的流程示意图;Figure 1 is a schematic flow chart of a method for laser cutting veneer in an embodiment of the present invention;

图2是本发明实施例中的激光切割木皮的系统的结构组成示意图。Figure 2 is a schematic structural diagram of a laser cutting veneer system in an embodiment of the present invention.

具体实施方式Detailed ways

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其它实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts fall within the scope of protection of the present invention.

实施例一Embodiment 1

请参阅图1,图1是本发明实施例中的激光切割木皮的方法的流程示意图。Please refer to FIG. 1 , which is a schematic flow chart of a method for laser cutting veneer in an embodiment of the present invention.

如图1所示,一种激光切割木皮的方法,所述方法包括:As shown in Figure 1, a method for laser cutting veneer includes:

S11:获取木皮信息数据和切割工艺参数;S11: Obtain veneer information data and cutting process parameters;

在本发明具体实施过程中,所述获取木皮信息数据和切割工艺参数,包括:基于数据采集传感器设备采集木皮信息数据,其中,所述木皮信息数据包括:木皮种类、木皮厚度和木皮尺寸;基于预设切割工艺参数表提取切割工艺参数,其中,所述切割工艺参数包括:切割功率、焦距和切割功率稳定度。In the specific implementation process of the present invention, the obtaining of veneer information data and cutting process parameters includes: collecting veneer information data based on data collection sensor equipment, wherein the veneer information data includes: veneer type, veneer thickness and veneer size; based on The preset cutting process parameter table extracts cutting process parameters, where the cutting process parameters include: cutting power, focal length, and cutting power stability.

具体的,采用数据采集传感器设备采集木皮种类、木皮厚度和木皮尺寸,在获取了准确的木皮信息数据后才能继续后续的处理;在预设切割工艺参数表中提取对应切割工艺参数,在切割工艺参数表中有着对应的字典表,从而可以获取切割功率、焦距和切割功率稳定度等切割工艺参数。Specifically, data acquisition sensor equipment is used to collect veneer type, veneer thickness and veneer size. Only after obtaining accurate veneer information data can the subsequent processing be continued; the corresponding cutting process parameters are extracted from the preset cutting process parameter table, and the cutting process is There is a corresponding dictionary table in the parameter table, so that cutting process parameters such as cutting power, focal length and cutting power stability can be obtained.

S12:基于所述木皮信息数据利用烟花算法进行激光切割路径规划处理,获得优化激光切割路径;S12: Use the fireworks algorithm to perform laser cutting path planning processing based on the veneer information data to obtain an optimized laser cutting path;

在本发明具体实施过程中,所述基于所述木皮信息数据利用烟花算法进行激光切割路径规划处理,获得优化激光切割路径,包括:基于所述木皮信息数据设置激光切割路径起点和激光切割路径终点,并基于所述激光切割路径起点和激光切割路径终点生成若干条激光切割路径,将若干条激光切割路径作为初始烟花族群,其中,每一条激光切割路径作为初始烟花族群中的一个烟花;基于爆炸算子和高斯算子对所述初始烟花族群进行计算,获得变异火花,其中,所述变异火花包括:爆炸火花和高斯火花;基于所述变异火花利用选择算法生成新烟花族群,计算所述新烟花族群中每个烟花的适应度,选择适应度最大的两个烟花生成烟花粒子群体;对所述烟花粒子群体进行变异处理,获得变异烟花粒子群体,并计算所述变异烟花粒子群体的目标函数值;判断变异烟花粒子群体的目标函数值是否大于预设阈值,其中,若变异烟花粒子群体的目标函数值大于预设阈值,则计算变异烟花粒子群体中每个烟花的适应度,将适应度最大的烟花作为优化激光切割路径;若变异粒子群体的目标函数值小于或等于预设阈值,则将变异烟花粒子群体作为初始烟花族群重新进行迭代处理至预设迭代次数。In the specific implementation process of the present invention, using the fireworks algorithm to perform laser cutting path planning processing based on the veneer information data to obtain an optimized laser cutting path includes: setting the laser cutting path starting point and the laser cutting path end point based on the veneer information data , and generate several laser cutting paths based on the starting point of the laser cutting path and the end point of the laser cutting path, and use the several laser cutting paths as the initial fireworks group, where each laser cutting path is used as a firework in the initial fireworks group; based on explosion operator and Gaussian operator to calculate the initial fireworks population to obtain mutant sparks, where the mutant sparks include: explosion sparks and Gaussian sparks; a selection algorithm is used to generate a new fireworks population based on the mutant sparks, and the new fireworks are calculated According to the fitness of each firework in the fireworks group, select the two fireworks with the largest fitness to generate a population of fireworks particles; perform mutation processing on the population of fireworks particles to obtain a population of mutant fireworks particles, and calculate the objective function of the population of mutant fireworks particles value; determine whether the objective function value of the mutant fireworks particle population is greater than the preset threshold, where, if the objective function value of the mutant fireworks particle population is greater than the preset threshold, then calculate the fitness of each firework in the mutant fireworks particle population, and add the fitness The largest fireworks are used as the optimized laser cutting path; if the objective function value of the mutant particle population is less than or equal to the preset threshold, the mutant fireworks particle population is used as the initial fireworks population and the iteration process is re-processed to the preset iteration number.

进一步的,所述基于爆炸算子和高斯算子对所述初始烟花族群进行计算,获得变异火花,包括:基于爆炸算子利用启发式算法对所述初始烟花族群进行计算,获得爆炸火花;基于高斯算子对所述爆炸火花进行位移和变异处理,获得高斯火花。Further, calculating the initial fireworks population based on explosion operators and Gaussian operators to obtain mutation sparks includes: using a heuristic algorithm to calculate the initial fireworks population based on explosion operators to obtain explosion sparks; The Gaussian operator performs displacement and mutation processing on the explosion spark to obtain Gaussian spark.

具体的,根据木皮信息数据中的木皮尺寸和木皮种类设置激光切割路径起点和激光切割路径终点,根据激光切割路径起点和激光切割路径终点随机生成若干条激光切割路径,将若干条激光切割路径作为初始烟花族群,其中,每一条激光切割路径作为初始烟花族群中的一个烟花,在初始烟花族群中每个烟花即表示一个可行解;基于爆炸算子利用启发式算法对所述初始烟花族群进行计算,在初始烟花族群中随机选取一个节点作为烟花爆炸的位置,对该烟花选取上下左右四个方向和一个随机方向作为爆炸方向,确定爆炸半径,根据启发式算法计算爆炸强度,根据爆炸位置、方向、半径和强度代入爆炸火花表达式中进行计算,获得爆炸火花,爆炸火花的计算是对烟花族群的搜索处理,避免算法陷入局部最优;基于高斯算子对所述爆炸火花进行位移和变异处理,对爆炸火花选取预设的维度,根据选取的维度对爆炸火花执行高斯变异,将爆炸火花映射至均值为一和方差为一的高斯分布中,当将爆炸火花映射至高斯分布的可行域后,获得高斯火花,对爆炸火花进行位移和变异是为了增强烟花族群的多样性,能够得到更优的可行解;基于所述变异火花利用选择算法生成新烟花族群,计算每个变异火花的被选中概率,根据被选中概率计算累积概率,将所有个体的累积概率都计算完成后,根据预设比例选取累积概率较大的变异火花生成新烟花种群,计算所述新烟花族群中每个烟花的适应度,通过适应度函数对每个烟花计算初始适应度,适应度函数是一种能够将适应度以数学形式表达的函数,对初始适应度进行尺度变换,得到最终的适应度,选择适应度最大的两个烟花生成烟花粒子群体;对所述烟花粒子群体进行变异处理,对烟花粒子群体中的数据序列中的某一个位进行变异,对执行变异的烟花个体进行对应位求反,获得变异烟花粒子群体,对烟花粒子群体进行变异处理是为了确保算法不会陷入局部最优解,并计算所述变异烟花粒子群体的目标函数值;判断变异烟花粒子群体的目标函数值是否大于预设阈值,若目标函数值大于预设阈值,则计算变异烟花粒子群体中每个烟花的适应度,同样是根据适应度函数对每个烟花进行计算,在对计算出的初始适应度进行尺度变换,得到每个烟花的适应度,将适应度最大的烟花作为优化激光切割路径;若目标函数值小于或等于预设阈值,则将变异烟花粒子群体作为新的初始烟花种群重新进行以上处理至预设迭代次数,获得最终的优化激光切割路径,利用烟花算法进行激光切割路径规划,能够更为精准的规划激光切割路径,使用烟花算法通过其爆炸火花和高斯火花能够进行大范围的搜索,使得路径的规划能够更快地搜索至优化切割路径,从而加快路径规划速度。Specifically, the laser cutting path starting point and the laser cutting path end point are set according to the veneer size and veneer type in the veneer information data, and several laser cutting paths are randomly generated according to the laser cutting path starting point and the laser cutting path end point, and the several laser cutting paths are used as Initial fireworks group, in which each laser cutting path is regarded as a firework in the initial fireworks group, and each firework in the initial fireworks group represents a feasible solution; the initial fireworks group is calculated using a heuristic algorithm based on the explosion operator , randomly select a node in the initial fireworks group as the location of the fireworks explosion, select four directions of up, down, left, and right and a random direction as the explosion direction, determine the explosion radius, and calculate the explosion intensity according to the heuristic algorithm. According to the explosion position and direction , radius and intensity are substituted into the explosion spark expression for calculation to obtain the explosion spark. The calculation of the explosion spark is a search process for the fireworks group to avoid the algorithm falling into a local optimum; the explosion spark is displaced and mutated based on the Gaussian operator. , select a preset dimension for the explosion spark, perform Gaussian mutation on the explosion spark according to the selected dimension, and map the explosion spark to a Gaussian distribution with a mean of one and a variance of one. After mapping the explosion spark to the feasible region of the Gaussian distribution , to obtain Gaussian sparks, the purpose of displacing and mutating explosion sparks is to enhance the diversity of fireworks groups and obtain better feasible solutions; use the selection algorithm to generate new fireworks groups based on the mutated sparks, and calculate the selected number of each mutated spark. Probability, calculate the cumulative probability based on the probability of being selected. After calculating the cumulative probabilities of all individuals, select mutant sparks with greater cumulative probability according to the preset ratio to generate a new fireworks population, and calculate the adaptation of each firework in the new fireworks population. Calculate the initial fitness for each firework through the fitness function. The fitness function is a function that can express the fitness in mathematical form. The initial fitness is scaled to obtain the final fitness. Select the one with the largest fitness. Two fireworks generate a population of fireworks particles; perform mutation processing on the population of fireworks particles, mutate a certain bit in the data sequence in the population of fireworks particles, and negate the corresponding bits of the individual fireworks that perform the mutation to obtain the mutant fireworks. Particle group, the purpose of mutating the fireworks particle group is to ensure that the algorithm will not fall into the local optimal solution, and to calculate the objective function value of the mutated fireworks particle group; to determine whether the objective function value of the mutated fireworks particle group is greater than the preset threshold, If the objective function value is greater than the preset threshold, the fitness of each firework in the mutant firework particle population is calculated. Each firework is also calculated based on the fitness function, and the calculated initial fitness is scaled to obtain each firework. According to the fitness of each firework, the firework with the highest fitness will be used as the optimized laser cutting path; if the objective function value is less than or equal to the preset threshold, the mutant firework particle population will be used as the new initial firework population and the above process will be re-processed to the preset number of iterations. , to obtain the final optimized laser cutting path, and use the fireworks algorithm for laser cutting path planning, which can plan the laser cutting path more accurately. Using the fireworks algorithm can conduct a wide range of searches through its explosive sparks and Gaussian sparks, making the path planning possible. Search for optimized cutting paths faster for faster path planning.

S13:基于所述优化激光切割路径利用所述木皮信息数据计算激光切割速度;S13: Calculate the laser cutting speed using the veneer information data based on the optimized laser cutting path;

在本发明具体实施过程中,所述基于所述优化激光切割路径利用所述木皮信息数据计算激光切割速度,包括:将所述优化激光切割路径进行划分,获得若干条激光切割路径分段;获取每条激光切割路径分段中的分段路径起始点,分段路径中点和分段路径终止点,并基于所述木皮信息数据获取分段路径起始点,分段路径中点和分段路径终止点对应的木皮厚度;对每条激光切割路径分段利用分段路径起始点,分段路径中点和分段路径终止点及对应的木皮厚度计算对应的分段切割速度;基于所有激光切割路径分段和对应的分段切割速度计算激光切割速度。In the specific implementation process of the present invention, calculating the laser cutting speed based on the optimized laser cutting path using the veneer information data includes: dividing the optimized laser cutting path to obtain several laser cutting path segments; obtaining The starting point of the segmented path, the midpoint of the segmented path and the ending point of the segmented path in each laser cutting path segment, and the starting point of the segmented path, the midpoint of the segmented path and the segmented path are obtained based on the veneer information data The veneer thickness corresponding to the end point; for each laser cutting path segment, use the segment path starting point, segment path midpoint and segment path end point and the corresponding veneer thickness to calculate the corresponding segment cutting speed; based on all laser cutting The path segments and corresponding segment cutting speeds are used to calculate the laser cutting speed.

进一步的,所述对每条激光切割路径分段利用分段路径起始点,分段路径中点和分段路径终止点及对应的木皮厚度计算对应的分段切割速度,包括:对每条激光切割路径分段利用分段路径起始点和分段路径起始点对应的木皮厚度计算第一拐点速度;对每条激光切割路径分段利用分段路径中点和分段路径中点对应的木皮厚度计算切向速度;对每条激光切割路径分段利用分段路径终止点和分段路径终止点对应的木皮厚度计算第二拐点速度;基于所述第一拐点速度、切向速度和第二拐点速度计算每条激光切割路径分段对应的分段切割速度。Further, calculating the corresponding segment cutting speed for each laser cutting path segment using the segment path starting point, segment path midpoint, segment path end point and corresponding veneer thickness includes: The cutting path segmentation uses the segmentation path starting point and the veneer thickness corresponding to the segmentation path starting point to calculate the first inflection point speed; for each laser cutting path segmentation, the segmentation path midpoint and the veneer thickness corresponding to the segmentation path midpoint are used Calculate the tangential speed; calculate the second inflection point speed for each laser cutting path segment using the segment path end point and the veneer thickness corresponding to the segment path end point; based on the first inflection point speed, tangential speed and second inflection point The speed calculates the segment cutting speed corresponding to each laser cutting path segment.

具体的,由于完整的优化激光切割路径计算切割速度的复杂性较高,且耗费时间也较多,因此,将优化激光切割路径进行划分,得到若干条激光切割路径分段,易于计算其激光切割速度;获取每条激光切割路径分段中的分段路径起始点,分段路径中点和分段路径终止点,在木皮信息数据中含有对应的木皮厚度,便可根据木皮信息数据获取分段路径起始点,分段路径中点和分段路径终止点对应的木皮厚度;对每条激光切割路径分段利用分段路径起始点和分段路径起始点对应的木皮厚度计算第一拐点速度,获取分段路径起点和分段路径终点的共线方向,根据其共线方向做圆弧,根据分段路径起点和其共线方向做圆弧的矢量线,根据矢量线利用起始点对应的木皮厚度和已知的切割功率计算出第一拐点速度;利用分段路径中点、起点和终点做圆弧,计算分段路径中点分别到起点和终点的距离,根据计算出的距离沿分段路径的切线方向利用所作的圆弧和对应的木皮厚度计算出切向速度;对分段路径终止点根据共线方向绘制对应的圆弧,根据共线方向和分段路径终止点生成圆弧的矢量线,根据矢量线利用终止点对应的木皮厚度和已知的切割功率计算出第二拐点速度;综合第一拐点速度、切向速度和第二拐点速度便可得出每条激光切割路径分段对应的分段切割速度;每条激光切割路径分段的切割速度都计算出后,综合所有的激光切割路径分段和对应的分段切割速度计算出激光切割速度,将木皮厚度与切割路径加入至切割速度的计算中,保障了激光切割的质量和效率。Specifically, since calculating the cutting speed of the complete optimized laser cutting path is highly complex and time-consuming, the optimized laser cutting path is divided into several laser cutting path segments, which are easy to calculate. Speed; obtain the segment path starting point, segment path midpoint and segment path end point in each laser cutting path segment. The veneer information data contains the corresponding veneer thickness, and the segments can be obtained based on the veneer information data. The starting point of the path, the veneer thickness corresponding to the midpoint of the segmented path and the end point of the segmented path; for each laser cutting path segment, use the veneer thickness corresponding to the starting point of the segmented path and the starting point of the segmented path to calculate the first inflection point speed, Obtain the collinear direction of the starting point and end point of the segmented path, make an arc based on the collinear direction, draw a vector line of the arc based on the starting point of the segmented path and its collinear direction, and use the veneer corresponding to the starting point based on the vector line The thickness and the known cutting power are used to calculate the first inflection point speed; use the midpoint, starting point and end point of the segmented path to make arcs, calculate the distances from the midpoint of the segmented path to the starting point and the end point respectively, and follow the calculated distance along the segmented path. The tangential direction of the path is calculated using the arc made and the corresponding veneer thickness; the corresponding arc is drawn according to the collinear direction for the end point of the segmented path, and the arc is generated based on the collinear direction and the end point of the segmented path. Vector line, based on the vector line, use the veneer thickness corresponding to the end point and the known cutting power to calculate the second inflection point speed; combining the first inflection point speed, tangential speed and second inflection point speed, the score of each laser cutting path can be obtained The segment cutting speed corresponding to the segment; after the cutting speed of each laser cutting path segment is calculated, the laser cutting speed is calculated by integrating all laser cutting path segments and the corresponding segment cutting speed, and the veneer thickness and cutting path Adding it to the calculation of cutting speed ensures the quality and efficiency of laser cutting.

S14:基于多目标布谷鸟算法对所述切割工艺参数进行优化处理,获得优化切割工艺参数;S14: Optimize the cutting process parameters based on the multi-objective cuckoo algorithm to obtain optimized cutting process parameters;

在本发明具体实施过程中,所述基于多目标布谷鸟算法对所述切割工艺参数进行优化处理,获得优化切割工艺参数,包括:基于所述切割工艺参数进行初始化处理,获得布谷鸟种群,其中,所述布谷鸟种群包含若干个初始巢穴;计算布谷鸟种群中所有初始巢穴的适应度值;基于莱维飞行算法对若干个初始巢穴进行更新处理,获得若干个更新巢穴,并计算所有更新巢穴的适应度值;将所有初始巢穴根据初始巢穴的适应度值进行升序排序,并将所有更新巢穴根据更新巢穴的适应度值进行升序排序;基于升序顺序将所有初始巢穴与所有更新巢穴进行比较,若更新巢穴的适应度值大于初始巢穴,则将初始巢穴替换为更新巢穴,若更新巢穴的适应度值小于或等于初始巢穴,则初始巢穴不需要替换,将所有初始巢穴和更新巢穴进行比较和替换处理后,获得新布谷鸟种群;对新布谷鸟种群中的巢穴重新进行更新、比较和替换处理至预设迭代次数,获得优化布谷鸟种群,将优化布谷鸟种群中适应度值最大的巢穴作为优化切割工艺参数。In the specific implementation process of the present invention, the optimization of the cutting process parameters based on the multi-objective cuckoo algorithm to obtain the optimized cutting process parameters includes: performing initialization processing based on the cutting process parameters to obtain the cuckoo population, where , the cuckoo population contains several initial nests; calculate the fitness values of all initial nests in the cuckoo population; update several initial nests based on Levy's flight algorithm, obtain several updated nests, and calculate all updated nests fitness value; sort all initial nests in ascending order according to the fitness value of the initial nest, and sort all updated nests in ascending order according to the fitness value of the updated nest; compare all initial nests with all updated nests based on the ascending order, If the fitness value of the updated nest is greater than the initial nest, replace the initial nest with the updated nest. If the fitness value of the updated nest is less than or equal to the initial nest, the initial nest does not need to be replaced. Compare and sum up all initial nests and updated nests. After the replacement process, a new cuckoo population is obtained; the nests in the new cuckoo population are updated, compared and replaced to the preset number of iterations to obtain the optimized cuckoo population. The nest with the largest fitness value in the cuckoo population will be optimized. as optimized cutting process parameters.

具体的,基于所述切割工艺参数进行初始化处理,对切割工艺参数随机生成初始的参数优化方案作为布谷鸟种群,布谷鸟种群包含若干个初始巢穴,每个初始巢穴即为初始的参数优化方案;根据适应度函数计算布谷鸟种群中所有初始巢穴的适应度值;基于莱维飞行算法对若干个初始巢穴进行更新处理,根据若干个初始巢穴构建解空间,解空间指可能解的集合,通过随机漫步策略对解空间进行搜索,在搜索过程中,引入莱维稳定分布概率,直至将解空间搜索完成后,获得若干个更新巢穴,通过适应度函数计算所有更新巢穴的初始适应度值,将初始适应度值进行尺度变换,根据预设幂指数对初始适应度值进行尺度变换,得到尺度变换后的适应度值,即为所需的适应度值;将所有初始巢穴根据初始巢穴的适应度值进行升序排序,并将所有更新巢穴根据更新巢穴的适应度值进行升序排序,以便后续的比较处理;根据升序顺序对所有初始巢穴与所有更新巢穴进行比较,若更新巢穴的适应度值大于初始巢穴,则代表更新巢穴更接近可行解,将初始巢穴替换为更新巢穴,若更新巢穴的适应度值小于或等于初始巢穴,则初始巢穴不需要替换,将所有的初始巢穴都和更新巢穴比较和替换完成后,获得新布谷鸟种群;对新布谷鸟种群中的巢穴重复进行上述处理至预设迭代次数,获得优化布谷鸟种群,将其中适应度值最大的巢穴作为优化切割工艺参数,多目标布谷鸟算法可以在多目标下搜索到所需的可行解,在对切割工艺参数的优化中找到一个平衡点,即参数的优化组合,通过多目标布谷鸟算法对切割工艺参数进行更新,可以避免激光切割受到切割工艺条件和周围环境变化的影响,保证切割的稳定性,从而提高了切割质量。Specifically, an initialization process is performed based on the cutting process parameters, and an initial parameter optimization scheme is randomly generated for the cutting process parameters as a cuckoo population. The cuckoo population contains several initial nests, and each initial nest is an initial parameter optimization scheme; Calculate the fitness values of all initial nests in the cuckoo population based on the fitness function; update several initial nests based on Levy's flight algorithm, and construct a solution space based on several initial nests. The solution space refers to the set of possible solutions. Through random The walking strategy searches the solution space. During the search process, the Levy stable distribution probability is introduced. After the solution space search is completed, several updated nests are obtained. The initial fitness values of all updated nests are calculated through the fitness function, and the initial fitness values are calculated. The fitness value is scaled, and the initial fitness value is scaled according to the preset power index to obtain the fitness value after scale transformation, which is the required fitness value; all initial nests are calculated according to the fitness value of the initial nest. Sort in ascending order, and sort all updated nests in ascending order according to the fitness value of the updated nest for subsequent comparison processing; compare all initial nests with all updated nests in ascending order, if the fitness value of the updated nest is greater than the initial nest , it means that the updated nest is closer to the feasible solution, and the initial nest is replaced by the updated nest. If the fitness value of the updated nest is less than or equal to the initial nest, the initial nest does not need to be replaced. All initial nests are compared and replaced with the updated nest. After completion, a new cuckoo population is obtained; repeat the above process on the nests in the new cuckoo population to the preset number of iterations to obtain an optimized cuckoo population, and use the nest with the largest fitness value as the optimal cutting process parameter. Multi-objective cuckoo The bird algorithm can search for the required feasible solution under multiple objectives and find a balance point in the optimization of cutting process parameters, that is, the optimal combination of parameters. The cutting process parameters can be updated through the multi-objective cuckoo algorithm, which can avoid laser Cutting is affected by cutting process conditions and changes in the surrounding environment, ensuring the stability of cutting, thereby improving cutting quality.

S15:激光切割设备基于所述优化激光切割路径、激光切割速度和优化切割工艺参数对木皮进行切割处理,获得切割处理后的木皮;S15: The laser cutting equipment cuts the veneer based on the optimized laser cutting path, laser cutting speed and optimized cutting process parameters, and obtains the cut veneer;

在本发明具体实施过程中,所述激光切割设备基于所述优化激光切割路径、激光切割速度和优化切割工艺参数对木皮进行切割处理,获得切割处理后的木皮,包括:基于机械臂将木皮抓取至激光切割设备的工作台面;基于所述优化激光切割路径、激光切割速度和优化切割工艺参数对激光切割设备进行调整,调整后的激光切割设备对工作台面上的木皮进行校准和切割处理,获得切割处理后的木皮。In the specific implementation process of the present invention, the laser cutting equipment cuts the veneer based on the optimized laser cutting path, laser cutting speed and optimized cutting process parameters, and obtains the cut veneer, including: grabbing the veneer based on the mechanical arm Take it to the work surface of the laser cutting equipment; adjust the laser cutting equipment based on the optimized laser cutting path, laser cutting speed and optimized cutting process parameters, and the adjusted laser cutting equipment calibrates and cuts the veneer on the work surface, Obtain the cut veneer.

具体的,通过机械臂将待切割的木皮抓取至激光切割设备的工作台面;通过优化激光切割路径、激光切割速度和优化切割工艺参数对激光切割设备进行调整,调整后的激光切割设备对位于工作台面上的木皮进行校准,减少误差,校准后便对木皮进行切割处理,获得切割处理后的木皮。Specifically, the mechanical arm is used to grab the veneer to be cut to the work surface of the laser cutting equipment; the laser cutting equipment is adjusted by optimizing the laser cutting path, laser cutting speed and optimizing cutting process parameters. The adjusted laser cutting equipment is positioned at The veneer on the work surface is calibrated to reduce errors. After calibration, the veneer is cut to obtain the cut veneer.

S16:对切割处理后的木皮进行质量检验,并生成质量检验报告。S16: Conduct quality inspection on the cut veneer and generate a quality inspection report.

在本发明具体实施过程中,所述对切割处理后的木皮进行质量检验,并生成质量检验报告,包括:获取切割处理后的木皮图像,将切割处理后的木皮图像与模板图像进行比对处理,获得比对结果;基于测量设备对切割处理后的木皮进行尺寸测量,获得尺寸测量结果;基于预设标准对比对结果和尺寸测量结果进行检验,获得质量检验结果,并基于所述质量检验结果利用预设脚本生成质量检验报告。In the specific implementation process of the present invention, the quality inspection of the cut veneer and the generation of a quality inspection report include: obtaining the cut veneer image and comparing the cut veneer image with the template image. , obtain the comparison results; measure the dimensions of the cut veneer based on the measuring equipment, and obtain the dimension measurement results; inspect the comparison results and the dimension measurement results based on the preset standards, obtain the quality inspection results, and obtain the quality inspection results based on the quality inspection results Use preset scripts to generate quality inspection reports.

具体的,获取切割处理后的木皮图像,将切割处理后的木皮图像与模板图像进行比对处理,将切割处理后的木皮图像进行二值化处理,对该二值化木皮图像进行离散余弦变换计算,获得木皮图像矩阵,将木皮图像矩阵进行缩小,使其呈现图像的最低频率,计算缩小后的木皮图像矩阵中所有像素的平均值,将每个平均值与木皮图像矩阵的离散余弦变换值进行比较,大于或等于平均值的,记为一,小于平均值的则记为零,将比较结果根据预设顺序组合成64个信息位,将切割处理后的木皮图像的信息位与模板图像的信息位进行对比,若不相同的信息位不超过五个,则表明木皮切割样式质量合格,若超过五个,则表明木皮切割样式质量不合格;根据测量设备对切割处理后的木皮进行尺寸测量,若测量结果在允许误差范围内,则切割尺寸达标,若测量结果超出误差范围,则切割尺寸不达标;将对比结果和尺寸测量结果综合,得到质量检验结果,其中,对比结果和尺寸测量结果均达到标准才能判断为质量已达标,利用预设脚本生成质量检验报告,质量检验结果中的比对结果和尺寸测量结果可选择采用统计图或统计数据等进行表示。Specifically, the cut veneer image is obtained, the cut veneer image is compared with the template image, the cut veneer image is binarized, and the binary veneer image is subjected to discrete cosine transformation. Calculate, obtain the veneer image matrix, reduce the veneer image matrix so that it presents the lowest frequency of the image, calculate the average of all pixels in the reduced veneer image matrix, and compare each average with the discrete cosine transform value of the veneer image matrix Compare, if it is greater than or equal to the average value, it will be recorded as one, and if it is less than the average value, it will be recorded as zero. The comparison results will be combined into 64 information bits according to the preset order. The information bits of the cut veneer image will be compared with the template image. Compare the information bits. If there are no more than five different information bits, it means that the quality of the veneer cutting pattern is qualified. If there are more than five, it means that the quality of the veneer cutting pattern is unqualified; measure the dimensions of the cut veneer according to the measuring equipment. Measure, if the measurement result is within the allowable error range, the cutting size meets the standard; if the measurement result exceeds the error range, the cutting size does not meet the standard; the comparison result and the dimensional measurement result are combined to obtain the quality inspection result, where the comparison result and dimensional measurement Only when the results meet the standard can it be judged that the quality has reached the standard. A preset script is used to generate a quality inspection report. The comparison results and dimensional measurement results in the quality inspection results can be represented by statistical charts or statistical data.

在本发明实施例中,利用烟花算法进行激光切割路径规划,烟花算法可以进行大范围的搜索,使得路径的规划能够更快地搜索至优化切割路径,从而加快路径规划速度,并更为精准的规划激光切割路径,根据规划的激光切割路径计算激光切割速度,将木皮厚度与切割路径加入至切割速度的计算中,保障了激光切割的质量和效率,采用多目标布谷鸟算法对切割工艺参数进行优化,避免激光切割受到切割工艺条件和周围环境变化的影响,保证切割的稳定性,不仅能够有效提高激光切割木皮的效率,并且保障了激光切割的稳定性,降低了工艺条件对激光切割的影响。In the embodiment of the present invention, the fireworks algorithm is used for laser cutting path planning. The fireworks algorithm can conduct a wide range of searches, so that the path planning can search for the optimized cutting path faster, thereby speeding up path planning and making it more accurate. Plan the laser cutting path and calculate the laser cutting speed based on the planned laser cutting path. Add the veneer thickness and cutting path to the calculation of the cutting speed to ensure the quality and efficiency of laser cutting. Use the multi-objective cuckoo algorithm to calculate the cutting process parameters. Optimize to avoid laser cutting being affected by changes in cutting process conditions and surrounding environment and ensure the stability of cutting. It can not only effectively improve the efficiency of laser cutting veneer, but also ensure the stability of laser cutting and reduce the impact of process conditions on laser cutting. .

实施例二Embodiment 2

请参阅图2,图2是本发明实施例中的激光切割木皮的系统的结构组成示意图。Please refer to FIG. 2 , which is a schematic structural diagram of a laser cutting veneer system in an embodiment of the present invention.

如图2所示,一种激光切割木皮的系统,所述系统包括:As shown in Figure 2, a system for laser cutting veneer includes:

数据获取模块21:用于获取木皮信息数据和切割工艺参数;Data acquisition module 21: used to obtain veneer information data and cutting process parameters;

在本发明具体实施过程中,所述获取木皮信息数据和切割工艺参数,包括:基于数据采集传感器设备采集木皮信息数据,其中,所述木皮信息数据包括:木皮种类、木皮厚度和木皮尺寸;基于预设切割工艺参数表提取切割工艺参数,其中,所述切割工艺参数包括:切割功率、焦距和切割功率稳定度。In the specific implementation process of the present invention, the obtaining of veneer information data and cutting process parameters includes: collecting veneer information data based on data collection sensor equipment, wherein the veneer information data includes: veneer type, veneer thickness and veneer size; based on The preset cutting process parameter table extracts cutting process parameters, where the cutting process parameters include: cutting power, focal length, and cutting power stability.

具体的,采用数据采集传感器设备采集木皮种类、木皮厚度和木皮尺寸,在获取了准确的木皮信息数据后才能继续后续的处理;在预设切割工艺参数表中提取对应切割工艺参数,在切割工艺参数表中有着对应的字典表,从而可以获取切割功率、焦距和切割功率稳定度等切割工艺参数。Specifically, data acquisition sensor equipment is used to collect veneer type, veneer thickness and veneer size. Only after obtaining accurate veneer information data can the subsequent processing be continued; the corresponding cutting process parameters are extracted from the preset cutting process parameter table, and the cutting process is There is a corresponding dictionary table in the parameter table, so that cutting process parameters such as cutting power, focal length and cutting power stability can be obtained.

切割路径规划模块22:用于基于所述木皮信息数据利用烟花算法进行激光切割路径规划处理,获得优化激光切割路径;Cutting path planning module 22: used to perform laser cutting path planning processing using the fireworks algorithm based on the veneer information data to obtain an optimized laser cutting path;

在本发明具体实施过程中,所述基于所述木皮信息数据利用烟花算法进行激光切割路径规划处理,获得优化激光切割路径,包括:基于所述木皮信息数据设置激光切割路径起点和激光切割路径终点,并基于所述激光切割路径起点和激光切割路径终点生成若干条激光切割路径,将若干条激光切割路径作为初始烟花族群,其中,每一条激光切割路径作为初始烟花族群中的一个烟花;基于爆炸算子和高斯算子对所述初始烟花族群进行计算,获得变异火花,其中,所述变异火花包括:爆炸火花和高斯火花;基于所述变异火花利用选择算法生成新烟花族群,计算所述新烟花族群中每个烟花的适应度,选择适应度最大的两个烟花生成烟花粒子群体;对所述烟花粒子群体进行变异处理,获得变异烟花粒子群体,并计算所述变异烟花粒子群体的目标函数值;判断变异烟花粒子群体的目标函数值是否大于预设阈值,其中,若变异烟花粒子群体的目标函数值大于预设阈值,则计算变异烟花粒子群体中每个烟花的适应度,将适应度最大的烟花作为优化激光切割路径;若变异粒子群体的目标函数值小于或等于预设阈值,则将变异烟花粒子群体作为初始烟花族群重新进行迭代处理至预设迭代次数。In the specific implementation process of the present invention, using the fireworks algorithm to perform laser cutting path planning processing based on the veneer information data to obtain an optimized laser cutting path includes: setting the laser cutting path starting point and the laser cutting path end point based on the veneer information data , and generate several laser cutting paths based on the starting point of the laser cutting path and the end point of the laser cutting path, and use the several laser cutting paths as the initial fireworks group, where each laser cutting path is used as a firework in the initial fireworks group; based on explosion operator and Gaussian operator to calculate the initial fireworks population to obtain mutant sparks, where the mutant sparks include: explosion sparks and Gaussian sparks; a selection algorithm is used to generate a new fireworks population based on the mutant sparks, and the new fireworks are calculated According to the fitness of each firework in the fireworks group, select the two fireworks with the largest fitness to generate a population of fireworks particles; perform mutation processing on the population of fireworks particles to obtain a population of mutant fireworks particles, and calculate the objective function of the population of mutant fireworks particles value; determine whether the objective function value of the mutant fireworks particle population is greater than the preset threshold, where, if the objective function value of the mutant fireworks particle population is greater than the preset threshold, then calculate the fitness of each firework in the mutant fireworks particle population, and add the fitness The largest fireworks are used as the optimized laser cutting path; if the objective function value of the mutant particle population is less than or equal to the preset threshold, the mutant fireworks particle population is used as the initial fireworks population and the iteration process is re-processed to the preset iteration number.

进一步的,所述基于爆炸算子和高斯算子对所述初始烟花族群进行计算,获得变异火花,包括:基于爆炸算子利用启发式算法对所述初始烟花族群进行计算,获得爆炸火花;基于高斯算子对所述爆炸火花进行位移和变异处理,获得高斯火花。Further, calculating the initial fireworks population based on explosion operators and Gaussian operators to obtain mutation sparks includes: using a heuristic algorithm to calculate the initial fireworks population based on explosion operators to obtain explosion sparks; The Gaussian operator performs displacement and mutation processing on the explosion spark to obtain Gaussian spark.

具体的,根据木皮信息数据中的木皮尺寸和木皮种类设置激光切割路径起点和激光切割路径终点,根据激光切割路径起点和激光切割路径终点随机生成若干条激光切割路径,将若干条激光切割路径作为初始烟花族群,其中,每一条激光切割路径作为初始烟花族群中的一个烟花,在初始烟花族群中每个烟花即表示一个可行解;基于爆炸算子利用启发式算法对所述初始烟花族群进行计算,在初始烟花族群中随机选取一个节点作为烟花爆炸的位置,对该烟花选取上下左右四个方向和一个随机方向作为爆炸方向,确定爆炸半径,根据启发式算法计算爆炸强度,根据爆炸位置、方向、半径和强度代入爆炸火花表达式中进行计算,获得爆炸火花,爆炸火花的计算是对烟花族群的搜索处理,避免算法陷入局部最优;基于高斯算子对所述爆炸火花进行位移和变异处理,对爆炸火花选取预设的维度,根据选取的维度对爆炸火花执行高斯变异,将爆炸火花映射至均值为一和方差为一的高斯分布中,当将爆炸火花映射至高斯分布的可行域后,获得高斯火花,对爆炸火花进行位移和变异是为了增强烟花族群的多样性,能够得到更优的可行解;基于所述变异火花利用选择算法生成新烟花族群,计算每个变异火花的被选中概率,根据被选中概率计算累积概率,将所有个体的累积概率都计算完成后,根据预设比例选取累积概率较大的变异火花生成新烟花种群,计算所述新烟花族群中每个烟花的适应度,通过适应度函数对每个烟花计算初始适应度,适应度函数是一种能够将适应度以数学形式表达的函数,对初始适应度进行尺度变换,得到最终的适应度,选择适应度最大的两个烟花生成烟花粒子群体;对所述烟花粒子群体进行变异处理,对烟花粒子群体中的数据序列中的某一个位进行变异,对执行变异的烟花个体进行对应位求反,获得变异烟花粒子群体,对烟花粒子群体进行变异处理是为了确保算法不会陷入局部最优解,并计算所述变异烟花粒子群体的目标函数值;判断变异烟花粒子群体的目标函数值是否大于预设阈值,若目标函数值大于预设阈值,则计算变异烟花粒子群体中每个烟花的适应度,同样是根据适应度函数对每个烟花进行计算,在对计算出的初始适应度进行尺度变换,得到每个烟花的适应度,将适应度最大的烟花作为优化激光切割路径;若目标函数值小于或等于预设阈值,则将变异烟花粒子群体作为新的初始烟花种群重新进行以上处理至预设迭代次数,获得最终的优化激光切割路径,利用烟花算法进行激光切割路径规划,能够更为精准的规划激光切割路径,使用烟花算法通过其爆炸火花和高斯火花能够进行大范围的搜索,使得路径的规划能够更快地搜索至优化切割路径,从而加快路径规划速度。Specifically, the laser cutting path starting point and the laser cutting path end point are set according to the veneer size and veneer type in the veneer information data, and several laser cutting paths are randomly generated according to the laser cutting path starting point and the laser cutting path end point, and the several laser cutting paths are used as Initial fireworks group, in which each laser cutting path is regarded as a firework in the initial fireworks group, and each firework in the initial fireworks group represents a feasible solution; the initial fireworks group is calculated using a heuristic algorithm based on the explosion operator , randomly select a node in the initial fireworks group as the location of the fireworks explosion, select four directions of up, down, left, and right and a random direction as the explosion direction, determine the explosion radius, and calculate the explosion intensity according to the heuristic algorithm. According to the explosion position and direction , radius and intensity are substituted into the explosion spark expression for calculation to obtain the explosion spark. The calculation of the explosion spark is a search process for the fireworks group to avoid the algorithm falling into a local optimum; the explosion spark is displaced and mutated based on the Gaussian operator. , select a preset dimension for the explosion spark, perform Gaussian mutation on the explosion spark according to the selected dimension, and map the explosion spark to a Gaussian distribution with a mean of one and a variance of one. After mapping the explosion spark to the feasible region of the Gaussian distribution , to obtain Gaussian sparks, the purpose of displacing and mutating explosion sparks is to enhance the diversity of fireworks groups and obtain better feasible solutions; use the selection algorithm to generate new fireworks groups based on the mutated sparks, and calculate the selected number of each mutated spark. Probability, calculate the cumulative probability based on the probability of being selected. After calculating the cumulative probabilities of all individuals, select mutant sparks with greater cumulative probability according to the preset ratio to generate a new fireworks population, and calculate the adaptation of each firework in the new fireworks population. Calculate the initial fitness for each firework through the fitness function. The fitness function is a function that can express the fitness in mathematical form. The initial fitness is scaled to obtain the final fitness. Select the one with the largest fitness. Two fireworks generate a population of fireworks particles; perform mutation processing on the population of fireworks particles, mutate a certain bit in the data sequence in the population of fireworks particles, and negate the corresponding bits of the individual fireworks that perform the mutation to obtain the mutant fireworks. Particle group, the purpose of mutating the fireworks particle group is to ensure that the algorithm will not fall into the local optimal solution, and to calculate the objective function value of the mutated fireworks particle group; to determine whether the objective function value of the mutated fireworks particle group is greater than the preset threshold, If the objective function value is greater than the preset threshold, the fitness of each firework in the mutant firework particle population is calculated. Each firework is also calculated based on the fitness function, and the calculated initial fitness is scaled to obtain each firework. According to the fitness of each firework, the firework with the highest fitness will be used as the optimized laser cutting path; if the objective function value is less than or equal to the preset threshold, the mutant firework particle population will be used as the new initial firework population and the above process will be re-processed to the preset number of iterations. , to obtain the final optimized laser cutting path, and use the fireworks algorithm for laser cutting path planning, which can plan the laser cutting path more accurately. Using the fireworks algorithm can conduct a wide range of searches through its explosive sparks and Gaussian sparks, making the path planning possible. Search for optimized cutting paths faster for faster path planning.

切割速度计算模块23:用于基于所述优化激光切割路径利用所述木皮信息数据计算激光切割速度;Cutting speed calculation module 23: used to calculate the laser cutting speed based on the optimized laser cutting path using the veneer information data;

在本发明具体实施过程中,所述基于所述优化激光切割路径利用所述木皮信息数据计算激光切割速度,包括:将所述优化激光切割路径进行划分,获得若干条激光切割路径分段;获取每条激光切割路径分段中的分段路径起始点,分段路径中点和分段路径终止点,并基于所述木皮信息数据获取分段路径起始点,分段路径中点和分段路径终止点对应的木皮厚度;对每条激光切割路径分段利用分段路径起始点,分段路径中点和分段路径终止点及对应的木皮厚度计算对应的分段切割速度;基于所有激光切割路径分段和对应的分段切割速度计算激光切割速度。In the specific implementation process of the present invention, calculating the laser cutting speed based on the optimized laser cutting path using the veneer information data includes: dividing the optimized laser cutting path to obtain several laser cutting path segments; obtaining The starting point of the segmented path, the midpoint of the segmented path and the ending point of the segmented path in each laser cutting path segment, and the starting point of the segmented path, the midpoint of the segmented path and the segmented path are obtained based on the veneer information data The veneer thickness corresponding to the end point; for each laser cutting path segment, use the segment path starting point, segment path midpoint and segment path end point and the corresponding veneer thickness to calculate the corresponding segment cutting speed; based on all laser cutting The path segments and corresponding segment cutting speeds are used to calculate the laser cutting speed.

进一步的,所述对每条激光切割路径分段利用分段路径起始点,分段路径中点和分段路径终止点及对应的木皮厚度计算对应的分段切割速度,包括:对每条激光切割路径分段利用分段路径起始点和分段路径起始点对应的木皮厚度计算第一拐点速度;对每条激光切割路径分段利用分段路径中点和分段路径中点对应的木皮厚度计算切向速度;对每条激光切割路径分段利用分段路径终止点和分段路径终止点对应的木皮厚度计算第二拐点速度;基于所述第一拐点速度、切向速度和第二拐点速度计算每条激光切割路径分段对应的分段切割速度。Further, calculating the corresponding segment cutting speed for each laser cutting path segment using the segment path starting point, segment path midpoint, segment path end point and corresponding veneer thickness includes: The cutting path segmentation uses the segmentation path starting point and the veneer thickness corresponding to the segmentation path starting point to calculate the first inflection point speed; for each laser cutting path segmentation, the segmentation path midpoint and the veneer thickness corresponding to the segmentation path midpoint are used Calculate the tangential speed; calculate the second inflection point speed for each laser cutting path segment using the segment path end point and the veneer thickness corresponding to the segment path end point; based on the first inflection point speed, tangential speed and second inflection point The speed calculates the segment cutting speed corresponding to each laser cutting path segment.

具体的,由于完整的优化激光切割路径计算切割速度的复杂性较高,且耗费时间也较多,因此,将优化激光切割路径进行划分,得到若干条激光切割路径分段,易于计算其激光切割速度;获取每条激光切割路径分段中的分段路径起始点,分段路径中点和分段路径终止点,在木皮信息数据中含有对应的木皮厚度,便可根据木皮信息数据获取分段路径起始点,分段路径中点和分段路径终止点对应的木皮厚度;对每条激光切割路径分段利用分段路径起始点和分段路径起始点对应的木皮厚度计算第一拐点速度,获取分段路径起点和分段路径终点的共线方向,根据其共线方向做圆弧,根据分段路径起点和其共线方向做圆弧的矢量线,根据矢量线利用起始点对应的木皮厚度和已知的切割功率计算出第一拐点速度;利用分段路径中点、起点和终点做圆弧,计算分段路径中点分别到起点和终点的距离,根据计算出的距离沿分段路径的切线方向利用所作的圆弧和对应的木皮厚度计算出切向速度;对分段路径终止点根据共线方向绘制对应的圆弧,根据共线方向和分段路径终止点生成圆弧的矢量线,根据矢量线利用终止点对应的木皮厚度和已知的切割功率计算出第二拐点速度;综合第一拐点速度、切向速度和第二拐点速度便可得出每条激光切割路径分段对应的分段切割速度;每条激光切割路径分段的切割速度都计算出后,综合所有的激光切割路径分段和对应的分段切割速度计算出激光切割速度,将木皮厚度与切割路径加入至切割速度的计算中,保障了激光切割的质量和效率。Specifically, since calculating the cutting speed of the complete optimized laser cutting path is highly complex and time-consuming, the optimized laser cutting path is divided into several laser cutting path segments, which are easy to calculate. Speed; obtain the segment path starting point, segment path midpoint and segment path end point in each laser cutting path segment. The veneer information data contains the corresponding veneer thickness, and the segments can be obtained based on the veneer information data. The starting point of the path, the veneer thickness corresponding to the midpoint of the segmented path and the end point of the segmented path; for each laser cutting path segment, use the veneer thickness corresponding to the starting point of the segmented path and the starting point of the segmented path to calculate the first inflection point speed, Obtain the collinear direction of the starting point and end point of the segmented path, make an arc based on the collinear direction, draw a vector line of the arc based on the starting point of the segmented path and its collinear direction, and use the veneer corresponding to the starting point based on the vector line The thickness and the known cutting power are used to calculate the first inflection point speed; use the midpoint, starting point and end point of the segmented path to make arcs, calculate the distances from the midpoint of the segmented path to the starting point and the end point respectively, and follow the calculated distance along the segmented path. The tangential direction of the path is calculated using the arc made and the corresponding veneer thickness; the corresponding arc is drawn according to the collinear direction for the end point of the segmented path, and the arc is generated based on the collinear direction and the end point of the segmented path. Vector line, based on the vector line, use the veneer thickness corresponding to the end point and the known cutting power to calculate the second inflection point speed; combining the first inflection point speed, tangential speed and second inflection point speed, the score of each laser cutting path can be obtained The segment cutting speed corresponding to the segment; after the cutting speed of each laser cutting path segment is calculated, the laser cutting speed is calculated by integrating all laser cutting path segments and the corresponding segment cutting speed, and the veneer thickness and cutting path Adding it to the calculation of cutting speed ensures the quality and efficiency of laser cutting.

工艺参数优化模块24:用于基于多目标布谷鸟算法对所述切割工艺参数进行优化处理,获得优化切割工艺参数;Process parameter optimization module 24: used to optimize the cutting process parameters based on the multi-objective cuckoo algorithm to obtain optimized cutting process parameters;

在本发明具体实施过程中,所述基于多目标布谷鸟算法对所述切割工艺参数进行优化处理,获得优化切割工艺参数,包括:基于所述切割工艺参数进行初始化处理,获得布谷鸟种群,其中,所述布谷鸟种群包含若干个初始巢穴;计算布谷鸟种群中所有初始巢穴的适应度值;基于莱维飞行算法对若干个初始巢穴进行更新处理,获得若干个更新巢穴,并计算所有更新巢穴的适应度值;将所有初始巢穴根据初始巢穴的适应度值进行升序排序,并将所有更新巢穴根据更新巢穴的适应度值进行升序排序;基于升序顺序将所有初始巢穴与所有更新巢穴进行比较,若更新巢穴的适应度值大于初始巢穴,则将初始巢穴替换为更新巢穴,若更新巢穴的适应度值小于或等于初始巢穴,则初始巢穴不需要替换,将所有初始巢穴和更新巢穴进行比较和替换处理后,获得新布谷鸟种群;对新布谷鸟种群中的巢穴重新进行更新、比较和替换处理至预设迭代次数,获得优化布谷鸟种群,将优化布谷鸟种群中适应度值最大的巢穴作为优化切割工艺参数。In the specific implementation process of the present invention, the optimization of the cutting process parameters based on the multi-objective cuckoo algorithm to obtain the optimized cutting process parameters includes: performing initialization processing based on the cutting process parameters to obtain the cuckoo population, where , the cuckoo population contains several initial nests; calculate the fitness values of all initial nests in the cuckoo population; update several initial nests based on Levy's flight algorithm, obtain several updated nests, and calculate all updated nests fitness value; sort all initial nests in ascending order according to the fitness value of the initial nest, and sort all updated nests in ascending order according to the fitness value of the updated nest; compare all initial nests with all updated nests based on the ascending order, If the fitness value of the updated nest is greater than the initial nest, replace the initial nest with the updated nest. If the fitness value of the updated nest is less than or equal to the initial nest, the initial nest does not need to be replaced. Compare and sum up all initial nests and updated nests. After the replacement process, a new cuckoo population is obtained; the nests in the new cuckoo population are updated, compared and replaced to the preset number of iterations to obtain the optimized cuckoo population. The nest with the largest fitness value in the cuckoo population will be optimized. as optimized cutting process parameters.

具体的,基于所述切割工艺参数进行初始化处理,对切割工艺参数随机生成初始的参数优化方案作为布谷鸟种群,布谷鸟种群包含若干个初始巢穴,每个初始巢穴即为初始的参数优化方案;根据适应度函数计算布谷鸟种群中所有初始巢穴的适应度值;基于莱维飞行算法对若干个初始巢穴进行更新处理,根据若干个初始巢穴构建解空间,解空间指可能解的集合,通过随机漫步策略对解空间进行搜索,在搜索过程中,引入莱维稳定分布概率,直至将解空间搜索完成后,获得若干个更新巢穴,通过适应度函数计算所有更新巢穴的初始适应度值,将初始适应度值进行尺度变换,根据预设幂指数对初始适应度值进行尺度变换,得到尺度变换后的适应度值,即为所需的适应度值;将所有初始巢穴根据初始巢穴的适应度值进行升序排序,并将所有更新巢穴根据更新巢穴的适应度值进行升序排序,以便后续的比较处理;根据升序顺序对所有初始巢穴与所有更新巢穴进行比较,若更新巢穴的适应度值大于初始巢穴,则代表更新巢穴更接近可行解,将初始巢穴替换为更新巢穴,若更新巢穴的适应度值小于或等于初始巢穴,则初始巢穴不需要替换,将所有的初始巢穴都和更新巢穴比较和替换完成后,获得新布谷鸟种群;对新布谷鸟种群中的巢穴重复进行上述处理至预设迭代次数,获得优化布谷鸟种群,将其中适应度值最大的巢穴作为优化切割工艺参数,多目标布谷鸟算法可以在多目标下搜索到所需的可行解,在对切割工艺参数的优化中找到一个平衡点,即参数的优化组合,通过多目标布谷鸟算法对切割工艺参数进行更新,可以避免激光切割受到切割工艺条件和周围环境变化的影响,保证切割的稳定性,从而提高了切割质量。Specifically, an initialization process is performed based on the cutting process parameters, and an initial parameter optimization scheme is randomly generated for the cutting process parameters as a cuckoo population. The cuckoo population contains several initial nests, and each initial nest is an initial parameter optimization scheme; Calculate the fitness values of all initial nests in the cuckoo population based on the fitness function; update several initial nests based on Levy's flight algorithm, and construct a solution space based on several initial nests. The solution space refers to the set of possible solutions. Through random The walking strategy searches the solution space. During the search process, the Levy stable distribution probability is introduced. After the solution space search is completed, several updated nests are obtained. The initial fitness values of all updated nests are calculated through the fitness function, and the initial fitness values are calculated. The fitness value is scaled, and the initial fitness value is scaled according to the preset power index to obtain the fitness value after scale transformation, which is the required fitness value; all initial nests are calculated according to the fitness value of the initial nest. Sort in ascending order, and sort all updated nests in ascending order according to the fitness value of the updated nest for subsequent comparison processing; compare all initial nests with all updated nests in ascending order, if the fitness value of the updated nest is greater than the initial nest , it means that the updated nest is closer to the feasible solution, and the initial nest is replaced by the updated nest. If the fitness value of the updated nest is less than or equal to the initial nest, the initial nest does not need to be replaced. All initial nests are compared and replaced with the updated nest. After completion, a new cuckoo population is obtained; repeat the above process on the nests in the new cuckoo population to the preset number of iterations to obtain an optimized cuckoo population, and use the nest with the largest fitness value as the optimal cutting process parameter. Multi-objective cuckoo The bird algorithm can search for the required feasible solution under multiple objectives and find a balance point in the optimization of cutting process parameters, that is, the optimal combination of parameters. The cutting process parameters can be updated through the multi-objective cuckoo algorithm, which can avoid laser Cutting is affected by cutting process conditions and changes in the surrounding environment, ensuring the stability of cutting, thereby improving cutting quality.

切割模块25:用于激光切割设备基于所述优化激光切割路径、激光切割速度和优化切割工艺参数对木皮进行切割处理,获得切割处理后的木皮;Cutting module 25: used for the laser cutting equipment to cut the veneer based on the optimized laser cutting path, laser cutting speed and optimized cutting process parameters to obtain the cut veneer;

在本发明具体实施过程中,所述激光切割设备基于所述优化激光切割路径、激光切割速度和优化切割工艺参数对木皮进行切割处理,获得切割处理后的木皮,包括:基于机械臂将木皮抓取至激光切割设备的工作台面;基于所述优化激光切割路径、激光切割速度和优化切割工艺参数对激光切割设备进行调整,调整后的激光切割设备对工作台面上的木皮进行校准和切割处理,获得切割处理后的木皮。In the specific implementation process of the present invention, the laser cutting equipment cuts the veneer based on the optimized laser cutting path, laser cutting speed and optimized cutting process parameters, and obtains the cut veneer, including: grabbing the veneer based on the mechanical arm Take it to the work surface of the laser cutting equipment; adjust the laser cutting equipment based on the optimized laser cutting path, laser cutting speed and optimized cutting process parameters, and the adjusted laser cutting equipment calibrates and cuts the veneer on the work surface, Obtain the cut veneer.

具体的,通过机械臂将待切割的木皮抓取至激光切割设备的工作台面;通过优化激光切割路径、激光切割速度和优化切割工艺参数对激光切割设备进行调整,调整后的激光切割设备对位于工作台面上的木皮进行校准,减少误差,校准后便对木皮进行切割处理,获得切割处理后的木皮。Specifically, the mechanical arm is used to grab the veneer to be cut to the work surface of the laser cutting equipment; the laser cutting equipment is adjusted by optimizing the laser cutting path, laser cutting speed and optimizing cutting process parameters. The adjusted laser cutting equipment is positioned at The veneer on the work surface is calibrated to reduce errors. After calibration, the veneer is cut to obtain the cut veneer.

质量检验模块26:用于对切割处理后的木皮进行质量检验,并生成质量检验报告。Quality inspection module 26: used to conduct quality inspection on the cut veneer and generate a quality inspection report.

在本发明具体实施过程中,所述对切割处理后的木皮进行质量检验,并生成质量检验报告,包括:获取切割处理后的木皮图像,将切割处理后的木皮图像与模板图像进行比对处理,获得比对结果;基于测量设备对切割处理后的木皮进行尺寸测量,获得尺寸测量结果;基于预设标准对比对结果和尺寸测量结果进行检验,获得质量检验结果,并基于所述质量检验结果利用预设脚本生成质量检验报告。In the specific implementation process of the present invention, the quality inspection of the cut veneer and the generation of a quality inspection report include: obtaining the cut veneer image and comparing the cut veneer image with the template image. , obtain the comparison results; measure the dimensions of the cut veneer based on the measuring equipment, and obtain the dimension measurement results; inspect the comparison results and the dimension measurement results based on the preset standards, obtain the quality inspection results, and obtain the quality inspection results based on the quality inspection results Use preset scripts to generate quality inspection reports.

具体的,获取切割处理后的木皮图像,将切割处理后的木皮图像与模板图像进行比对处理,将切割处理后的木皮图像进行二值化处理,对该二值化木皮图像进行离散余弦变换计算,获得木皮图像矩阵,将木皮图像矩阵进行缩小,使其呈现图像的最低频率,计算缩小后的木皮图像矩阵中所有像素的平均值,将每个平均值与木皮图像矩阵的离散余弦变换值进行比较,大于或等于平均值的,记为一,小于平均值的则记为零,将比较结果根据预设顺序组合成64个信息位,将切割处理后的木皮图像的信息位与模板图像的信息位进行对比,若不相同的信息位不超过五个,则表明木皮切割样式质量合格,若超过五个,则表明木皮切割样式质量不合格;根据测量设备对切割处理后的木皮进行尺寸测量,若测量结果在允许误差范围内,则切割尺寸达标,若测量结果超出误差范围,则切割尺寸不达标;将对比结果和尺寸测量结果综合,得到质量检验结果,其中,对比结果和尺寸测量结果均达到标准才能判断为质量已达标,利用预设脚本生成质量检验报告,质量检验结果中的比对结果和尺寸测量结果可以选择采用统计图或统计数据等进行表示。Specifically, the cut veneer image is obtained, the cut veneer image is compared with the template image, the cut veneer image is binarized, and the binary veneer image is subjected to discrete cosine transformation. Calculate, obtain the veneer image matrix, reduce the veneer image matrix so that it presents the lowest frequency of the image, calculate the average of all pixels in the reduced veneer image matrix, and compare each average with the discrete cosine transform value of the veneer image matrix Compare, if it is greater than or equal to the average value, it will be recorded as one, and if it is less than the average value, it will be recorded as zero. The comparison results will be combined into 64 information bits according to the preset order. The information bits of the cut veneer image will be compared with the template image. Compare the information bits. If there are no more than five different information bits, it means that the quality of the veneer cutting pattern is qualified. If there are more than five, it means that the quality of the veneer cutting pattern is unqualified; measure the dimensions of the cut veneer according to the measuring equipment. Measure, if the measurement result is within the allowable error range, the cutting size meets the standard; if the measurement result exceeds the error range, the cutting size does not meet the standard; the comparison result and the dimensional measurement result are combined to obtain the quality inspection result, where the comparison result and dimensional measurement Only when the results meet the standard can it be judged that the quality has reached the standard. A preset script is used to generate a quality inspection report. The comparison results and dimensional measurement results in the quality inspection results can be represented by statistical charts or statistical data.

在本发明实施例中,利用烟花算法进行激光切割路径规划,烟花算法可以进行大范围的搜索,使得路径的规划能够更快地搜索至优化切割路径,从而加快路径规划速度,并更为精准的规划激光切割路径,根据规划的激光切割路径计算激光切割速度,将木皮厚度与切割路径加入至切割速度的计算中,保障了激光切割的质量和效率,采用多目标布谷鸟算法对切割工艺参数进行优化,避免激光切割受到切割工艺条件和周围环境变化的影响,保证切割的稳定性,不仅能够有效提高激光切割木皮的效率,并且保障了激光切割的稳定性,降低了工艺条件对激光切割的影响。In the embodiment of the present invention, the fireworks algorithm is used for laser cutting path planning. The fireworks algorithm can conduct a wide range of searches, so that the path planning can search for the optimized cutting path faster, thereby speeding up path planning and making it more accurate. Plan the laser cutting path and calculate the laser cutting speed based on the planned laser cutting path. Add the veneer thickness and cutting path to the calculation of the cutting speed to ensure the quality and efficiency of laser cutting. Use the multi-objective cuckoo algorithm to calculate the cutting process parameters. Optimize to avoid laser cutting being affected by changes in cutting process conditions and surrounding environment and ensure the stability of cutting. It can not only effectively improve the efficiency of laser cutting veneer, but also ensure the stability of laser cutting and reduce the impact of process conditions on laser cutting. .

本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储介质中,存储介质可以包括:只读存储器(ROM,ReadOnly Memory)、随机存取存储器(RAM,Random AccessMemory)、磁盘或光盘等。Those of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing relevant hardware through a program. The program can be stored in a computer-readable storage medium. The storage medium can include: Read-only memory (ROM, ReadOnly Memory), random-access memory (RAM, Random AccessMemory), magnetic disk or optical disk, etc.

另外,以上对本发明实施例所提供的一种激光切割木皮的方法及系统进行了详细介绍,本文中应采用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。In addition, the method and system for laser cutting veneer provided by the embodiments of the present invention are introduced in detail above. Specific examples are used to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only for To help understand the method and its core idea of the present invention; at the same time, for those of ordinary skill in the field, there will be changes in the specific implementation and application scope based on the idea of the present invention. In summary, this specification The contents should not be construed as limitations of the invention.

Claims (10)

1. A method of laser cutting veneer, the method comprising:
obtaining veneer information data and cutting process parameters;
performing laser cutting path planning processing by using a firework algorithm based on the veneer information data to obtain an optimized laser cutting path;
calculating a laser cutting speed by using the veneer information data based on the optimized laser cutting path;
optimizing the cutting process parameters based on a multi-target cuckoo algorithm to obtain optimized cutting process parameters;
the laser cutting equipment cuts the veneer based on the optimized laser cutting path, the laser cutting speed and the optimized cutting technological parameters to obtain the cut veneer;
And (3) performing quality inspection on the wood veneer after the cutting treatment, and generating a quality inspection report.
2. The method of claim 1, wherein the obtaining veneer information data and cutting process parameters comprises:
collecting veneer information data based on a data collecting sensor device, wherein the veneer information data comprises: wood veneer species, wood veneer thickness, and wood Pi Checun;
extracting cutting process parameters based on a preset cutting process parameter table, wherein the cutting process parameters comprise: cutting power, focal length, and cutting power stability.
3. The method for laser cutting veneer according to claim 1, wherein the performing laser cutting path planning processing by using a firework algorithm based on the veneer information data to obtain an optimized laser cutting path comprises:
setting a laser cutting path starting point and a laser cutting path ending point based on the veneer information data, generating a plurality of laser cutting paths based on the laser cutting path starting point and the laser cutting path ending point, and taking the plurality of laser cutting paths as initial firework groups, wherein each laser cutting path is taken as one firework in the initial firework groups;
Calculating the initial firework group based on an explosion operator and a Gaussian operator to obtain a variant spark, wherein the variant spark comprises: explosion sparks and gaussian sparks;
generating a new firework group based on the variation sparks by using a selection algorithm, calculating the fitness of each firework in the new firework group, and selecting two firework with the largest fitness to generate a firework particle group;
performing mutation treatment on the firework particle group to obtain a mutated firework particle group, and calculating an objective function value of the mutated firework particle group;
judging whether the objective function value of the variable firework particle group is larger than a preset threshold value, wherein if the objective function value of the variable firework particle group is larger than the preset threshold value, calculating the fitness of each firework in the variable firework particle group, and taking the firework with the largest fitness as an optimized laser cutting path; and if the objective function value of the variant particle population is smaller than or equal to the preset threshold, carrying out iteration processing again by taking the variant firework particle population as the initial firework population until the preset iteration times.
4. A method of laser cutting veneer according to claim 3, wherein said calculating said initial population of fireworks based on explosion operators and gaussian operators to obtain variant sparks comprises:
Calculating the initial firework group by using a heuristic algorithm based on an explosion operator to obtain explosion sparks;
and carrying out displacement and mutation treatment on the explosion spark based on a Gaussian operator to obtain the Gaussian spark.
5. The method of laser cutting veneer according to claim 1, wherein the calculating a laser cutting speed using the veneer information data based on the optimized laser cutting path comprises:
cutting the optimized laser cutting path to obtain a plurality of laser cutting path segments;
acquiring a segmentation path starting point, a segmentation path midpoint and a segmentation path ending point in each laser cutting path segmentation, and acquiring the thickness of the veneer corresponding to the segmentation path starting point, the segmentation path midpoint and the segmentation path ending point based on the veneer information data;
calculating corresponding sectional cutting speeds of each laser cutting path section by utilizing a sectional path starting point, a sectional path midpoint and a sectional path ending point and corresponding veneer thickness;
the laser cutting speed is calculated based on all laser cutting path segments and the corresponding segment cutting speed.
6. The method of claim 5, wherein calculating the corresponding segment cutting speed for each laser cutting path segment using the segment path start point, the segment path midpoint and the segment path end point and the corresponding veneer thickness comprises:
Calculating a first inflection point speed for each laser cutting path segment by utilizing a segment path starting point and the veneer thickness corresponding to the segment path starting point;
calculating tangential velocity of each laser cutting path segment by utilizing the middle point of the segment path and the thickness of the veneer corresponding to the middle point of the segment path;
calculating a second inflection point speed for each laser cutting path section by using the section path termination point and the veneer thickness corresponding to the section path termination point;
and calculating the segment cutting speed corresponding to each laser cutting path segment based on the first inflection point speed, the tangential speed and the second inflection point speed.
7. The method for cutting veneer by laser according to claim 1, wherein the optimizing the cutting process parameters based on the multi-objective cuckoo algorithm to obtain optimized cutting process parameters comprises:
initializing based on the cutting process parameters to obtain a cuckoo population, wherein the cuckoo population comprises a plurality of initial nests;
calculating the fitness value of all initial nests in the cuckoo population;
updating the plurality of initial nests based on the Lewy flight algorithm to obtain a plurality of updated nests, and calculating the fitness value of all updated nests;
Ascending order is carried out on all initial nests according to the fitness value of the initial nests, and ascending order is carried out on all updated nests according to the fitness value of the updated nests;
comparing all initial nests with all updated nests based on ascending order, if the fitness value of the updated nest is larger than that of the initial nest, replacing the initial nest with the updated nest, if the fitness value of the updated nest is smaller than or equal to that of the initial nest, replacing the initial nest is not needed, and comparing and replacing all the initial nests with the updated nest to obtain a new brook bird population;
and (3) updating, comparing and replacing the nest in the new cuckoo population to the preset iteration times to obtain an optimized cuckoo population, and taking the nest with the largest fitness value in the optimized cuckoo population as the optimized cutting process parameter.
8. The method of cutting veneer by laser according to claim 1, wherein the laser cutting device performs cutting treatment on the veneer based on the optimized laser cutting path, laser cutting speed and optimized cutting process parameters to obtain the cut veneer, comprising:
grabbing wood veneer to a working table of laser cutting equipment based on a mechanical arm;
And adjusting the laser cutting equipment based on the optimized laser cutting path, the laser cutting speed and the optimized cutting process parameters, and calibrating and cutting the veneer on the workbench surface by the adjusted laser cutting equipment to obtain the veneer after the cutting treatment.
9. The method of laser cutting veneer according to claim 1, wherein the quality inspection of the cut veneer and the generation of a quality inspection report comprises:
obtaining a wood veneer image after cutting treatment, and comparing the wood veneer image after cutting treatment with a template image to obtain a comparison result;
performing size measurement on the wood veneer after the cutting treatment based on measurement equipment to obtain a size measurement result;
and comparing the comparison result with the dimension measurement result based on a preset standard to obtain a quality test result, and generating a quality test report by using a preset script based on the quality test result.
10. A system for laser cutting veneer, the system comprising:
the data acquisition module is used for acquiring veneer information data and cutting process parameters;
the cutting path planning module is used for carrying out laser cutting path planning processing by utilizing a firework algorithm based on the veneer information data to obtain an optimized laser cutting path;
A cutting speed calculation module for calculating a laser cutting speed based on the optimized laser cutting path;
the process parameter optimization module is used for optimizing the cutting process parameters based on a multi-target cuckoo algorithm to obtain optimized cutting process parameters;
the cutting module is used for cutting the veneer by the laser cutting equipment based on the optimized laser cutting path, the laser cutting speed and the optimized cutting process parameters to obtain the cut veneer;
the quality inspection module is used for performing quality inspection on the cut veneer and generating a quality inspection report.
CN202311670869.2A 2023-12-07 2023-12-07 Method and system for cutting veneer by laser Pending CN117564501A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311670869.2A CN117564501A (en) 2023-12-07 2023-12-07 Method and system for cutting veneer by laser

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311670869.2A CN117564501A (en) 2023-12-07 2023-12-07 Method and system for cutting veneer by laser

Publications (1)

Publication Number Publication Date
CN117564501A true CN117564501A (en) 2024-02-20

Family

ID=89893773

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311670869.2A Pending CN117564501A (en) 2023-12-07 2023-12-07 Method and system for cutting veneer by laser

Country Status (1)

Country Link
CN (1) CN117564501A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109542103A (en) * 2018-12-25 2019-03-29 北京理工大学 A kind of robot welding paths planning method based on fireworks particle swarm algorithm
US20200101608A1 (en) * 2018-09-30 2020-04-02 Xiangtan University Method and system for determining motion path of mechanical arm
CN114297802A (en) * 2021-12-31 2022-04-08 福州大学 Multi-objective optimization method for laser cutting technological parameters of thin plate
CN115145225A (en) * 2022-06-23 2022-10-04 福州大学 An optimization method of special-shaped sponge cutting path based on fireworks algorithm
CN117139873A (en) * 2023-10-30 2023-12-01 南通弘铭机械科技有限公司 Precision machining positioning method and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20200101608A1 (en) * 2018-09-30 2020-04-02 Xiangtan University Method and system for determining motion path of mechanical arm
CN109542103A (en) * 2018-12-25 2019-03-29 北京理工大学 A kind of robot welding paths planning method based on fireworks particle swarm algorithm
CN114297802A (en) * 2021-12-31 2022-04-08 福州大学 Multi-objective optimization method for laser cutting technological parameters of thin plate
CN115145225A (en) * 2022-06-23 2022-10-04 福州大学 An optimization method of special-shaped sponge cutting path based on fireworks algorithm
CN117139873A (en) * 2023-10-30 2023-12-01 南通弘铭机械科技有限公司 Precision machining positioning method and system

Similar Documents

Publication Publication Date Title
CN110245802B (en) Cigarette empty-head rate prediction method and system based on improved gradient lifting decision tree
CN113344019A (en) K-means algorithm for improving decision value selection initial clustering center
CN115809624B (en) An automatic analysis and design method for integrated circuit microstrip line transmission line
CN111026917B (en) A data packet classification method and system based on convolutional neural network
CN117236278B (en) Chip production simulation method and system based on digital twin technology
CN111351860A (en) Wood internal defect detection method based on Faster R-CNN
CN119026538B (en) Epitaxial precision optimization method and device for DFB high-speed laser chip
CN114429537B (en) Method of Extracting Buddha Niches from Grotto Point Cloud
CN110990784A (en) A method for predicting the ventilation rate of cigarettes based on gradient boosting regression tree
CN114077774B (en) Optical proximity correction method and system, mask, device and storage medium
CN117829078A (en) Acute angle repairing method and system for integrated circuit layout
CN110825642B (en) Software code line-level defect detection method based on deep learning
CN113705110B (en) Blasting vibration speed prediction method based on double random forest regression method
CN117564501A (en) Method and system for cutting veneer by laser
CN114970247A (en) An automatic modeling method of high-fidelity finite element model for blisk structure
CN119169304A (en) A method and system for automatic extraction of rock mass traces based on point cloud
CN113566739A (en) Library matching method, system, server and storage medium for optical scattering
WO2025055625A1 (en) Method and apparatus for transferring defect detection model, device, and storage medium
CN113311795A (en) Intelligent production line product quality control method and system based on machine learning
CN109325241B (en) Translation robot optimization method based on consistency calculation and computer system thereof
CN118070671A (en) A method for predicting the milling accuracy of aeroengine blades based on KDE feature representation
CN112147471B (en) GIL partial discharge source positioning method and system
CN111767518B (en) AWCC parameter value determining method, device, equipment and computer storage medium
CN111259806B (en) Face area identification method, device and storage medium
CN113313213A (en) Data set processing method for accelerating training of target detection algorithm

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