A design method for paper defect detection system
By applying the wooden barrel theory in the paper defect detection system and allocating hardware resources in a balanced manner, the problem of reduced accuracy and high cost of the detection system for paper machines with high vehicle speeds and wide paper widths is solved, achieving fast and accurate detection and resource saving.
Patent Information
- Application Number
- CN202110791444.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-07-13
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2041-07-13
AI Technical Summary
Due to unbalanced hardware configuration, the existing paper defect detection system is difficult to detect paper machines with high speed and wide paper width, and the utilization rate of system modules is low, resulting in reduced detection accuracy and high economic costs.
Adopt a design method based on barrel theory to determine the performance parameters of the image acquisition module, paper defect detection module and data storage module, select the lowest cost hardware components, establish a paper defect detection system that meets the minimum hardware standards, and ensure a balanced allocation of system resources .
It achieves fast and accurate paper defect detection, reduces the investment cost of papermaking enterprises, meets the detection needs of different assembly lines, and avoids waste of resources.
Smart Images

Figure CN113504241B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of papermaking equipment, and in particular to a design method for a paper defect detection system. Background Art
[0002] During the production process, special paper is easily affected by internal factors and the production environment, resulting in different appearance defects. These surface defects are called paper diseases.
[0003] The paper defect detection system based on machine vision is an emerging paper defect detection technology. Compared with manual detection, it has the characteristics of non-contact, high precision and high efficiency. However, with the increase of paper machine speed and width, the speed and accuracy of paper defect detection have been greatly reduced.
[0004] In the existing paper defect detection system, due to the unbalanced hardware configuration, the detection system can only detect paper machines with low speed and small paper width, which is difficult to meet the detection accuracy required by the enterprise. At the same time, the utilization rate of each module in the system is low, and the economic cost of the entire paper defect detection system is high. Summary of the invention
[0005] The embodiment of the present invention provides a method for designing a paper defect detection system, which is used to solve the problem in the prior art that the detection system can only detect paper machines with low speed and small paper width due to unbalanced hardware configuration, as well as the low module utilization rate in the system.
[0006] On the one hand, an embodiment of the present invention provides a method for designing a paper defect detection system, wherein the paper defect detection system includes: an image acquisition module, a paper defect detection module, and a data storage module, and the method includes:
[0007] Determine the performance parameters of the image acquisition module, paper defect detection module and data storage module according to actual needs;
[0008] Select the image acquisition module, paper defect detection module and data storage module that meet the performance parameters and have the lowest cost;
[0009] A paper defect detection system is established using the selected image acquisition module, paper defect detection module, and data storage module.
[0010] In a possible implementation, the image acquisition module includes: a camera and a lens; determining the performance parameters of the image acquisition module includes: determining the resolution and acquisition frequency of the camera; and determining the size, focal length, aperture and resolution of the lens.
[0011] In one possible implementation, the resolution and acquisition frequency of the camera are determined, including: determining the required total number of pixels based on the lateral width of the detection area, the required unit precision, and the total number of pixels in the unit precision, and determining the resolution of the camera based on the determined required total number of pixels; determining the acquisition frequency of the camera based on the operating speed of the paper machine, the required unit precision, and the total number of pixels in the unit precision.
[0012] In a possible implementation, determining the size, focal length, aperture and resolution of the lens includes: determining the size of the lens according to the imaging size of the camera; determining the focal length of the lens according to the imaging size of the camera, the distance between the lens and the paper, and the length of the detection area; determining the aperture of the lens according to the focal length of the lens and the effective aperture of the lens; and determining the resolution of the lens according to the resolution of the camera.
[0013] In a possible implementation, the performance parameter of the paper defect detection module is the amount of data that can be processed per unit time, and the performance parameter is determined according to the resolution and acquisition frequency of the camera.
[0014] In a possible implementation manner, the performance parameter of the data storage module is a data storage speed.
[0015] A paper defect detection system design method in the present invention has the following advantages:
[0016] Based on the barrel theory, with configuration balance as the main research goal, a set of effective reference paper defect detection system architecture construction solutions is designed. For different production lines, the system architecture is designed with the minimum hardware required by the system as the standard, and the minimum adaptation solution is proposed, which ultimately achieves the effect of meeting user needs without wasting system resources, effectively reducing investment costs for papermaking enterprises, and can also quickly and accurately complete the detection and identification of paper defects. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0018] Figure 1 A flow chart of a method for designing a paper defect detection system provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0019] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0020] Figure 1 A flow chart of a paper defect detection system design method provided by an embodiment of the present invention. The present invention provides a paper defect detection system design method, and the paper defect detection system to be designed includes: an image acquisition module, a paper defect detection module and a data storage module. The image acquisition module is used to acquire paper images during the operation of the paper machine. The paper defect detection module is used to process the paper image and determine whether there is a paper defect in the paper image. The data storage module is used to store the paper image. The above-mentioned design method includes the following steps:
[0021] S100, determining the performance parameters of the image acquisition module, the paper defect detection module and the data storage module according to actual needs;
[0022] S101, selecting an image acquisition module, a paper defect detection module, and a data storage module that meet performance parameters and have the lowest cost;
[0023] S102. Establish a paper defect detection system using the selected image acquisition module, paper defect detection module and data storage module.
[0024] Exemplarily, when the paper defect detection module determines that there is a paper defect in the paper image, the paper image with the paper defect is transmitted to a data storage module connected to a PC (personal computer), and the PC further processes the paper image to determine the location and type of the paper defect. For paper images without paper defects, the paper defect detection module transmits them to the data storage module for storage. It can be seen that the data storage module in the above-mentioned paper defect detection system has two uses. The data storage module connected to the PC stores fewer paper images and has low requirements for data storage speed, that is, the above-mentioned performance parameters. Therefore, general storage devices such as mechanical hard disks or ordinary solid-state hard disks can be selected, while the data storage module used to store paper images without paper defects has higher requirements for storage speed, which needs to be determined according to the amount of data generated by the paper image.
[0025] In an embodiment of the present invention, the paper defect detection system further includes a light source module and a mechanical control module. The light source module is used to generate an illumination light source to increase the brightness of the paper image acquired by the image acquisition module. The mechanical control module can use a marking machine. When the PC determines the position of the paper defect on the paper, the mechanical control module can mark the position where the paper defect exists on the paper.
[0026] The present invention adopts the wooden barrel theory to design the paper disease detection system. The wooden barrel theory is also called the short board theory, and its core content is: the amount of water a wooden barrel can hold does not depend on the longest board on the barrel wall, but depends on the shortest board on the barrel wall. Based on this content, there are two inferences: first, only when all the boards on the barrel wall are high enough, the wooden barrel can be full of water. Second, as long as there is a board in the wooden barrel that is not high enough, the water in the wooden barrel cannot be full, and the materials used for the board higher than the shortest board are a waste of resources. Extended to the paper disease detection system of the present invention is: if the complete paper disease detection process is to be realized, all modules of the system need to meet the requirements of real-time data processing. As long as one module does not meet the requirements, the real-time online detection function of paper diseases cannot be completed, and modules higher than the minimum standard are a waste of resources. In order to save costs, when designing the paper disease detection system architecture, the system architecture is designed based on the minimum hardware required by the system.
[0027] In a possible embodiment, the image acquisition module includes: a camera and a lens; determining the performance parameters of the image acquisition module includes: determining the resolution and acquisition frequency of the camera; and determining the size, focal length, aperture and resolution of the lens.
[0028] For example, in a paper defect detection system based on machine vision, the selection of the camera determines the image quality and indirectly determines the accuracy of the detection. Therefore, the selection of a suitable camera plays a decisive role in the accuracy of the detection. The real-time calculation of the camera data processing capability is mainly based on the data generated by the camera in a unit time. The quality of the lens affects the image acquisition range and imaging effect.
[0029] In a possible embodiment, determining the resolution and acquisition frequency of the camera includes: determining the required total number of pixels based on the lateral width of the detection area, the required unit precision, and the total number of pixels in the unit precision, and determining the resolution of the camera based on the determined required total number of pixels; determining the acquisition frequency of the camera based on the operating speed of the paper machine, the required unit precision, and the total number of pixels in the unit precision.
[0030] For example, the camera resolution refers to the total number of pixels of an image that can be captured by the camera in a single image capture, which is generally determined by multiplying the total number of pixels in the horizontal direction that the camera can capture by the total number of pixels in the vertical direction. In a paper defect detection system, the camera resolution generally needs to be determined based on the width of the surface to be detected and the accuracy required by the user, as shown in Formula 1.
[0031]
[0032] Where P nrepresents the total number of pixels required, w represents the horizontal width of the detection area in millimeters, ε represents the unit precision required by the user in square millimeters, and n represents the total number of pixels in the unit precision. The larger the value of n, the more pixels are required in the unit precision, and the lower the detection speed of the system at the same acquisition frequency. The value of n is generally concentrated in {1, 4, 9, 16, 25}. When the paper machine width is relatively large, P n The value of will far exceed the resolution of a single camera. The resolution of a single camera cannot meet the requirements of full-frame detection. Multiple cameras need to be arranged in parallel horizontally to meet the detection requirements. The number of cameras is calculated by dividing the total number of pixels required for the horizontal detection width by the horizontal resolution of a single camera.
[0033] The acquisition frequency of the camera is mainly determined by the required unit accuracy and detection speed. Generally speaking, for cameras of the same frequency, when the required detection accuracy is high, the detection speed of the system will be slower. On the contrary, when the required detection accuracy is low, the detection speed of the system will be faster. The relationship between the acquisition frequency of the camera and the detection accuracy and detection speed is shown in Equation 2.
[0034]
[0035] Where f is the acquisition frequency of the camera, in Hertz (Hz); s is the running speed of the paper machine, in meters per minute; ε is the unit accuracy required by the user, in square millimeters; and n is the total number of pixels in the unit accuracy. When the detection accuracy and speed are relatively high, the camera frequency will also increase, and the hardware cost will also increase.
[0036] In a possible embodiment, determining the size, focal length, aperture and resolution of the lens includes: determining the size of the lens according to the imaging size of the camera; determining the focal length of the lens according to the imaging size of the camera, the distance between the lens and the paper, and the length of the detection area; determining the aperture of the lens according to the focal length of the lens and the effective aperture of the lens; and determining the resolution of the lens according to the resolution of the camera.
[0037] For example, the imaging capability of the camera can only be fully utilized when the size of the lens is greater than or equal to the imaging size of the camera, otherwise the effective size of the camera will be wasted. In order to better utilize the performance of the camera, a lens that is larger than the imaging size of the camera is generally selected.
[0038] According to the imaging principle of the camera, the focal length is proportional to the distance between the camera and the object being collected. When the distance between the camera and the object being collected is determined, a lens with a large focal length can collect a smaller area, while a lens with a small focal length can collect a larger area. In order to choose a suitable lens, you can use the calculation of formula 3 to select a lens with a suitable focal length.
[0039] f=A×H / L (3)
[0040] In the paper defect detection system, f in Formula 3 represents the focal length, A represents the imaging size of the camera, H represents the distance between the lens and the object to be collected, that is, the paper, and L represents the length of the area to be detected. In general, the imaging size A of the camera can be determined in advance and can be determined based on the detection accuracy and the resolution of the camera. A short-focus lens can achieve wide-angle acquisition, but areas far from the center may be distorted, resulting in image distortion; when the distance between the telephoto lens and the object to be collected is determined, the area that can be collected becomes smaller. When the width of the object to be collected is fixed, more cameras are required to achieve full-frame acquisition of the object to be collected, and the system cost will be higher.
[0041] The aperture of the lens determines the amount of light entering the camera per unit time. The larger the aperture, the more light enters the camera per unit time, and the brighter the captured image. Generally, the aperture size is expressed by F plus a number. The size of the aperture is inversely proportional to the number following F. The larger the number, the smaller the aperture. The calculation formula is shown in Formula 4.
[0042] F=f / d (4)
[0043] In the formula, F represents the aperture value, f represents the focal length of the lens, and d represents the effective aperture of the lens.
[0044] The resolution of a lens refers to the number of black and white lines that can be distinguished within 1 mm on the image plane. The unit is "line pairs / mm" and it is a way to quantify the contrast and clarity of an image. When the camera resolution is constant, the higher the lens resolution, the higher the clarity of the captured image. Generally, a lens with a resolution slightly higher than the camera resolution is selected.
[0045] In a possible embodiment, the performance parameter of the paper defect detection module is the amount of data that can be processed per unit time, and the performance parameter is determined according to the resolution and acquisition frequency of the camera.
[0046] Exemplarily, the amount of data generated by the camera per unit time, that is, the amount of data that can be processed by the paper defect detection module per unit time, is calculated as shown in Formula 5.
[0047] Data=P*f (5)
[0048] Where Data represents the amount of data generated per unit time, in bytes per second (B / s); P is the camera resolution, and f is the camera acquisition frequency.
[0049] When the speed and width of the paper machine increase, the serial CPU cannot complete the data processing in real time. However, FPGA (field programmable gate array) can realize resource scheduling between multiple cores, laying a good foundation for pipeline and data parallelism. In addition, its advantage of rapid customization is suitable for detection modules with high real-time requirements in paper defect detection systems. Therefore, FPGA is selected as the paper defect detection module.
[0050] In a possible embodiment, the performance parameter of the data storage module is data storage speed.
[0051] For example, the data storage module is connected to the FPGA, and the FPGA is responsible for storing the collected paper image on the data storage module using the data bus. The amount of data generated by this module is large and the real-time requirement is high, requiring the storage speed of the data storage module to be greater than the speed at which the camera generates data. In order to achieve the optimal configuration of the system, the storage speeds of different storage devices need to be compared, as shown in Table 1.
[0052] Table 1 Comparison of storage speeds of different storage devices
[0053]
[0054]
[0055] As can be seen from the table, the storage speed of SSDs is much higher than that of mechanical hard disks and flash drives. Ordinary SSDs can also achieve a speed of 300MBps. For the same SSD, the storage speed of high-end SSDs with PCI-E interface is nearly 10 times higher than that of SSDs with SATA3.0 interface. This is mainly caused by the different storage methods of the two different interfaces. In the SSD with traditional SATA interface, data needs to be read from the hard disk to the memory first, and then the data is extracted to the CPU for calculation. After calculation, it also needs to be written to the computer's memory by the CPU, and then stored in the SSD by the memory. The PCI-E interface has no memory link, and the data to be stored can communicate directly with the CPU through the system bus, which has doubled the transmission efficiency and speed.
[0056] Experimental description:
[0057] In the experiment based on the present invention, the paper width detected by the medium and high speed paper machine paper defect detection system is 0.8m, and the unit accuracy requirement is 0.1mm×0.1mm. Assuming that 1 pixel is required within the unit accuracy, the number of pixels required in the horizontal direction can be calculated as 8000 according to Formula 1. Then, 4 2K cameras, 2 4K cameras, and 1 8K camera can meet the horizontal pixel requirements. The fastest line speed of paper can reach 1130.1m / min. Substituting into Formula 2, the acquisition frequency required by the system is 188.35KHZ. According to the frequency distribution of the camera, the acquisition frequency of the camera needs to be above 200KHZ. Currently, there are not many types of CCD cameras that can reach above 200KHZ in industrial linear array cameras, and many CMOS cameras can reach above 300KHZ, so only CMOS cameras can be selected. The total amount of data that can be generated per second is 1436.996MB. In terms of the selection of transmission interface, only Camera link HS and optical fiber can meet the conditions. In terms of paper defect detection, only DSP and FPGA can process 1436.996MB of data per second. In terms of data storage, more than 1GB of data needs to be written to the hard disk per second. Ordinary hard disks cannot meet this requirement, so only high-end solid-state hard disks can be used.
[0058] From the performance analysis alone, there are many hardware configurations that can meet the paper defect detection system. For example, in terms of camera selection, a CMOS camera with a 200KHz acquisition frequency, a resolution of 8192, and Camera link HS can be selected; in terms of paper defect detection, an FPGA board can be selected; in terms of data storage, a high-end solid-state hard disk with an M.2 interface can be selected; and in terms of paper defect type identification, a high-end host computer can be selected. There are also many hardware devices that meet the above conditions to choose from. However, for papermaking companies, in the process of hardware selection, not only must the system requirements be met, but the economic cost and system stability requirements are also relatively high. The higher the product, the higher the design difficulty and implementation difficulty will be, and the price will also be higher accordingly. For example, the total price of four 2K cameras is less than that of an 8K camera, and the stability of cameras with low resolution is relatively higher; the amount of data generated by a single 2K camera is relatively small, and it is easier to find an adapted FPGA board.
[0059] According to the previous analysis, the experiment decided to adopt the CMOS camera + FPGA + host computer mode. In order to effectively save data and test the storage effect of FPGA, a Samsung 970EVO Plus 250GB M.2 interface (NVMe protocol) solid-state drive was selected. The actual storage speed can reach 2300MB / s, which meets the system requirements.
[0060] Although the preferred embodiments of the present invention have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.
[0061] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.
Claims
1. A paper defect detection system design method, It is characterized in that The paper defect detection system comprises: an image acquisition module, a paper defect detection module and a data storage module, and the method comprises: Determine the performance parameters of the image acquisition module, paper defect detection module and data storage module according to actual needs; Select the image acquisition module, paper defect detection module and data storage module that meet the performance parameters and have the lowest cost; Establishing the paper defect detection system using the selected image acquisition module, paper defect detection module and data storage module; The performance parameter of the data storage module is the data storage speed. When the paper defect detection module determines that there is a paper defect in the paper image, the paper image with the paper defect is transmitted to the data storage module connected to the PC, and the PC further processes the paper image to determine the location and type of the paper defect. For the paper image without the paper defect, the paper defect detection module transmits it to the data storage module for storage. The data storage module connected to the PC has a lower data storage speed requirement than the data storage module used to store the paper image without the paper defect. The image acquisition module includes: a camera and a lens; Determining the performance parameters of the image acquisition module includes: Determine the resolution and acquisition frequency of the camera: determining the size, focal length, aperture and resolution of the lens; Determining the resolution and acquisition frequency of the camera includes: Determining the required total number of pixels according to the lateral width of the detection area, the required unit precision and the total number of pixels in the unit precision, and determining the resolution of the camera according to the determined required total number of pixels; Determine the acquisition frequency of the camera according to the running speed of the paper machine, the required unit precision and the total number of pixels in the unit precision; Determining the size, focal length, aperture and resolution of the lens includes: Determine the size of the lens according to the imaging size of the camera; Determining the focal length of the lens according to the imaging size of the camera, the distance between the lens and the paper, and the length of the detection area; Determining the aperture of the lens according to the focal length of the lens and the effective aperture of the lens; The resolution of the lens is determined according to the resolution of the camera.
2. A paper defect detection system design method according to claim 1, It is characterized in that The performance parameter of the paper defect detection module is the amount of data that can be processed per unit time, and the performance parameter is determined according to the resolution and acquisition frequency of the camera.
