Visual inspection system and method for grading veneer of boards

By using cameras and linear array light combined with image processing algorithms in the board veneer grading visual inspection system, automatic grading detection of board veneer is realized, which solves the problems of low efficiency and strong subjectivity of traditional methods, and improves detection efficiency and accuracy. , to meet different user needs.

CN118464939BActive Publication Date: 2024-10-11QINGDAO JUNHANG VISION INTELLIGENT EQUIP CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410643003.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-05-23
Publication Date
2024-10-11
Estimated Expiration
2044-05-23

AI Technical Summary

Technical Problem

The traditional board and veneer grading method relies on manual visual inspection, which is inefficient and highly subjective. It cannot meet the detection needs of special board and veneer materials. The existing detection method based on line array cameras is complicated to operate and needs to be used in conjunction with other equipment, making it impossible to implement. Efficient and accurate grading testing.

Method used

A board veneer grading visual inspection system including a camera, a vision controller and a linear array light is designed. By accurately controlling the light source and camera parameters, image processing algorithms are used to automatically detect board defect characteristics, and automatic grading configuration is achieved through logical judgment. Realize a fully automated process from image acquisition to defect detection to automatic grading.

Benefits of technology

It greatly improves production efficiency and product quality, enables rapid and accurate identification and analysis of board veneer defect characteristics, meets the diverse needs of different users for board quality, and provides a scientific and reasonable basis for quality assessment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118464939B_ABST
    Figure CN118464939B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of visual quality control technology, and specifically to a visual inspection system and method for grading board veneer. The present invention includes a board located on an assembly line, and a visual inspection device arranged above the assembly line, the visual inspection device including a camera, a visual controller, a linear array light bar and a light source controller, the camera is located above the linear array light bar and is electrically connected to the visual controller; the linear array light bar is provided with a plurality of strips and is obliquely irradiated from both sides of the assembly line toward the board on the assembly line; the defect features existing in the board veneer are detected by the visual controller, and the grading configuration of the board veneer is realized after the detected defect features are analyzed and determined. The present invention also provides a method. The present invention realizes a fully automated process from image acquisition to defect detection to automatic grading, greatly improving production efficiency and product quality.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of visual quality control, and in particular to a visual inspection system and method for grading board veneer. Background Art

[0002] With the rapid development of the wood processing industry, the quality and grading accuracy of board veneer are increasingly required. Traditional grading methods mainly rely on manual visual inspection and classification, which have problems such as low efficiency and strong subjectivity. In order to solve the above technical problems, technical personnel in this field have made the following efforts. For example, the Chinese patent publication number is CN115511825A, which discloses a surface defect visual detection method and device based on a linear array camera, which uses a linear array camera to collect an image of an object to be detected based on a four-directional light source; the image of the object to be detected is used to obtain a surface defect visual detection result based on the photometric stereo method. However, the above scheme still has the following problems that have not been solved: it needs to be used in conjunction with other equipment or systems, and the operation is relatively complicated; it cannot adapt to the detection requirements of special materials such as board veneer. Therefore, it is of great significance to develop an efficient and accurate visual detection method for board veneer grading. Summary of the invention

[0003] The technical problem to be solved by the present invention is to overcome the deficiencies of the prior art and provide a visual inspection system and method for grading board veneer.

[0004] The technical solution adopted by the present invention is as follows:

[0005] A visual inspection system for grading board veneer includes a board on an assembly line and a visual inspection device arranged above the assembly line, wherein:

[0006] The visual inspection device includes a camera, a visual controller, a linear array light and a light source controller. The camera is located above the linear array light and is electrically connected to the visual controller. A plurality of linear array light strips are provided and are inclined to illuminate the plates on the assembly line from both sides of the assembly line. One end of the linear array light strip is connected to the light source controller.

[0007] The defect features of the board veneer are detected by the visual controller, and the grading configuration of the board veneer is realized after the detected defect features are analyzed and determined.

[0008] This technical solution obtains high-quality plate images by precisely controlling the light source and camera parameters; uses image processing algorithms to automatically detect defect features on the plates; and finally, through logical judgment, realizes automatic grading configuration of the plates. The entire system realizes a fully automated process from image acquisition to defect detection to automatic grading, greatly improving production efficiency and product quality. Specifically, the camera is located above the linear array light bar, and clearly captures the surface of the plate illuminated by the linear array light bar; the vision controller controls the camera's shooting parameters, such as exposure time, gain, white balance, etc., and transmits the image data captured by the camera to the processing unit for analysis and judgment; the linear array light bar is a special lighting device, and the light it emits forms a line, which is used to illuminate the surface of the plate; there are multiple linear array light bars, which illuminate the plate obliquely from both sides of the assembly line to ensure that each area on the surface of the plate can be evenly illuminated, thereby obtaining a high-quality image; the light source controller is responsible for controlling the brightness and stability of the linear array light bar; after receiving the plate image captured by the camera, the vision controller analyzes the image through the image processing algorithm to detect For the defect features on the veneer of the board, the image processing algorithm usually includes filtering, enhancement, edge detection, feature extraction and other steps to extract the defect features and reduce noise interference; after detecting the defect features, the system conducts quantitative analysis on these features, such as calculating the size, number, density and other parameters of the defects; according to the preset grading standards (such as the number and severity of defects), the system will automatically judge the board and determine its quality grade; based on the judgment results, the system classifies the board into different grades and marks or sorts them through output devices (such as displays, printers or control systems); the grading configuration is flexibly set according to the actual application needs to meet the requirements of different users for board quality.

[0009] In addition, the above-mentioned visual inspection system for grading board veneer according to the present invention also has the following additional technical features:

[0010] According to one embodiment of the present invention, the camera uses a lens of model MVL-AF2045M-M42, with a FOV of 1500mm, a WD of 1000mm, a single pixel accuracy of 0.366mm / pixel, and a maximum compatible speed of 1400mm / s.

[0011] In this technical solution, the field of view (FOV) of the camera lens is 1500mm: the size of the FOV depends on the focal length of the lens and the distance from the camera to the plate (working distance). The shorter the focal length, the larger the FOV; the closer the working distance, the larger the FOV. The working distance (WD) is 1000mm: the working distance refers to the physical distance from the camera lens to the plate object; a shorter WD is suitable for occasions requiring high resolution or close observation, while a longer WD is used for occasions that need to avoid interference or maintain a safe distance; the single pixel accuracy (0.366mm / pixel) describes the actual ground size represented by each pixel in the camera image. The single pixel accuracy depends on the focal length of the lens, the pixel size of the image sensor, and the WD. A higher single pixel accuracy means that each pixel in the image represents a smaller actual ground size, thereby providing a higher spatial resolution. The maximum compatible speed (1400mm / s) refers to the maximum moving speed of the target object that the camera can clearly image.

[0012] According to one embodiment of the present invention, the linear array light bar adopts a high-brightness linear array light bar of model MV-CL042KF-91GC-PRO. The linear array light bar is 150 mm away from the plate, and the interval between adjacent plates is 200-300 mm.

[0013] In this technical solution, the linear array light strip structure adopts the linear array light strip structure with 4K linear array camera technology, appropriate distance and spacing to improve the accuracy and efficiency of plate surface defect detection. The high pixel density linear array can provide more detailed lighting effects, reduce shadows and light spots, and thus improve the imaging quality of the visual inspection system; the linear array light strip is 150mm away from the plate to ensure that the light evenly covers the plate surface, avoiding strong light areas caused by being too close and insufficient light caused by being too far; the interval between adjacent plates is between 200-300mm, ensuring that the linear array light strip can illuminate each plate individually and clearly, avoiding light interference between adjacent plates, and ensuring that there is enough space between plates on the assembly line for movement and processing.

[0014] According to an embodiment of the present invention, the defect characteristics existing in the veneer of the board are classified into holes, dead knots, cracks, oblique threads, and live joints; among which live joints are defects to be optimized.

[0015] In this technical solution, each defect feature has its own unique appearance, cause and impact, so classification is helpful for subsequent defect detection and grading. Bias usually refers to the direction of wood fibers not being parallel to the surface of the board, which makes the board easy to crack or deform when subjected to force; live joints are formed due to damage or pests suffered by the wood during its growth process, and their existence will affect the strength and stability of the board. Live joints are classified as defects to be optimized. Although these two defects have a greater impact on the appearance, structure and performance of the board, they are easier to reduce or eliminate than other defects by optimizing the processing technology or subsequent treatment.

[0016] According to an embodiment of the present invention, the defect characteristics of the veneer of the board are classified into large, medium and small according to the single area; the grading configuration is set by the customer as level one, level two and level three standards according to the type, size and quantity of each defect.

[0017] This technical solution achieves accurate assessment and control of sheet quality by quantifying defect characteristics, supporting customer customization needs, combining standardization with flexibility, providing decision support and quality control, and enhancing market adaptability. It not only meets customers' diverse needs for sheet quality, but also ensures the versatility and stability of the system.

[0018] To achieve the above object, the present invention also provides a visual inspection method for grading board veneer.

[0019] A visual inspection method for grading board veneer comprises the following steps:

[0020] S1. Visual inspection device deployment:

[0021] S11. Determine the inspection area: Select a suitable location for installing the visual inspection device on the production line to ensure that the veneer of the board to be inspected is covered;

[0022] S12. Install the camera: Install the camera at the selected location, ensuring that it is vertically or tilted at a certain angle to the board veneer so as to capture a clear image;

[0023] S13. Install the linear light strip: Install the linear light strip on the linear light strip bracket, and adjust its angle and height as needed to ensure that the light source is evenly irradiated on the board veneer;

[0024] S14, connecting the device and the controller: electrically connecting the camera, linear array light bar and light source controller to the visual controller to ensure normal data transmission;

[0025] S15, system initialization and calibration: start the system and perform initialization settings, including camera parameter settings, light source brightness adjustment, and system calibration;

[0026] S2. Board veneer image acquisition:

[0027] S21, triggering image acquisition: when the board veneer moves to the detection area, the image acquisition function is triggered by the sensor or encoder;

[0028] S22, camera exposure imaging: after receiving the trigger signal, the camera starts to expose and capture the image of the board veneer;

[0029] S23, image transmission processing: the camera transmits the captured image to the vision controller for processing, including image noise reduction and enhancement;

[0030] S24, image storage backup: store the processed images in the location specified by the system, and back up important data to prevent data loss;

[0031] S3. Defect feature recognition and analysis:

[0032] S31, image processing and analysis: processing the collected images, including image segmentation, edge detection, and feature extraction;

[0033] S32, defect feature recognition: Use image processing algorithms or machine learning models to identify defect features in images, including holes, dead knots, and cracks;

[0034] S33, defect feature quantification: quantitative analysis of identified defect features, including extraction of size, quantity, and location;

[0035] S34. Defect feature classification and rating: classify and rate defect features according to preset rules and standards to determine their severity and level;

[0036] S4. Board veneer grading configuration:

[0037] S41. Data integration analysis: Integrate the analysis results of defect characteristics with the size and humidity of the board veneer to form complete board data;

[0038] S42, grading determination: judging the plate data according to the preset grading standard and algorithm to determine the grade of the plate;

[0039] S43, grading result output: the grading result is recorded and fed back in the form of interface display and data output for user reference and use;

[0040] S44. Subsequent processing suggestions: Give corresponding subsequent processing suggestions or operation instructions based on the grading results to help users optimize the process or improve the quality of the board.

[0041] This technical solution embodies the characteristics of automation, intelligence and precision. Through visual inspection technology and data processing algorithms, it can realize the rapid and accurate identification and analysis of the defect characteristics of the board veneer. Through user-defined grading standards and algorithms, it can meet the different needs of different users for board quality, which not only improves the efficiency and accuracy of board inspection, but also provides users with a more scientific and reasonable basis for board quality assessment. Specifically, step S1 ensures that the inspection area is fully covered by the reasonable deployment of visual inspection devices; the accurate installation and calibration of cameras and linear array lights are the key to obtaining high-quality images, which directly affects the accuracy and efficiency of subsequent defect identification, ensures the accuracy and reliability of the inspection system, and provides a basis for subsequent image acquisition and defect identification; step S2 triggers image acquisition through sensors or encoders to ensure that the camera can accurately capture its image when the board veneer moves to the inspection area; the image transmission and processing process ensures the quality and clarity of the image, provides high-quality input data for subsequent analysis, captures the image of the board veneer in real time, and provides data support for defect feature identification; step S3 uses image processing algorithms or machine learning to The learning model processes and analyzes the image to extract the defect features in the veneer of the board; the quantitative analysis further determines the size, quantity and location of the defects to provide a basis for subsequent rating, accurately identifies and quantifies the defect features in the veneer of the board, and provides a scientific basis for board grading; step S4 integrates the analysis results of the defect features with other properties of the board (such as size, moisture), and comprehensively evaluates the board through preset grading standards and algorithms. The output of the grading results and subsequent processing suggestions provide users with a basis for optimizing the process flow and improving the quality of the board; by comprehensively considering the various properties of the board, accurately evaluate its quality grade, and provide users with corresponding processing suggestions to help users optimize the process flow and improve product quality.

[0042] In addition, the above-mentioned visual inspection system for grading board veneer according to the present invention also has the following additional technical features:

[0043] According to one embodiment of the present invention, in the trigger image acquisition of step S21, a pair of photoelectric sensors are installed on both sides of the detection area of ​​the assembly line, and when the board veneer passes by, the light of the photoelectric sensors is blocked, thereby triggering a signal; or, an encoder used to control the speed on the assembly line uses the pulse signal of the encoder to determine the position of the board veneer; when the board veneer reaches a predetermined position, the encoder generates a specific pulse signal.

[0044] The two triggering mechanisms of this technical solution both reflect the accurate detection of position and movement in the automatic control system. Among them, the photoelectric sensor provides a simple and direct non-contact detection method, while the encoder provides more accurate and reliable position information. Both methods can ensure that when the board veneer reaches the predetermined position, the camera can accurately capture its image, providing data support for subsequent defect identification and grading.

[0045] According to one embodiment of the present invention, in the defect feature identification of step S32, a labeled data set including defect samples and non-defect samples is constructed, and the defect samples include holes, dead knots, and cracks; the data set includes various different board veneer images, and the defects in each image are accurately marked; a convolutional neural network is selected to build a model, and the labeled data set is used to train the model so that it learns and recognizes the defect features in the image; during and after the training process, a validation set is used to evaluate the performance of the model; based on the evaluation results, the parameters or structure of the model are adjusted to optimize its recognition effect; and the trained model is deployed in a visual inspection system for real-time identification of defect features in board veneer images.

[0046] This technical solution achieves accurate identification and analysis of defect features in board veneer images by constructing high-quality data sets, selecting appropriate deep learning models, conducting effective training and evaluation, and reasonable model deployment and application. This not only improves detection efficiency and accuracy, but also provides strong support for board quality control and process optimization.

[0047] According to an embodiment of the present invention, in the defect feature quantification of step S33, it is assumed that after the processing of the binary image, the defect area is marked as 1, representing white or bright color, and the non-defect area is marked as 0, representing black or dark color;

[0048] Before starting the quantitative analysis, set a list sizes to store the size of each defect, a list counts to count the total number of defects, and a list positions to store the position of each defect in the image;

[0049] Traverse each pixel of the entire binary image, and for each pixel, check the pixel value; use OpenCV's findContours to find the contours of all continuous defect areas; if the value of the current pixel is 1, that is, a defective pixel, enter the defect analysis process and calculate the defect size:

[0050] For each defect area, this is done by calculating the total number of pixels in the area, i.e. the area; each time a defect area is identified, the value of counts is increased by 1 to keep track of the total number of defects;

[0051] The position of each defect in the image is achieved by calculating the center coordinates or bounding box of the defect area. Assuming the center coordinates are known, they are added to the positions list. Image processing algorithms are used to find the bounding box and calculate the center coordinates based on it. The results of the quantitative analysis include the size of each defect, the total number of defects, and the location of each defect.

[0052] The technical solution quantifies defect features by processing a binary image, in which defect areas are marked as white or bright, and non-defect areas are marked as black or dark; three lists are set to store the size, total number and position of each defect respectively; each pixel of the image is traversed, and the continuous defect area contours are identified using the findContours function of OpenCV, and the area of ​​each defect area is calculated to determine the size, while tracking the total number of defects; the position of each defect in the image is determined by calculating the center coordinates or bounding box of the defect area, and this information is stored in the corresponding list; the results of the quantitative analysis will include the size of each defect, the total number of defects and the position of each defect.

[0053] According to an embodiment of the present invention, in the subsequent processing suggestion of step S44, processing suggestions are given according to the defect situation:

[0054] For defects to be optimized by secondary processing, including joint scars, secondary processing is recommended;

[0055] Determine the specific methods of secondary processing, including grinding, cutting, and repair coating;

[0056] Estimate the cost and time required for secondary processing, as well as the expected results after processing;

[0057] For serious defects that cannot be repaired by conventional methods, including severe cracks and large-area damage, special treatment or scrapping is recommended;

[0058] Determine methods for special treatment, including special coatings, partial replacement or reinforcement;

[0059] Evaluate the feasibility and cost-effectiveness of special treatment and determine if scrapping is necessary.

[0060] In this technical solution, for defects to be optimized that can be repaired through secondary processing, such as joint scars, it is recommended to carry out secondary processing and determine specific processing methods, such as grinding, cutting, repair coating, etc., and estimate the processing cost and required time, as well as the expected effect after processing; for serious defects that cannot be repaired by conventional methods, such as serious cracks, large-area damage, etc., it is recommended to carry out special treatment or scrapping, and determine special treatment methods, such as special coatings, local replacement or reinforcement, etc., and evaluate the feasibility and cost-effectiveness of special treatment, and determine whether scrapping is required.

[0061] Compared with the prior art, the present invention has the following beneficial effects:

[0062] (1) The system of the present invention obtains high-quality plate images by precisely controlling the light source and camera parameters; automatically detects defect features on the plate using image processing algorithms; and finally realizes automatic grading configuration of the plate through logical judgment. The entire system realizes a fully automated process from image acquisition to defect detection to automatic grading, greatly improving production efficiency and product quality;

[0063] (2) The method of the present invention realizes rapid and accurate identification and analysis of the defect characteristics of the veneer of the board through visual inspection technology and data processing algorithm. Through user-defined grading standards and algorithms, it meets the different needs of different users for board quality, which not only improves the efficiency and accuracy of board inspection, but also provides users with a more scientific and reasonable basis for board quality assessment. BRIEF DESCRIPTION OF THE DRAWINGS

[0064] Figure 1 It is a flow diagram of the method of the present invention.

[0065] Figure 2 It is one of the structural schematic diagrams of the system of the present invention.

[0066] Figure 3 This is the second structural diagram of the system of the present invention.

[0067] Figure 4 It is one of the cross-sectional views of the hierarchical configuration of the present invention.

[0068] Figure 5 It is one of the cross-sectional views of the graded configuration measurement of the present invention.

[0069] Figure 6 It is an example schematic diagram of the defect characteristics of the present invention.

[0070] In the figure: 1. Plate; 2. Camera; 3. Linear array light. DETAILED DESCRIPTION

[0071] 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 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.

[0072] Example 1

[0073] like Figure 2 and Figure 3As shown, this embodiment provides a board veneer grading visual inspection system, including a board 1 located on an assembly line, and a visual inspection device arranged above the assembly line, wherein:

[0074] The visual inspection device includes a camera 2, a visual controller, a linear array light bar 3 and a light source controller. The camera 2 is located above the linear array light bar 3 and is electrically connected to the visual controller. The linear array light bar 3 is provided with a plurality of strips and is inclined to illuminate the plate 1 on the assembly line from both sides of the assembly line. One end of the linear array light bar 3 is connected to the light source controller.

[0075] The defect features of the veneer of the board 1 are detected by the visual controller, and the grading configuration of the veneer of the board 1 is realized after the detected defect features are analyzed and determined.

[0076] like Figure 2 and Figure 3 As shown, this technical solution obtains high-quality plate images by precisely controlling the light source and camera parameters; uses image processing algorithms to automatically detect defect features on the plate; and finally, through logical judgment, realizes automatic grading configuration of the plate. The entire system realizes a fully automated process from image acquisition to defect detection to automatic grading, greatly improving production efficiency and product quality. Specifically, the camera is located above the linear array light bar, and clearly captures the surface of the plate illuminated by the linear array light bar; the visual controller controls the camera's shooting parameters, such as exposure time, gain, white balance, etc., and transmits the image data captured by the camera to the processing unit for analysis and judgment; the linear array light bar is a special lighting device, and the light it emits forms a line, which is used to illuminate the surface of the plate; there are multiple linear array light bars, which illuminate the plate obliquely from both sides of the assembly line to ensure that each area on the surface of the plate can be evenly illuminated, thereby obtaining a high-quality image; the light source controller is responsible for controlling the brightness and stability of the linear array light bar; after receiving the plate image captured by the camera, the visual controller analyzes the image through the image processing algorithm to detect For the defect features on the veneer of the board, the image processing algorithm usually includes filtering, enhancement, edge detection, feature extraction and other steps to extract the defect features and reduce noise interference; after detecting the defect features, the system conducts quantitative analysis on these features, such as calculating the size, number, density and other parameters of the defects; according to the preset grading standards (such as the number and severity of defects), the system will automatically judge the board and determine its quality grade; based on the judgment results, the system classifies the board into different grades and marks or sorts them through output devices (such as displays, printers or control systems); the grading configuration is flexibly set according to the actual application needs to meet the requirements of different users for board quality.

[0077] In addition, the above-mentioned visual inspection system for grading board veneer according to the present invention also has the following additional technical features:

[0078] According to one embodiment of the present invention, the camera uses a lens of model MVL-AF2045M-M42, with a FOV of 1500mm, a WD of 1000mm, a single pixel accuracy of 0.366mm / pixel, and a maximum compatible speed of 1400mm / s.

[0079] In this technical solution, the field of view (FOV) of the camera lens is 1500mm: the size of the FOV depends on the focal length of the lens and the distance from the camera to the plate (working distance). The shorter the focal length, the larger the FOV; the closer the working distance, the larger the FOV. The working distance (WD) is 1000mm: the working distance refers to the physical distance from the camera lens to the plate object; a shorter WD is suitable for occasions requiring high resolution or close observation, while a longer WD is used for occasions that need to avoid interference or maintain a safe distance; the single pixel accuracy (0.366mm / pixel) describes the actual ground size represented by each pixel in the camera image. The single pixel accuracy depends on the focal length of the lens, the pixel size of the image sensor, and the WD. A higher single pixel accuracy means that each pixel in the image represents a smaller actual ground size, thereby providing a higher spatial resolution. The maximum compatible speed (1400mm / s) refers to the maximum moving speed of the target object that the camera can clearly image.

[0080] According to one embodiment of the present invention, the linear array light bar adopts a high-brightness linear array light bar of model MV-CL042KF-91GC-PRO. The linear array light bar is 150 mm away from the plate, and the interval between adjacent plates is 200-300 mm.

[0081] In this technical solution, the linear array light strip structure adopts high-brightness linear array light strip technology, appropriate distance and spacing, to improve the accuracy and efficiency of plate surface defect detection. 4K resolution usually refers to nearly 4,000 pixels in the horizontal direction, which enables the light source to provide very fine and uniform lighting; the high-pixel density linear array can provide more detailed lighting effects, reduce shadows and light spots, thereby improving the imaging quality of the visual inspection system; the linear array light strip is 150mm away from the plate to ensure that the light evenly covers the surface of the plate, avoiding strong light areas caused by being too close and insufficient light caused by being too far; the interval between adjacent plates is between 200-300mm, ensuring that the linear array light strip can illuminate each plate individually and clearly, avoiding light interference between adjacent plates, and ensuring that there is enough space between plates on the assembly line for movement and processing.

[0082] like Figures 4 to 6 As shown, the defect characteristics of the veneer of the board are classified into holes, dead knots, cracks, oblique threads, and live joints; among them, live joints are defects to be optimized.

[0083] In this technical solution, each defect feature has its own unique appearance, cause and impact, so classification is helpful for subsequent defect detection and grading. Bias usually refers to the direction of wood fibers not being parallel to the surface of the board, which makes the board easy to crack or deform when subjected to force; live joints are formed due to damage or pests suffered by the wood during its growth process, and their existence will affect the strength and stability of the board. Live joints are classified as defects to be optimized. Although these two defects have a greater impact on the appearance, structure and performance of the board, they are easier to reduce or eliminate than other defects by optimizing the processing technology or subsequent treatment.

[0084] like Figures 4 to 6 As shown, the defect characteristics of the veneer of the board are divided into large, medium and small according to the single area; the grading configuration is set by the customer according to the first, second and third level standards based on the type, size and number of each defect.

[0085] This technical solution achieves accurate assessment and control of sheet quality by quantifying defect characteristics, supporting customer customization needs, combining standardization with flexibility, providing decision support and quality control, and enhancing market adaptability. It not only meets customers' diverse needs for sheet quality, but also ensures the versatility and stability of the system.

[0086] Example 2

[0087] Based on Example 1, Figure 1 As shown, this embodiment provides a visual inspection method for grading board veneer, including the following steps:

[0088] S1. Visual inspection device deployment:

[0089] S11. Determine the inspection area: Select a suitable location for installing the visual inspection device on the production line to ensure that the veneer of the board to be inspected is covered;

[0090] S12. Install the camera: Install the camera at the selected location, ensuring that it is vertically or tilted at a certain angle to the board veneer so as to capture a clear image;

[0091] S13. Install the linear light strip: Install the linear light strip on the linear light strip bracket, and adjust its angle and height as needed to ensure that the light source is evenly irradiated on the board veneer;

[0092] S14, connecting the device and the controller: electrically connecting the camera, linear array light bar and light source controller to the visual controller to ensure normal data transmission;

[0093] S15, system initialization and calibration: start the system and perform initialization settings, including camera parameter settings, light source brightness adjustment, and system calibration;

[0094] S2. Board veneer image acquisition:

[0095] S21, triggering image acquisition: when the board veneer moves to the detection area, the image acquisition function is triggered by the sensor or encoder;

[0096] S22, camera exposure imaging: after receiving the trigger signal, the camera starts to expose and capture the image of the board veneer;

[0097] S23, image transmission processing: the camera transmits the captured image to the vision controller for processing, including image noise reduction and enhancement;

[0098] S24, image storage backup: store the processed images in the location specified by the system, and back up important data to prevent data loss;

[0099] S3. Defect feature recognition and analysis:

[0100] S31, image processing and analysis: processing the collected images, including image segmentation, edge detection, and feature extraction;

[0101] S32, defect feature recognition: Use image processing algorithms or machine learning models to identify defect features in images, including holes, dead knots, and cracks;

[0102] S33, defect feature quantification: quantitative analysis of identified defect features, including extraction of size, quantity, and location;

[0103] S34. Defect feature classification and rating: classify and rate defect features according to preset rules and standards to determine their severity and level;

[0104] S4. Board veneer grading configuration:

[0105] S41. Data integration analysis: Integrate the analysis results of defect characteristics with the size and humidity of the board veneer to form complete board data;

[0106] S42, grading determination: judging the plate data according to the preset grading standard and algorithm to determine the grade of the plate;

[0107] S43, grading result output: the grading result is recorded and fed back in the form of interface display and data output for user reference and use;

[0108] S44. Subsequent processing suggestions: Give corresponding subsequent processing suggestions or operation instructions based on the grading results to help users optimize the process or improve the quality of the board.

[0109] This technical solution embodies the characteristics of automation, intelligence and precision. Through visual inspection technology and data processing algorithms, it can realize the rapid and accurate identification and analysis of the defect characteristics of the board veneer. Through user-defined grading standards and algorithms, it can meet the different needs of different users for board quality, which not only improves the efficiency and accuracy of board inspection, but also provides users with a more scientific and reasonable basis for board quality assessment. Specifically, step S1 ensures that the inspection area is fully covered by the reasonable deployment of visual inspection devices; the accurate installation and calibration of cameras and linear array lights are the key to obtaining high-quality images, which directly affects the accuracy and efficiency of subsequent defect identification, ensures the accuracy and reliability of the inspection system, and provides a basis for subsequent image acquisition and defect identification; step S2 triggers image acquisition through sensors or encoders to ensure that the camera can accurately capture its image when the board veneer moves to the inspection area; the image transmission and processing process ensures the quality and clarity of the image, provides high-quality input data for subsequent analysis, captures the image of the board veneer in real time, and provides data support for defect feature identification; step S3 uses image processing algorithms or machine learning to The learning model processes and analyzes the image to extract the defect features in the veneer of the board; the quantitative analysis further determines the size, quantity and location of the defects to provide a basis for subsequent rating, accurately identifies and quantifies the defect features in the veneer of the board, and provides a scientific basis for board grading; step S4 integrates the analysis results of the defect features with other properties of the board (such as size, moisture), and comprehensively evaluates the board through preset grading standards and algorithms. The output of the grading results and subsequent processing suggestions provide users with a basis for optimizing the process flow and improving the quality of the board; by comprehensively considering the various properties of the board, accurately evaluate its quality grade, and provide users with corresponding processing suggestions to help users optimize the process flow and improve product quality.

[0110] In addition, the above-mentioned visual inspection system for grading board veneer according to the present invention also has the following additional technical features:

[0111] According to one embodiment of the present invention, in the trigger image acquisition of step S21, a pair of photoelectric sensors are installed on both sides of the detection area of ​​the assembly line, and when the board veneer passes by, the light of the photoelectric sensors is blocked, thereby triggering a signal; or, an encoder used to control the speed on the assembly line uses the pulse signal of the encoder to determine the position of the board veneer; when the board veneer reaches a predetermined position, the encoder generates a specific pulse signal.

[0112] The two triggering mechanisms of this technical solution both reflect the accurate detection of position and movement in the automatic control system. Among them, the photoelectric sensor provides a simple and direct non-contact detection method, while the encoder provides more accurate and reliable position information. Both methods can ensure that when the board veneer reaches the predetermined position, the camera can accurately capture its image, providing data support for subsequent defect identification and grading.

[0113] like Figures 4 to 6 As shown, in the defect feature recognition of step S32, a labeled data set including defect samples and non-defect samples is constructed, and the defect samples include holes, dead knots, and cracks; the data set includes various different board veneer images, and the defects in each image are accurately marked; a convolutional neural network is selected to build a model, and the labeled data set is used to train the model so that it can learn and recognize the defect features in the image; during and after the training process, a validation set is used to evaluate the performance of the model; according to the evaluation results, the parameters or structure of the model are adjusted to optimize its recognition effect; the trained model is deployed in a visual inspection system for real-time recognition of defect features in board veneer images.

[0114] This technical solution achieves accurate identification and analysis of defect features in board veneer images by constructing high-quality data sets, selecting appropriate deep learning models, conducting effective training and evaluation, and reasonable model deployment and application. This not only improves detection efficiency and accuracy, but also provides strong support for board quality control and process optimization.

[0115] According to an embodiment of the present invention, in the defect feature quantification of step S33, it is assumed that after the processing of the binary image, the defect area is marked as 1, representing white or bright color, and the non-defect area is marked as 0, representing black or dark color;

[0116] Before starting the quantitative analysis, set a list sizes to store the size of each defect, a list counts to count the total number of defects, and a list positions to store the position of each defect in the image;

[0117] Traverse each pixel of the entire binary image, and for each pixel, check the pixel value; use OpenCV's findContours to find the contours of all continuous defect areas; if the value of the current pixel is 1, that is, a defective pixel, enter the defect analysis process and calculate the defect size:

[0118] For each defect area, this is done by calculating the total number of pixels in the area, i.e. the area; each time a defect area is identified, the value of counts is increased by 1 to keep track of the total number of defects;

[0119] The position of each defect in the image is achieved by calculating the center coordinates or bounding box of the defect area. Assuming the center coordinates are known, they are added to the positions list. Image processing algorithms are used to find the bounding box and calculate the center coordinates based on it. The results of the quantitative analysis include the size of each defect, the total number of defects, and the location of each defect.

[0120] The technical solution quantifies defect features by processing a binary image, in which defect areas are marked as white or bright, and non-defect areas are marked as black or dark; three lists are set to store the size, total number and position of each defect respectively; each pixel of the image is traversed, and the continuous defect area contours are identified using the findContours function of OpenCV, and the area of ​​each defect area is calculated to determine the size, while tracking the total number of defects; the position of each defect in the image is determined by calculating the center coordinates or bounding box of the defect area, and this information is stored in the corresponding list; the results of the quantitative analysis will include the size of each defect, the total number of defects and the position of each defect.

[0121] According to an embodiment of the present invention, in the subsequent processing suggestion of step S44, processing suggestions are given according to the defect situation:

[0122] For defects to be optimized by secondary processing, including joint scars, secondary processing is recommended;

[0123] Determine the specific methods of secondary processing, including grinding, cutting, and repair coating;

[0124] Estimate the cost and time required for secondary processing, as well as the expected results after processing;

[0125] For serious defects that cannot be repaired by conventional methods, including severe cracks and large-area damage, special treatment or scrapping is recommended;

[0126] Determine methods for special treatment, including special coatings, partial replacement or reinforcement;

[0127] Evaluate the feasibility and cost-effectiveness of special treatment and determine if scrapping is necessary.

[0128] In this technical solution, for defects to be optimized that can be repaired through secondary processing, such as joint scars, it is recommended to carry out secondary processing and determine specific processing methods, such as grinding, cutting, repair coating, etc., and estimate the processing cost and required time, as well as the expected effect after processing; for serious defects that cannot be repaired by conventional methods, such as serious cracks, large-area damage, etc., it is recommended to carry out special treatment or scrapping, and determine special treatment methods, such as special coatings, local replacement or reinforcement, etc., and evaluate the feasibility and cost-effectiveness of special treatment, and determine whether scrapping is required.

[0129] Although the present invention is described in detail by referring to the accompanying drawings and in combination with the preferred embodiments, the present invention is not limited thereto. Without departing from the spirit and essence of the present invention, a person of ordinary skill in the art may make various equivalent modifications or substitutions to the embodiments of the present invention, and these modifications or substitutions shall be within the scope of the present invention. Any person of ordinary skill in the art may easily think of changes or substitutions within the technical scope disclosed by the present invention, and these shall be within the scope of protection of the present invention. Therefore, the scope of protection of the present invention shall be subject to the scope of protection of the claims.

Claims

1. A visual inspection method for grading veneer of boards, implemented based on a visual inspection system for grading veneer of boards, characterized in that: The board veneer grading visual inspection system comprises a board (1) located on an assembly line, and a visual inspection device arranged above the assembly line, wherein: the visual inspection device comprises a camera (2), a visual controller, a linear array light (3) and a light source controller, the camera (2) being located above the linear array light (3) and being electrically connected to the visual controller; the linear array light (3) being provided with a plurality of strips and irradiating obliquely from both sides of the assembly line toward the board (1) on the assembly line, one end of the linear array light (3) being connected to the light source controller; the defect features existing in the veneer of the board (1) are detected by the visual controller, and the veneer grading configuration of the board (1) is realized after the detected defect features are analyzed and determined; the camera adopts a model of MVL- The lens of AF2045M-M42 has a FOV of 1500mm, a WD of 1000mm, a single pixel accuracy of 0.366mm / pixel, and a maximum compatible speed of 1400mm / s; the linear array light bar adopts a high-brightness linear array light bar, the linear array light bar is 150mm away from the board, and the interval between adjacent boards is 200-300mm; the defect characteristics of the board veneer are classified into holes, dead knots, cracks, oblique threads, and joints; among them, joints are defects to be optimized; the defect characteristics of the board veneer are classified into large, medium, and small according to a single area; the grading configuration is set by the customer according to the category, size and quantity of each defect. The method comprises the following steps: S1. Visual inspection device deployment: S11. Determine the inspection area: select a suitable location for installing the visual inspection device on the production line to ensure that the veneer of the board to be inspected is covered; S12. Install the camera: Install the camera at the selected location, ensuring that it is vertically or tilted at a certain angle to the board veneer so as to capture a clear image; S13. Install the linear light strip: Install the linear light strip on the linear light strip bracket, and adjust its angle and height as needed to ensure that the light source is evenly irradiated on the board veneer; S14, connecting the device and the controller: electrically connecting the camera, linear light bar and light source controller to the visual controller to ensure normal data transmission; S15, system initialization and calibration: start the system and perform initialization settings, including camera parameter settings, light source brightness adjustment, and system calibration; S2. Board veneer image acquisition: S21, triggering image acquisition: when the board veneer moves to the detection area, the image acquisition function is triggered by the sensor or encoder; S22, camera exposure imaging: after receiving the trigger signal, the camera starts to expose and capture the image of the board veneer; S23, image transmission processing: the camera transmits the captured image to the vision controller for processing, including image noise reduction and enhancement; S24, image storage backup: store the processed images in the location specified by the system, and back up important data to prevent data loss; S3. Defect feature recognition and analysis: S31, image processing and analysis: processing the collected images, including image segmentation, edge detection, and feature extraction; S32, defect feature recognition: using image processing algorithms or machine learning models to identify defect features in images; S33, defect feature quantification: quantitative analysis of identified defect features, including extraction of size, quantity, and location; S34. Defect feature classification and rating: classify and rate defect features according to preset rules and standards to determine their severity and level; S4. Board veneer grading configuration: S41. Data integration analysis: Integrate the analysis results of defect characteristics with the size and humidity of the board veneer to form complete board data; S42, grading determination: judging the plate data according to the preset grading standard and algorithm to determine the grade of the plate; S43, grading result output: the grading result is recorded and fed back in the form of interface display and data output for user reference and use; S44, follow-up processing suggestions: Give corresponding follow-up processing suggestions or operation instructions based on the classification results to help users optimize the process or improve the quality of the board; In the defect feature quantification of step S33, it is assumed that after the processing of the binary image, the defect area is marked as 1, representing white or bright color, and the non-defect area is marked as 0, representing black or dark color; Before starting the quantitative analysis, set a list sizes to store the size of each defect, a list counts to count the total number of defects, and a list positions to store the position of each defect in the image; Traverse each pixel of the entire binary image, and for each pixel, check the pixel value; use OpenCV's findContours to find the contours of all continuous defect areas; if the value of the current pixel is 1, that is, a defective pixel, enter the defect analysis process and calculate the defect size: For each defect area, this is done by calculating the total number of pixels in the area, i.e. the area; each time a defect area is identified, the value of counts is increased by 1 to keep track of the total number of defects; The position of each defect in the image is realized by calculating the center coordinates or bounding box of the defect area. Assuming that the center coordinates are known, they are added to the positions list. The image processing algorithm is used to find the bounding box and calculate the center coordinates accordingly. The results of the quantitative analysis include the size of each defect, the total number of defects, and the location of each defect. In the subsequent processing suggestions of step S44, processing suggestions are given according to the defect situation: For defects to be optimized by secondary processing, including joint scars, secondary processing is recommended; Determine the specific methods of secondary processing, including grinding, cutting, and repair coating; Estimate the cost and time required for secondary processing, as well as the expected results after processing; For serious defects that cannot be repaired by conventional methods, including severe cracks and large-area damage, special treatment or scrapping is recommended; Determine methods for special treatment, including special coatings, partial replacement or reinforcement; Evaluate the feasibility and cost-effectiveness of special treatment and determine if scrapping is necessary.

2. The visual inspection method for grading veneer of boards according to claim 1, characterized in that: In the trigger image acquisition of step S21, a pair of photoelectric sensors are installed on both sides of the detection area of ​​the assembly line. When the board veneer passes by, the light of the photoelectric sensors is blocked, thereby triggering a signal; or, an encoder used to control the speed on the assembly line uses the pulse signal of the encoder to determine the position of the board veneer; when the board veneer reaches the predetermined position, the encoder generates a specific pulse signal.

3. The visual inspection method for grading veneer of boards according to claim 1, characterized in that: In the defect feature recognition of step S32, a labeled data set including defective samples and non-defective samples is constructed; the data set includes various board veneer images, and the defects in each image are accurately marked; a convolutional neural network is selected to construct a model, and the labeled data set is used to train the model so that it can learn and recognize defect features in the image; During and after training, the validation set is used to evaluate the performance of the model. Based on the evaluation results, the parameters or structure of the model are adjusted to optimize its recognition effect. The trained model is deployed into the visual inspection system for real-time identification of defect features in board veneer images.