Detection method for realizing uniform slitting of irregular cigarette packets and computer program product

文档序号:1533056 发布日期:2020-02-14 浏览:8次 中文

阅读说明:本技术 对不规则烟包实现均匀分切的检测方法及计算机程序产品 (Detection method for realizing uniform slitting of irregular cigarette packets and computer program product ) 是由 游玲 张云东 张云 李江乐 刘滨 蒋明民 杨松 经坤 朱朝晖 艾迎春 封向东 于 2019-10-24 设计创作,主要内容包括:本发明公开了一种对不规则烟包实现均匀分切检测的计算机程序产品,所述的计算机程序产品被有形地存放存储在工控机的非瞬态可读存储介质上,该计算机程序被工控机内的处理器执行。实现步骤包括:当物料进入检测区域时,3D相机自动内部触发、检测开关发出信号触发线扫相机开始检测并将数据上传至工控机,工控机中的算法程序计算出物料的总体积和侧面总面积积以及物料的总长度;算法通过判断3D相机检测出来的长度是否有效来决定按照体或者面积数据计算分切各片的长度,并按照系统要求的分片数量,计算出每一块物料的长度作为分切数据输出。(The invention discloses a computer program product for realizing uniform cutting detection on irregular cigarette packets, wherein the computer program product is tangibly stored on a non-transient readable storage medium of an industrial personal computer, and the computer program is executed by a processor in the industrial personal computer. The implementation steps comprise: when the material enters a detection area, the 3D camera automatically triggers internally, the detection switch sends a signal to trigger the line scanning camera to start detection and upload data to the industrial personal computer, and an algorithm program in the industrial personal computer calculates the total area of the material, the total area of the side face and the total length of the material; the algorithm determines to calculate the length of each piece according to volume or area data by judging whether the length detected by the 3D camera is effective, and calculates the length of each piece of material as cutting data to be output according to the number of pieces required by the system.)

1. A computer program product for detecting uniform slitting of irregular cigarette packets, said computer program product being tangibly stored on a non-transitory readable storage medium of an industrial personal computer, characterized in that the computer program is executed by a processor in the industrial personal computer for implementing the steps of:

s1, when the material passes through the entrance of the detection area and enters the detection area, the 3D camera is automatically triggered internally, the detection switch sends a signal through the isolation relay to trigger the line scanning camera and control to turn on the light source, and the 3D camera and the line scanning camera start to detect;

s2, in the process of uniform motion of the material in the detection area, the 3D camera and the line scanning camera upload detection data to the industrial personal computer, and an algorithm program in the industrial personal computer calculates the total side area S of the material and the total volume V of the material by the following method:

the method comprises the following steps that S2-1, an industrial personal computer acquires the side area of a material, a line scanning camera outputs an image of a tobacco bale to the industrial personal computer, an algorithm program of the industrial personal computer continuously divides the tobacco bale image in the length direction of the tobacco bale at intervals of p to form a plurality of strip images corresponding to the length of p, the side area of each strip image is calculated and stored, and the algorithm program of the industrial personal computer accumulates all the side areas to calculate the total side area S of the material and the total side length L1 of the material:

in the formula: s, Si, L1 and p respectively represent the total area of the side face of the material, the area of the side face of the sheet taking the segmentation interval p as the length, the total length of the material calculated by a line scanning camera and the image segmentation interval, wherein Si is data which continuously changes in the continuous segmentation process in the length direction of the cigarette packet, and L1 is a multiple of p;

the industrial personal computer S2-2 gathers the volume of material, and the 3D camera constantly outputs the volume data that corresponds h length according to scanning interval h, and the industrial personal computer acquires the volume data in real time and saves, and the algorithm program of industrial personal computer calculates the total volume V of material and total length L2 of material according to final data:

Figure FDA0002245986830000012

in the formula: v, Vi, L2 and h respectively represent the total volume of the material, the volume of a piece taking a scanning interval h as the length, the total length of the material and the scanning interval of a 3D camera are calculated by the 3D camera, Vi is data which changes along with the movement of the material, and L2 is a multiple of h;

L1=n×p

L2=m×h

in the formula: l1, n, p represent the total length of the material, the number of times for completing the side image segmentation and the image segmentation interval calculated by the line scan camera respectively;

l2, m and h respectively represent the total length of the material calculated by the 3D camera, the times for the 3D camera to judge the completion of material collection and the scanning interval of the 3D camera;

s3 judging whether the total length L2 of the materials detected by the 3D camera is in the set range

S3-1, if the total length of the material L2 is in the set range

S3-1-1 calculation of mean slice volume data VN

Figure FDA0002245986830000021

In the formula: vNV, N respectively represent the average volume of slices, the total volume of material and the number of slices calculated according to the number of slices;

s3-1-2, calculating the length of the first piece of the cut material

Figure FDA0002245986830000022

In the formula: vi、VNIi represents the number of accumulated processes of the sheet body with the scanning interval h as the length, the average volume of the slices calculated according to the specific number of the slices and the number of processes of accumulating the scanning interval h from 1 to the first slice material respectively;

in the calculation, when Vi satisfies the above formula, the cumulative result of the first sliced material is obtained:

I1=Ii

in the formula: i is1Ii respectively represents the accumulated value of the scanning interval h of the first sliced material, and the current value of the previous calculation formula is met when the first sliced material is accumulated from 1 in the process of accumulating the scanning interval h;

calculate the length of the first panel:

X1=I1×h

in the formula: x1、I1H respectively represents the length of the first sliced material, the accumulated value of the scanning interval h of the first sliced material and the scanning interval of the 3D camera;

calculating the length of the second piece of the divided material

In the formula: vi、VNIi represents the accumulated volume number of the sheet body with the scanning interval h as the length, the average volume of the slices calculated according to the specific number of the slices and the process number of the accumulated scanning interval h of the second slice material from the end of the first block;

in the calculation, when Vi satisfies the above formula, the cumulative result of the second sliced material is obtained:

I2=Ii-I1

in the formula: i is2、Ii、I1Respectively representing the cumulative value of the scanning interval h of the second sliced material when the second sliced material is from I1The current value of the previous calculation formula and the accumulated value of the scanning interval h of the first slice material are met in the process of starting accumulating the scanning interval h;

calculate the length of the second piece:

X2=I2×h

in the formula: x2、I2H respectively represents the length of the second sliced material, the accumulated value of the scanning interval h of the second sliced material and the scanning interval of the 3D camera;

by analogy, X is calculated1、X2…XNThe data of (a);

s3-1-3, outputting a slitting data result;

s3-2, if the total length L2 of the material is not in the set range, calculating by using the detection result of the line scan camera

S3-2-1, calculating average slicing area data SN;

Figure FDA0002245986830000031

in the formula: sNS, N respectively represent the average side area of the slices, the total side area of the material and the number of the slices calculated according to the number of the slices;

s3-2-2, calculating the length of the first piece of the cut material

Figure FDA0002245986830000032

In the formula: si、SN、IiRespectively representing the cumulative process number of the slice-side area with the length of the division interval p, the average side area of the slice calculated according to the specific slice number and the cumulative division interval p of the first slice material from 1The number of processes of (a);

in the calculation, when Si satisfies the above formula, the cumulative result of the first sliced material is obtained:

I1=Ii

in the formula: i is1Ii respectively represents the cumulative value of the segmentation interval p of the first sliced material, and satisfies the current value of the previous calculation formula in the process of accumulating the segmentation interval p from 1 by the first sliced material;

calculate the length of the first panel:

X1=I1×p

in the formula: x1、I1P respectively represents the length of the first sliced material, the accumulated value of the first sliced material passing through the division interval p and the division interval;

calculating the length of the second piece of the divided material

In the formula: si、SNIi represents the cumulative number of slice-side areas with the division interval p as the length, the average slice-side area calculated according to a specific number of slices, and the process number of the second slice material accumulating the division interval p from the end of the first block, respectively;

in the calculation, when Si satisfies the above formula, the cumulative result of the second sliced material is obtained:

I2=Ii-I1

in the formula: i is2、Ii、I1Respectively representing the cumulative value of the division interval p of the second sliced material when the second sliced material is from I1The current value of the previous calculation formula and the accumulated value of the segmentation interval p of the first slice material are met in the process of starting accumulating the segmentation interval p;

calculate the length of the second piece:

X2=I2×p

in the formula: x2、I2Respectively representing a second slice of materialLength, cumulative value of division interval p of the second piece of sliced material and division interval p;

by analogy, X is calculated1、X2…XNThe data of (a);

s3-3 judgment of X1、X2…XNWhether the data of (1) meets the maximum cutting capacity;

s3-3-1 satisfies the range, and outputs X1 and X2 … XN

And S3-3-2, if the data exceeds the cutting capacity, the following steps are carried out: and sending out alarm information of 'detection error'.

Technical Field

The invention relates to a detection method for realizing uniform slitting of irregular cigarette packets and a computer program product; the method and the computer program product thereof can be directly applied to a tobacco shredding production line in the tobacco industry, and the aim of uniform slitting is fulfilled by detecting the appearance of the tobacco packet before slicing, calculating slicing data of uniform slitting and outputting the slicing data to a slicing machine.

Background

Taking the application of a tobacco shred production line as an example, the tobacco bale belongs to a block material, and the slicing machine for slicing the tobacco bale is required to cut the tobacco bale according to the specified equal quality. Generally, under the condition that the default cigarette packet density is constant and the cut surfaces are the same, the slicer can perform uniform slicing in the length direction of the cigarette packet to realize uniform cutting.

However, in practical application, there are some irregular cigarette packets with irregular shapes, and if the slicing length with the same length is adopted to slice, the slicing length will cause a large deviation in weight or volume between the blocks after slicing, which will affect the realization of the subsequent process index.

Currently, equipment manufacturing companies are always trying to solve the above problems and strive to improve and perfect the slicing machine to obtain better slicing results. In general, the technical means of major improvement can be divided into the following three aspects:

1) the feeding of the cigarette packet is controlled by adopting a length control system during slicing, so that the length of each cigarette packet is basically balanced during slicing;

2) slicing is carried out according to the formula data by adopting pre-stored cigarette packet length data and a brand comparison table, so that the phenomenon that slicing is not uniform due to the length difference of cigarette packets of different brands is avoided;

3) the length data of each cigarette packet is detected by adopting a mode of combining an encoder with a photoelectric switch, and the unevenness of slicing caused by the length difference of cigarette packets of different brands can be avoided.

Although the methods can solve the problems caused by the length deviation of the cigarette packet and the inaccuracy of the cigarette packet feeding in the slicing process, the measures and means for solving the problems completely fail for the cigarette packet with an irregular shape, so that the method and the equipment for realizing the inaccurate slicing and the uniform cutting of the cigarette packet with the irregular shape are not available up to now.

Disclosure of Invention

The technical problem to be solved by the invention is as follows:

the invention aims to solve the problems of accurate slicing and uniform slitting of irregular cigarette packets and can be applied to the technical field of uniform slitting of irregular cigarette packets.

Aiming at the problems in the prior art, the invention provides a high-speed and high-efficiency non-contact type appearance detection method and a detection system thereof, wherein the detection method is used for calculating slicing data through a slicing algorithm and outputting the slicing data to a slicing machine to realize uniform slitting of irregular cigarette packets.

The technical scheme adopted by the invention is as follows:

generally speaking, the method of the invention is a detection method which adopts a visual detection mode to detect the appearance and the external dimension of an irregular cigarette packet and calculates the slicing data through a slicing algorithm program arranged in an industrial personal computer, and the method can detect the appearance and the external dimension of the cigarette packet on line in real time. The general concept is as follows: a detection switch, a 3D camera and a line scanning camera are installed at a detection inlet, and images of the 3D camera and the line scanning camera are output to an industrial personal computer. When the materials enter a detection area, the 3D camera automatically triggers internally, meanwhile, a detection switch sends a signal to trigger the line scanning camera to start detection and upload data to an industrial personal computer, and an algorithm program in the industrial personal computer calculates the total area and the total side area of the materials and the total length of the materials; the algorithm determines whether the length of the cigarette packet detected by the 3D camera is effective or not by calculating the length of each cut piece according to the volume or side area data, and calculates the length of each material as cut data to be output according to the number of the cut pieces required by the system.

The invention is realized by the following technical scheme:

a detection method for realizing uniform slitting of irregular cigarette packets comprises the following steps:

s1, when the material passes through the entrance of the detection area and enters the detection area, the 3D camera is automatically triggered internally, the detection switch sends a signal through the isolation relay to trigger the line scanning camera and control to turn on the light source, and the 3D camera and the line scanning camera start to detect;

s2, in the process of uniform motion of the material in the detection area, the 3D camera and the line scanning camera upload detection data to the industrial personal computer, and an algorithm program in the industrial personal computer calculates the total side area S of the material and the total volume V of the material by the following method:

the method comprises the following steps that S2-1, an industrial personal computer acquires the side area of a material, a line scanning camera outputs an image of a tobacco bale to the industrial personal computer, an algorithm program of the industrial personal computer continuously divides the tobacco bale image in the length direction of the tobacco bale at intervals of p to form a plurality of strip images corresponding to the length of p, the side area of each strip image is calculated and stored, and the algorithm program of the industrial personal computer accumulates all the side areas to calculate the total side area S of the material and the total side length L1 of the material:

Figure BDA0002245986840000021

in the formula: s, Si, L1 and p respectively represent the total area of the side face of the material, the area of the side face of the sheet taking the segmentation interval p as the length, the total length of the material calculated by a line scanning camera and the image segmentation interval, wherein Si is data which continuously changes in the continuous segmentation process in the length direction of the cigarette packet, and L1 is a multiple of p;

the industrial personal computer S2-2 gathers the volume of material, and the 3D camera constantly outputs the volume data that corresponds h length according to scanning interval h, and the industrial personal computer acquires the volume data in real time and saves, and the algorithm program of industrial personal computer calculates the total volume V of material and total length L2 of material according to final data:

Figure BDA0002245986840000031

in the formula: v, Vi, L2 and h respectively represent the total volume of the material, the volume of a sheet taking a scanning interval h as the length, the total length of the material calculated by a 3D camera and the scanning interval of the 3D camera, wherein Vi is data which continuously changes along with the movement of the material, and L2 is a multiple of h;

L1=n×p

L2=m×h

in the formula: l1, n, p represent the total length of the material, the number of times for completing the side image segmentation and the image segmentation interval calculated by the line scan camera respectively;

l2, m and h respectively represent the total length of the material calculated by the 3D camera, the times for the 3D camera to judge the completion of material collection and the scanning interval of the 3D camera;

s3 judging whether the total length L2 of the materials detected by the 3D camera is in the set range

S3-1, if the total length of the material L2 is in the set range

S3-1-1 calculating an average slice volume data VN

Figure BDA0002245986840000032

In the formula: vNV, N respectively represent the average volume of slices, the total volume of material and the number of slices calculated according to the number of slices;

s3-1-2, calculating the length of the first piece of the cut material

In the formula: vi, VNIi represents the number of accumulated processes of the sheet body with the scanning interval h as the length, the average volume of the slices calculated according to the specific number of the slices and the number of processes of accumulating the scanning interval h from 1 to the first slice material respectively;

in the calculation, when Vi satisfies the above formula, the cumulative result of the first sliced material is obtained:

I1=Ii

in the formula: i is1Ii respectively represents the accumulated value of the scanning interval h of the first sliced material, and the current value of the previous calculation formula is met when the first sliced material is accumulated from 1 in the process of accumulating the scanning interval h;

calculate the length of the first panel:

X1=I1×h

in the formula: x1、I1H respectively represents the length of the first sliced material, the accumulated value of the scanning interval h of the first sliced material and the scanning interval of the 3D camera;

calculating the length of the second piece of the divided material

Figure BDA0002245986840000041

In the formula: vi, VNIi represents the accumulated volume number of the sheet body with the scanning interval h as the length, the average volume of the slices calculated according to the specific number of the slices and the process number of the accumulated scanning interval h of the second slice material from the end of the first block;

in the calculation, when Vi satisfies the above formula, the cumulative result of the second sliced material is obtained:

I2=Ii-I1

in the formula: i is2、Ii、I1Respectively representing the cumulative value of the scanning interval h of the second sliced material when the second sliced material is from I1The current value of the previous calculation formula and the accumulated value of the scanning interval h of the first slice material are met in the process of starting accumulating the scanning interval h;

calculate the length of the second piece:

X2=I2×h

in the formula: x2、I2H respectively represents the length of the second sliced material, the accumulated value of the scanning interval h of the second sliced material and the scanning interval of the 3D camera;

by analogy, X is calculated1、X2…XNThe data of (a);

s3-1-3, outputting a slitting data result;

s3-2, if the total length L2 of the material is not in the set range, calculating by using the detection result of the line scan camera

S3-2-1, calculating average slicing area data SN;

Figure BDA0002245986840000042

in the formula: sNS, N respectively represent the average side area of the slices, the total side area of the material and the number of the slices calculated according to the number of the slices;

s3-2-2, calculating the length of the first piece of the cut material

Figure BDA0002245986840000051

In the formula: si, SNIi represents the cumulative process number of the slice-side area with the division interval p as the length, the average side area of the slice calculated according to the specific slice number and the process number of the cumulative division interval p from 1 of the first slice material;

in the calculation, when Si satisfies the above formula, the cumulative result of the first sliced material is obtained:

I1=Ii

in the formula: i is1Ii respectively meets the current value of the previous calculation formula in the process of accumulating the segmentation interval p from 1 by the first slice material;

calculate the length of the first panel:

X1=I1×p

in the formula: x1、I1P respectively represents the length of the first sliced material, the accumulated value of the first sliced material passing through the division interval p and the division interval;

calculating the length of the second piece of the divided material

Figure BDA0002245986840000052

In the formula: si, SNIi represents the cumulative number of slice-side areas with the division interval p as the length, the average slice-side area calculated according to a specific number of slices, and the process number of the second slice material accumulating the division interval p from the end of the first block, respectively;

in the calculation, when Si satisfies the above formula, the cumulative result of the second sliced material is obtained:

I2=Ii-I1

in the formula: i is2、Ii、I1Respectively representing the cumulative value of the division interval p of the second sliced material when the second sliced material isFrom materials I1The current value of the previous calculation formula and the accumulated value of the segmentation interval p of the first slice material are met in the process of starting accumulating the segmentation interval p;

calculate the length of the second piece:

X2=I2×p

in the formula: x2、I2Respectively representing the length of the second piece of sliced material, the accumulated value of the division intervals p of the second piece of sliced material and the division intervals p;

by analogy, X is calculated1、X2…XNThe data of (a);

s3-3 judgment of X1、X2…XNWhether the data of (1) meets the maximum cutting capacity;

s3-3-1, outputting X when all data satisfy the range1、X2…XN

And S3-3-2, if the data exceeds the cutting capacity, the following steps are carried out: and sending out alarm information of 'detection error'.

A computer program product for performing uniform cut detection on irregular cigarette packets, said computer program product being tangibly stored on a non-transitory readable storage medium of an industrial personal computer, having the following features:

the computer program is executed by a processor in the industrial personal computer to realize the steps of the detection method for realizing uniform slitting of the irregular cigarette packet.

Further, a detection system for realizing uniform slitting of irregular cigarette packets comprises a control box arranged at the position of an equipment rack and an industrial personal computer arranged above the position of the control box; the system also comprises a detection switch mounting bracket which is arranged at the inlet of the material detection area and is vertical to the material conveying direction and at the head-up position, and a detection switch which is mounted at the position, facing the material detection area, of the detection switch mounting bracket, wherein the output signal of the detection switch is connected to an isolation relay mounted inside the control box and is connected to the linear array camera after being isolated by the isolation relay; the device also comprises a top support arranged above the material at the material detection area inlet, a side support arranged at the rack at the material detection area inlet, a 3D camera arranged on the top support, a line scanning camera arranged on the side support and a line scanning camera light source; and the image output signals of the 3D camera and the line scanning camera are connected to an Ethernet interface of an industrial personal computer through Ethernet.

Further, the linear scanning camera light source is installed at two ends of the linear scanning camera, a power supply line of the linear scanning camera light source is connected to the control box, and the linear scanning camera light source is started and stopped synchronously with the linear scanning camera.

Furthermore, the detection switch adopts a correlation type or diffuse reflection type photoelectric switch, when the material enters a detection area of the trigger system, the detection switch sends out a switching value signal, and the signal passes through the isolation relay and simultaneously outputs a signal to the camera.

Still further, the device comprises a line scanning camera mirror cleaning device which is arranged below the frame, and an air outlet of the device is arranged on one side of the mirror.

The invention has the beneficial effects that:

the invention provides a non-contact, high-speed and high-efficiency method and a system for detecting the appearance of an irregular cigarette packet, and provides a high-precision slicing algorithm for realizing uniform cutting of materials, and the method and the system can be directly used for detecting the appearance of the cigarette packet before slicing on a tobacco shred production line in the tobacco industry and realizing uniform cutting. The invention also realizes that:

the method for detecting the appearance and the size of the irregular cigarette packet is provided for the first time, and the method has a greater propulsion effect on the detection method of the materials;

and II, replacing various methods for detecting the length of the cigarette packet at the front end of the traditional slicer, installing and maintaining the periphery of the material conveying equipment to form an independent system and device, and easily solving the improvement and expansion of the existing equipment.

Drawings

FIG. 1 is a front view of the detection system of the present invention for achieving uniform slitting of irregular cigarette packets;

FIG. 2 is a left side view of the detection system of the present invention for achieving uniform slitting of irregular cigarette packets;

fig. 3 is a right side view (with the outer cover removed) of the detection system of the present invention for achieving uniform slitting of irregular cigarette packets;

fig. 4 is a circuit schematic diagram of the internal circuit of the control box of the detection system for realizing uniform slitting of irregular cigarette packets;

FIG. 5 is a flow chart of the steps of the detection method of the present invention for achieving uniform slitting of irregular cigarette packets;

fig. 6 is a flow chart of a data acquisition method of the detection method for realizing uniform slitting of irregular cigarette packets according to the present invention;

FIG. 7 is a flow chart of a data calculation method of the detection method for achieving uniform slitting of irregular cigarette packets according to the present invention;

in the figure, 1-a detection switch mounting bracket, 2-a detection switch, 3-an isolation relay, 4-a top bracket, 5-a 3D camera, 6-a side bracket, 7-a line scanning camera, 8-a line scanning camera light source, 9-a line scanning camera reflector, 10-a reflector cleaning device, 11-an industrial personal computer and 12-a control box.

Detailed Description

The invention is further described with reference to the accompanying drawings, but the invention is not limited in any way, and any alterations or substitutions based on the teaching of the invention are within the scope of the invention.

Referring to fig. 1 to 4, a detection system for uniformly slitting irregular cigarette packets comprises a control box 12 arranged at an equipment rack and an industrial personal computer 11 arranged above the control box; the device also comprises a detection switch mounting bracket 1 which is arranged at the inlet of the material detection area and is vertical to the material conveying direction and at the head-up position, and a detection switch 2 which is arranged at the position, facing the material detection area, of the detection switch mounting bracket 1, wherein the output signal of the detection switch 2 is connected to an isolation relay 3 which is arranged inside a control box 12, and is connected to a line scanning camera 7 after being isolated by the isolation relay 3; the device also comprises a top bracket 4 arranged at the inlet of the material detection area and above the material, a side bracket 6 arranged at the inlet of the material detection area and at the frame, a 3D camera 5 arranged on the top bracket 4, a line scanning camera 7 arranged on the side bracket 6 and a line scanning camera light source 8; the image output signals of the 3D camera 5 and the line scan camera 7 are connected to an Ethernet interface of the industrial personal computer 11 through Ethernet.

Further, a line scan camera light source 8 is included, the line scan camera light source 8 is installed at both ends of the line scan camera 7, its power supply line is connected to the control box 12, and the line scan camera light source 8 is turned on and off in synchronization with the turning on and off of the line scan camera 7.

Furthermore, the detection switch 2 adopts a correlation type or diffuse reflection type photoelectric switch, when the material enters a detection area of the trigger system, the detection switch 2 sends out a switching value signal, and the signal passes through the isolation relay 3 and then outputs a signal to the camera.

Further, a line scan camera mirror cleaning device 10 is included, the line scan camera mirror cleaning device 10 being disposed below the chassis, an air outlet of the device being installed at a side of the mirror 9.

Referring to fig. 5, 6 and 7, a detection method for realizing uniform slitting of irregular cigarette packets comprises the following steps:

s1, when the material passes through the entrance of the detection area and enters the detection area, the 3D camera 5 is automatically triggered internally, the detection switch sends a signal to trigger the line scanning camera 7 through the isolation relay and controls to turn on the line scanning camera light source 8, and the 3D camera 5 and the line scanning camera 7 start to detect;

s2, in the process of uniform motion of the material in the detection area, the 3D camera 5 and the line scan camera 7 upload detection data to the industrial personal computer 11, and an algorithm program in the industrial personal computer 11 calculates the total side area S and the total volume V of the material by the following method:

the industrial personal computer S2-1 collects the side area of the material, the line scanning camera 7 outputs the tobacco bale image to the industrial personal computer 11, the algorithm program of the industrial personal computer 11 continuously divides the tobacco bale image in the length direction of the tobacco bale by taking p as an interval, a plurality of strip images corresponding to the length of p are formed, the side area of each sheet is calculated and stored, and the algorithm program of the industrial personal computer 11 accumulates the side areas of all sheets to calculate the total side area S of the material and the total side length L1 of the material:

in the formula: s, Si, L1 and p respectively represent the total area of the side face of the material, the area of the side face of the sheet taking the segmentation interval p as the length, the total length of the material calculated by a line scanning camera and the image segmentation interval, wherein Si is data which continuously changes in the continuous segmentation process in the length direction of the cigarette packet, and L1 is a multiple of p;

s2-2 industrial computer 11 gathers the volume of material, and 3D camera 5 constantly outputs the volume data that corresponds h length according to scanning interval h, and industrial computer 11 acquires the volume data in real time and saves, and industrial computer 11 calculates the total volume V of material and total length of material L2 according to final data:

in the formula: v, Vi, L2 and h respectively represent the total volume of the material, the volume of a sheet taking a scanning interval h as the length, the total length of the material and the scanning interval of the 3D camera 5 are calculated by the 3D camera 5, Vi is data which changes along with the movement of the material, and L2 is a multiple of h;

L1=n×p

L2=m×h

in the formula: l1, n, p respectively represent the total length of the material, the number of times for completing the side image segmentation and the image segmentation interval calculated by the line scan camera 7; (ii) a

L2, m, h respectively represent the total length of the material calculated by the 3D camera 5, the number of times for the 3D camera 5 to judge the completion of material collection, and the scanning interval of the 3D camera 5;

s3 judging whether the total length L2 of the materials detected by the 3D camera 5 is in the set range

S3-1, if the total length of the material L2 is in the set range

S3-1-1 calculating an average slice volume data VN

Figure BDA0002245986840000091

In the formula:VNV, N respectively represent the average volume of slices, the total volume of material and the number of slices calculated according to the number of slices;

s3-1-2, calculating the length of the first piece of the cut material

Figure BDA0002245986840000092

In the formula: vi, VNIi represents the number of accumulated processes of the sheet body with the scanning interval h as the length, the average volume of the slices calculated according to the specific number of the slices and the number of processes of accumulating the scanning interval h from 1 to the first slice material respectively;

in the calculation, when Vi satisfies the above formula, the cumulative result of the first sliced material is obtained:

I1=Ii

in the formula: i is1Ii respectively represents the accumulated value of the scanning interval h of the first sliced material, and the current value of the previous calculation formula is met when the first sliced material is accumulated from 1 in the process of accumulating the scanning interval h;

calculate the length of the first panel:

X1=I1×h

in the formula: x1、I1H respectively represents the length of the first sliced material, the accumulated value of the scanning interval h of the first sliced material and the scanning interval of the 3D camera 5;

calculating the length of the second piece of the divided material

Figure BDA0002245986840000101

In the formula: vi, VNIi represents the accumulated volume number of the sheet body with the scanning interval h as the length, the average volume of the slices calculated according to the specific number of the slices and the process number of the accumulated scanning interval h of the second slice material from the end of the first block;

in the calculation, when Vi satisfies the above formula, the cumulative result of the second sliced material is obtained:

I2=Ii-I1

in the formula: i is2、Ii、I1Respectively representing the cumulative value of the scanning interval h of the second sliced material when the second sliced material is from I1The current value of the previous calculation formula and the accumulated value of the scanning interval h of the first slice material are met in the process of starting accumulating the scanning interval h;

calculate the length of the second piece:

X2=I2×h

in the formula: x2、I2H respectively represents the length of the second sliced material, the accumulated value of the scanning interval h of the second sliced material and the scanning interval of the 3D camera 5;

by analogy, X is calculated1、X2…XNThe data of (a);

s3-1-3, outputting a slitting data result;

s3-2, if the total length L2 of the material is not in the set range, calculating by using the detection result of the line scanning camera 7;

s3-2-1, calculating average slicing area data SN;

Figure BDA0002245986840000102

in the formula: SN, S and N respectively represent the average side area of the slices, the total side area of the material and the specific number of the slices calculated according to the specific number of the slices;

s3-2-2, calculating the length of the first piece of the cut material

Figure BDA0002245986840000103

In the formula: si, SN and Ii respectively represent the cumulative process number of the slice side area taking the segmentation interval p as the length, the average side area of the slices calculated according to the specific slice number and the process number of the first slice material accumulating the segmentation interval p from 1;

in the calculation, when Si satisfies the above formula, the cumulative result of the first sliced material is obtained:

I1=Ii

in the formula: i is1Ii respectively meets the current value of the previous calculation formula in the process of accumulating the segmentation interval p from 1 by the first slice material;

calculate the length of the first panel:

X1=I1×p

in the formula: x1、I1P respectively represents the length of the first sliced material, the accumulated value of the first sliced material passing through the division interval p and the division interval;

calculating the length of the second piece of the divided material

Figure BDA0002245986840000111

In the formula: si, SN and Ii respectively represent the cumulative number of the slice side areas taking the segmentation interval p as the length, the average slice side area calculated according to the specific number of slices and the process number of the second slice material accumulating the segmentation interval p from the end of the first block;

in the calculation, when Si satisfies the above formula, the cumulative result of the second sliced material is obtained:

I2=Ii-I1

in the formula: i is2、Ii、I1Respectively representing the cumulative value of the division interval p of the second sliced material when the second sliced material is from I1The current value of the previous calculation formula and the accumulated value of the segmentation interval p of the first slice material are met in the process of starting accumulating the segmentation interval p;

calculate the length of the second piece:

X2=I2×p

in the formula: x2、I2P respectively represents the length of the second sliced material, the accumulated value of the division intervals p of the second sliced material and the division intervals p;

by analogy, X is calculated1、X2…XNThe data of (a);

s3-3 judgment of X1、X2…XNWhether the data of (1) meets the maximum cutting capacity;

s3-3-1, outputting X when all data satisfy the range1、X2…XN

And S3-3-2, if the data exceeds the cutting capacity, the following steps are carried out: and sending out alarm information of 'detection error'.

A computer program product for performing uniform cut detection on irregular cigarette packets, said computer program product being tangibly stored on a non-transitory readable storage medium of an industrial personal computer, having the following features:

the computer program is executed by a processor in the industrial personal computer to realize the steps of the detection method for realizing uniform slitting of the irregular cigarette packet.

20页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:手操器的定位方法、装置、存储介质及电子设备

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!