A method, system and electronic device for detecting surface flatness of wooden products
Through the camera, the image of the surface of the wood product is collected and processed, combined with the determination method of overlap and the direction of wood fibers, the problem of low detection efficiency and low accuracy of the curved surface of the processed wood product is solved, and efficient and accurate detection results are achieved.
Patent Information
- Application Number
- CN202411033524.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-30
- Publication Date
- 2025-02-25
- Estimated Expiration
- 2044-07-30
AI Technical Summary
In the prior art, there are problems of low detection efficiency and low accuracy of curved surface flatness of processed wood products.
By using a camera to collect images of each surface of the wood product, divide it into several equal-sized areas, grayscale processing is performed to obtain contour characteristic parameters and the direction of the wood fiber, preliminary and secondary judgment is made based on the overlap degree and the direction of the wood fiber, and the camera angle is adjusted. Divide the number of areas or image grayscale to improve detection accuracy.
It improves the efficiency and accuracy of detecting the flatness of the curved surface of craft wood products, reduces the situation of misjudgment, and can quickly and accurately determine whether the flatness of the surface of the wood product meets the standards.
Smart Images

Figure CN118896568B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of flatness detection, and in particular to a method, system and electronic equipment for detecting the flatness of a wooden product surface. Background Art
[0002] Wood products include ordinary straight wooden products such as tables and chairs, and also include craft wooden products, which are made into various unique works of art or functional products including wooden carvings and sculptures through special craft techniques and methods. The surface flatness detection of ordinary straight wooden products can use distance quantity to detect various defects, but how to solve the detection efficiency of the surface flatness of craft wooden products is an urgent problem to be solved.
[0003] Prior art patent number: CN113358069B, the prior art discloses a surface flatness detection device for wood product processing and its implementation method, through the vertically arranged slide rail and electric slide rail, the clamp can be moved to any position, the center of the circle of the object to be detected placed on the detection platform is moved to the center of the circle of the disc, so as to facilitate the detection, the hydraulic pump is started to extract liquid through the pipeline to fill the lower ring channel, the ring body, and the transmission pipe in sequence until it flows into the inner sleeve seat, which is used to push the two side plates to move closer to the object to be detected; the motor is started, the gear rotates, and makes a circular motion along the gear ring, and the infrared ranging sensor of the side plate rotates synchronously to detect the inner and outer circumferential surfaces of the object to be detected, and the surface flatness of the inner and outer walls is judged according to the distance data detected after one rotation, so as to achieve the purpose of synchronous detection of the inside and outside of the cylindrical structure, but the invention does not solve the problem of low efficiency in detecting the flatness of the curved surface of the craft wood product. Summary of the invention
[0004] To this end, the present invention provides a method, system and electronic equipment for detecting the flatness of a wooden product surface, so as to overcome the problems of low efficiency and low accuracy in detecting the flatness of a curved surface of a wooden product in the prior art.
[0005] To achieve the above object, the present invention provides a method for detecting the surface flatness of a wooden product, comprising:
[0006] Performing a flatness test on each surface of the wooden product one by one, and dividing each surface into a number of equal-sized areas;
[0007] Using a camera to collect images of each surface of the wood product to obtain a wood product contour image and a wood fiber image;
[0008] Performing grayscale processing on each of the surface images to obtain characteristic parameters of the wood product contour and the orientation of the wood fibers;
[0009] Determining the degree of overlap between the surface of the wood product and the surface of the standard wood product according to the characteristic parameters of the wood product profile;
[0010] Determining whether the flatness of the surface of the wooden product meets the standard according to the overlap;
[0011] If it is initially determined that the flatness does not meet the standard, a second determination is made based on the direction of the wood fibers whether the flatness meets the standard;
[0012] If the flatness is determined not to meet the standard, the angle between the camera and the vertical direction is adjusted;
[0013] If it is determined that the flatness does not meet the standard, the number of divided areas is adjusted or the grayscale of each surface image is adjusted.
[0014] Furthermore, the characteristic parameters of the wood product contour include the total length of the contour line of the wood product surface, the total length of the contour curve of the wood product surface and the maximum length of the straight line of the wood product surface contour;
[0015] Wherein, the contour lines of the surface of the wooden product include contour curves and contour straight lines.
[0016] Further, judging whether the flatness meets the standard according to the overlap includes:
[0017] If the overlap degree is less than or equal to a preset second overlap degree, it is determined that the flatness does not meet the standard;
[0018] If the degree of overlap is greater than a preset second degree of overlap, it is determined that the flatness meets the standard.
[0019] Furthermore, the overlap degree is the ratio of the length of the overlapping portion of the total length of the contour line of the wood product surface and the total length of the contour line of the standard wood product surface to the total length of the contour line of the standard wood product surface.
[0020] Furthermore, the process of secondarily determining whether the flatness meets the standard according to the direction of the wood fibers includes:
[0021] Compare the orientation of wood fibers with that of standard wood products;
[0022] If the angle between the direction of wood fibers and the direction of wood fibers of standard wood products is greater than a preset angle, it is determined that the flatness does not meet the standard, and the angle between the camera and the vertical direction is adjusted.
[0023] Furthermore, the adjusting the number of divided areas includes:
[0024] Compare the overlap difference value with the preset overlap difference value;
[0025] If the overlap difference is less than or equal to the preset overlap difference, the number of divided areas is adjusted;
[0026] Among them, the number of divided areas is positively correlated with the total length of the contour curve of the wood product surface;
[0027] If the overlap difference is greater than the preset overlap difference, the image grayscale is adjusted;
[0028] The overlap difference is a difference between a preset first overlap and the overlap.
[0029] Further, adjusting the grayscale of each surface image includes:
[0030] Compare the overlap difference value with the preset overlap difference value;
[0031] If the overlap difference is greater than the preset overlap difference, the image grayscale is adjusted;
[0032] Among them, the image grayscale is positively correlated with the maximum length of the contour line on the surface of the wood product.
[0033] The present invention also provides a wooden product surface flatness detection system, comprising:
[0034] A collection unit, used for collecting images of each surface of the wood product to obtain a wood product contour image and a wood fiber image;
[0035] A processing unit connected to the acquisition unit, used to divide the surface of the wood product to be measured into a plurality of areas, and perform grayscale processing on the images of each surface to obtain characteristic parameters of the wood product contour and the orientation of the wood fibers;
[0036] A control unit, which is connected to the acquisition unit and the processing unit respectively, is used to determine the overlap between the surface of the wooden product and the surface of the standard wooden product according to the characteristic parameters of the wooden product contour to determine whether the flatness of the wooden product surface meets the standard, and, when it is initially determined that the flatness does not meet the standard, to secondarily determine whether the flatness meets the standard according to the direction of the wood fibers; when it is secondarily determined that the flatness does not meet the standard, adjust the angle between the camera and the vertical direction; when it is determined that the flatness does not meet the standard, adjust the number of divided areas or adjust the grayscale of each surface image.
[0037] The present invention also provides an electronic device for detecting the surface flatness of a wooden product, comprising:
[0038] A camera is used to collect images of various surfaces of the wood product to obtain a contour image of the wood product and a wood fiber image;
[0039] A processor connected to the camera, dividing each surface into a plurality of equal-sized regions, and performing grayscale processing on each surface image to obtain characteristic parameters of the wood product contour and the orientation of the wood fibers;
[0040] A controller is connected to the camera and the processor respectively, and is used to determine the degree of overlap between the surface of the wood product and the surface of the standard wood product based on the characteristic parameters of the wood product contour to determine whether the flatness of the wood product surface meets the standard, and, when it is initially determined that the flatness does not meet the standard, to secondary determine whether the flatness meets the standard based on the direction of the wood fibers; when it is secondary determined that the flatness does not meet the standard, adjust the angle between the camera and the vertical direction of the coordinate position of the wood product; when it is determined that the flatness does not meet the standard, adjust the number of divided areas or adjust the grayscale of each surface image.
[0041] Compared with the prior art, the beneficial effect of the present invention lies in that the present invention uses a camera to collect images of each surface of the wooden product, divides the surface of the wooden product to be tested into several areas, collects images of each surface of the wooden product respectively to obtain the wooden product contour image and the wood fiber image, and performs grayscale processing on the surface images, and determines whether the flatness of the wooden product surface meets the standard according to the overlap, thereby improving the efficiency of the flatness detection of the curved surface of the craft wooden product. If it is preliminarily determined that the flatness of the wooden product surface does not meet the standard, a secondary determination is made based on the direction of the wood fibers whether the flatness meets the standard, thereby improving the accuracy of the flatness detection of the curved surface of the craft wooden product.
[0042] Furthermore, the present invention can quickly obtain the total length of the contour line of the wood product surface, the total length of the contour curve of the wood product surface and the maximum length of the straight line of the wood product surface contour through the characteristic parameters of the wood product contour. The wood product surface contour curve can improve the accuracy of the flatness of the curved part of the craft wood product, thereby further improving the accuracy of the flatness detection of the craft wood product surface.
[0043] Furthermore, the present invention can quickly determine whether the flatness of the wood product surface meets the standard through the degree of overlap between the wood product surface and the standard wood product surface. When it is preliminarily determined that the flatness does not meet the standard, it can accurately determine whether the flatness meets the standard for a second time based on the direction of the wood fibers, thereby reducing the occurrence of misjudgment and improving the efficiency of wood product surface flatness detection.
[0044] Furthermore, the present invention can accurately determine whether the flatness of the surface of the bent part of the craft wooden product meets the standard by collecting the ratio of the total length of the contour line of the wooden product surface and the length of the overlapping part of the total length of the contour line of the standard wooden product surface to the total length of the contour line of the standard wooden product surface, thereby further improving the efficiency of the flatness detection of the bent surface of the craft wooden product.
[0045] Furthermore, the present invention compares the direction of wood fibers with that of standard wood products, and can accurately adjust the angle between the camera and the vertical direction when the angle between the direction of wood fibers and that of standard wood products is greater than a preset angle, thereby improving the accuracy of surface flatness detection of wood products.
[0046] Furthermore, the present invention compares the overlap difference with the preset overlap difference, and can accurately adjust the number of divided areas when the overlap difference is less than or equal to the preset overlap difference, thereby reducing the occurrence of misjudgment of overlap caused by the large size of the craft wood products, thereby improving the accuracy of the surface flatness detection of the wood products.
[0047] Furthermore, the surface flatness detection system of the wood product of the present invention is provided with an acquisition unit, a processing unit and a control unit. The acquisition unit acquires surface images of the wood product to obtain a wood product contour image and a wood fiber image. The processing unit divides the surface of the wood product to be tested into a number of areas, and performs grayscale processing on the surface images to obtain characteristic parameters of the wood product contour and the orientation of the wood fibers. The control unit determines the degree of overlap between the surface of the wood product and the surface of the standard wood product according to the characteristic parameters of the wood product contour to determine whether the surface flatness of the wood product meets the standard, and, when it is preliminarily determined that the flatness does not meet the standard, it secondary determines whether the flatness meets the standard according to the orientation of the wood fibers. When it is secondary determined that the flatness does not meet the standard, the angle between the camera and the vertical direction is adjusted. When it is determined that the flatness does not meet the standard, the number of divided areas is adjusted or the grayscale of the surface images is adjusted, thereby improving the accuracy and efficiency of the flatness detection of the curved surface of the wood product. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] Figure 1 This is a flowchart of the steps of the method for detecting the surface flatness of a wooden product according to an embodiment of the present invention;
[0049] Figure 2 A flow chart for determining whether the flatness of the surface of a wooden product according to an embodiment of the present invention meets the standard;
[0050] Figure 3 A secondary determination flow chart of whether the flatness of the surface of a wooden product according to an embodiment of the present invention meets the standard;
[0051] Figure 4 The structure diagram of the wooden product surface flatness detection system according to the embodiment of the present invention is shown in FIG. DETAILED DESCRIPTION
[0052] In order to make the objects and advantages of the present invention more clearly understood, the present invention is further described below in conjunction with embodiments; it should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0053] The preferred embodiments of the present invention are described below with reference to the accompanying drawings. It should be understood by those skilled in the art that these embodiments are only used to explain the technical principles of the present invention and are not intended to limit the protection scope of the present invention.
[0054] It should be noted that in the description of the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected" and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, or it can be the internal communication of two components. For those skilled in the art, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0055] See also Figure 1 As shown, it is a flow chart of the steps of the method for detecting the surface flatness of a wooden product according to an embodiment of the present invention; the method for detecting the surface flatness of a wooden product according to the present invention comprises:
[0056] Step S1, performing flatness inspection on each surface of the wooden product one by one, and dividing each surface into a plurality of areas of equal size;
[0057] Step S2, using a camera to collect images of each surface of the wood product to obtain a wood product contour image and a wood fiber image;
[0058] Step S3, performing grayscale processing on each surface image to obtain characteristic parameters of the wood product contour and the orientation of the wood fibers;
[0059] Step S4, determining the degree of overlap between the surface of the wooden product and the surface of the standard wooden product according to the characteristic parameters of the wooden product contour;
[0060] Step S5, judging whether the flatness of the surface of the wooden product meets the standard according to the overlap;
[0061] Step S6, if it is initially determined that the flatness does not meet the standard, a second determination is made based on the direction of the wood fibers whether the flatness meets the standard;
[0062] Step S7, if the flatness is determined to be not in compliance with the standard, adjusting the angle between the camera and the vertical direction;
[0063] Step S8: If it is determined that the flatness does not meet the standard, the number of divided areas is adjusted or the grayscale of each surface image is adjusted.
[0064] In implementation, the surfaces of the wooden product include an upper surface, a lower surface, a left surface, a right surface, a front surface and a rear surface of the wooden product.
[0065] Specifically, the characteristic parameters of the wood product contour include the total length of the contour line of the wood product surface, the total length of the contour curve of the wood product surface, and the maximum length of the straight line of the wood product surface contour;
[0066] Wherein, the contour lines of the surface of the wooden product include contour curves and contour straight lines.
[0067] See also Figure 2 As shown, it is a flow chart for determining whether the flatness of the surface of a wooden product meets the standard according to an embodiment of the present invention; the present invention determines whether the flatness meets the standard according to the overlap, including:
[0068] If the overlap degree is less than or equal to a preset second overlap degree, it is determined that the flatness does not meet the standard;
[0069] If the degree of overlap is greater than a preset second degree of overlap, it is determined that the flatness meets the standard.
[0070] In implementation, if the overlap is greater than a preset first overlap and less than or equal to a preset second overlap, it is preliminarily determined that the flatness does not meet the standard, and a second determination is made based on the direction of the wood fibers whether the flatness meets the standard;
[0071] If the overlap degree is less than or equal to a preset first overlap degree, it is determined that the flatness does not meet the standard;
[0072] The first overlap degree is preset to be 90%, and the second overlap degree is preset to be 98%.
[0073] Specifically, the overlap degree is the ratio of the length of the overlapping portion of the total length of the contour line of the wood product surface and the total length of the contour line of the standard wood product surface to the total length of the contour line of the standard wood product surface.
[0074] See also Figure 3 As shown, it is a secondary determination flow chart of whether the flatness of the surface of a wooden product meets the standard according to an embodiment of the present invention; the process of secondary determination of whether the flatness meets the standard according to the direction of the wood fibers in the present invention includes:
[0075] Compare the orientation of wood fibers with that of standard wood products;
[0076] If the angle between the direction of the wood fibers and the direction of the wood fibers of the standard wood products is greater than the preset angle, it is determined that the flatness does not meet the standard, and the angle between the camera and the vertical direction is adjusted;
[0077] If the angle between the wood fiber orientation and the wood fiber orientation of the standard wood product is less than or equal to the preset angle, it is determined that the flatness meets the standard for the second time and the test is continued.
[0078] In implementation, the camera is set at an angle of 90° to the vertical direction on the wall of the inspection workshop to collect images of the surface of the wood product to be tested. At the same time, the wood fiber direction is marked as the angle between the wood fiber direction and the wood fiber direction of the standard wood product as θ, and the preset angle is 5°. In addition, in the embodiment, it also includes a preset θ1 and a preset θ2, the preset θ1 is 10°, and the preset θ2 is 20°. The process of adjusting the camera angle according to the angle between the wood fiber direction and the wood fiber direction of the standard wood product includes:
[0079] If θ≤θ1, the control unit adjusts the camera angle using the first angle adjustment coefficient;
[0080] If θ1<θ≤θ2, the control unit adjusts the camera angle using the second angle adjustment coefficient;
[0081] If θ>θ2, the control unit adjusts the camera angle using the third angle adjustment coefficient.
[0082] In practice, the camera angle adjustment formula is A = a × γ n , where A is the angle of the rear camera, a is the angle of the front camera, in this embodiment a=90°, γ n is the nth angle adjustment coefficient, n is a positive integer, γ 1 =0.98,γ 2 =0.95;γ 3 =0.90; if the angle θ between the wood fiber orientation and the wood fiber orientation of the standard wood product is 15°, after adjustment, A = a×γ 2 =90×γ 2 =90×0.95=85.5, that is, the angle between the camera head and the vertical direction after adjustment is 85.5°.
[0083] Specifically, the number of adjustment division areas includes:
[0084] Compare the overlap difference value with the preset overlap difference value;
[0085] If the overlap difference is less than or equal to the preset overlap difference, the control unit is determined to adjust the number of divided areas; the number of divided areas is positively correlated with the total length of the contour curve of the surface of the wood product;
[0086] If the overlap difference is greater than a preset overlap difference, determining that the control unit adjusts the image grayscale;
[0087] The overlap difference is a difference between a preset first overlap and the overlap.
[0088] The total length of the curved surface contour line is the sum of the lengths of the curved contour lines of the wooden product captured by the camera.
[0089] Specifically, the total length of the contour line of the wood product curved surface is marked as L, the preset length of the first curve contour line is L1, and the preset length of the second curve contour line is L2. The process of adjusting the number of divided areas according to the total length of the contour line of the wood product curved surface includes:
[0090] If L≤L1, the control unit uses the first division quantity adjustment coefficient to adjust the number of regions divided into the processing unit;
[0091] If L1<L≤L2, the control unit uses the second division quantity adjustment coefficient to adjust the number of regions divided by the processing unit;
[0092] If L>L2, the control unit uses the third division quantity adjustment coefficient to adjust the number of regions divided by the processing unit;
[0093] Specifically, in this embodiment, the preset length of the first curve contour line is 30 mm, the preset length of the second curve contour line is 60 mm, and the adjustment formula for the number of divided areas is M=m×β n, Wherein, M is the number of divided regions after adjustment, m is the number of divided regions before adjustment, and in this embodiment, the number of divided regions before adjustment is 6, β n is the nth partition quantity adjustment coefficient, n is a positive integer, β 1 =1;β 2 =2;β 2 =3; the total length of the contour line of the wood product curved surface is 40 mm, and the number of divided areas after adjustment is M = m × β 1 =6×2=12, the number of divided areas after adjustment is 12.
[0094] Specifically, adjusting the grayscale of each surface image includes:
[0095] Compare the overlap difference value with the preset overlap difference value;
[0096] If the overlap difference is greater than the preset overlap difference, the control unit is determined to adjust the image grayscale; the image grayscale is positively correlated with the maximum length of the contour line of the wood product surface.
[0097] In implementation, the process of adjusting the grayscale of each surface image according to the maximum length of the contour line of the non-curved surface of the wood product includes:
[0098] The maximum length of the contour line of the non-curved surface of the wood product is marked as ΔC; the present invention is provided with a preset maximum length ΔC1 of the contour line of the first non-curved surface and a preset maximum length ΔC2 of the contour line of the second non-curved surface;
[0099] If ΔC≤ΔC1, the control unit uses the first image grayscale adjustment coefficient to adjust the image grayscale of the processing unit;
[0100] If ΔC1<ΔC≤ΔC2, the control unit uses the second image grayscale adjustment coefficient to adjust the image grayscale of the processing unit;
[0101] If ΔC>ΔC2, the control unit uses the third image grayscale adjustment coefficient to adjust the image grayscale of the processing unit;
[0102] Specifically, in this embodiment, the maximum length ΔC1 of the contour line of the first non-curved surface is preset to be 20 mm; the maximum length ΔC2 of the contour line of the second non-curved surface is preset to be 40 mm; the image grayscale adjustment formula is, G = g × α n , G is the grayscale of the image after adjustment, g is the grayscale of the image before adjustment, the grayscale of the image before the control unit is started is 200, α n is the grayscale adjustment coefficient of the nth image, n is a positive integer, where α 1 =0.92; α 2 =0.95; α 3 =0.98, when the maximum length ΔC of the contour line of the non-curved surface of the wood product is 18 mm, G = g × α 1 =200×0.92=184, that is, the grayscale of the image in the processing unit after adjustment is 184.
[0103] Please continue reading Figure 4 As shown, it is a structural block diagram of a wooden product surface flatness detection system according to an embodiment of the present invention. A detection system using the wooden product surface flatness detection method described above includes:
[0104] A collection unit, used for collecting images of each surface of the wood product to obtain a wood product contour image and a wood fiber image;
[0105] A processing unit connected to the acquisition unit, used to divide the surface of the wood product to be measured into a plurality of areas, and perform grayscale processing on the images of each surface to obtain characteristic parameters of the wood product contour and the orientation of the wood fibers;
[0106] A control unit, which is connected to the acquisition unit and the processing unit respectively, is used to determine the degree of overlap between the surface of the wooden product and the surface of the standard wooden product according to the characteristic parameters of the wooden product contour to determine whether the flatness of the wooden product surface meets the standard, and, when it is initially determined that the flatness does not meet the standard, to secondarily determine whether the flatness meets the standard according to the direction of the wood fibers; when it is secondarily determined that the flatness does not meet the standard, adjust the angle between the camera and the vertical direction; when it is determined that the flatness does not meet the standard, adjust the number of divided areas or adjust the grayscale of each surface image.
[0107] Specifically, a detection electronic device using the above-mentioned wood product surface flatness detection system includes:
[0108] A camera is used to collect images of various surfaces of the wood product to obtain a contour image of the wood product and a wood fiber image;
[0109] A processor connected to the camera, dividing each surface into a plurality of equal-sized regions, and performing grayscale processing on each surface image to obtain characteristic parameters of the wood product contour and the orientation of the wood fibers;
[0110] A controller is connected to the camera and the processor, respectively, and is used to determine the degree of overlap between the surface of the wood product and the surface of the standard wood product based on the characteristic parameters of the wood product contour to determine whether the flatness of the wood product surface meets the standard, and, when it is initially determined that the flatness does not meet the standard, to secondarily determine whether the flatness meets the standard based on the direction of the wood fibers; when it is secondarily determined that the flatness does not meet the standard, adjust the angle between the camera and the vertical direction; when it is determined that the flatness does not meet the standard, adjust the number of divided areas or adjust the grayscale of each surface image.
[0111] Specifically, the camera is a 360° rotating high-definition camera.
[0112] So far, the technical solutions of the present invention have been described in conjunction with the preferred embodiments shown in the accompanying drawings. However, it is easy for those skilled in the art to understand that the protection scope of the present invention is obviously not limited to these specific embodiments. Without departing from the principle of the present invention, those skilled in the art can make equivalent changes or substitutions to the relevant technical features, and the technical solutions after these changes or substitutions will fall within the protection scope of the present invention.
Claims
1. A method for detecting the surface flatness of a wood product, characterized in that: include: Performing a flatness test on each surface of the wooden product one by one, and dividing each surface into a number of equal-sized areas; Using a camera to collect images of each surface of the wood product to obtain a wood product contour image and a wood fiber image; Performing grayscale processing on each of the surface images to obtain characteristic parameters of the wood product contour and the orientation of the wood fibers; Determining the degree of overlap between the surface of the wood product and the surface of the standard wood product according to the characteristic parameters of the wood product profile; Determining whether the flatness of the surface of the wooden product meets the standard according to the overlap; If the degree of overlap is greater than a preset second degree of overlap, it is determined that the flatness meets the standard; If the overlap is greater than a preset first overlap and less than or equal to a preset second overlap, it is preliminarily determined that the flatness does not meet the standard, and a second determination is made based on the direction of the wood fibers whether the flatness meets the standard; If the overlap degree is less than or equal to a preset first overlap degree, it is determined that the flatness does not meet the standard; If it is initially determined that the flatness does not meet the standard, a second determination is made based on the direction of the wood fibers whether the flatness meets the standard; Compare the orientation of wood fibers with that of standard wood products; If the angle between the wood fiber orientation and the wood fiber orientation of the standard wood product is greater than the preset angle, it is determined that the flatness does not meet the standard; If the flatness is determined not to meet the standard, the angle between the camera and the vertical direction is adjusted; If it is determined that the flatness does not meet the standard, adjusting the number of divided areas or adjusting the grayscale of each surface image; Compare the overlap difference value with the preset overlap difference value; If the overlap difference is less than or equal to a preset overlap difference, determining that the control unit adjusts the number of divided areas; Among them, the number of divided areas is positively correlated with the total length of the contour curve of the wood product surface; If the overlap difference is greater than a preset overlap difference, determining that the control unit adjusts the image grayscale; Wherein, the overlap difference is the difference between the preset first overlap and the overlap; The characteristic parameters of the wood product contour include the total length of the contour line of the wood product surface, the total length of the contour curve of the wood product surface and the maximum length of the straight line of the wood product surface contour; Wherein, the contour lines of the surface of the wooden product include contour curves and contour straight lines; The overlap degree is the ratio of the length of the overlapping part of the total length of the contour line of the wood product surface and the total length of the contour line of the standard wood product surface to the total length of the contour line of the standard wood product surface.
2. The method for detecting the surface flatness of wooden products according to claim 1, characterized in that: The adjusting the grayscale of each surface image comprises: If the overlap difference is greater than the preset overlap difference, the image grayscale is adjusted; Among them, the image grayscale is positively correlated with the maximum length of the contour line on the surface of the wood product.
3. A detection system using the wooden product surface flatness detection method according to any one of claims 1 to 2, characterized in that: include: A collection unit, used for collecting images of each surface of the wood product to obtain a wood product contour image and a wood fiber image; A processing unit connected to the acquisition unit, used to divide the surface of the wood product to be measured into a plurality of areas, and perform grayscale processing on the images of each surface to obtain characteristic parameters of the wood product contour and the orientation of the wood fibers; A control unit, which is connected to the acquisition unit and the processing unit respectively, is used to determine the overlap between the surface of the wooden product and the surface of the standard wooden product according to the characteristic parameters of the wooden product contour to determine whether the flatness of the wooden product surface meets the standard, and, when it is preliminarily determined that the flatness does not meet the standard, to secondarily determine whether the flatness meets the standard according to the direction of the wood fibers, when it is secondarily determined that the flatness does not meet the standard, adjust the angle between the camera and the vertical direction, and when it is determined that the flatness does not meet the standard, adjust the number of divided areas or adjust the grayscale of each surface image.
4. A detection electronic device applied to the detection system according to claim 3, characterized in that: include: A camera is used to collect images of various surfaces of the wood product to obtain a contour image of the wood product and a wood fiber image; A processor connected to the camera, dividing each surface into a plurality of equal-sized regions, and performing grayscale processing on each surface image to obtain characteristic parameters of the wood product contour and the orientation of the wood fibers; A controller is connected to the camera and the processor, respectively, and is used to determine the degree of overlap between the surface of the wood product and the surface of the standard wood product according to the characteristic parameters of the wood product contour to determine whether the flatness of the wood product surface meets the standard; and, when it is initially determined that the flatness does not meet the standard, to secondarily determine whether the flatness meets the standard according to the direction of the wood fibers; when it is secondarily determined that the flatness does not meet the standard, to adjust the angle between the camera and the vertical direction; when it is determined that the flatness does not meet the standard, to adjust the number of divided areas or to adjust the grayscale of each surface image.
5. The detection electronic device according to claim 4, characterized in that: The camera is a 360° rotating camera.
Citation Information
Patent Citations
A surface flatness testing device for wood product processing and its implementation method
CN113358069B
Method for rapidly measuring surface roughness of timber in non-contact manner
CN103278113A
Surface flatness detection device for wood product processing and implementation method thereof
CN113358069A