Time-sharing exposure plate size measurement method and system based on array area-array camera

Through the time-sharing exposure technology and image processing method of the array area scan camera, the problems of low accuracy and poor applicability of wood board size detection in the existing technology are solved, and high-precision, low-cost, and adaptable wood board size measurement is achieved, which is suitable for Multi-directional feeding and efficient detection.

CN118776459APending Publication Date: 2024-10-15SHENZHEN XINXINTENG TECH CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202410857802.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-28
Publication Date
2024-10-15

AI Technical Summary

Technical Problem

In the existing technology, the board size online detection device has a fixed incoming material direction due to the imaging principle of the line array camera, resulting in a large equipment size, high system complexity, measurement accuracy affected by movement accuracy, poor applicability, and inability to adapt to multi-directional feeding. and efficient detection requirements.

Method used

A time-sharing exposure method based on an array area scan camera is adopted. Through joint calibration of multiple cameras, combined with bright field and dark field image processing, the edge information of the plate is obtained, its size is calculated, and the first light and the second light are used for time-sharing exposure. Acquire brightfield and darkfield images, and use image enhancement, morphological operations, and caliper search algorithms to accurately determine the edge and corner points of the plate and calculate its size.

Benefits of technology

It achieves high-precision, low-cost, and highly adaptable wood board size measurement, is compatible with multi-directional feeding, has small equipment size and fast measurement speed, and can effectively filter background interference and improve measurement accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118776459A_ABST
    Figure CN118776459A_ABST
Patent Text Reader

Abstract

The invention provides a time-sharing exposure plate size measurement method based on an array area-array camera, and belongs to the technical field of size measurement. The time-sharing exposure plate size measurement method based on the array area-array camera comprises the following steps: turning on first light, and obtaining a bright field measurement image of a to-be-measured plate through the array area-array camera; second lamplight is turned on, and a dark field measurement image of the to-be-measured plate is obtained through the array area-array camera; based on the bright field measurement image and the dark field measurement image, obtaining edge pixel points of the plate positioning plate, and then fitting the edge pixel points to obtain an edge line of the plate; coordinates of the four corners of the plate are obtained through the edge lines of the plate, and the plate size is calculated according to the point coordinates of the four corners. The method has the advantages that the size information of the plate can be obtained through camera imaging, and the measuring speed is high; and multi-direction feeding is compatible, the production line compatibility is high, and the standardization degree and the generalization degree are high.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of dimension measurement, and in particular to a time-sharing exposure plate dimension measurement method and a test system based on an array area camera. Background Art

[0002] The size measurement of home board is a very important part of the whole board production process. The traditional method of measuring the size of wooden boards is mainly to measure them manually using a tape measure. This method is greatly affected by the subjective influence of the human eye, has low detection accuracy, poor consistency, and relatively high detection cost. This method cannot meet the large-scale, low-cost, and high-efficiency detection needs on the production line. At present, most of the home board size measurement technologies use linear array camera scanning imaging solutions, which have high imaging accuracy and good consistency. Since the imaging of the linear array camera solution has high requirements for equipment accuracy and the product needs to be fed horizontally during imaging, the size of the detection equipment of the linear array camera solution is often large, which is not conducive to the layout of the customer's existing production line process equipment and is relatively poor in practicality. Therefore, an online board size measurement device based on an array array camera imaging solution is studied. The measurement equipment is directly installed on the existing production line, which has the advantages of small footprint, high production capacity, and low cost. The use of this equipment is of great significance to the transformation and upgrading of the customer's existing board production process.

[0003] The patent (CN 208721000 U) proposes an online product size detection device, which detects the passing of a product through a photoelectric sensor, activates a first code reader to read the product identification code, obtains the standard size information of the product, and then calculates the size of the product based on the image information of the product obtained by the linear array camera, and then calculates the error value with the standard size. When the size error exceeds the error threshold, the alarm device sends an alarm message.

[0004] The defects of this patented technical solution are as follows:

[0005] (1) The material movement speed needs to be uniform, and the image accuracy may be reduced due to the influence of movement accuracy;

[0006] (2) The material feeding direction is fixed, and the material feeding direction can only be perpendicular to the long side of the camera scanning window, which limits its application occasions;

[0007] (3) The imaging of the linear array camera solution requires high equipment accuracy. In order to ensure the horizontal feeding of the product during imaging, the equipment is large in size;

[0008] In summary, the current online product size detection device has a fixed material direction due to the imaging principle of the linear array camera; in order to ensure the level, the system complexity and volume are increased, and the applicability is not strong; the image accuracy may be reduced by the scanning motion accuracy, affecting the measurement accuracy; there is currently no area array camera measurement technology with a simple structure, reasonable design, reliable performance, wide applicability, and high measurement accuracy. Summary of the invention

[0009] In order to solve the problem of low precision in the prior art, the present invention provides a method for measuring the size of a plate by time-sharing exposure based on an array area camera.

[0010] The present invention numbers each camera in the array area array camera, uses multiple cameras for joint calibration, establishes the coordinate relationship of each camera, and then performs size measurement based on the array area array camera. The time-sharing exposure wooden board size measurement method includes the following steps:

[0011] S1: Turn on the first light and obtain a bright field measurement image of the plate to be measured through the array area camera;

[0012] S2: Turn on the second light and obtain a dark field measurement image of the plate to be measured through the array area camera;

[0013] S3: acquiring edge pixel points of the plate for plate positioning based on the bright field measurement image and the dark field measurement image, and then fitting the edge pixel points to obtain the edge line of the plate;

[0014] S4: Obtain the coordinates of the four corners of the plate through the edge line of the plate, and calculate the size of the plate according to the point coordinates of the four corners.

[0015] Furthermore, before executing step S3, a step of processing the bright field measurement image is also included, and the processing method of the bright field measurement image processing step is:

[0016] (1) Using the image enhancement algorithm, the difference between the plate and the background is increased to obtain the enhanced image I1;

[0017] (2) performing a binarization operation on the enhanced image I1 to obtain a binary image I2 including the board surface and part of the background interference;

[0018] (3) Through morphological corrosion and expansion operations, the background interference is filtered out to obtain a binary image I3 containing only the sheet material panel.

[0019] Furthermore, in step S1, the first light is light emitted by a first light group consisting of more than one lighting lamps, and the plate to be measured is set within a certain light source intensity range of the first light group.

[0020] Further, in step S2, the second light is the light emitted by a second light group composed of lighting lamps arranged around the plate, the second light group is arranged corresponding to the middle of the length extension direction of the side surface of the plate to be measured, the light is directed toward the side surface of the plate to be measured, and the side edge of the plate to be measured is set within a certain light source intensity range of the second light group.

[0021] Furthermore, the shape of the plate to be measured is a rectangle, and the length of the second light group is greater than the length of the corresponding side of the plate.

[0022] Furthermore, in step S3, the method for obtaining the edge line of the plate is:

[0023] S301: Find the minimum circumscribed rectangle through the panel information of the bright field measurement image, preliminarily determine the edge position of the plate, and extract the position information of the plate;

[0024] S302: processing the dark field measurement image in combination with the position information obtained from the bright field measurement image, and searching for the pixel points of the real edge of the plate in the dark field measurement image by using a caliper edge point search algorithm;

[0025] S303: Perform straight line fitting based on the obtained N edge pixel points to obtain the real edge of the plate in the dark field measurement image, and obtain the plate corner points in the image through fitting.

[0026] Furthermore, the array area camera is along two adjacent sides of the plate, and the shooting range covers three corners of the plate.

[0027] In step S4, the calculation method of the plate size is:

[0028] According to the camera images of the three corners of the plate, the edge lines of the plate and the corner points in the image are searched in turn, and the image coordinates are converted into world coordinates according to the calibrated camera internal and external parameter matrix;

[0029] Then, the fourth corner of the plate is fitted based on the straight lines where the two sides of the fourth corner that were not photographed are located. Finally, the length and width of the plate are calculated based on the world coordinates of the four corner points of the plate.

[0030] The present invention also provides a time-sharing exposure wood board size measurement system, comprising a board support mechanism, an array area camera arranged above the board support mechanism and used to take pictures of the board, a first light group, a second light group and a processor,

[0031] The first light group is arranged above the plate supporting mechanism, and is used to provide the first light to the array area array camera;

[0032] The second light group is arranged at another direction of the plate supporting mechanism, and is used to provide second light to the array area array camera;

[0033] The processor is used to execute the time-sharing exposure plate size measurement method based on the array area array camera.

[0034] Compared with the prior art, the beneficial effects of the present invention are as follows: by setting the first light and the second light for time-sharing exposure, it is possible to conveniently obtain bright field measurement images and dark field measurement images of the plate, so that the plate can avoid the problem of being unable to be accurately identified due to being similar to the background color. In addition, it can also effectively filter out interference from other surrounding components, thereby making the edge and corner search of the plate more accurate and the size measurement accuracy high.

[0035] The present invention is compatible with various platforms, takes static photos, has stable image accuracy, and is not limited to the direction of incoming materials; it only needs to set up a few lighting lamps and multiple cameras, occupies a small area, will not interfere with other equipment, has low cost, and has strong applicability. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] In order to more clearly illustrate the present invention or the solutions in the prior art, a brief introduction is given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0037] Figure 1 This is a flow chart of the time-sharing exposure plate size measurement method of the present invention;

[0038] Figure 2 It is a schematic diagram of the structure of the time-sharing exposure wood board size measurement system of the present invention. DETAILED DESCRIPTION

[0039] Unless otherwise defined, all technical and scientific terms used in the present invention have the same meanings as those commonly understood by those skilled in the art to which the present invention belongs; the terms used in the specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention; the terms "including" and "having" and any variations thereof in the specification and claims of the present invention and the above-mentioned drawings are intended to cover non-exclusive inclusions. The terms "first", "second", etc. in the specification and claims of the present invention or the above-mentioned drawings are used to distinguish different objects, not to describe a specific order.

[0040] Reference to "embodiments" in the present invention means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present invention. The appearance of the phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it mutually exclusive, independent, or alternative to other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described in the present invention may be combined with other embodiments.

[0041] In order to enable those skilled in the art to better understand the solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings.

[0042] like Figure 2 As shown, the present invention uses multiple light sources and cameras to expose different positions of the board twice, and then merges these images through image processing algorithms to obtain more information. This technology can improve the efficiency of image acquisition and the quality of the image. Specifically, the time-sharing exposure wooden board size measurement system of this example includes a board support mechanism, an array area array camera 1 arranged above the board support mechanism and used to take pictures of the board, and also includes a first light group 2, a second light group 3 and a processor.

[0043] In this example, the first light group 2 is arranged directly above the plate 4 to be measured, and is used to provide the first light to the array area array camera 1; the second light group 3 is arranged in another direction of the plate 4 to be measured, and is used to provide the second light to the array area array camera 1. The processor is used to execute the time-sharing exposure plate size measurement method based on the array area array camera.

[0044] The existing technology cannot measure the size of the plate by using the top light source and camera exposure and imaging positioning. This is because: the plate sizes are different (length 250~2800mm, width 100~1200mm), the incoming material position is uncertain, and the plate position needs to be positioned; the plate support mechanism has a complex plate production line background composed of black roller leather covers, dust accumulation and dirt, white metal lifting mechanisms, and various sensors; the plate colors and patterns are diverse, and different exposure times are required to make the plate surface uniform. High exposure causes the edge of the plate to overlap with the background interference, making it difficult to distinguish. In addition, since the edge of the plate is an R-angle structure, the top lighting cannot completely illuminate the R angle, and the real edge of the plate cannot be obtained. The present invention adds a second light group and performs time-sharing exposure, so that the R angle is illuminated on the basis of obtaining the bright field measurement image, and the plate surface is dark, so the real edge of the plate can be obtained.

[0045] Preferably, the second light group of this example is arranged on the side of the plate 4, and illuminates the plate 4 from the side to make the dark field measurement image clearer.

[0046] Preferably, the shape of the plate 4 to be measured in this example is a rounded rectangle, and the length of the second light group 3 is greater than the length of the corresponding side of the plate, so that the two adjacent side R corners of the plate 4 can be illuminated more clearly.

[0047] The plate image of this example is calibrated by multiple cameras, and the coordinate relationship of each camera is established so that the multiple cameras are located in the same spatial coordinate system, and then the size measurement is performed based on the array area array camera. Preferably, the array area array camera of this example is distributed in an L shape, and can cover two adjacent edges of the plate 4. The upper surface of the plate 4 of this example is set within a certain light source intensity range of the first light group, and the side edge is set within a certain light source intensity range of the second light group.

[0048] like Figure 1 As shown, the time-sharing exposure method for measuring the size of a wooden board of the present invention comprises the following steps:

[0049] S1: Turn on the first light and obtain a bright field measurement image of the plate to be measured through the array area camera.

[0050] After receiving the signal that the board is in place, the present invention activates the high-angle surface light of the first light group 2 to illuminate the board surface to ensure uniform light illumination. After the surface light of the first light group 2 is turned on, the camera calls the appropriate exposure time according to the pattern to take pictures at a fixed point to obtain a bright field measurement image.

[0051] S2: Turn on the second light and obtain a dark field measurement image of the plate to be measured through the array area array camera.

[0052] After obtaining the bright field image to be measured, turn off the high-angle surface light of the first lighting group 2, and enable the low-angle side strip light to illuminate the R corner edge of the wooden board to ensure uniform light exposure. After the low-angle strip light of the second lighting group 3 is turned on, the camera calls the appropriate exposure time according to the pattern to take a fixed-point photo and obtain the dark field measurement image.

[0053] After step S2 is executed, this example further includes a step of processing the bright field measurement image.

[0054] The acquired bright field image to be measured is post-processed, and the image acquired by bright field exposure is processed. The image enhancement algorithm is used to increase the difference between the board surface and the background, the board surface area is extracted by binarization, and the interference caused by the dirty and reflective surface of the roller is eliminated by morphology.

[0055] The specific processing method of the bright field measurement image processing step of the present invention is:

[0056] (1) Using the image enhancement algorithm, the difference between the plate and the background is increased to obtain the enhanced image I1;

[0057] (2) performing a binarization operation on the enhanced image I1 to obtain a binary image I2 including the board surface and part of the background interference;

[0058] (3) Through morphological corrosion and expansion operations, the background interference is filtered out to obtain a binary image I3 containing only the sheet material panel.

[0059] Of course, this example can also be placed after step S1 and executed directly after the bright field measurement image is acquired.

[0060] S3: acquiring edge pixel points of the plate for plate positioning based on the bright field measurement image and the dark field measurement image, and then fitting the edge pixel points to obtain an edge line of the plate.

[0061] The method for obtaining the edge line of the plate in this example is:

[0062] S301: Find the minimum circumscribed rectangle through the panel information of the bright field measurement image, preliminarily determine the edge position of the plate, and extract the position information of the plate.

[0063] In this example, the board surface information is used, and the characteristic of the board being a rectangle is utilized to find the minimum circumscribed rectangle, which is initially determined as the edge position of the board to extract the position information of the wooden board. Specifically, after obtaining the binary image I3, the present invention utilizes the characteristic of the board being a rectangle to perform a minimum circumscribed rectangle fitting on the board area in the binary image I3, and the four sides of the obtained minimum circumscribed rectangle are the initial edge lines of the board.

[0064] S302: Combine the position information obtained from the bright field measurement image, that is, the initial edge line of the plate, and search for the initial position of the plate edge in the dark field measurement image with high precision. Use the caliper edge point search algorithm to search for the pixel points of the real edge of the plate in the dark field measurement image.

[0065] S303: Perform straight line fitting based on the obtained N edge pixel points (N is a positive integer) to obtain the real edge of the plate in the dark field measurement image, and obtain the plate corner points in the image by fitting.

[0066] S4: Obtain the coordinates of the four corners of the plate through the edge line of the plate, and calculate the size of the plate according to the point coordinates of the four corners.

[0067] Specifically, since the plate in this example has four corners, and the camera can only obtain images of three corners, it is necessary to fit the fourth corner. The detailed processing method of this example is:

[0068] According to the camera images of the three corners of the plate, the edge lines of the plate and the corner points in the image are searched in turn, and the image coordinates are converted into world coordinates according to the calibrated camera internal and external parameter matrix;

[0069] Then, the fourth corner of the plate is fitted based on the straight lines where the two sides of the fourth corner that were not photographed are located. Finally, the length and width of the plate are calculated based on the world coordinates of the four corner points of the plate.

[0070] Compared with the prior art, the present invention can conveniently obtain bright field measurement images and dark field measurement images of the plate by setting the first light and the second light for time-sharing exposure, so that the plate can avoid the problem of being unable to be accurately identified due to being similar to the background color. In addition, it can also effectively filter out interference from other surrounding components, thereby making the edge and corner search of the plate more accurate and the size measurement accuracy high.

[0071] The size measurement operation steps of the present invention are as follows:

[0072] 1. Read the code at the feeding port to obtain the finished size and color of the wood board, call different numbers of cameras to take pictures according to different sizes, and call different exposures according to different colors;

[0073] 2. For the first photo shoot, only the first light group of the top surface light is enabled to illuminate the wooden board surface for preliminary positioning of the board;

[0074] 3. For the second photo shoot, only the second light group of the side strip light is activated to illuminate the R corner of the edge band of the wooden board;

[0075] 4. Overlap and fuse the two photos to get the true outermost edge of the board, so as to calculate the actual size of the board;

[0076] 5. Compare the actual calculated size with the read code size. The boards within the size error range will be OK and sent away. The boards beyond the size error will be labeled in red and sent away as NG.

[0077] The present invention has the following innovative features:

[0078] (1) Multiple cameras are calibrated together to establish the same spatial coordinate system;

[0079] (2) Use bright and dark field multi-angle time-sharing exposure to obtain image boundary information;

[0080] (3) High-precision numerical calculation method and image fusion algorithm to determine the true edge of the plate;

[0081] (4) The structure is compatible with multi-directional feeding, with strong production line compatibility, standardization and high degree of universality;

[0082] (5) The plate size information can be obtained by static imaging once, and the measurement speed is fast;

[0083] (6) Imaging can obtain better imaging effects without the need for a high-precision motion platform, and the equipment structure is easy to debug.

[0084] The specific implementation modes described above are preferred implementation modes of the present invention, and are not intended to limit the specific implementation scope of the present invention. The scope of the present invention includes but is not limited to the specific implementation modes, and all equivalent changes made according to the present invention are within the protection scope of the present invention.

Claims

1. A time-sharing exposure plate size measurement method based on an array area camera, characterized in that: Each camera in the array area array camera is numbered, multiple cameras are calibrated together to establish the coordinate relationship of each camera, and then the size measurement is performed based on the array area array camera. The time-sharing exposure wooden board size measurement method includes the following steps: S1: Turn on the first light and obtain a bright field measurement image of the plate to be measured through the array area camera; S2: Turn on the second light and obtain a dark field measurement image of the plate to be measured through the array area camera; S3: acquiring edge pixel points of the plate for plate positioning based on the bright field measurement image and the dark field measurement image, and then fitting the edge pixel points to obtain the edge line of the plate; S4: Obtain the coordinates of the four corners of the plate through the edge line of the plate, and calculate the size of the plate according to the point coordinates of the four corners.

2. The time-sharing exposure plate size measurement method based on an array area camera according to claim 1 is characterized in that: Before executing step S3, the method further includes a step of processing the bright field measurement image. The processing method of the bright field measurement image processing step is: (1) Using the image enhancement algorithm, the difference between the plate and the background is increased to obtain the enhanced image I1; (2) performing a binarization operation on the enhanced image I1 to obtain a binary image I2 including the board surface and part of the background interference; (3) Through morphological corrosion and expansion operations, the background interference is filtered out to obtain a binary image I3 containing only the sheet material panel.

3. The method for measuring plate size by time-sharing exposure based on an array area camera according to claim 1 or 2, characterized in that: In step S1, the first light is light emitted by a first light group consisting of more than one lighting lamp, and the plate to be measured is set within a certain light source intensity range of the first light group.

4. The method for measuring plate size by time-sharing exposure based on an array area camera according to claim 1 or 2, characterized in that: In step S2, the second light is the light emitted by a second light group composed of lighting lamps arranged around the plate, the second light group is arranged corresponding to the middle of the length extension direction of the side surface of the plate to be measured, the light is directed toward the side surface of the plate to be measured, and the side edge of the plate to be measured is set within a certain light source intensity range of the second light group.

5. The time-sharing exposure plate size measurement method based on an array area camera according to claim 4 is characterized in that: The shape of the plate to be measured is a rectangle, and the length of the second light group is greater than the length of the corresponding side of the plate.

6. The method for measuring plate size by time-sharing exposure based on an array area camera according to claim 5 is characterized in that: In step S3, the method for obtaining the edge line of the plate is: S301: Find the minimum circumscribed rectangle through the panel information of the bright field measurement image, preliminarily determine the edge position of the plate, and extract the position information of the plate; S302: processing the dark field measurement image in combination with the position information obtained from the bright field measurement image, and searching for the pixel points of the real edge of the plate in the dark field measurement image by using a caliper edge point search algorithm; S303: Perform straight line fitting based on the obtained N edge pixel points to obtain the real edge of the plate in the dark field measurement image, and obtain the plate corner points in the image through fitting.

7. The time-sharing exposure plate size measurement method based on an array area camera according to claim 6 is characterized in that: The array area camera is along two adjacent sides of the plate, and the shooting range covers the three corners of the plate. In step S4, the calculation method of the plate size is: According to the camera images of the three corners of the plate, the edge lines of the plate and the corner points in the image are searched in turn, and the image coordinates are converted into world coordinates according to the calibrated camera internal and external parameter matrix; Then, the fourth corner of the plate is fitted based on the straight lines where the two sides of the fourth corner that were not photographed are located. Finally, the length and width of the plate are calculated based on the world coordinates of the four corner points of the plate.

8. Time-sharing exposure wood board size measurement system, characterized in that: It includes a plate supporting mechanism, an array area camera arranged above the plate supporting mechanism and used to take pictures of the plate, a first lighting group, a second lighting group and a processor, The first light group is arranged above the plate supporting mechanism, and is used to provide the first light to the array area array camera; The second light group is arranged at another direction of the plate supporting mechanism, and is used to provide second light to the array area array camera; The processor is used to execute the time-sharing exposure plate size measurement method based on array area camera as described in any one of claims 1 to 7.

Citation Information

Cited By

  • Rectangular plane plate size measuring device and method based on CIS camera

    CN120008466A

  • Rectangular flat material size measuring device and method based on cis camera

    CN120008466B