WO2019114380A1 - Wood board identification method, machine learning method and device for wood board identification, and electronic device - Google Patents

Wood board identification method, machine learning method and device for wood board identification, and electronic device Download PDF

Info

Publication number
WO2019114380A1
WO2019114380A1 PCT/CN2018/109106 CN2018109106W WO2019114380A1 WO 2019114380 A1 WO2019114380 A1 WO 2019114380A1 CN 2018109106 W CN2018109106 W CN 2018109106W WO 2019114380 A1 WO2019114380 A1 WO 2019114380A1
Authority
WO
WIPO (PCT)
Prior art keywords
board
dimensional images
sets
image
wood board
Prior art date
Application number
PCT/CN2018/109106
Other languages
French (fr)
Chinese (zh)
Inventor
丁磊
Original Assignee
北京木业邦科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 北京木业邦科技有限公司 filed Critical 北京木业邦科技有限公司
Publication of WO2019114380A1 publication Critical patent/WO2019114380A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/21Design or setup of recognition systems or techniques; Extraction of features in feature space; Blind source separation
    • G06F18/214Generating training patterns; Bootstrap methods, e.g. bagging or boosting
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/24Classification techniques
    • G06F18/241Classification techniques relating to the classification model, e.g. parametric or non-parametric approaches
    • G06F18/2413Classification techniques relating to the classification model, e.g. parametric or non-parametric approaches based on distances to training or reference patterns

Definitions

  • the present disclosure relates to the field of wood automated processing technologies, and in particular, to a machine learning method, apparatus, electronic device, and computer readable storage medium for wood board identification and board recognition.
  • board sorting is an important part. Whether it is a semi-finished product or a finished product after molding, coloring, drying, etc., it is necessary to classify according to different wood characteristics combined with quality standards.
  • the sorting of the board is done manually. Trained workers, through observation, judge the color, texture, defects, etc. of each piece of wood, and combine the experience to classify a piece of wood into different categories. The wood boards in each category have closer characteristics, achieving a higher product appearance and consistency of quality.
  • the current standard for wood board classification is usually customized by the manufacturer, that is, the current board classification is essentially non-standardized; the machine learning method in the related art adopts a pre-training method, and only a specific model can be trained for a specific manufacturer. Obviously, it cannot be used in multiple vendors.
  • the wood is produced in batches. Each batch of products is highly correlated with the original wood quality and painting process of the batch. There may be huge differences between batches; however, the training model in the related art is completely Depending on the sample lot, dynamic tuning is not possible for different batches. Finally, the change of natural light will have a greater impact on visual recognition.
  • the related technology does not consider the standardization under ambient light changes and cannot adapt to the detection of different environments.
  • Embodiments of the present disclosure provide a machine learning method, apparatus, and computer readable storage medium for wood board recognition.
  • a machine learning method for wood board recognition is provided in an embodiment of the present disclosure.
  • each set of one-dimensional images includes a plurality of one-dimensional images corresponding to different positions of the wooden board, and the plurality of one-dimensional images in each set of one-dimensional images correspond to The same predetermined speed;
  • the board identification type, the plurality of different predetermined speeds, and the plurality of two-dimensional images are used as the plurality of sets of training data to respectively train the board recognition model; each group of the training data includes the category of the board, and the plurality of two-dimensional images.
  • acquiring a plurality of sets of one-dimensional images of the wood board at a plurality of different predetermined speeds including:
  • the board has a relative speed with the linear camera
  • the combination of the relative speed and the sampling frame rate of the linear camera corresponds to a plurality of different predetermined speeds
  • a plurality of sets of one-dimensional images of the board are acquired.
  • acquiring a plurality of sets of one-dimensional images of the wood board at a plurality of different predetermined speeds including:
  • the wood board identification model is trained by using the category of the board, a plurality of different predetermined speeds, and a plurality of two-dimensional images as the plurality of sets of training data, including:
  • the board identification type, a plurality of different predetermined speeds, different illumination conditions, and a plurality of two-dimensional images are used as a plurality of sets of training data to respectively train the wood board recognition model; each group of training data includes a category of wood boards, and multiple A two-dimensional image in a two-dimensional image and its corresponding predetermined velocity and illumination conditions.
  • each of the acquired one-dimensional images in the plurality of sets of one-dimensional images is separately spliced to obtain a plurality of two-dimensional images at a plurality of different predetermined speeds, including:
  • the one-dimensional images of at least two groups are separately spliced to form a plurality of two-dimensional images at different predetermined speeds.
  • the lighting condition includes one or more of a strength of the light source outside the board, a direction of illumination of the external source light, a shooting angle of the image acquiring unit that acquires the one-dimensional image, and an aperture size of the image acquiring unit; the predetermined speed is The relative movement speed between the image acquisition unit and the board.
  • the method further includes:
  • a plurality of one-dimensional images of white reference objects are also acquired while acquiring a plurality of sets of one-dimensional images of the wood board.
  • the board type, the plurality of different predetermined speeds, and the plurality of two-dimensional images are used as the plurality of sets of training data to respectively train the board recognition model, including:
  • a plurality of two-dimensional images are respectively labeled to obtain boundary information of the wooden board.
  • the board type, the plurality of different predetermined speeds, and the plurality of two-dimensional images are used as the plurality of sets of training data to respectively train the board recognition model, and further includes:
  • the board boundary recognition model is trained according to the boundary information of the plurality of two-dimensional images and the wooden board, and the recognition result of the board boundary recognition model includes the boundary information of the board.
  • an embodiment of the present disclosure provides a board identification method, including:
  • the recognition is based on the two-dimensional image and the trained wood board recognition model, and the type of the board and the moving speed are obtained.
  • the obtained one-dimensional images are spliced to obtain a two-dimensional image to be identified, including:
  • At least two sets of one-dimensional images are separately spliced to form at least two two-dimensional images to be identified.
  • identifying according to the two-dimensional image and the trained wood board recognition model, obtaining the category of the board and the moving speed including:
  • the group with the highest confidence is selected from the two sets of confidence estimates as the final recognition result.
  • the method further includes:
  • the kick timing of the board is obtained according to the moving speed of the board.
  • the two-dimensional image and the trained wood board recognition model are identified to obtain the category of the board and the moving speed, including:
  • the boundary information, and the wood board recognition model, the category of the board and the moving speed are obtained.
  • identifying according to the two-dimensional image and the trained wood board recognition model, obtaining the category of the board and the moving speed including:
  • a plurality of two-dimensional images obtained under different illumination conditions are respectively input to the wood board recognition model to obtain a plurality of sets of confidence estimates of the category of the board and the moving speed;
  • the group with the highest confidence is selected from the multi-group confidence estimates as the final recognition result.
  • the method further includes:
  • a plurality of one-dimensional images of white reference objects are also acquired while acquiring a plurality of one-dimensional images of the wood board.
  • a machine learning apparatus for wood board identification comprising:
  • a first obtaining module configured to acquire a plurality of sets of one-dimensional images of the wooden board at a plurality of different predetermined speeds; wherein each set of one-dimensional images includes a plurality of one-dimensional images at different positions of the corresponding wooden board, and each set of one-dimensional images Multiple one-dimensional images in the image correspond to the same predetermined speed;
  • the first splicing module is configured to splicing each set of one-dimensional images in the acquired plurality of one-dimensional images to obtain a plurality of two-dimensional images at a plurality of different predetermined speeds;
  • the training module is configured to train the wood board recognition model as a plurality of sets of training data by using a category of the board, a plurality of different predetermined speeds, and a plurality of two-dimensional images; each group of the training data includes a category of the board, a two-dimensional image of the plurality of two-dimensional images and a corresponding predetermined speed; the recognition result of the wood board recognition model includes a category of the wood board and a moving speed.
  • the first obtaining module includes:
  • the first acquisition sub-module is configured to acquire a plurality of sets of one-dimensional images of the wood board in a case where the board has a relative speed with the linear camera and the combination of the relative speed and the sampling frame rate of the linear camera corresponds to a plurality of different predetermined speeds.
  • the first obtaining module includes:
  • a second obtaining sub-module configured to acquire a plurality of sets of one-dimensional images of the wood board at a plurality of different predetermined speeds under different lighting conditions
  • Training modules including:
  • the first training sub-module is configured to train the wood board recognition model as a plurality of sets of training data by using a category of the board, a plurality of different predetermined speeds, different illumination conditions, and a plurality of two-dimensional images; each group of the plurality of sets of training data
  • the training data includes the category of the board, a two-dimensional image of the plurality of two-dimensional images, and their corresponding predetermined speeds and lighting conditions.
  • the first splicing module includes:
  • a first grouping sub-module configured to divide each set of one-dimensional images in the acquired plurality of sets of one-dimensional images into at least two groups according to an image acquisition time sequence and/or an image order;
  • the first splicing sub-module is configured to splicing the one-dimensional images of the at least two groups separately to form a plurality of two-dimensional images at different predetermined speeds.
  • the lighting condition includes one or more of a strength of the light source outside the board, a direction of illumination of the external source light, a shooting angle of the image acquiring unit that acquires the one-dimensional image, and an aperture size of the image acquiring unit; the predetermined speed is The relative movement speed between the image acquisition unit and the board.
  • the device further includes:
  • the second obtaining module is configured to acquire a plurality of one-dimensional images of the white reference object while acquiring the plurality of sets of one-dimensional images of the wooden board.
  • the first splicing module includes:
  • a second splicing sub-module configured to splicing each set of one-dimensional images in the plurality of sets of one-dimensional images to obtain a plurality of two-dimensional images
  • the labeling sub-module is configured to label a plurality of two-dimensional images separately to obtain boundary information of the board.
  • the training module further includes:
  • the second training sub-module is configured to train the board boundary recognition model according to the boundary information of the plurality of two-dimensional images and the wooden board, and the recognition result of the board boundary recognition model includes the boundary information of the board.
  • the functions can be implemented in hardware or in hardware by executing the corresponding software.
  • the hardware or software includes one or more modules corresponding to the functions described above.
  • the structure of the board-recognized machine learning device includes a memory and a processor for storing one or more machine learning devices that support wood board recognition to perform the machine learning method of board identification in the first aspect above.
  • Computer instructions, the processor being configured to execute computer instructions stored in the memory.
  • the board-aware machine learning device may also include a communication interface with which the machine learning device for wood board identification communicates with other devices or communication networks.
  • an embodiment of the present disclosure provides a board identifying device, including:
  • a third obtaining module configured to acquire a plurality of one-dimensional images of the wood board
  • a second splicing module configured to splicing the acquired one-dimensional images to obtain a two-dimensional image to be recognized
  • the identification module, the splicing module identifies the two-dimensional image and the trained wood board recognition model, and obtains the category of the board and the moving speed.
  • the second splicing module includes:
  • a second grouping sub-module configured to divide the acquired plurality of one-dimensional images into at least two sets of one-dimensional images according to an image acquisition time sequence and/or an image order;
  • the third splicing sub-module is configured to splicing at least two sets of one-dimensional images to form at least two two-dimensional images to be identified.
  • the identification module includes:
  • a first identification sub-module configured to input at least two two-dimensional images into the wood board recognition model respectively, to obtain two types of confidence estimates of the category of the board and the moving speed;
  • the first selection sub-module is configured to select the group with the highest confidence from the two sets of confidence estimates as the final recognition result.
  • the method further includes:
  • the kick leg module is configured to obtain the kick timing of the board based on the moving speed of the board.
  • the identification module includes:
  • a second identification sub-module configured to obtain boundary information of the wooden board according to the two-dimensional image and the trained boundary recognition model
  • the third identification sub-module is configured to obtain the category of the wooden board and the moving speed according to the two-dimensional image, the boundary information, and the wood board recognition model.
  • the identification module includes:
  • a fourth identification sub-module configured to input a plurality of two-dimensional images obtained under a plurality of different illumination conditions into the wood board recognition model respectively, to obtain a plurality of sets of confidence estimates of the category of the board and the moving speed;
  • the second selection sub-module is configured to select the group with the highest confidence from the plurality of sets of confidence estimates as the final recognition result.
  • the method further includes:
  • the fourth obtaining module is configured to acquire a plurality of one-dimensional images of the white reference object while acquiring the plurality of one-dimensional images of the wood board.
  • the functions can be implemented in hardware or in hardware by executing the corresponding software.
  • the hardware or software includes one or more modules corresponding to the functions described above.
  • the structure of the board identifying device includes a memory and a processor for storing one or more computer instructions for supporting the board identifying device to perform the board identifying method in the first aspect, the processor being configured to use Computer instructions stored in the execution memory.
  • the board identification device may also include a communication interface for the board identification device to communicate with other devices or communication networks.
  • an embodiment of the present disclosure provides an electronic device, including a memory and a processor; wherein the memory is configured to store one or more computer instructions, wherein the one or more computer instructions are executed by the processor to implement the first Aspect or method step of the second aspect.
  • an embodiment of the present disclosure provides a computer readable storage medium for storing computer instructions for a wood board identification machine learning device or a wood board identification device, including a machine for performing wood board recognition in the above first aspect
  • the computer method involved in the learning method or the second aspect of the board identification method is a computer readable storage medium for storing computer instructions for a wood board identification machine learning device or a wood board identification device, including a machine for performing wood board recognition in the above first aspect.
  • a plurality of sets of one-dimensional images of wood boards at different speeds are acquired by a linear camera, and a plurality of sets of one-dimensional images are further spliced to form a plurality of two-dimensional images corresponding to different speeds, thereby utilizing speed, real categories of wood boards, and corresponding
  • the two-dimensional image respectively trains the wood board recognition model, so that the wood board recognition model after the training can automatically recognize the type and speed of the board.
  • the embodiment of the present disclosure collects a one-dimensional image of a wooden board at different speeds, and uses the same wooden board image samples at different speeds, the type of the wooden board, and the speed to train the machine learning model, so that the wood board recognition model obtained by the training can be accurately
  • the image of the wood board collected at different speeds is recognized, and the relative movement speed of the board is also recognized.
  • the wood board recognition model obtained by the present disclosure can accurately classify the board regardless of the environment and any speed, and perform the sorting operation at the exact kick time.
  • a separate device such as a photoelectric sensor, to obtain the time of arrival of the board, but the classification time can be determined by classification learning.
  • FIG. 1 shows a flow chart of a machine learning method for wood board recognition in accordance with an embodiment of the present disclosure
  • FIG. 2 A schematic diagram of a convolutional neural network in accordance with an embodiment of the present disclosure is shown in FIG. 2;
  • FIG. 3 is a schematic view showing the overall structure of a wood sorting system according to an embodiment of the present disclosure
  • FIG. 4 shows a flow chart of step S102 according to the embodiment shown in Figure 1;
  • FIG. 5 shows a flow chart of step S103 according to the embodiment shown in Figure 1;
  • FIG. 6 illustrates an example of performing boundary labeling on an image sample according to an embodiment of the present disclosure
  • FIG. 7 illustrates a flowchart of a wood board identification method according to an embodiment of the present disclosure
  • FIG 8 shows a flow chart of step S702 according to the embodiment shown in Figure 7;
  • FIG. 9 is a block diagram showing the structure of a machine learning device for wood board recognition according to an embodiment of the present disclosure.
  • FIG. 10 is a block diagram showing the structure of a wood board identifying apparatus according to an embodiment of the present disclosure.
  • FIG. 11 is a block diagram showing the structure of an electronic device suitable for implementing a machine learning method for wood board recognition according to an embodiment of the present disclosure.
  • the camera In prior art machine learning applications, the camera is required to use low precision cameras as much as possible to reduce costs. This is because some classification algorithms do not require very high precision image data to achieve accurate classification.
  • the machine learning method has higher requirements on the resolution of the camera.
  • Conventional cameras use rectangular sensors, which have the advantage of being able to obtain two-dimensional image data that is easy to process. However, this also limits the resolution of the sample. Linear cameras have higher one-dimensional resolution and variable sampling periods, so they have better application potential in wood processing.
  • FIG. 1 illustrates a flow chart of a machine learning method for wood board recognition in accordance with an embodiment of the present disclosure.
  • the machine learning method for wood board recognition includes the following steps S101-S103:
  • step S101 a plurality of sets of one-dimensional images of the wooden board at a plurality of different predetermined speeds are acquired; wherein each set of one-dimensional images includes a plurality of one-dimensional images at different positions of the corresponding wooden boards, and each of the one-dimensional images in each group One-dimensional images correspond to the same predetermined speed;
  • step S102 each set of one-dimensional images in the acquired plurality of sets of one-dimensional images are separately spliced to obtain a plurality of two-dimensional images at a plurality of different predetermined speeds;
  • step S103 the board type, the plurality of different predetermined speeds, and the plurality of two-dimensional images are used as the plurality of sets of training data to respectively train the board recognition model; each group of the training data includes the category of the board, and more A two-dimensional image of the two-dimensional image and the corresponding predetermined speed; the recognition result of the wood-board recognition model includes the category of the wood board and the moving speed.
  • the collected wood board image is a high-precision one-dimensional image, and images of different moving speeds are collected for the same wood board sample, so that the training sample is more abundant, and Can adapt to the recognition of images acquired under various conditions.
  • the different moving speeds here refer to the relative speed between the board and the image acquisition device, ie the linear camera.
  • the one-dimensional image can be acquired by a linear camera. Since the linear camera can only acquire one one-dimensional image at each time point, the one-dimensional image cannot be directly used for subsequent learning or classification. Therefore, a plurality of one-dimensional data can be spliced into one two-dimensional image, and the two-dimensional image can contain image information of a part or the whole board.
  • the predetermined speed may be a relative speed between a predefined board and a linear camera.
  • a predetermined speed When collecting a one-dimensional image of a wooden board, when the relative speed between the wooden board and the linear camera is a predetermined speed, a one-dimensional image of the wooden board is collected, and one one-dimensional image is collected at each time point in sequence, and more is collected at the same predetermined speed.
  • One-dimensional images are a set of one-dimensional images. After collecting a plurality of one-dimensional images of part or the whole board, the relative speed between the board and the linear camera can be changed, and the acquisition is performed again, and finally a plurality of sets of one-dimensional images at different predetermined speeds are obtained. By splicing a set of one-dimensional images acquired at the same predetermined speed, a two-dimensional image corresponding to the predetermined speed is obtained, and finally a plurality of two-dimensional images corresponding to different predetermined speeds can be obtained.
  • the category of the board, the predetermined speed, and the two-dimensional image corresponding to the predetermined speed are used as a set of training data, and the same board corresponds to multiple sets of training data, and each group of training data
  • the two-dimensional image is used as an input to the machine learning model, and the corresponding predetermined speed and board type are used as outputs to train various parameters of the machine learning model.
  • the result of the machine learning model is converged, and finally the trained wood board recognition model is obtained.
  • the machine learning model may include, but is not limited to, one or a combination of a convolutional neural network, a feedback neural network, a deep learning network, a decision forest, a Bayesian network, a support vector machine.
  • the neural network is taken as an example to introduce the principle and process of model training in detail.
  • the neural network may be an automatic classification model, a regression model or a decision model, and the neural network may be one or a combination of a convolutional neural network and a deep neural network.
  • the neural network may comprise a neural network comprising a plurality of layers, each layer comprising a plurality of nodes, and a trainable weight (i.e., parameters of the aforementioned machine learning model) between the two adjacent nodes.
  • FIG. 2 A schematic of a convolutional neural network is shown in Figure 2, which includes multiple convolutional and downsampled layers and a fully connected layer.
  • the convolutional layer is the core module of the convolutional neural network. By convolving with a filter, multiple nodes of the previous layer are connected to the nodes of the next layer. In general, each node of the convolutional layer is only connected to a part of the nodes of the previous layer.
  • the downsampling layer can use a max-pooling method to reduce a set of nodes into one node, using a method of nonlinearity taking the maximum value.
  • a fully connected layer After passing through multiple convolutional and downsampled layers, a fully connected layer is ultimately used to generate the output of the classification.
  • the fully connected layer connects all nodes of the previous layer to all nodes of the latter layer, which is related to a traditional neural
  • the network is similar.
  • a training algorithm such as a gradient descent algorithm
  • a gradient descent algorithm can be used to change the filter weight values in the neural network, thereby minimizing the difference in classification between the output and the sample data.
  • the training process can be done locally or in the cloud.
  • the determined classification of the board and the relationship between the 2D image and the custom classification, as well as the 2D image, etc. can be uploaded to the cloud.
  • the cloud server uses the obtained custom classification, the relationship between the two-dimensional image and the custom classification, and the two-dimensional image to train the neural network, and deploys the trained wood board recognition model to the local.
  • the category of the board can be predetermined. First determine the board samples, then customize the board samples, for example, classify the 1-3 board samples into Class A categories, class 4-8 boards into Class B categories, and Class 9-10 boards into Class C categories. . Because it is a custom classification, it can be customized according to the specific conditions of the board factory and the actual classification. For example, the boards of No. 1, 3, and 5 are classified into Class A categories, and the remaining board samples are classified into Class B categories. In the factory, custom classification is performed according to the actual situation of the factory. This kind of custom classification is more suitable for the actual situation of different board factories and the classification requirements, and the classification is more flexible and convenient. The specific implementation of the classification is done manually by experience. How many categories are set and which sample belongs to which category is also implemented manually. Manual sorting can be done based on different features of the board, such as color, texture, defects, and the like.
  • the step S103 is to obtain a plurality of sets of one-dimensional images of the board at a plurality of different predetermined speeds, and further includes:
  • the board has a relative speed with the linear camera
  • the combination of the relative speed and the sampling frame rate of the linear camera corresponds to a plurality of different predetermined speeds
  • a plurality of sets of one-dimensional images of the board are acquired.
  • a plurality of methods can be employed.
  • One way is to move the board to the linear camera with the linear camera fixed.
  • the movement of the board is achieved by a conveyor belt, and a linear camera is mounted above the conveyor belt to capture images.
  • 3 is a block diagram showing the structure of a wood board sorting system for sampling wooden board images in an embodiment of the present disclosure. The structural details of Figure 3 will be described in detail in the section on Woodboard Classification and Identification.
  • the wood board sample enters the finishing area B1, in which the wood board samples are finished, guided, and then sequentially entered into the determination area B2 (image sampling area).
  • one or more linear cameras on the pipeline capture the one-dimensional image of the wood sample at a predetermined speed with a very rapid speed.
  • the conveyor moves at a different predetermined speed each time: V1 represents a predetermined speed of 0, V2.
  • V3....Vn represents the speed before the predetermined speed is from 0 to the line belt of the B2 area, and V(n+1) represents the B2 line speed in order to obtain a one-dimensional image of the board at different predetermined speeds.
  • the linear camera moves toward the plank sample with the plank sample fixed.
  • one or more linear cameras scan the wood sample at a predetermined speed and capture the image of the wood sample at a very fast rate: V1 represents speed 0, V2, V3....Vn represents 0 to B2, respectively.
  • V1 represents speed 0, V2, V3....Vn represents 0 to B2, respectively.
  • V(n+1) represents the B2 pipeline speed, in order to obtain a one-dimensional image of the plank samples at different speeds. This method is suitable for cases where the wooden board sample is large and inconvenient to move.
  • the moving speed can also be simulated by adjusting the frame rate of the linear camera.
  • the first frame rate is used to collect the one-dimensional image in the first half of the board sample
  • the second frame rate is used to collect the one-dimensional image in the second half of the board sample, so that two different differences of the same board can be obtained.
  • An image sample of a predetermined speed For another example, the board is fixed, and when the linear camera is moved, the image samples at various predetermined speeds can also be obtained by adjusting the frame rate of the linear camera.
  • a linear camera moves the board several times at the same speed V, but scans the sample using different frame rates, for example, f0, f2, f3....fn, and the obtained board image and the board obtained at different moving speeds.
  • the image is the same.
  • both the wood sample and the linear camera may be moved, and the moving direction may be relative or the same direction, as long as the relative motion speed between the two is not zero (ie, At the same time, the linear camera uses a certain frame rate to scan the wood sample, and the aforementioned predetermined speed is formed by the combination of the relative motion speed and the sampling frame rate.
  • the moving speed of the wood board sample, the moving speed of the linear camera, the sampling frame rate, and the predetermined speed are all variable.
  • the relative motion speed of the board is v1+v2
  • the one-dimensional image obtained by the linear camera using the standard frame rate scan is predetermined.
  • a one-dimensional image obtained by scanning at a standard frame rate of 2 times is a one-dimensional image at a predetermined speed of (v1+v2)/2, and is scanned using a 1/2 standard frame rate.
  • the one-dimensional image is a one-dimensional image at a predetermined speed of 2 (v1+v2). That is, in the embodiment of the present application, the predetermined speed can be obtained by adjusting one or more of the moving speed of the wood board sample, the moving speed of the linear camera, and the sampling frame rate.
  • the step S101 is to obtain a plurality of sets of one-dimensional images of the board at a plurality of different predetermined speeds, including:
  • the wood board identification model is trained by using the category of the board, a plurality of different predetermined speeds, and a plurality of two-dimensional images as the plurality of sets of training data, including:
  • the board identification type, a plurality of different predetermined speeds, different illumination conditions, and a plurality of two-dimensional images are used as a plurality of sets of training data to respectively train the wood board recognition model; each group of training data includes a category of wood boards, and multiple A two-dimensional image in a two-dimensional image and its corresponding predetermined velocity and illumination conditions.
  • image acquisition under different illumination conditions is achieved by transforming the aperture of the linear camera during image acquisition; it is also possible to set the light source around the linear camera to achieve different brightness by adjusting the brightness of the light source or the illumination direction of the light source.
  • the lighting conditions For example, as shown in FIG. 3, one or more light sources are added to the B2 area production line, for example, the light source may be a flat type LED lamp: L1, L2 togetherLn, the LED lamp can provide relatively uniform illumination, and The brightness of the light source can be sequentially increased or decreased by the control method to obtain samples of the product under different light conditions; the aperture size and the brightness or illumination direction of the light source can be simultaneously changed to achieve different illumination conditions.
  • the illumination condition of the LED lamp is used to raise the basic brightness of the image acquisition to a satisfactory level, and at the same time, by changing the size of the aperture to obtain the illumination level of the upper and lower floating of the basic brightness.
  • the combination of the two enables multiple illumination conditions to be achieved within a satisfactory range. Since the linear camera only collects one-dimensional images in a unit time, the entire board is multi-collected and finally spliced into a two-dimensional image. Therefore, different illumination intensities can be used at different times by a method synchronized with the illumination device.
  • s1 illumination intensity is used at t1 sampling time; at t2 sampling time, s2 illumination intensity is used; t3 sampling time is used, s3 illumination intensity is used, and so on, and multiple one-dimensional images are obtained.
  • the images of the odd moments are assembled into a first image sample, the even time instants are assembled into a second image sample, and after the wood board samples are scanned, two image samples under two different illumination conditions are obtained.
  • the s1 light intensity can be used during the first half of the scan area of the board sample, and the s2 light intensity can be used during the second half of the scan area of the board sample, or image samples at two light intensities can be obtained.
  • This method of changing the illumination intensity can be used in conjunction with the method of changing the aperture to obtain image samples with more illumination intensity.
  • each set of one-dimensional images in the acquired plurality of one-dimensional images is separately spliced to obtain a plurality of different predetermined speeds.
  • the step of multiple two-dimensional images further includes the following steps:
  • step S401 each set of one-dimensional images in the acquired plurality of sets of one-dimensional images are respectively divided into at least two groups according to an image acquisition time sequence and/or an image order;
  • step S402 at least two groups of one-dimensional images are separately spliced to form a plurality of two-dimensional images at different predetermined speeds.
  • multiple one-dimensional images in the same group can be divided into at least two groups by chronological order of image acquisition; for example, the first half of the same group of one-dimensional images are divided into one group, and the second half is one-dimensional.
  • the images are divided into a group; the plurality of one-dimensional images in the same group can also be divided into at least two groups by image order; for example, one-dimensional images in the same group with an odd order are divided into one group, and the order is evenly divided into one group.
  • the same group of one-dimensional images can be divided into multiple groups according to other methods, which can be set according to actual conditions, and details are not described herein again.
  • the first and second parts of the obtained one-dimensional image are divided into two parts according to the chronological order, and finally the one-dimensional images of the front and the back are respectively spliced to obtain two one-dimensional images.
  • 2N two-dimensional images will be obtained, and the number of groups in N and multiple sets of one-dimensional images is the same.
  • different illumination conditions can be used, so that the two two-dimensional images obtained have the same predetermined speed, but the illumination conditions are different.
  • the acquired set of one-dimensional images may be divided into two parts according to the image order, that is, the one-dimensional images of the odd-numbered and even-numbered ones in the set of one-dimensional images acquired at the same predetermined speed are respectively divided into two groups.
  • the one-dimensional images included in each group are spliced into a two-dimensional image, and two two-dimensional images can be obtained at the same predetermined speed. At different speeds, a 2N two-dimensional image can be obtained.
  • different illumination conditions can be used, so that the two two-dimensional images obtained have the same predetermined speed, but the illumination conditions are different.
  • the lighting condition includes one or more of a strength of the light source outside the board, a direction of illumination of the external source light, a shooting angle of the image acquiring unit that acquires the one-dimensional image, and an aperture size of the image acquiring unit; the predetermined speed is The relative movement speed between the image acquisition unit and the board.
  • the method further includes:
  • a plurality of one-dimensional images of white reference objects are also acquired while acquiring a plurality of sets of one-dimensional images of the wood board.
  • a reference image can be set during image acquisition.
  • a white reference object is provided to ensure that the image of the wood sample is captured simultaneously with the image of the white reference object.
  • a white reference object can be used to provide a reference for white balance, brightness, or other image parameters.
  • each set of training data includes at least one board category (ie, a customized product category) and a speed, and may also include a lighting condition and/or A camera angle label.
  • board category ie, a customized product category
  • speed may also include a lighting condition and/or A camera angle label.
  • a Sample can be a combination of multiple one-dimensional image data.
  • the speed information can be determined by the true relative movement speed and the frame rate.
  • Multiple images Sample can be obtained from the same board.
  • step S103 is to train the wood board recognition model as a plurality of sets of training data, that is, a category of the board, a plurality of different predetermined speeds, and a plurality of two-dimensional images.
  • the steps further include:
  • step S501 each set of one-dimensional images in the plurality of sets of one-dimensional images are separately spliced to obtain a plurality of two-dimensional images;
  • step S502 a plurality of two-dimensional images are respectively labeled to obtain boundary information of the board.
  • each image sample is a two-dimensional image sample, and the image sample itself contains a boundary information, that is, how the one-dimensional image data obtained by the linear camera is uninterrupted is cut and spliced into an independent A sample of a two-dimensional image.
  • An annotation uses the image itself as a boundary, that is, without any additional annotations, using only one independent two-dimensional image that contains both a woodboard image and a useless background image as a sample.
  • Another type of annotation uses an additional boundary label to independently mark the boundaries of the board image to distinguish the board image from the background image.
  • Figure 6 shows an example of boundary labeling of image samples, where the start and end boundaries are used to determine a separate board image and the side borders are used to determine the boundaries between the board image and the background image.
  • the step S103 that is, the step of training the board recognition model by using the category of the board, the plurality of different predetermined speeds, and the plurality of two-dimensional images as the plurality of sets of training data, further includes:
  • the board boundary recognition model is trained according to the boundary information of the plurality of two-dimensional images and the wooden board, and the recognition result of the board boundary recognition model includes the boundary information of the board.
  • the linear camera can continuously acquire one-dimensional images of a plurality of wood boards moving or arranged in a pipeline, and splicing to obtain a continuous two-dimensional image.
  • a cutting model that is, a board boundary recognition model
  • a board boundary recognition model can be trained to cut a continuous two-dimensional image, that is, to identify boundary information in the two-dimensional image, and to divide the boundary information into a plurality of two-dimensional images. Get a 2D image sample each containing only one board image.
  • the cutting model can use a separate neural network or share a neural network with the wood board recognition model. In order to facilitate the distinction between the board and the board identification network, the function of the network is described only in terms of functionality. In actual implementation, there may not be a separate entity or output value.
  • the cutting model can be trained by the above-mentioned image data marked with a boundary to obtain a decision strategy. After receiving the uninterrupted two-dimensional image, a decision of the starting boundary can be generated at time t1, and an end is generated at time t2. The judgment of the border. Further, the image data at times t1 and t2 is composed into an image containing only one independent wooden board sample by a simple image processing method. By continuously using the network, multiple independent two-dimensional image samples can be generated without interruption, and that each image sample contains only one complete woodboard image data. In addition to this, the neural network can also perform the identification of the side boundaries and reject the irrelevant background image data.
  • image data may also be acquired using a plurality of linear cameras.
  • Multiple linear cameras simultaneously acquire image data of a wooden board sample at different shooting angles and generate multiple sets of training data.
  • the plurality of sets of training data include labels such as a board type, a corresponding speed, and a corresponding shooting angle, and may of course include a label such as a corresponding illumination.
  • Multiple linear cameras can also use a variety of different lighting conditions. For example, the scanning area is divided into two areas, A and B, which are opaque, and linear cameras a and b are installed respectively, and s1 and s2 are used. After the board sample passes through the scanning area, two Samples under different lighting conditions are obtained. In the same way, samples under multiple parameters such as shooting angle and moving speed can also be obtained.
  • FIG. 7 illustrates a flow chart of a wood board identification method in accordance with an embodiment of the present disclosure. As shown in FIG. 7, the wood board identification method includes the following steps S701-S703:
  • step S701 acquiring a plurality of one-dimensional images of the wood board
  • step S702 the acquired plurality of one-dimensional images are spliced to obtain a two-dimensional image to be identified;
  • step S703 recognition is performed based on the two-dimensional image and the trained wood board recognition model, and the type of the board and the moving speed are obtained.
  • the one-dimensional image can be acquired by a linear camera. Since the linear camera can only acquire one one-dimensional image at each time point, the one-dimensional image cannot be directly used for subsequent recognition. Therefore, a plurality of one-dimensional data can be spliced into one two-dimensional image, and the two-dimensional image can contain image information of a part or the whole board.
  • the wood board recognition model may be pre-trained, such as a wood board recognition model obtained using the machine learning method shown in FIG. Since the wood board recognition model is trained through two-dimensional images, speeds, and categories, the type of the board, the moving speed, and the like can be identified by the image samples of the board to be identified.
  • the moving speed of the board is the relative moving speed, that is, the relative moving speed between the linear camera and the board that captures the image.
  • the wood board identification method can be performed in the control device of the wood board sorting system shown in FIG.
  • the board sorting system includes: a conveying device 301, a linear image collecting device 302, a control device 303, and a sorting device 304;
  • the wood to be classified is placed on the conveying device 301, and is conveyed backward by the conveying device 301;
  • the linear image capturing device 302 is disposed in alignment with the transmitting device 301 for collecting a one-dimensional linear image of the wood to be classified, and the output end of the linear image capturing device 302 is coupled to the control device;
  • the output end of the control device 303 is coupled to the classification device 304.
  • the control device 303 outputs a direction signal and a time signal to the classification device 304 according to the one-dimensional image collected by the linear image acquisition device.
  • the sorting means 304 is disposed above the end of the transport means 301, and moves the board to be sorted out of the transport means 301 in the direction indicated by the direction signal at the point in time indicated by the time signal.
  • the transfer device is preferably a conveyor belt including, but not limited to, a belt, gear or chain driven conveyor belt device.
  • the transmitting device 301 can be further divided into an image capturing area 305 and a kicking area 306, wherein the linear image capturing device 302 is disposed in alignment with the image capturing area 305, and after the wood to be classified enters the image capturing area 305, The one-dimensional image of the wood to be classified is collected; the sorting device 304 is disposed in the kicking area 306 for moving the wood to be classified out to the designated position according to the direction signal and the time signal output by the control device 303.
  • the one-dimensional image collected by the linear image capturing device simultaneously performs the classification identification of the wood to be classified and the recognition of the kick machine control.
  • at least one photoelectric sensor can be omitted, and on the other hand, the identification and control are performed.
  • Speed and accuracy are higher than the relevant technology, greatly improving the efficiency of board sorting and reducing costs.
  • the linear image acquisition device collects a one-dimensional image of the wood to be classified in a relatively moving state under a certain natural and/or artificial illumination environment.
  • the board moves relative to the linear acquisition device with a relative speed between the two.
  • the relative movement speeds in the present disclosure are not fixed, but may be variable, and are preferably varied. In the case where the relative moving speed is changed, the wood board sample images at different relative moving speeds can be better obtained.
  • the linear image capture device is fixedly mounted above the transport device, and the linear image capture device is positioned to capture images of the image capture region of the transport device.
  • image acquisition image acquisition at different speeds can be achieved by transforming the sampling frame rate of the linear image capture device; optionally, the wood board sorting system further includes at least one LED light source 307, and at least one LED light source 307 is disposed at the transmitting device 301.
  • the image acquisition area 306 is illuminated; preferably, at least one LED light source 307 is disposed adjacent to or integrated with the linear image acquisition device 302. Different illumination conditions can be realized by adjusting the brightness of the LED light source 307 or the illumination direction of the light source.
  • the LED light source can be a flat type LED light to provide relatively uniform illumination.
  • the brightness of the light source can be set to be sequentially increased or decreased to obtain a product.
  • Samples in different light conditions; different lighting conditions can also be achieved by transforming one or more of aperture size, source brightness, and illumination direction.
  • the illumination of the LED light is used to increase the basic brightness of the image acquisition to a satisfactory level, and at the same time, by varying the aperture size, the illumination level of the base brightness is obtained.
  • the angle of the image acquisition device can also be dynamically adjusted to capture the image of the wood sample at different angles.
  • the combination of various transformations can be further performed in terms of time and/or order, that is, different transformation combinations can be performed in different sequences at different times to acquire images.
  • a reference image may also be set during image acquisition to assist in improving the accuracy of image recognition.
  • a reference object area is provided in the image acquisition area 306 of the transport device 301, and a reference object 308 is disposed in the reference object area; wherein the reference object area and the reference object 308 remain stationary (ie, do not move with the transport device); linear image
  • the collecting device needs to ensure that the image of the wood board sample and the image of the reference object are collected at the same time.
  • the reference object has a white surface and the white reference object can be used to provide a standard reference for white balance, brightness or other image parameters.
  • the linear image capture device may be one or more linear cameras (such as a plurality of linear cameras, etc.), simultaneously acquiring an image of a wooden board sample by one or more linear cameras, and generating a sample data.
  • the sample data includes corresponding labels of illumination, speed, acquisition angle, etc., and the data collected by the plurality of sensors becomes a combination of multiple angle image data with respect to one image sensor.
  • control device 303 is also coupled to one or more computer devices.
  • the detection of the wood board classification may be done locally or in the cloud.
  • the collected image data is sent locally to the cloud, and the information that the cloud can provide includes, but is not limited to, the definition of the wood board classification, the sample image of each category, the classification recognition model, and the classification detection result.
  • step S702 is a step of splicing the acquired one-dimensional images to obtain a two-dimensional image to be recognized, and further includes:
  • step S801 the acquired plurality of one-dimensional images are divided into at least two sets of one-dimensional images according to an image acquisition time sequence and/or an image order;
  • step S802 at least two sets of one-dimensional images are respectively spliced to form at least two two-dimensional images to be identified.
  • the wooden board is sent to the image collection area through the conveyor belt, and the wooden board completes the image acquisition through the scanning area of the linear camera during the movement, and processes the collected one-dimensional images through the linear camera to obtain the image.
  • a two-dimensional image is entered and the acquired two-dimensional image is entered into a trained wood board recognition model.
  • the board is fixed in an area, and the entire board is scanned by moving a linear camera to acquire a plurality of one-dimensional images and obtain a two-dimensional image.
  • an external light source such as an LED light source
  • the light source provides a uniform illumination to enhance the underlying brightness of the image.
  • a linear camera synchronized with an external light source different lighting conditions can be transformed at different times, and image samples under multiple illumination conditions can be obtained.
  • the acquired one-dimensional one-dimensional image can be divided into two parts, that is, divided into two parts according to chronological order, and finally one-dimensional images of the front and back two parts are respectively spliced to obtain two one-dimensional images.
  • different illumination conditions can be used, so that the two two-dimensional images obtained have the same predetermined speed, but the illumination conditions are different.
  • a set of one-dimensional images acquired at the same predetermined speed can be divided into two parts, that is, the one-dimensional images in which the sampling order of the obtained one-dimensional image is divided into odd and even digits are respectively divided into two groups, each group The included one-dimensional images are stitched into a two-dimensional image, and two two-dimensional images can be obtained at the same predetermined speed.
  • different illumination conditions can be used, so that the two two-dimensional images obtained have the same predetermined speed, but the illumination conditions are different.
  • the lighting condition includes one or more of a strength of the light source outside the board, a direction of illumination of the external source light, a shooting angle of the image acquiring unit that acquires the one-dimensional image, and an aperture size of the image acquiring unit; the predetermined speed is The relative movement speed between the image acquisition unit and the board.
  • step S703 the two-dimensional image and the trained wood board recognition model are identified, and the category of the board and the moving speed are obtained, including:
  • the group with the highest confidence is selected from the two sets of confidence estimates as the final recognition result.
  • two two-dimensional images obtained by the wood board to be recognized when two two-dimensional images obtained by the wood board to be recognized are identified, two two-dimensional images to be recognized may be input to the wood board recognition model respectively, and the final recognition result is trusted. A higher-valued group is used as the final recognition result, which can increase the recognition accuracy.
  • the trained wood board recognition model analyzes the input two-dimensional image to be identified to determine the moving speed and category of the board. If, during training, each type of training sample contains training samples under different lighting conditions, the trained wood board recognition model can implement reliable speed and category recognition under any lighting conditions.
  • any lighting condition may be an illumination condition that floats up and down around the base brightness under a basic brightness condition, such as by illumination of an external source of the LED. If the previous sample collection does not contain multiple lighting conditions, but only the category identification, the recognition error may be caused by changes in lighting conditions. This is due to the lack of sample data under multi-light conditions, and the convolutional neural network cannot correct the effects of illumination on image samples.
  • the color feature of the image is inevitably used in the recognition process, and the feature changes with the change of illumination, so that different illumination changes the final classification result.
  • image samples under multiple illumination conditions of the same wood sample are used, multiple sets of confidence estimates will be obtained, preferably with the result with the highest confidence value as the final result.
  • a reference image such as a white reference image
  • the image is captured into an image data simultaneously with the wood board image, which can be used as a reference for white balance and brightness or other image parameters.
  • the white reference described above can correct the image for white balance and brightness. Since the white reference can be considered as an image known, the change in illumination of the woodboard image can be derived from the change in illumination of the white reference. Since the speed of the board on the conveyor belt is not always equal to the speed of the conveyor belt, each new board can enter the image acquisition area at an arbitrary speed. Since the training samples contain samples at different speeds, the board identification model is also Can distinguish the speed of movement of the board.
  • the predetermined kick time may be determined according to the moving speed of the wooden board, and the kicking operation, that is, the sorting operation, is performed according to the determined wooden board type at the predetermined kicking time, and the wooden board is kicked into the corresponding category. .
  • An example neural network output is as follows:
  • the output of the board recognition model may be:
  • Sample 1a can be used for the final classification judgment at this time. This is due to the fact that Sample 1a is more suitable for illumination conditions due to natural light and external light source synthesis, thus making the confidence value higher.
  • the output of the board recognition model is the final estimate of the confidence of each category (eg board type, speed, shooting angle, etc.). Based on these estimates, the category with the highest confidence can be selected as the final output.
  • category eg board type, speed, shooting angle, etc.
  • the category with the highest confidence can be selected as the final output.
  • the above implementation only uses neural networks as a basic method.
  • Other similar machine learning methods such as support vector machine, KNN, RNN, K-means, decision forest, etc., can continue the same method and process. Implement a solution based on other machine learning methods. .
  • the action performed by the kick can be based on a time-to-speed mapping relationship, for example:
  • V is the resulting velocity estimate and a, b are predefined parameters. If the conveyor belt changes, such as when the distance between the kicker and the camera changes, only the values of a and b need to be changed without retraining the entire neural network.
  • the mapping relationship between kick time and speed can also be achieved in many ways, not limited to methods.
  • step S703 the two-dimensional image and the trained wood board recognition model are identified, and the steps of the board type and the moving speed are obtained, including:
  • the boundary information, and the wood board recognition model, the category of the board and the moving speed are obtained.
  • the linear camera may acquire a one-dimensional image uninterruptedly on a plurality of planks that are moved or arranged in a pipeline, and spliced to obtain a continuous two-dimensional image.
  • a trained cutting model that is, a board boundary recognition model
  • the cutting model can generate a decision of the starting boundary at time t1 and generate a decision to end the boundary at time t2.
  • the image data at times t1 and t2 is composed into an image containing only one independent wooden board sample by a simple image processing method.
  • multiple independent two-dimensional image samples can be generated without interruption, and that each image sample contains only one complete woodboard image data.
  • the neural network can also perform the identification of the side boundaries and reject the irrelevant background image data.
  • the cut image data containing the individual boards is used as input, and an output value is generated when passing through each layer of the neural network, and is used for the input of the next layer.
  • the convolutional neural network After passing through all levels, the convolutional neural network will get an estimate of confidence on each classification. If the linear camera obtains image samples under multiple illumination conditions, it can be input to the convolutional neural network separately to obtain multiple confidence evaluation groups.
  • the board identification model trained under certain conditions cannot be accurately classified.
  • the final confidence estimates of category A and category B are approximately equal, for example 51. % vs. 49%, the confidence of this classification is considered to be low.
  • the operator can be notified to intervene by dividing them into a single "unrecognizable classification" or by means of an alarm device.
  • such boards can be processed in an iterative manner. First, it is classified by manual method, and then the image samples of the sample under multi-speed, multi-light, and multi-camera angles are obtained. This results in a new image sample that can be added to the sample used to train the neural network and retrain the neural network when the time is right. By continuously increasing the sample data and training the neural network, the processing accuracy of various abnormal samples can be continuously increased, and the probability of occurrence of low confidence is gradually reduced.
  • An example of the data in the iterative process is given below:
  • Sample N+1, Sample N+2, and Sample N+3 are all corresponding to the same low-confidence board, but correspond to different speed, illumination, camera angle and other attributes. Since the image samples may be affected by the material of the original wood, the image samples of different batches of logs are different. At the same time, even the same batch of logs may change the custom classification and the correspondence between the classification and the sample due to changes in coloring or demand. These rapidly changing needs can quickly adjust the sorting algorithm by changing image samples and retraining the neural network.
  • the training process can be greatly shortened, so that the parameter adjustment, calibration, testing and deployment process that can be completed in a few months can be completed in one day.
  • the above-described wood board recognition method proposed by the present disclosure can accurately classify wood boards regardless of any environment and any speed, and perform classification operations at accurate kick time. Moreover, there is no need for a separate device, such as a photoelectric sensor, to obtain the time of arrival of the board, but the classification time can be determined by classification learning.
  • the board learning device includes a first acquisition module 901, a first splicing module 902, and a training module 903:
  • the first obtaining module 901 is configured to acquire a plurality of sets of one-dimensional images of the wooden board at a plurality of different predetermined speeds; wherein each set of one-dimensional images includes a plurality of one-dimensional images at different positions of the corresponding wooden boards, and each set of one-dimensional Multiple one-dimensional images in the image correspond to the same predetermined speed;
  • the first splicing module 902 is configured to separately splicing each set of one-dimensional images in the acquired plurality of sets of one-dimensional images to obtain a plurality of two-dimensional images at a plurality of different predetermined speeds;
  • the training module 903 is configured to train the board recognition model as the plurality of sets of training data by using the category of the board, the plurality of different predetermined speeds, and the plurality of two-dimensional images; each group of the training data includes the category of the board a two-dimensional image of the plurality of two-dimensional images and a corresponding predetermined speed; the recognition result of the wood board recognition model includes a category of the wood board and a moving speed.
  • the first acquiring module includes:
  • the first acquisition sub-module is configured to acquire a plurality of sets of one-dimensional images of the wood board in a case where the board has a relative speed with the linear camera and the combination of the relative speed and the sampling frame rate of the linear camera corresponds to a plurality of different predetermined speeds.
  • the first acquiring module includes:
  • a second obtaining sub-module configured to acquire a plurality of sets of one-dimensional images of the wood board at a plurality of different predetermined speeds under different lighting conditions
  • Training modules including:
  • the first training sub-module is configured to train the wood board recognition model as a plurality of sets of training data by using a category of the board, a plurality of different predetermined speeds, different illumination conditions, and a plurality of two-dimensional images; each group of the plurality of sets of training data
  • the training data includes the category of the board, a two-dimensional image of the plurality of two-dimensional images, and their corresponding predetermined speeds and lighting conditions.
  • the first splicing module includes:
  • a first grouping sub-module configured to divide each set of one-dimensional images in the acquired plurality of sets of one-dimensional images into at least two groups according to an image acquisition time sequence and/or an image order;
  • the first splicing sub-module is configured to splicing the one-dimensional images of the at least two groups separately to form a plurality of two-dimensional images at different predetermined speeds.
  • the illumination condition includes the intensity of the light of the external light source of the wooden board, the illumination direction of the light of the external light source, the shooting angle of the image acquiring unit that acquires the one-dimensional image, and the aperture size of the image acquiring unit.
  • the predetermined speed is the relative moving speed between the image acquisition unit and the board.
  • the method further includes:
  • the second obtaining module is configured to acquire a plurality of one-dimensional images of the white reference object while acquiring the plurality of sets of one-dimensional images of the wooden board.
  • the first splicing module includes:
  • the third splicing sub-module is configured to splicing each set of one-dimensional images in the plurality of sets of one-dimensional images to obtain a plurality of two-dimensional images;
  • the labeling sub-module is configured to label a plurality of two-dimensional images separately to obtain boundary information of the board.
  • the training module further includes:
  • the second training sub-module is configured to train the board boundary recognition model according to the boundary information of the plurality of two-dimensional images and the wooden board, and the recognition result of the board boundary recognition model includes the boundary information of the board.
  • the machine learning device for the wood board recognition is consistent with the machine learning method for the wood board recognition. For details, refer to the above description of the machine learning method for wood board recognition, and details are not described herein.
  • FIG. 10 is a block diagram showing the structure of a wood board identifying apparatus according to an embodiment of the present disclosure, which may be implemented as part or all of an electronic device by software, hardware, or a combination of both.
  • the board identification device includes a third acquisition module 1001, a second splicing module 1002, and an identification module 1003:
  • the third obtaining module 1001 is configured to acquire a plurality of one-dimensional images of the wood board
  • the second splicing module 1002 is configured to splicing the acquired one-dimensional images to obtain a two-dimensional image to be identified;
  • the identification module 1003, the splicing module identifies the two-dimensional image and the trained wood board recognition model, and obtains the category of the board and the moving speed.
  • the second splicing module includes:
  • a second grouping sub-module configured to divide the acquired plurality of one-dimensional images into at least two sets of one-dimensional images according to an image acquisition time sequence and/or an image order;
  • the third splicing sub-module is configured to splicing at least two sets of one-dimensional images to form at least two two-dimensional images to be identified.
  • the identifying module includes:
  • a first identification sub-module configured to input at least two two-dimensional images into the wood board recognition model respectively, to obtain two types of confidence estimates of the category of the board and the moving speed;
  • the first selection sub-module is configured to select the group with the highest confidence from the two sets of confidence estimates as the final recognition result.
  • the method further includes:
  • the kick leg module is configured to obtain the kick timing of the board based on the moving speed of the board.
  • the identifying module includes:
  • a second identification sub-module configured to obtain boundary information of the wooden board according to the two-dimensional image and the trained boundary recognition model
  • the third identification sub-module is configured to obtain the category of the wooden board and the moving speed according to the two-dimensional image, the boundary information, and the wood board recognition model.
  • the identifying module includes:
  • a fourth identification sub-module configured to input a plurality of two-dimensional images obtained under a plurality of different illumination conditions into the wood board recognition model respectively, to obtain a plurality of sets of confidence estimates of the category of the board and the moving speed;
  • the second selection sub-module is configured to select the group with the highest confidence from the plurality of sets of confidence estimates as the final recognition result.
  • the method further includes:
  • the fourth obtaining module is configured to acquire a plurality of one-dimensional images of the white reference object while acquiring the plurality of one-dimensional images of the wood board.
  • the device for identifying the wood board is consistent with the method for identifying the wood board. For details, refer to the description of the board identification, which is not described here.
  • FIG. 11 is a block diagram showing the structure of an electronic device suitable for implementing a machine learning method for wood board recognition according to an embodiment of the present disclosure.
  • the electronic device 1100 includes a central processing unit (CPU) 1101 that can be loaded into a program in a random access memory (RAM) 1103 according to a program stored in a read only memory (ROM) 1102 or a program stored from the storage portion 1108.
  • CPU central processing unit
  • RAM random access memory
  • ROM read only memory
  • the various processes in the embodiment shown in Fig. 1 described above are executed.
  • RAM random access memory
  • various programs and data required for the operation of the electronic device 1100 are also stored.
  • the CPU 1101, the ROM 1102, and the RAM 1103 are connected to each other through a bus 1104.
  • An input/output (I/O) interface 1105 is also coupled to bus 1104.
  • the following components are connected to the I/O interface 1105: an input portion 1106 including a keyboard, a mouse, etc.; an output portion 1107 including a cathode ray tube (CRT), a liquid crystal display (LCD), and the like, and a speaker; a storage portion 1108 including a hard disk or the like And a communication portion 1109 including a network interface card such as a LAN card, a modem, or the like.
  • the communication section 1109 performs communication processing via a network such as the Internet.
  • Driver 1110 is also connected to I/O interface 1105 as needed.
  • a removable medium 1111 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory or the like is mounted on the drive 1110 as needed so that a computer program read therefrom is installed into the storage portion 1108 as needed.
  • an embodiment of the present disclosure includes a computer program product comprising a computer program tangibly embodied on a readable medium therewith, the computer program comprising program code for performing the machine learning method of the board recognition of FIG.
  • the computer program can be downloaded and installed from the network via the communication portion 1109, and/or installed from the removable medium 1111.
  • the above electronic device can also be used to execute the program code of the wood board identification method in the embodiment shown in FIG.

Landscapes

  • Engineering & Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Artificial Intelligence (AREA)
  • Evolutionary Biology (AREA)
  • Evolutionary Computation (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Image Analysis (AREA)

Abstract

A wood board identification method, a machine learning method and device for wood board identification, and an electronic device. The method comprises: acquiring multiple groups of one-dimensional images of a wood board at a plurality of different preset speeds, wherein each group of one-dimensional images comprises a plurality of one-dimensional images corresponding to a different position of the wood board, and the plurality of one-dimensional images in each group of one-dimensional images correspond to the same preset speed (S101); splicing each group of one-dimensional images in the obtained multiple groups of one-dimensional images, so as to obtain a plurality of two-dimensional images at the different preset speeds (S102); and training wood board identification models respectively using the types of wood boards, the plurality of different preset speeds and the plurality of two-dimensional images as multiple groups of training data (S103), wherein each group of training data in the multiple groups of training data comprises the type of a wood board, one of the two-dimensional images and a corresponding preset speed, and an identification result of a wood board identification model comprises the type of the wood board and the moving speed.

Description

木板识别及木板识别的机器学习方法、装置及电子设备Machine learning method, device and electronic device for wood board recognition and wood board recognition
相关申请的交叉引用Cross-reference to related applications
本申请要求于2017年12月4日提交的中国专利申请号为“CN2017113404011”的优先权,其全部内容作为整体并入本申请。The present application claims the priority of the Chinese Patent Application Serial No.
技术领域Technical field
本公开涉及木材自动化处理技术领域,具体涉及一种木板识别及木板识别的机器学习方法、装置、电子设备及计算机可读存储介质。The present disclosure relates to the field of wood automated processing technologies, and in particular, to a machine learning method, apparatus, electronic device, and computer readable storage medium for wood board identification and board recognition.
背景技术Background technique
在木材加工领域,木板分选是一个重要环节。不管是半成品,还是经过成型、上色、烘干等工艺之后的成品,都需要按照不同的木材特征结合质量标准进行分类。在传统的方法中,木板的分选由人工完成。经过训练的工人,通过观察,判断每一块木板的颜色、纹理、缺陷等,结合经验将一块木板归入不同的分类。每一个分类之中的木板拥有更为接近的特性,实现较高的产品外观、质量的一致性。In the field of wood processing, board sorting is an important part. Whether it is a semi-finished product or a finished product after molding, coloring, drying, etc., it is necessary to classify according to different wood characteristics combined with quality standards. In the conventional method, the sorting of the board is done manually. Trained workers, through observation, judge the color, texture, defects, etc. of each piece of wood, and combine the experience to classify a piece of wood into different categories. The wood boards in each category have closer characteristics, achieving a higher product appearance and consistency of quality.
然而,使用人工的分选的方法需要耗费大量的人力资源,并且由于每一批次的木板材质和上色工艺可能存在不同,每一次的产品分类标准也可能存在变动,因此需要不断的对工人进行培训和训练。同时,随着工作时间的增加,人力的方法也会出现准确率下降,效率变慢的现象。However, the use of manual sorting methods requires a lot of human resources, and since each batch of wood material and coloring process may be different, each product classification standard may also change, so it is necessary to constantly Conduct training and training. At the same time, with the increase of working hours, the manpower method will also have a phenomenon of decreasing accuracy and slowing down efficiency.
使用机器进行木材分选的方法正成为当前行业的新兴方向,在木材处理过程中的很多步骤可以通过机器的方法来解决。然而,这些技术多数使用一种固定方式对木材或木板进行特征提取,其分选参数和方法是固定的,必须通过专门的设计和调校才能有效运行,因而标准化和适用性存在一定缺陷。The use of machines for wood sorting is becoming an emerging trend in the current industry, and many steps in the wood processing can be solved by machine methods. However, most of these techniques use a fixed method to extract the features of wood or wood. The sorting parameters and methods are fixed and must be designed and adjusted to operate effectively. Therefore, there are certain defects in standardization and applicability.
随着最近机器学习方面的研究进展,使用机器学习进行木板加工自动化的方法变得越来越受到欢迎。相关技术中也出现了使用机器学习的木材分类方法,通过各种成像方式采集预先指定的样本木材的图像,然后使用机器学习的方法训练一个模型,通过该模型来实现自动的分类检测。With the recent advances in machine learning, the use of machine learning for automated board processing has become increasingly popular. A wood classification method using machine learning has also appeared in the related art, and images of pre-specified sample wood are collected by various imaging methods, and then a model is trained using a machine learning method, and automatic classification detection is realized by the model.
然而,发明人在实现本发明的过程中发明,现有的机器学习的方法只是部分解决了标准化的问题,并没能解决木材分类中最关键的适应性问题。具体地,当前木板分类的标准通常由生产厂商自定义,也就是说当前的木板分类实质上是非标准化的;相关技术中的机器学习方法采用预先训练方式,只能为特定厂商训练出一个特定模型,显然无法在多个厂商中通用。此外,木材实质上是按批次生产的,每一批次的产品都与该批次的原木材质、喷漆工艺高度相关,不同批次间可能会有巨大差异;但相关技术中的训练模型完全依赖于样本批次,并不能针对不同批次进行动态调校。最后,自然光线的改变会对视觉识别产生较大的影响,相 关技术并未考虑环境光线变化下的标准化,不能适应不同环境的检测。However, the inventors invented in the process of implementing the present invention that the existing machine learning method only partially solved the problem of standardization and failed to solve the most critical adaptation problem in wood classification. Specifically, the current standard for wood board classification is usually customized by the manufacturer, that is, the current board classification is essentially non-standardized; the machine learning method in the related art adopts a pre-training method, and only a specific model can be trained for a specific manufacturer. Obviously, it cannot be used in multiple vendors. In addition, the wood is produced in batches. Each batch of products is highly correlated with the original wood quality and painting process of the batch. There may be huge differences between batches; however, the training model in the related art is completely Depending on the sample lot, dynamic tuning is not possible for different batches. Finally, the change of natural light will have a greater impact on visual recognition. The related technology does not consider the standardization under ambient light changes and cannot adapt to the detection of different environments.
因此,当前缺少自适应的检测方法,相关技术并不能满足快速部署的需求,也不能在多变的运行环境中鲁棒的运行。Therefore, there is currently no adaptive detection method, and the related technology cannot meet the requirements of rapid deployment, nor can it operate robustly in a variable operating environment.
发明内容Summary of the invention
本公开实施例提供一种木板识别的机器学习方法、装置及计算机可读存储介质。Embodiments of the present disclosure provide a machine learning method, apparatus, and computer readable storage medium for wood board recognition.
第一方面,本公开实施例中提供了一种木板识别的机器学习方法。In a first aspect, a machine learning method for wood board recognition is provided in an embodiment of the present disclosure.
获取木板在多个不同预定速度下的多组一维图像;其中,每组一维图像包括对应木板不同位置处的多个一维图像,且每组一维图像中的多个一维图像对应相同的预定速度;Obtaining a plurality of sets of one-dimensional images of the wooden board at a plurality of different predetermined speeds; wherein each set of one-dimensional images includes a plurality of one-dimensional images corresponding to different positions of the wooden board, and the plurality of one-dimensional images in each set of one-dimensional images correspond to The same predetermined speed;
将所获取的多组一维图像中的每组一维图像分别进行拼接,得到在多个不同预定速度下的多个二维图像;Splicing each set of one-dimensional images in the acquired plurality of sets of one-dimensional images to obtain a plurality of two-dimensional images at a plurality of different predetermined speeds;
将木板的类别、多个不同预定速度以及多个二维图像作为多组训练数据,分别对木板识别模型进行训练;多组训练数据中每组训练数据包括木板的类别、多个二维图像中的一个二维图像以及对应的预定速度;木板识别模型的识别结果包括木板的类别以及移动速度。The board identification type, the plurality of different predetermined speeds, and the plurality of two-dimensional images are used as the plurality of sets of training data to respectively train the board recognition model; each group of the training data includes the category of the board, and the plurality of two-dimensional images. A two-dimensional image and corresponding predetermined speed; the recognition result of the wood board recognition model includes the category of the board and the moving speed.
可选地,获取木板在多个不同预定速度下的多组一维图像,包括:Optionally, acquiring a plurality of sets of one-dimensional images of the wood board at a plurality of different predetermined speeds, including:
在木板与线性摄像机具有相对速度,且相对速度与线性摄像机的采样帧率的组合对应于多个不同预定速度的情况下,获取木板的多组一维图像。In the case where the board has a relative speed with the linear camera, and the combination of the relative speed and the sampling frame rate of the linear camera corresponds to a plurality of different predetermined speeds, a plurality of sets of one-dimensional images of the board are acquired.
可选地,获取木板在多个不同预定速度下的多组一维图像,包括:Optionally, acquiring a plurality of sets of one-dimensional images of the wood board at a plurality of different predetermined speeds, including:
在不同光照条件下,获取木板在多个不同预定速度下的多组一维图像;Obtaining a plurality of sets of one-dimensional images of the wooden board at a plurality of different predetermined speeds under different illumination conditions;
将木板的类别、多个不同预定速度以及多个二维图像作为多组训练数据,分别对木板识别模型进行训练,包括:The wood board identification model is trained by using the category of the board, a plurality of different predetermined speeds, and a plurality of two-dimensional images as the plurality of sets of training data, including:
将木板的类别、多个不同预定速度、不同光照条件以及多个二维图像作为多组训练数据,分别对木板识别模型进行训练;多组训练数据中每组训练数据包括木板的类别、多个二维图像中的一个二维图像及其对应的预定速度和光照条件。The board identification type, a plurality of different predetermined speeds, different illumination conditions, and a plurality of two-dimensional images are used as a plurality of sets of training data to respectively train the wood board recognition model; each group of training data includes a category of wood boards, and multiple A two-dimensional image in a two-dimensional image and its corresponding predetermined velocity and illumination conditions.
可选地,将所获取的多组一维图像中的每组一维图像分别进行拼接,得到在多个不同预定速度下的多个二维图像,包括:Optionally, each of the acquired one-dimensional images in the plurality of sets of one-dimensional images is separately spliced to obtain a plurality of two-dimensional images at a plurality of different predetermined speeds, including:
将所获取的多组一维图像中的每组一维图像分别按照图像获取时间顺序和/或图像次序分成至少两个小组;Dividing each set of one-dimensional images of the acquired plurality of sets of one-dimensional images into at least two groups according to an image acquisition time sequence and/or an image order;
将至少两个小组的一维图像分别进行拼接,形成在不同预定速度下的多个二维图像。The one-dimensional images of at least two groups are separately spliced to form a plurality of two-dimensional images at different predetermined speeds.
可选地,光照条件包括木板外部光源光线的强弱、外部光源光线的照射方向、获取一维图像的图像获取单元的拍摄角度和图像获取单元的光圈大小中的一个 或多个;预定速度为图像获取单元与木板之间的相对移动速度。Optionally, the lighting condition includes one or more of a strength of the light source outside the board, a direction of illumination of the external source light, a shooting angle of the image acquiring unit that acquires the one-dimensional image, and an aperture size of the image acquiring unit; the predetermined speed is The relative movement speed between the image acquisition unit and the board.
可选地,方法还包括:Optionally, the method further includes:
在获取木板的多组一维图像的同时还获取白色参考物体的多个一维图像。A plurality of one-dimensional images of white reference objects are also acquired while acquiring a plurality of sets of one-dimensional images of the wood board.
可选地,将木板的类别、多个不同预定速度以及多个二维图像作为多组训练数据,分别对木板识别模型进行训练,包括:Optionally, the board type, the plurality of different predetermined speeds, and the plurality of two-dimensional images are used as the plurality of sets of training data to respectively train the board recognition model, including:
将多组一维图像中的每组一维图像分别进行拼接,得到多个二维图像;Combining each set of one-dimensional images in the plurality of sets of one-dimensional images to obtain a plurality of two-dimensional images;
对多个二维图像分别进行标注,得到木板的边界信息。A plurality of two-dimensional images are respectively labeled to obtain boundary information of the wooden board.
可选地,将木板的类别、多个不同预定速度以及多个二维图像作为多组训练数据,分别对木板识别模型进行训练,还包括:Optionally, the board type, the plurality of different predetermined speeds, and the plurality of two-dimensional images are used as the plurality of sets of training data to respectively train the board recognition model, and further includes:
根据多个二维图像和木板的边界信息对木板边界识别模型进行训练,木板边界识别模型的识别结果包括木板的边界信息。The board boundary recognition model is trained according to the boundary information of the plurality of two-dimensional images and the wooden board, and the recognition result of the board boundary recognition model includes the boundary information of the board.
第二方面,本公开实施例提供了一种木板识别方法,包括:In a second aspect, an embodiment of the present disclosure provides a board identification method, including:
获取木板的多个一维图像;Obtaining multiple one-dimensional images of the board;
将所获取的多个一维图像进行拼接,得到待识别的二维图像;Splicing the acquired one-dimensional images to obtain a two-dimensional image to be identified;
根据二维图像以及训练好的木板识别模型进行识别,得到木板的类别以及移动速度。The recognition is based on the two-dimensional image and the trained wood board recognition model, and the type of the board and the moving speed are obtained.
可选地,将所获取的多个一维图像进行拼接,得到待识别的二维图像,包括:Optionally, the obtained one-dimensional images are spliced to obtain a two-dimensional image to be identified, including:
将所获取的多个一维图像按照图像获取时间顺序和/或图像次序分成至少两组一维图像;Dividing the acquired plurality of one-dimensional images into at least two sets of one-dimensional images according to an image acquisition time sequence and/or an image order;
将至少两组一维图像分别进行拼接,形成待识别的至少两个二维图像。At least two sets of one-dimensional images are separately spliced to form at least two two-dimensional images to be identified.
可选地,根据二维图像以及训练好的木板识别模型进行识别,得到木板的类别以及移动速度,包括:Optionally, identifying according to the two-dimensional image and the trained wood board recognition model, obtaining the category of the board and the moving speed, including:
将至少两个二维图像分别输入至木板识别模型中,得到木板的类别以及移动速度的两组置信度估值;Inputting at least two two-dimensional images into the wood board recognition model respectively, obtaining two types of confidence estimates of the category of the board and the moving speed;
从两组置信度估值中选取置信度最高的一组作为最终识别结果。The group with the highest confidence is selected from the two sets of confidence estimates as the final recognition result.
可选地,方法还包括:Optionally, the method further includes:
根据木板的移动速度获得木板的踢腿时机。The kick timing of the board is obtained according to the moving speed of the board.
可选地,将二维图像以及训练好的木板识别模型进行识别,得到木板的类别以及移动速度,包括:Optionally, the two-dimensional image and the trained wood board recognition model are identified to obtain the category of the board and the moving speed, including:
根据二维图像以及训练好的边界识别模型,得到木板的边界信息;Obtaining boundary information of the board based on the two-dimensional image and the trained boundary recognition model;
根据二维图像、边界信息以及木板识别模型,得到木板的类别以及移动速度。According to the two-dimensional image, the boundary information, and the wood board recognition model, the category of the board and the moving speed are obtained.
可选地,根据二维图像以及训练好的木板识别模型进行识别,得到木板的类别以及移动速度,包括:Optionally, identifying according to the two-dimensional image and the trained wood board recognition model, obtaining the category of the board and the moving speed, including:
将多个不同光照条件下获得的多个二维图像分别输入至木板识别模型,得到 木板的类别以及移动速度的多组置信度估值;A plurality of two-dimensional images obtained under different illumination conditions are respectively input to the wood board recognition model to obtain a plurality of sets of confidence estimates of the category of the board and the moving speed;
从多组置信度估值中选取置信度最高的一组作为最终识别结果。The group with the highest confidence is selected from the multi-group confidence estimates as the final recognition result.
可选地,方法还包括:Optionally, the method further includes:
在获取木板的多个一维图像的同时还获取白色参考物体的多个一维图像。A plurality of one-dimensional images of white reference objects are also acquired while acquiring a plurality of one-dimensional images of the wood board.
第三方面,提供了一种木板识别的机器学习装置,包括:In a third aspect, a machine learning apparatus for wood board identification is provided, comprising:
第一获取模块,被配置为获取木板在多个不同预定速度下的多组一维图像;其中,每组一维图像包括对应木板不同位置处的多个一维图像,且每组一维图像中的多个一维图像对应相同的预定速度;a first obtaining module configured to acquire a plurality of sets of one-dimensional images of the wooden board at a plurality of different predetermined speeds; wherein each set of one-dimensional images includes a plurality of one-dimensional images at different positions of the corresponding wooden board, and each set of one-dimensional images Multiple one-dimensional images in the image correspond to the same predetermined speed;
第一拼接模块,被配置为将所获取的多组一维图像中的每组一维图像分别进行拼接,得到在多个不同预定速度下的多个二维图像;The first splicing module is configured to splicing each set of one-dimensional images in the acquired plurality of one-dimensional images to obtain a plurality of two-dimensional images at a plurality of different predetermined speeds;
训练模块,被配置为将木板的类别、多个不同预定速度以及多个二维图像作为多组训练数据,分别对木板识别模型进行训练;多组训练数据中每组训练数据包括木板的类别、多个二维图像中的一个二维图像以及对应的预定速度;木板识别模型的识别结果包括木板的类别以及移动速度。The training module is configured to train the wood board recognition model as a plurality of sets of training data by using a category of the board, a plurality of different predetermined speeds, and a plurality of two-dimensional images; each group of the training data includes a category of the board, a two-dimensional image of the plurality of two-dimensional images and a corresponding predetermined speed; the recognition result of the wood board recognition model includes a category of the wood board and a moving speed.
可选地,第一获取模块,包括:Optionally, the first obtaining module includes:
第一获取子模块,被配置为在木板与线性摄像机具有相对速度,且相对速度与线性摄像机的采样帧率的组合对应于多个不同预定速度的情况下,获取木板的多组一维图像。The first acquisition sub-module is configured to acquire a plurality of sets of one-dimensional images of the wood board in a case where the board has a relative speed with the linear camera and the combination of the relative speed and the sampling frame rate of the linear camera corresponds to a plurality of different predetermined speeds.
可选地,第一获取模块,包括:Optionally, the first obtaining module includes:
第二获取子模块,被配置为在不同光照条件下,获取木板在多个不同预定速度下的多组一维图像;a second obtaining sub-module configured to acquire a plurality of sets of one-dimensional images of the wood board at a plurality of different predetermined speeds under different lighting conditions;
训练模块,包括:Training modules, including:
第一训练子模块,被配置为将木板的类别、多个不同预定速度、不同光照条件以及多个二维图像作为多组训练数据,分别对木板识别模型进行训练;多组训练数据中每组训练数据包括木板的类别、多个二维图像中的一个二维图像及其对应的预定速度和光照条件。The first training sub-module is configured to train the wood board recognition model as a plurality of sets of training data by using a category of the board, a plurality of different predetermined speeds, different illumination conditions, and a plurality of two-dimensional images; each group of the plurality of sets of training data The training data includes the category of the board, a two-dimensional image of the plurality of two-dimensional images, and their corresponding predetermined speeds and lighting conditions.
可选地,第一拼接模块,包括:Optionally, the first splicing module includes:
第一分组子模块,被配置为将所获取的多组一维图像中的每组一维图像分别按照图像获取时间顺序和/或图像次序分成至少两个小组;a first grouping sub-module configured to divide each set of one-dimensional images in the acquired plurality of sets of one-dimensional images into at least two groups according to an image acquisition time sequence and/or an image order;
第一拼接子模块,被配置为将至少两个小组的一维图像分别进行拼接,形成在不同预定速度下的多个二维图像。The first splicing sub-module is configured to splicing the one-dimensional images of the at least two groups separately to form a plurality of two-dimensional images at different predetermined speeds.
可选地,光照条件包括木板外部光源光线的强弱、外部光源光线的照射方向、获取一维图像的图像获取单元的拍摄角度和图像获取单元的光圈大小中的一个或多个;预定速度为图像获取单元与木板之间的相对移动速度。Optionally, the lighting condition includes one or more of a strength of the light source outside the board, a direction of illumination of the external source light, a shooting angle of the image acquiring unit that acquires the one-dimensional image, and an aperture size of the image acquiring unit; the predetermined speed is The relative movement speed between the image acquisition unit and the board.
可选地,装置还包括:Optionally, the device further includes:
第二获取模块,被配置为在获取木板的多组一维图像的同时还获取白色参考物体的多个一维图像。The second obtaining module is configured to acquire a plurality of one-dimensional images of the white reference object while acquiring the plurality of sets of one-dimensional images of the wooden board.
可选地,第一拼接模块,包括:Optionally, the first splicing module includes:
第二拼接子模块,被配置为将多组一维图像中的每组一维图像分别进行拼接,得到多个二维图像;a second splicing sub-module configured to splicing each set of one-dimensional images in the plurality of sets of one-dimensional images to obtain a plurality of two-dimensional images;
标注子模块,被配置为对多个二维图像分别进行标注,得到木板的边界信息。The labeling sub-module is configured to label a plurality of two-dimensional images separately to obtain boundary information of the board.
可选地,训练模块,还包括:Optionally, the training module further includes:
第二训练子模块,被配置为根据多个二维图像和木板的边界信息对木板边界识别模型进行训练,木板边界识别模型的识别结果包括木板的边界信息。The second training sub-module is configured to train the board boundary recognition model according to the boundary information of the plurality of two-dimensional images and the wooden board, and the recognition result of the board boundary recognition model includes the boundary information of the board.
功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。硬件或软件包括一个或多个与上述功能相对应的模块。The functions can be implemented in hardware or in hardware by executing the corresponding software. The hardware or software includes one or more modules corresponding to the functions described above.
在一个可能的设计中,木板识别的机器学习装置的结构中包括存储器和处理器,存储器用于存储一条或多条支持木板识别的机器学习装置执行上述第一方面中木板识别的机器学习方法的计算机指令,处理器被配置为用于执行存储器中存储的计算机指令。木板识别的机器学习装置还可以包括通信接口,用于木板识别的机器学习装置与其他设备或通信网络通信。In one possible design, the structure of the board-recognized machine learning device includes a memory and a processor for storing one or more machine learning devices that support wood board recognition to perform the machine learning method of board identification in the first aspect above. Computer instructions, the processor being configured to execute computer instructions stored in the memory. The board-aware machine learning device may also include a communication interface with which the machine learning device for wood board identification communicates with other devices or communication networks.
第四方面,本公开实施例提出了一种木板识别装置,包括:In a fourth aspect, an embodiment of the present disclosure provides a board identifying device, including:
第三获取模块,被配置为获取木板的多个一维图像;a third obtaining module configured to acquire a plurality of one-dimensional images of the wood board;
第二拼接模块,被配置为将所获取的多个一维图像进行拼接,得到在待识别的二维图像;a second splicing module configured to splicing the acquired one-dimensional images to obtain a two-dimensional image to be recognized;
识别模块,拼接模块根据二维图像以及训练好的木板识别模型进行识别,得到木板的类别以及移动速度。The identification module, the splicing module identifies the two-dimensional image and the trained wood board recognition model, and obtains the category of the board and the moving speed.
可选地,第二拼接模块,包括:Optionally, the second splicing module includes:
第二分组子模块,被配置为将所获取的多个一维图像按照图像获取时间顺序和/或图像次序分成至少两组一维图像;;a second grouping sub-module configured to divide the acquired plurality of one-dimensional images into at least two sets of one-dimensional images according to an image acquisition time sequence and/or an image order;
第三拼接子模块,被配置为将至少两组一维图像分别进行拼接,形成待识别的至少两个二维图像。The third splicing sub-module is configured to splicing at least two sets of one-dimensional images to form at least two two-dimensional images to be identified.
可选地,识别模块,包括:Optionally, the identification module includes:
第一识别子模块,被配置为将至少两个二维图像分别输入至木板识别模型中,得到木板的类别以及移动速度的两组置信度估值;a first identification sub-module configured to input at least two two-dimensional images into the wood board recognition model respectively, to obtain two types of confidence estimates of the category of the board and the moving speed;
第一选取子模块,被配置为从两组置信度估值中选取置信度最高的一组作为最终识别结果。The first selection sub-module is configured to select the group with the highest confidence from the two sets of confidence estimates as the final recognition result.
可选地,方法还包括:Optionally, the method further includes:
踢腿模块,被配置为根据木板的移动速度获得木板的踢腿时机。The kick leg module is configured to obtain the kick timing of the board based on the moving speed of the board.
可选地,识别模块,包括:Optionally, the identification module includes:
第二识别子模块,被配置为根据二维图像以及训练好的边界识别模型,得到木板的边界信息;a second identification sub-module configured to obtain boundary information of the wooden board according to the two-dimensional image and the trained boundary recognition model;
第三识别子模块,被配置为根据二维图像、边界信息以及木板识别模型,得到木板的类别以及移动速度。The third identification sub-module is configured to obtain the category of the wooden board and the moving speed according to the two-dimensional image, the boundary information, and the wood board recognition model.
可选地,识别模块,包括:Optionally, the identification module includes:
第四识别子模块,被配置为将多个不同光照条件下获得的多个二维图像分别输入至木板识别模型,得到木板的类别以及移动速度的多组置信度估值;a fourth identification sub-module configured to input a plurality of two-dimensional images obtained under a plurality of different illumination conditions into the wood board recognition model respectively, to obtain a plurality of sets of confidence estimates of the category of the board and the moving speed;
第二选取子模块,被配置为从多组置信度估值中选取置信度最高的一组作为最终识别结果。The second selection sub-module is configured to select the group with the highest confidence from the plurality of sets of confidence estimates as the final recognition result.
可选地,方法还包括:Optionally, the method further includes:
第四获取模块,被配置为在获取木板的多个一维图像的同时还获取白色参考物体的多个一维图像。The fourth obtaining module is configured to acquire a plurality of one-dimensional images of the white reference object while acquiring the plurality of one-dimensional images of the wood board.
功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。硬件或软件包括一个或多个与上述功能相对应的模块。The functions can be implemented in hardware or in hardware by executing the corresponding software. The hardware or software includes one or more modules corresponding to the functions described above.
在一个可能的设计中,木板识别装置的结构中包括存储器和处理器,存储器用于存储一条或多条支持木板识别装置执行上述第一方面中木板识别方法的计算机指令,处理器被配置为用于执行存储器中存储的计算机指令。木板识别装置还可以包括通信接口,用于木板识别装置与其他设备或通信网络通信。In a possible design, the structure of the board identifying device includes a memory and a processor for storing one or more computer instructions for supporting the board identifying device to perform the board identifying method in the first aspect, the processor being configured to use Computer instructions stored in the execution memory. The board identification device may also include a communication interface for the board identification device to communicate with other devices or communication networks.
第五方面,本公开实施例提供了一种电子设备,包括存储器和处理器;其中,存储器用于存储一条或多条计算机指令,其中,一条或多条计算机指令被处理器执行以实现第一方面或第二方面的方法步骤。In a fifth aspect, an embodiment of the present disclosure provides an electronic device, including a memory and a processor; wherein the memory is configured to store one or more computer instructions, wherein the one or more computer instructions are executed by the processor to implement the first Aspect or method step of the second aspect.
第六方面,本公开实施例提供了一种计算机可读存储介质,用于存储木板识别的机器学习装置或木板识别装置所用的计算机指令,其包含用于执行上述第一方面中木板识别的机器学习方法或第二方面中木板识别方法所涉及的计算机指令。In a sixth aspect, an embodiment of the present disclosure provides a computer readable storage medium for storing computer instructions for a wood board identification machine learning device or a wood board identification device, including a machine for performing wood board recognition in the above first aspect The computer method involved in the learning method or the second aspect of the board identification method.
本公开实施例提供的技术方案可以包括以下有益效果:The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects:
本公开实施例通过线性摄像机获取木板在不同速度下的多组一维图像,并进一步将多组一维图像拼接形成不同速度对应的多个二维图像,进而利用速度、木板的真实类别以及对应的二维图像分别对木板识别模型进行训练,使得训练完成后的木板识别模型能够自动识别出木板的类别及移动速度。本公开实施例通过在不同速度下采集木板的一维图像,拼接后利用同一木板在不同速度下的图像样本、该木板的类别以及速度对机器学习模型训练,使得训练得到的木板识别模型能够 准确识别出不同速度下采集到的木板图像,同时还能识别出木板的相对移动速度。本公开训练得到的木板识别模型无论在任何环境和任何速度下,都能准确对木板进行分类,并在准确的踢腿时间执行分类操作。而且不需要单独的设备,例如光电传感器来获取木板到达的时间,而是通过分类学习即能确定分类时间。In the embodiment of the present disclosure, a plurality of sets of one-dimensional images of wood boards at different speeds are acquired by a linear camera, and a plurality of sets of one-dimensional images are further spliced to form a plurality of two-dimensional images corresponding to different speeds, thereby utilizing speed, real categories of wood boards, and corresponding The two-dimensional image respectively trains the wood board recognition model, so that the wood board recognition model after the training can automatically recognize the type and speed of the board. The embodiment of the present disclosure collects a one-dimensional image of a wooden board at different speeds, and uses the same wooden board image samples at different speeds, the type of the wooden board, and the speed to train the machine learning model, so that the wood board recognition model obtained by the training can be accurately The image of the wood board collected at different speeds is recognized, and the relative movement speed of the board is also recognized. The wood board recognition model obtained by the present disclosure can accurately classify the board regardless of the environment and any speed, and perform the sorting operation at the exact kick time. Moreover, there is no need for a separate device, such as a photoelectric sensor, to obtain the time of arrival of the board, but the classification time can be determined by classification learning.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。The above general description and the following detailed description are intended to be illustrative and not restrictive.
附图说明DRAWINGS
结合附图,通过以下非限制性实施方式的详细描述,本公开的其它特征、目的和优点将变得更加明显。在附图中:Other features, objects, and advantages of the present invention will become more apparent from the aspects of the appended claims. In the drawing:
图1示出根据本公开一实施方式的木板识别的机器学习方法的流程图;1 shows a flow chart of a machine learning method for wood board recognition in accordance with an embodiment of the present disclosure;
图2中示出根据本公开一实施方式的卷积神经网络的示意图;A schematic diagram of a convolutional neural network in accordance with an embodiment of the present disclosure is shown in FIG. 2;
图3示出根据本公开一实施方式的木材分拣系统整体结构示意图;3 is a schematic view showing the overall structure of a wood sorting system according to an embodiment of the present disclosure;
图4示出根据图1所示实施方式的步骤S102的流程图;Figure 4 shows a flow chart of step S102 according to the embodiment shown in Figure 1;
图5示出根据图1所示实施方式的步骤S103的流程图;Figure 5 shows a flow chart of step S103 according to the embodiment shown in Figure 1;
图6示出根据本公开一实施方式的对图像样本进行边界标注的示例;FIG. 6 illustrates an example of performing boundary labeling on an image sample according to an embodiment of the present disclosure;
图7示出根据本公开一实施方式的木板识别方法的流程图;FIG. 7 illustrates a flowchart of a wood board identification method according to an embodiment of the present disclosure;
图8示出根据图7所示实施方式的步骤S702的流程图;Figure 8 shows a flow chart of step S702 according to the embodiment shown in Figure 7;
图9示出根据本公开一实施方式的木板识别的机器学习装置的结构框图;9 is a block diagram showing the structure of a machine learning device for wood board recognition according to an embodiment of the present disclosure;
图10示出根据本公开一实施方式的木板识别装置的结构框图;FIG. 10 is a block diagram showing the structure of a wood board identifying apparatus according to an embodiment of the present disclosure; FIG.
图11是适于用来实现根据本公开一实施方式的木板识别的机器学习方法的电子设备的结构示意图。11 is a block diagram showing the structure of an electronic device suitable for implementing a machine learning method for wood board recognition according to an embodiment of the present disclosure.
具体实施方式Detailed ways
在已有技术的机器学习应用场景中,对摄像机的要求是尽可能使用低精度的摄像机用于降低成本。这是由于一些分类算法并不需要很高精度的图像数据就能实现精准分类。然而在木材加工领域,由于木板的纹理,色泽等方面具有非常细微的差异,这使得机器学习方法对摄像机的分辨率有更高的要求。传统的摄像机使用矩形传感器,好处是能够得到便于处理的二维图像数据。然而,这也限制了样本的分辨率。而线性摄像机能够拥有更高的一维分辨率以及可变的采样周期,因此在木材加工领域拥有更好的应用潜力。In prior art machine learning applications, the camera is required to use low precision cameras as much as possible to reduce costs. This is because some classification algorithms do not require very high precision image data to achieve accurate classification. However, in the field of wood processing, due to the very slight differences in the texture and color of the board, the machine learning method has higher requirements on the resolution of the camera. Conventional cameras use rectangular sensors, which have the advantage of being able to obtain two-dimensional image data that is easy to process. However, this also limits the resolution of the sample. Linear cameras have higher one-dimensional resolution and variable sampling periods, so they have better application potential in wood processing.
图1示出根据本公开一实施方式的木板识别的机器学习方法的流程图。如图1所示,木板识别的机器学习方法包括以下步骤S101-S103:FIG. 1 illustrates a flow chart of a machine learning method for wood board recognition in accordance with an embodiment of the present disclosure. As shown in FIG. 1, the machine learning method for wood board recognition includes the following steps S101-S103:
在步骤S101中,获取木板在多个不同预定速度下的多组一维图像;其中,每组一维图像包括对应木板不同位置处的多个一维图像,且每组一维图像中的多 个一维图像对应相同的预定速度;In step S101, a plurality of sets of one-dimensional images of the wooden board at a plurality of different predetermined speeds are acquired; wherein each set of one-dimensional images includes a plurality of one-dimensional images at different positions of the corresponding wooden boards, and each of the one-dimensional images in each group One-dimensional images correspond to the same predetermined speed;
在步骤S102中,将所获取的多组一维图像中的每组一维图像分别进行拼接,得到在多个不同预定速度下的多个二维图像;In step S102, each set of one-dimensional images in the acquired plurality of sets of one-dimensional images are separately spliced to obtain a plurality of two-dimensional images at a plurality of different predetermined speeds;
在步骤S103中,将木板的类别、多个不同预定速度以及多个二维图像作为多组训练数据,分别对木板识别模型进行训练;多组训练数据中每组训练数据包括木板的类别、多个二维图像中的一个二维图像以及对应的预定速度;木板识别模型的识别结果包括木板的类别以及移动速度。In step S103, the board type, the plurality of different predetermined speeds, and the plurality of two-dimensional images are used as the plurality of sets of training data to respectively train the board recognition model; each group of the training data includes the category of the board, and more A two-dimensional image of the two-dimensional image and the corresponding predetermined speed; the recognition result of the wood-board recognition model includes the category of the wood board and the moving speed.
在本实施例中,利用木板样本的图像进行机器学习时,所采集的木板图像为高精度的一维图像,且对同一个木板样本采集不同移动速度下的图像,使得训练样本更加丰富,且能适应在各种条件下采集的图像的识别。此处的不同移动速度是指木板与图像采集设备即线性摄像机之间的相对速度。In the embodiment, when the machine learning is performed by using the image of the wood board sample, the collected wood board image is a high-precision one-dimensional image, and images of different moving speeds are collected for the same wood board sample, so that the training sample is more abundant, and Can adapt to the recognition of images acquired under various conditions. The different moving speeds here refer to the relative speed between the board and the image acquisition device, ie the linear camera.
在本实施例中,一维图像可以通过线性摄像机获取,由于线性摄像机在每个时间点只能采集一个一维图像,该一维图像无法直接用于后续的学习或分类。因此,可以将多个一维数据拼接成一个二维图像,该二维图像可以包含部分或整个木板的图像信息。In this embodiment, the one-dimensional image can be acquired by a linear camera. Since the linear camera can only acquire one one-dimensional image at each time point, the one-dimensional image cannot be directly used for subsequent learning or classification. Therefore, a plurality of one-dimensional data can be spliced into one two-dimensional image, and the two-dimensional image can contain image information of a part or the whole board.
在本实施例中,预定速度可以是预先定义的木板与线性摄像机之间的相对速度。采集木板的一维图像时,在木板与线性摄像机之间的相对速度为预定速度时,采集木板的一维图像,按顺序每个时间点采集一个一维图像,同一预定速度下采集到的多个一维图像为一组一维图像。采集完部分或整个木板的多个一维图像后,可以改变木板与线性摄像机之间的相对速度,再次进行采集,最终得到多个不同预定速度下的多组一维图像。通过将同一预定速度下采集到的一组一维图像进行拼接,得到对应于该预定速度的二维图像,最终能够得到不同预定速度对应的多个二维图像。In this embodiment, the predetermined speed may be a relative speed between a predefined board and a linear camera. When collecting a one-dimensional image of a wooden board, when the relative speed between the wooden board and the linear camera is a predetermined speed, a one-dimensional image of the wooden board is collected, and one one-dimensional image is collected at each time point in sequence, and more is collected at the same predetermined speed. One-dimensional images are a set of one-dimensional images. After collecting a plurality of one-dimensional images of part or the whole board, the relative speed between the board and the linear camera can be changed, and the acquisition is performed again, and finally a plurality of sets of one-dimensional images at different predetermined speeds are obtained. By splicing a set of one-dimensional images acquired at the same predetermined speed, a two-dimensional image corresponding to the predetermined speed is obtained, and finally a plurality of two-dimensional images corresponding to different predetermined speeds can be obtained.
在本实施例中,在训练木板识别模型时,将木板的类别、预定速度以及该预定速度对应的二维图像做为一组训练数据,同一块木板对应多组训练数据,每组训练数据中的二维图像作为机器学习模型的输入,而相对应的预定速度和木板类别作为输出,对机器学习模型的各个参数进行训练。在经过多块木板对应的多组训练数据的训练后,使得机器学习模型的结果呈收敛状态,最终得到训练好的木板识别模型。In the embodiment, when training the wood board recognition model, the category of the board, the predetermined speed, and the two-dimensional image corresponding to the predetermined speed are used as a set of training data, and the same board corresponds to multiple sets of training data, and each group of training data The two-dimensional image is used as an input to the machine learning model, and the corresponding predetermined speed and board type are used as outputs to train various parameters of the machine learning model. After training through multiple sets of training data corresponding to multiple planks, the result of the machine learning model is converged, and finally the trained wood board recognition model is obtained.
机器学习模型可以包括但不限于卷积神经网络、反馈神经网络、深度学习网络、决策森林、贝叶斯网络、支持向量机中的一种或及几种的组合。The machine learning model may include, but is not limited to, one or a combination of a convolutional neural network, a feedback neural network, a deep learning network, a decision forest, a Bayesian network, a support vector machine.
下面以神经网络为例详细介绍模型训练的原理与过程。The neural network is taken as an example to introduce the principle and process of model training in detail.
神经网络作为自动分类模型、回归模型或决策模型,神经网络可以为卷积神经网络和深度神经网络中的一种或其组合。神经网络可以包括含有多个层,每个 层包含多个节点,相邻两层多个节点之间存在可训练权重(即前面提到的机器学习模型的参数)的神经网络。The neural network may be an automatic classification model, a regression model or a decision model, and the neural network may be one or a combination of a convolutional neural network and a deep neural network. The neural network may comprise a neural network comprising a plurality of layers, each layer comprising a plurality of nodes, and a trainable weight (i.e., parameters of the aforementioned machine learning model) between the two adjacent nodes.
图2中给出了一个卷积神经网络的示意图,其中包括了多个卷积层和降采样层以及全连接层。卷积层是卷积神经网络的核心模块,通过与一个滤波器(filter)的卷积操作,将前一层的多个节点与下一层的节点相连。一般来说,卷积层的每一个节点只与前一层的部分节点相连。通过训练过程,其中使用初始值的滤波器可以根据训练数据不断改变自身的权重,进而生成最终的滤波器取值。降采样层可以使用最大池化(max-pooling)的方法将一组节点降维成一个节点,其中使用非线性取最大值的方法。在经过多个卷积层和降采样层后,一个全连接层最终用于产生分类的输出,全连接层将前一层的所有节点与后一层的所有节点相连,这与一个传统的神经网络类似。A schematic of a convolutional neural network is shown in Figure 2, which includes multiple convolutional and downsampled layers and a fully connected layer. The convolutional layer is the core module of the convolutional neural network. By convolving with a filter, multiple nodes of the previous layer are connected to the nodes of the next layer. In general, each node of the convolutional layer is only connected to a part of the nodes of the previous layer. Through the training process, the filter using the initial value can continuously change its own weight according to the training data, and then generate the final filter value. The downsampling layer can use a max-pooling method to reduce a set of nodes into one node, using a method of nonlinearity taking the maximum value. After passing through multiple convolutional and downsampled layers, a fully connected layer is ultimately used to generate the output of the classification. The fully connected layer connects all nodes of the previous layer to all nodes of the latter layer, which is related to a traditional neural The network is similar.
例如,在训练过程中,可以通过训练算法,如梯度下降(gradient descent)算法使得神经网络中的滤波器权重值改变,进而使得输出与样本数据中的分类差异最小。随着使用的训练数据量的不断增大,不断改变的网络节点值不断改变并提高,神经网络的分类能力也就得到了提升。训练过程可以在本地完成,也可以在云端完成。需要在云端完成训练的情况下,可以将确定的木板的自定义分类和二维图像与自定义分类的关系、以及二维图像等上传到云端。云端服务器利用获得的自定义分类、二维图像与自定义分类的关系、以及二维图像对神经网络进行训练,并将训练后的木板识别模型部署到本地。For example, during training, a training algorithm, such as a gradient descent algorithm, can be used to change the filter weight values in the neural network, thereby minimizing the difference in classification between the output and the sample data. As the amount of training data used continues to increase, the changing network node values are constantly changing and improving, and the classification ability of the neural network is also improved. The training process can be done locally or in the cloud. In the case of training in the cloud, the determined classification of the board and the relationship between the 2D image and the custom classification, as well as the 2D image, etc., can be uploaded to the cloud. The cloud server uses the obtained custom classification, the relationship between the two-dimensional image and the custom classification, and the two-dimensional image to train the neural network, and deploys the trained wood board recognition model to the local.
在本实施例中,木板的类别可以预先确定好。首先确定木板样本,然后对木板样本进行自定义分类,例如将1-3号木板样本分为A级类别,将4-8号木板分为B级类别,将9-10号木板分类C级类别。由于是自定义分类,所以可以根据木板工厂具体情况和实际分类的要求,进行自定义的分类,例如将1、3、5号木板分为A级类别,将其余木板样本分为B级类别。在工厂内,根据工厂的实际情况进行自定义分类。这种自定义分类的方式更加适应于不同木板工厂实际情况以及分类的要求,分类更加灵活、方便。分类的具体实施是由人工凭借经验来完成的,具体设置多少个品类,哪个样本归入哪一类也都是由人工来实施的。人工分类可以基于木板的不同特征,例如颜色,纹理,缺陷等任意木板特征来完成。In this embodiment, the category of the board can be predetermined. First determine the board samples, then customize the board samples, for example, classify the 1-3 board samples into Class A categories, class 4-8 boards into Class B categories, and Class 9-10 boards into Class C categories. . Because it is a custom classification, it can be customized according to the specific conditions of the board factory and the actual classification. For example, the boards of No. 1, 3, and 5 are classified into Class A categories, and the remaining board samples are classified into Class B categories. In the factory, custom classification is performed according to the actual situation of the factory. This kind of custom classification is more suitable for the actual situation of different board factories and the classification requirements, and the classification is more flexible and convenient. The specific implementation of the classification is done manually by experience. How many categories are set and which sample belongs to which category is also implemented manually. Manual sorting can be done based on different features of the board, such as color, texture, defects, and the like.
在本实施例的一个可选实现方式中,步骤S103,即获取木板在多个不同预定速度下的多组一维图像的步骤,进一步包括:In an optional implementation manner of this embodiment, the step S103 is to obtain a plurality of sets of one-dimensional images of the board at a plurality of different predetermined speeds, and further includes:
在木板与线性摄像机具有相对速度,且相对速度与线性摄像机的采样帧率的组合对应于多个不同预定速度的情况下,获取木板的多组一维图像。In the case where the board has a relative speed with the linear camera, and the combination of the relative speed and the sampling frame rate of the linear camera corresponds to a plurality of different predetermined speeds, a plurality of sets of one-dimensional images of the board are acquired.
本实施例中,采样木板在预定速度下的一维图像时,可以采用多种方式。一种方式是,在线性摄像机固定的情况下,木板向线性摄像机移动。例如通过一个 传送带来实现木板的移动,并在传送带上方安装线性摄像机来采集图像。图3示出了本公开实施例中采样木板图像的一种木板分拣系统的结构示意图。图3的结构细节将在后面木板分类识别方法部分详细介绍。木板样本进入整理区域B1,在该整理区域中木板样本完成整理、引导,然后有序进入判定区域B2(图像采样区域)。在B2区域,流水线上的一个或多个线性摄像机以极快速度抓取处于预定速度下的木板样本的一维图像,传送带每次采用不同的预定速度移动:V1代表预定速度为0,V2、V3....Vn分别代表预定速度从0到与B2区域流水线皮带同步之前的速度,V(n+1)代表B2流水线速度,以便获得不同预定速度下的木板的一维图像。In this embodiment, when sampling a one-dimensional image of a wooden board at a predetermined speed, a plurality of methods can be employed. One way is to move the board to the linear camera with the linear camera fixed. For example, the movement of the board is achieved by a conveyor belt, and a linear camera is mounted above the conveyor belt to capture images. 3 is a block diagram showing the structure of a wood board sorting system for sampling wooden board images in an embodiment of the present disclosure. The structural details of Figure 3 will be described in detail in the section on Woodboard Classification and Identification. The wood board sample enters the finishing area B1, in which the wood board samples are finished, guided, and then sequentially entered into the determination area B2 (image sampling area). In the B2 area, one or more linear cameras on the pipeline capture the one-dimensional image of the wood sample at a predetermined speed with a very rapid speed. The conveyor moves at a different predetermined speed each time: V1 represents a predetermined speed of 0, V2. V3....Vn represents the speed before the predetermined speed is from 0 to the line belt of the B2 area, and V(n+1) represents the B2 line speed in order to obtain a one-dimensional image of the board at different predetermined speeds.
另一种方式,是在木板样本固定的情况下,线性摄像机向木板样本移动。同理,一个或多个线性摄像机以预定速度扫描木板样本,并以极快的速度抓取木板样本的图像:V1代表速度为0,V2、V3....Vn分别代表从0到与B2区域流水线皮带同步之前的速度,V(n+1)代表B2流水线速度,以便获得不同速度下的木板样本的一维图像。这种方式适用于木板样本较大,不便于移动的情况。Alternatively, the linear camera moves toward the plank sample with the plank sample fixed. Similarly, one or more linear cameras scan the wood sample at a predetermined speed and capture the image of the wood sample at a very fast rate: V1 represents speed 0, V2, V3....Vn represents 0 to B2, respectively. The velocity before the regional pipeline belt is synchronized, V(n+1) represents the B2 pipeline speed, in order to obtain a one-dimensional image of the plank samples at different speeds. This method is suitable for cases where the wooden board sample is large and inconvenient to move.
其他方式中,由于线性摄像机的帧率可以调节,因此还可以通过调节线性摄像机的帧率来模拟移动速度。例如,木板移动而线性摄像机固定时,在木板样本前半部使用第一帧率采集一维图像,在木板样本后半部使用第二帧率采集一维图像,则可以得到同一木板的两种不同预定速度的图像样本。再例如,木板固定,而线性摄像机移动时,也可以通过调节线性摄像机的帧率来获得多种预定速度下的图像样本。例如线性摄像机以相同的速度V移动多次扫描该木板,但是使用不同的帧率,例如,f0,f2,f3….fn来扫描样本,则所获得的木板图像与不同移动速度下获取的木板图像一样。In other ways, since the frame rate of the linear camera can be adjusted, the moving speed can also be simulated by adjusting the frame rate of the linear camera. For example, when the board moves and the linear camera is fixed, the first frame rate is used to collect the one-dimensional image in the first half of the board sample, and the second frame rate is used to collect the one-dimensional image in the second half of the board sample, so that two different differences of the same board can be obtained. An image sample of a predetermined speed. For another example, the board is fixed, and when the linear camera is moved, the image samples at various predetermined speeds can also be obtained by adjusting the frame rate of the linear camera. For example, a linear camera moves the board several times at the same speed V, but scans the sample using different frame rates, for example, f0, f2, f3....fn, and the obtained board image and the board obtained at different moving speeds. The image is the same.
当然,在其他可选的实施方式中,还可以是木板样本和线性摄像机均进行移动,移动方向可以是相对的或是同向的,只要二者之间相对运动速度不为零即可(即不相对静止);同时,线性摄像机采用一定的帧率来扫描木板样本,由相对运动速度与采样帧率的组合来形成前述的预定速度。其中,木板样本的移动速度、线性摄像机的移动速度、采样帧率和预定速度均是可变的。举例来说,当木板样本以第一速度v1、线性摄像机以第二速度v2相对运动时,二者的相对运动速度为v1+v2,线性摄像机使用标准帧率扫描得到的一维图像即为预定速度为v1+v2下的一维图像,使用2倍标准帧率扫描得到的一维图像即为预定速度为(v1+v2)/2下的一维图像,使用1/2标准帧率扫描得到的一维图像即为预定速度为2(v1+v2)下的一维图像。亦即,在本申请的实施例中,预定速度可以通过调整木板样本的移动速度、线性摄像机的移动速度和采样帧率中的一个或多个来得到。Of course, in other optional embodiments, both the wood sample and the linear camera may be moved, and the moving direction may be relative or the same direction, as long as the relative motion speed between the two is not zero (ie, At the same time, the linear camera uses a certain frame rate to scan the wood sample, and the aforementioned predetermined speed is formed by the combination of the relative motion speed and the sampling frame rate. Among them, the moving speed of the wood board sample, the moving speed of the linear camera, the sampling frame rate, and the predetermined speed are all variable. For example, when the plank sample is relatively moved at the first speed v1 and the linear camera at the second speed v2, the relative motion speed of the board is v1+v2, and the one-dimensional image obtained by the linear camera using the standard frame rate scan is predetermined. For a one-dimensional image with a speed of v1+v2, a one-dimensional image obtained by scanning at a standard frame rate of 2 times is a one-dimensional image at a predetermined speed of (v1+v2)/2, and is scanned using a 1/2 standard frame rate. The one-dimensional image is a one-dimensional image at a predetermined speed of 2 (v1+v2). That is, in the embodiment of the present application, the predetermined speed can be obtained by adjusting one or more of the moving speed of the wood board sample, the moving speed of the linear camera, and the sampling frame rate.
在本实施例的一个可选实现方式中,步骤S101,即获取木板在多个不同预 定速度下的多组一维图像的步骤,包括:In an optional implementation manner of this embodiment, the step S101 is to obtain a plurality of sets of one-dimensional images of the board at a plurality of different predetermined speeds, including:
在不同光照条件下,获取木板在多个不同预定速度下的多组一维图像;Obtaining a plurality of sets of one-dimensional images of the wooden board at a plurality of different predetermined speeds under different illumination conditions;
将木板的类别、多个不同预定速度以及多个二维图像作为多组训练数据,分别对木板识别模型进行训练,包括:The wood board identification model is trained by using the category of the board, a plurality of different predetermined speeds, and a plurality of two-dimensional images as the plurality of sets of training data, including:
将木板的类别、多个不同预定速度、不同光照条件以及多个二维图像作为多组训练数据,分别对木板识别模型进行训练;多组训练数据中每组训练数据包括木板的类别、多个二维图像中的一个二维图像及其对应的预定速度和光照条件。The board identification type, a plurality of different predetermined speeds, different illumination conditions, and a plurality of two-dimensional images are used as a plurality of sets of training data to respectively train the wood board recognition model; each group of training data includes a category of wood boards, and multiple A two-dimensional image in a two-dimensional image and its corresponding predetermined velocity and illumination conditions.
在该可选的实现方式中,图像采集过程中,通过变换线性摄像机的光圈实现不同光照条件下的图像采集;也可以在线性摄像机周围设置光源,通过调节光源的亮度或光源的照射方向实现不同的光照条件。例如,如图3所示,在B2区域生产线上加入一个或多个光源,例如光源可以为平板型LED灯:L1、L2.....Ln,LED灯能够提供较为均匀的光照,并且其光源亮度可以通过控制方法依次增加或递减,以获得产品在不同光线下的样本;也可以同时变换光圈大小和光源的亮度或照射方向来实现不同的光照条件。在一种方式下,LED灯的光照情况用于将图像采集的基础亮度提升到一个满意的程度,同时通过变化光圈的大小来获得该基础亮度下上下浮动的光照水平。两者结合,能够得到在一个令人满意的范围内的多个光照条件。由于线性摄像机在单位时间内只采集一维的图像,整个木板通过多次采集最终拼接而成的二维图像。因此,可以通过一个与照明装置同步的方法,在不同的时刻使用不同的光照强度。例如在t1采样时刻,使用s1光照强度;在t2采样时刻,使用s2光照强度;t3采样时刻,使用s3光照强度,以此类推,得到多个一维图像。将奇数时刻的图像组装成第一图像样本,将偶数时刻组装成第二图像样本,在木板样本通过扫描后,得到两个不同光照条件下的两个图像样本。另外一种方法,可以在木板样本通过扫描区域的前半部时段使用s1光照强度,在木板样本通过扫描区域的后半部时段使用s2光照强度,也可以最终得到两个光照强度下的图像样本。这种通过改变光照强度的方法可以与改变光圈的方法配合使用,得到更多光照强度下的图像样本。In this optional implementation, image acquisition under different illumination conditions is achieved by transforming the aperture of the linear camera during image acquisition; it is also possible to set the light source around the linear camera to achieve different brightness by adjusting the brightness of the light source or the illumination direction of the light source. The lighting conditions. For example, as shown in FIG. 3, one or more light sources are added to the B2 area production line, for example, the light source may be a flat type LED lamp: L1, L2.....Ln, the LED lamp can provide relatively uniform illumination, and The brightness of the light source can be sequentially increased or decreased by the control method to obtain samples of the product under different light conditions; the aperture size and the brightness or illumination direction of the light source can be simultaneously changed to achieve different illumination conditions. In one mode, the illumination condition of the LED lamp is used to raise the basic brightness of the image acquisition to a satisfactory level, and at the same time, by changing the size of the aperture to obtain the illumination level of the upper and lower floating of the basic brightness. The combination of the two enables multiple illumination conditions to be achieved within a satisfactory range. Since the linear camera only collects one-dimensional images in a unit time, the entire board is multi-collected and finally spliced into a two-dimensional image. Therefore, different illumination intensities can be used at different times by a method synchronized with the illumination device. For example, at t1 sampling time, s1 illumination intensity is used; at t2 sampling time, s2 illumination intensity is used; t3 sampling time is used, s3 illumination intensity is used, and so on, and multiple one-dimensional images are obtained. The images of the odd moments are assembled into a first image sample, the even time instants are assembled into a second image sample, and after the wood board samples are scanned, two image samples under two different illumination conditions are obtained. Alternatively, the s1 light intensity can be used during the first half of the scan area of the board sample, and the s2 light intensity can be used during the second half of the scan area of the board sample, or image samples at two light intensities can be obtained. This method of changing the illumination intensity can be used in conjunction with the method of changing the aperture to obtain image samples with more illumination intensity.
在本实施例的一个可选实现方式中,如图4所示,步骤S102,即将所获取的多组一维图像中的每组一维图像分别进行拼接,得到在多个不同预定速度下的多个二维图像的步骤,进一步包括以下步骤:In an optional implementation manner of the embodiment, as shown in FIG. 4, in step S102, each set of one-dimensional images in the acquired plurality of one-dimensional images is separately spliced to obtain a plurality of different predetermined speeds. The step of multiple two-dimensional images further includes the following steps:
在步骤S401中,将所获取的多组一维图像中的每组一维图像分别按照图像获取时间顺序和/或图像次序分成至少两个小组;In step S401, each set of one-dimensional images in the acquired plurality of sets of one-dimensional images are respectively divided into at least two groups according to an image acquisition time sequence and/or an image order;
在步骤S402中,将至少两个小组的一维图像分别进行拼接,形成在不同预定速度下的多个二维图像。In step S402, at least two groups of one-dimensional images are separately spliced to form a plurality of two-dimensional images at different predetermined speeds.
该可选的实现方式,可以通过图像获取的时间顺序将同一组中的多个一维图 像分成至少两个小组;例如将同一组中的前半部分一维图像分成一个小组,后半部分一维图像分成一个小组;还可以通过图像次序将同一组中的多个一维图像分成至少两个小组;例如,将同一组中的次序为奇数的一维图像分成一个小组,次序为偶数的分成一个小组。当然,还可以采用其他方式分成将同一组一维图像分成多个小组,具体可根据实际情况设置,在此不再赘述。In this optional implementation, multiple one-dimensional images in the same group can be divided into at least two groups by chronological order of image acquisition; for example, the first half of the same group of one-dimensional images are divided into one group, and the second half is one-dimensional. The images are divided into a group; the plurality of one-dimensional images in the same group can also be divided into at least two groups by image order; for example, one-dimensional images in the same group with an odd order are divided into one group, and the order is evenly divided into one group. Of course, the same group of one-dimensional images can be divided into multiple groups according to other methods, which can be set according to actual conditions, and details are not described herein again.
例如,按照时间顺序分成前后两部分将获取的一组一维图像分成前后两部分,最后再将前后两部分的一维图像分别拼接得到两个一维图像。而不同预定速度下将能够获得2N个二维图像,N与多组一维图像中的组数目相同。如前,在采样获取前半部分一维图像和后半部分一维图像时,可以采用不同的光照条件,这样所获得的两个二维图像所对应的预定速度相同,但是光照条件不同。For example, the first and second parts of the obtained one-dimensional image are divided into two parts according to the chronological order, and finally the one-dimensional images of the front and the back are respectively spliced to obtain two one-dimensional images. At different predetermined speeds, 2N two-dimensional images will be obtained, and the number of groups in N and multiple sets of one-dimensional images is the same. As before, when the first half of the one-dimensional image and the second half of the one-dimensional image are sampled, different illumination conditions can be used, so that the two two-dimensional images obtained have the same predetermined speed, but the illumination conditions are different.
再例如,还可以按照图像次序将获取的一组一维图像分成两部分,即同一预定速度下获取的一组一维图像中采样次序在奇数位和偶数位的一维图像分别分成两个小组,每个小组包括的一维图像拼接成一个二维图像,同一预定速度下则能获得两个二维图像。而不同速预定速度下,则能获得2N个二维图像。如前,在奇数时刻采样获取一维图像和偶数时刻采样获取一维图像时,可以采用不同的光照条件,这样所获得的两个二维图像所对应的预定速度相同,但是光照条件不同。For another example, the acquired set of one-dimensional images may be divided into two parts according to the image order, that is, the one-dimensional images of the odd-numbered and even-numbered ones in the set of one-dimensional images acquired at the same predetermined speed are respectively divided into two groups. The one-dimensional images included in each group are spliced into a two-dimensional image, and two two-dimensional images can be obtained at the same predetermined speed. At different speeds, a 2N two-dimensional image can be obtained. As before, when sampling and acquiring a one-dimensional image at an odd time and sampling a one-dimensional image at an even time, different illumination conditions can be used, so that the two two-dimensional images obtained have the same predetermined speed, but the illumination conditions are different.
可选地,光照条件包括木板外部光源光线的强弱、外部光源光线的照射方向、获取一维图像的图像获取单元的拍摄角度和图像获取单元的光圈大小中的一个或多个;预定速度为图像获取单元与木板之间的相对移动速度。Optionally, the lighting condition includes one or more of a strength of the light source outside the board, a direction of illumination of the external source light, a shooting angle of the image acquiring unit that acquires the one-dimensional image, and an aperture size of the image acquiring unit; the predetermined speed is The relative movement speed between the image acquisition unit and the board.
在本实施例公开的一可选实现方式中,方法还包括:In an optional implementation manner disclosed in this embodiment, the method further includes:
在获取木板的多组一维图像的同时还获取白色参考物体的多个一维图像。A plurality of one-dimensional images of white reference objects are also acquired while acquiring a plurality of sets of one-dimensional images of the wood board.
该可选的实现方式中,图像采集过程中,可以设置参考图像。例如,在图像采集区域,提供一个白色的参考物体,以保障木板样本的图像与白色参考物体的图像同时被采集。白色参考物体可以用于提供一个白平衡、亮度或其他图像参数的一个参考。In this optional implementation, a reference image can be set during image acquisition. For example, in the image acquisition area, a white reference object is provided to ensure that the image of the wood sample is captured simultaneously with the image of the white reference object. A white reference object can be used to provide a reference for white balance, brightness, or other image parameters.
综上,在对机器学习模型之前,所获得的是一组训练数据,每一组训练数据至少包括一个木板类别(即自定义的产品分类)和一个速度,还可以包括一个光照条件和/或一个摄像机角度的标签。例如,以下是一组最终用于后续学习步骤的训练数据:In summary, before the machine learning model, what is obtained is a set of training data, each set of training data includes at least one board category (ie, a customized product category) and a speed, and may also include a lighting condition and/or A camera angle label. For example, the following is a set of training data that is ultimately used for subsequent learning steps:
Sample 1Sample 1
[类别:A,速度:V2,光照强度:L3,摄像机角度,A5][Category: A, Speed: V2, Light intensity: L3, Camera angle, A5]
Sample 2Sample 2
[类别:A,速度:V3,光照强度:L3,摄像机角度,A5][Category: A, Speed: V3, Light intensity: L3, Camera angle, A5]
Sample 3Sample 3
[类别:B,速度:V0,光照强度:L3,摄像机角度,A5][Category: B, Speed: V0, Light intensity: L3, Camera angle, A5]
Sample 4Sample 4
[类别:A,速度:V2,光照强度:L3,摄像机角度,A5][Category: A, Speed: V2, Light intensity: L3, Camera angle, A5]
其中,由于使用了线性摄像机,一个Sample可以是多个一维图像数据的组合。速度信息可以是由真实相对移动速度以及帧率决定的。同一个木板可以获得多个图像Sample。Among them, due to the use of a linear camera, a Sample can be a combination of multiple one-dimensional image data. The speed information can be determined by the true relative movement speed and the frame rate. Multiple images Sample can be obtained from the same board.
在本实施例的一个可选实现方式中,如图5所示,步骤S103,即将木板的类别、多个不同预定速度以及多个二维图像作为多组训练数据,分别对木板识别模型进行训练的步骤,进一步包括:In an optional implementation manner of this embodiment, as shown in FIG. 5, step S103 is to train the wood board recognition model as a plurality of sets of training data, that is, a category of the board, a plurality of different predetermined speeds, and a plurality of two-dimensional images. The steps further include:
在步骤S501中,将多组一维图像中的每组一维图像分别进行拼接,得到多个二维图像;In step S501, each set of one-dimensional images in the plurality of sets of one-dimensional images are separately spliced to obtain a plurality of two-dimensional images;
在步骤S502中,对多个二维图像分别进行标注,得到木板的边界信息。In step S502, a plurality of two-dimensional images are respectively labeled to obtain boundary information of the board.
在该可选的实现方式中,每个图像样本是一个二维图像样本,该图像样本本身包含了一个边界信息,也就是线性摄像机不间断得到的一维图像数据是如何切割并拼接成一个独立的二维图像样本的。一种标注使用图像本身作为边界,也就是不包含任何额外的标注,只使用既包含木板图像也包含无用背景图像的一个独立二维图像作为一个样本。另一种标注使用额外的边界标注,对木板图像的边界进行独立的标注,以使得木板图像与背景图像区分开来。图6给出了一种对图像样本进行边界标注的示例,其中起始边界和结束边界用于确定一个独立的木板图像,侧边界用于确定木板图像与背景图像之间的界限。其中侧边界可以不区分起始与结束。由于线性摄像机只能不间断输出拼接后的图像,因此切割和标注需要人工完成。可以理解的本公开并不局限于图6所示的一种边界标注方法。在本实施例的一个可选实现方式中,步骤S103,即将木板的类别、多个不同预定速度以及多个二维图像作为多组训练数据,分别对木板识别模型进行训练的步骤,还包括:In this optional implementation, each image sample is a two-dimensional image sample, and the image sample itself contains a boundary information, that is, how the one-dimensional image data obtained by the linear camera is uninterrupted is cut and spliced into an independent A sample of a two-dimensional image. An annotation uses the image itself as a boundary, that is, without any additional annotations, using only one independent two-dimensional image that contains both a woodboard image and a useless background image as a sample. Another type of annotation uses an additional boundary label to independently mark the boundaries of the board image to distinguish the board image from the background image. Figure 6 shows an example of boundary labeling of image samples, where the start and end boundaries are used to determine a separate board image and the side borders are used to determine the boundaries between the board image and the background image. The side boundaries can be distinguished from the start and end. Since the linear camera can only output the stitched image without interruption, cutting and labeling need to be done manually. It is to be understood that the present disclosure is not limited to the one of the boundary labeling methods shown in FIG. 6. In an optional implementation manner of the embodiment, the step S103, that is, the step of training the board recognition model by using the category of the board, the plurality of different predetermined speeds, and the plurality of two-dimensional images as the plurality of sets of training data, further includes:
根据多个二维图像和木板的边界信息对木板边界识别模型进行训练,木板边界识别模型的识别结果包括木板的边界信息。The board boundary recognition model is trained according to the boundary information of the plurality of two-dimensional images and the wooden board, and the recognition result of the board boundary recognition model includes the boundary information of the board.
该可选的实现方式中,线性摄像机可以对流水线移动或排列的多个木板不间断的采集一维图像,并拼接得到一个连续的二维图像。这种情况下,可以训练一个切割模型即木板边界识别模型,用于将连续的二维图像进行切割,即识别出二维图像中的边界信息,并将于边界信息分割成多个二维图像,得到每个只包含一个木板图像的二维图像样本。该切割模型可以使用一个单独的神经网络,或与木板识别模型共享一个神经网络。为了便于区分与木板识别网络的差异,此处仅就 功能性对该网络的功能进行描述,在实际实施中,可能并不单独存在一个独立的实体或输出值。该切割模型可以通过上述进行标注边界的图像数据进行训练,得到一个判决策略,在收到不间断的二维度图像后,能够在t1时刻产生一个起始边界的判决,并在t2时刻产生一个结束边界的判决。进而,通过一个简单的图像处理方法,将t1和t2时刻内的图像数据组成一个仅包含一个独立木板样本的图像。通过连续使用该网络,就能不间断产生多个独立的二维图像样本,并保证每个图像样本仅包含一个完整的木板图像数据。除此之外,该神经网络也可以完成侧边界的识别,将无关背景图像数据剔除。In this optional implementation, the linear camera can continuously acquire one-dimensional images of a plurality of wood boards moving or arranged in a pipeline, and splicing to obtain a continuous two-dimensional image. In this case, a cutting model, that is, a board boundary recognition model, can be trained to cut a continuous two-dimensional image, that is, to identify boundary information in the two-dimensional image, and to divide the boundary information into a plurality of two-dimensional images. Get a 2D image sample each containing only one board image. The cutting model can use a separate neural network or share a neural network with the wood board recognition model. In order to facilitate the distinction between the board and the board identification network, the function of the network is described only in terms of functionality. In actual implementation, there may not be a separate entity or output value. The cutting model can be trained by the above-mentioned image data marked with a boundary to obtain a decision strategy. After receiving the uninterrupted two-dimensional image, a decision of the starting boundary can be generated at time t1, and an end is generated at time t2. The judgment of the border. Further, the image data at times t1 and t2 is composed into an image containing only one independent wooden board sample by a simple image processing method. By continuously using the network, multiple independent two-dimensional image samples can be generated without interruption, and that each image sample contains only one complete woodboard image data. In addition to this, the neural network can also perform the identification of the side boundaries and reject the irrelevant background image data.
在本公开实施例的一可选实现方式中,还可以使用多个线性摄像机采集图像数据。多个线性摄像机在不同拍摄角度下同时采集一个木板样本的图像数据,并产生多组训练数据。该多组训练数据包括木板类别、对应的速度以及对应的拍摄角度等标签,当然还可以包括对应的光照等标签。多个线性摄像机还可以使用多种不同的光照条件,例如扫描区域分成不透光的A、B两个区域,分别安装线性摄像机a、b,并使用s1、s2两种光照强度。在木板样品通过扫描区域后,得到不同光照条件下的两个Sample。同理,也可以获得多个拍摄角度、移动速度等参数下的样本。In an alternative implementation of an embodiment of the present disclosure, image data may also be acquired using a plurality of linear cameras. Multiple linear cameras simultaneously acquire image data of a wooden board sample at different shooting angles and generate multiple sets of training data. The plurality of sets of training data include labels such as a board type, a corresponding speed, and a corresponding shooting angle, and may of course include a label such as a corresponding illumination. Multiple linear cameras can also use a variety of different lighting conditions. For example, the scanning area is divided into two areas, A and B, which are opaque, and linear cameras a and b are installed respectively, and s1 and s2 are used. After the board sample passes through the scanning area, two Samples under different lighting conditions are obtained. In the same way, samples under multiple parameters such as shooting angle and moving speed can also be obtained.
图7示出根据本公开一实施方式的木板识别方法的流程图。如图7所示,木板识别方法包括以下步骤S701-S703:FIG. 7 illustrates a flow chart of a wood board identification method in accordance with an embodiment of the present disclosure. As shown in FIG. 7, the wood board identification method includes the following steps S701-S703:
在步骤S701中,获取木板的多个一维图像;In step S701, acquiring a plurality of one-dimensional images of the wood board;
在步骤S702中,将所获取的多个一维图像进行拼接,得到待识别的二维图像;In step S702, the acquired plurality of one-dimensional images are spliced to obtain a two-dimensional image to be identified;
在步骤S703中,根据二维图像以及训练好的木板识别模型进行识别,得到木板的类别以及移动速度。In step S703, recognition is performed based on the two-dimensional image and the trained wood board recognition model, and the type of the board and the moving speed are obtained.
在本实施例中,一维图像可以通过线性摄像机获取,由于线性摄像机在每个时间点只能采集一个一维图像,该一维图像无法直接用于后续的识别。因此,可以将多个一维数据拼接成一个二维图像,该二维图像可以包含部分或整个木板的图像信息。In this embodiment, the one-dimensional image can be acquired by a linear camera. Since the linear camera can only acquire one one-dimensional image at each time point, the one-dimensional image cannot be directly used for subsequent recognition. Therefore, a plurality of one-dimensional data can be spliced into one two-dimensional image, and the two-dimensional image can contain image information of a part or the whole board.
木板识别模型可以是预先训练好的,例如采用图1所示的机器学习方法得到的木板识别模型。由于木板识别模型是经过二维图像、速度以及类别训练过的,因此可以通过待识别木板的图像样本识别出该木板的类别以及移动速度等。木板的移动速度是相对移动速度,即采集图像的线性摄像机与木板之间的相对移动速度。The wood board recognition model may be pre-trained, such as a wood board recognition model obtained using the machine learning method shown in FIG. Since the wood board recognition model is trained through two-dimensional images, speeds, and categories, the type of the board, the moving speed, and the like can be identified by the image samples of the board to be identified. The moving speed of the board is the relative moving speed, that is, the relative moving speed between the linear camera and the board that captures the image.
木板识别方法可在图3示出的木板分拣系统的控制装置中执行。如图3所示,木板分拣系统包括:包括:传送装置301、线性图像采集装置302、控制装置303 及分类装置304;其中,The wood board identification method can be performed in the control device of the wood board sorting system shown in FIG. As shown in FIG. 3, the board sorting system includes: a conveying device 301, a linear image collecting device 302, a control device 303, and a sorting device 304;
待分类木板放置在传送装置301上,由传送装置301带动向后传送;The wood to be classified is placed on the conveying device 301, and is conveyed backward by the conveying device 301;
线性图像采集装置302对准传送装置301设置,用于采集待分类木板的一维线性图像,线性图像采集装置302的输出端耦接控制装置;The linear image capturing device 302 is disposed in alignment with the transmitting device 301 for collecting a one-dimensional linear image of the wood to be classified, and the output end of the linear image capturing device 302 is coupled to the control device;
控制装置303的输出端耦接分类装置304,控制装置303根据线性图像采集装置采集到的一维图像,向分类装置304输出一个方向信号和时间信号;The output end of the control device 303 is coupled to the classification device 304. The control device 303 outputs a direction signal and a time signal to the classification device 304 according to the one-dimensional image collected by the linear image acquisition device.
分类装置304设置在传送装置301末端的上方,在时间信号指示的时间点将待分类木板按照方向信号指示的方向移出传送装置301。The sorting means 304 is disposed above the end of the transport means 301, and moves the board to be sorted out of the transport means 301 in the direction indicated by the direction signal at the point in time indicated by the time signal.
可选地,在本公开的一个实施例中,传送装置优选为传送带,包括但不限于皮带、齿轮或链条传动的传送带装置。如图3所示,传送装置301进一步可分为图像采集区域305和踢腿区域306,其中,线性图像采集装置302对准图像采集区域305设置,在待分类木板进入图像采集区域305后,用于采集待分类木板的一维图像;分类装置304设置在踢腿区域306,用于根据控制装置303输出的方向信号和时间信号将待分类木板移出到指定位置。Alternatively, in one embodiment of the present disclosure, the transfer device is preferably a conveyor belt including, but not limited to, a belt, gear or chain driven conveyor belt device. As shown in FIG. 3, the transmitting device 301 can be further divided into an image capturing area 305 and a kicking area 306, wherein the linear image capturing device 302 is disposed in alignment with the image capturing area 305, and after the wood to be classified enters the image capturing area 305, The one-dimensional image of the wood to be classified is collected; the sorting device 304 is disposed in the kicking area 306 for moving the wood to be classified out to the designated position according to the direction signal and the time signal output by the control device 303.
在本公开的实施例中,通过线性图像采集装置采集的一维图像同时进行待分类木板的分类识别和踢腿机控制的识别,一方面可省略至少一个光电传感器,另一方面识别和控制的速度和准确度均高于相关技术,大幅提升了木板分拣的效率并降低了成本。具体地,线性图像采集装置在一定的自然和/或人为光照环境条件下采集的与其处于相对移动状态的待分类木板的一维图像。通常情况下,由于木板在传送装置上传输,木板与线性采集装置相对移动,两者之间具有相对速度。本公开中相对移动速度并不是固定不变的,而可以是可变的,而且最好是变化的。在相对移动速度变化的情况下,能够更好地获得处于不同相对移动速度下的木板样本图像。In the embodiment of the present disclosure, the one-dimensional image collected by the linear image capturing device simultaneously performs the classification identification of the wood to be classified and the recognition of the kick machine control. On the one hand, at least one photoelectric sensor can be omitted, and on the other hand, the identification and control are performed. Speed and accuracy are higher than the relevant technology, greatly improving the efficiency of board sorting and reducing costs. Specifically, the linear image acquisition device collects a one-dimensional image of the wood to be classified in a relatively moving state under a certain natural and/or artificial illumination environment. Typically, as the board is transported on the conveyor, the board moves relative to the linear acquisition device with a relative speed between the two. The relative movement speeds in the present disclosure are not fixed, but may be variable, and are preferably varied. In the case where the relative moving speed is changed, the wood board sample images at different relative moving speeds can be better obtained.
可选地,线性图像采集装置固定安装在传送装置的上方,线性图像采集装置对准传送装置的图像采集区域采集图像。图像采集过程中,可以通过变换线性图像采集装置的采样帧率实现不同速度下的图像采集;可选地,木板分拣系统还包括至少一个LED光源307,至少一个LED光源307设置在传送装置301的上方,对准图像采集区域306进行照射;优选地,至少一个LED光源307邻近设置在线性图像采集装置302周边或集成在线性图像采集装置302上。通过调节LED光源307的亮度或光源的照射方向实现不同的光照条件,LED光源可以为平板型LED灯,以提供较为均匀的光照,进一步地,光源亮度可以设置为依次增加或递减,以获得产品在不同光线下的样本;也可以采用对光圈大小、光源亮度和照射方向中的一种或多种进行变换来实现不同的光照条件。比如,在一种可选实施例,LED灯的光照情况用于将图像采集的基础亮度提升到一个满意的程度, 与此同时,通过变化光圈的大小来获得该基础亮度下上下浮动的光照水平;这样通过两种变换方式的结合,能够得到在一个令人满意的范围内的多个光照条件。此外,在图像采集过程中,还可以动态调整图像采集装置的角度,以采集处于不同角度下的木板样本图像。各种变换方式的结合还可进一步根据时间和/或顺序来进行,亦即可在不同时间按不同的顺序执行不同的变换组合来采集图像。Optionally, the linear image capture device is fixedly mounted above the transport device, and the linear image capture device is positioned to capture images of the image capture region of the transport device. During image acquisition, image acquisition at different speeds can be achieved by transforming the sampling frame rate of the linear image capture device; optionally, the wood board sorting system further includes at least one LED light source 307, and at least one LED light source 307 is disposed at the transmitting device 301. Above, the image acquisition area 306 is illuminated; preferably, at least one LED light source 307 is disposed adjacent to or integrated with the linear image acquisition device 302. Different illumination conditions can be realized by adjusting the brightness of the LED light source 307 or the illumination direction of the light source. The LED light source can be a flat type LED light to provide relatively uniform illumination. Further, the brightness of the light source can be set to be sequentially increased or decreased to obtain a product. Samples in different light conditions; different lighting conditions can also be achieved by transforming one or more of aperture size, source brightness, and illumination direction. For example, in an alternative embodiment, the illumination of the LED light is used to increase the basic brightness of the image acquisition to a satisfactory level, and at the same time, by varying the aperture size, the illumination level of the base brightness is obtained. Thus, by combining the two transformation methods, a plurality of illumination conditions within a satisfactory range can be obtained. In addition, during the image acquisition process, the angle of the image acquisition device can also be dynamically adjusted to capture the image of the wood sample at different angles. The combination of various transformations can be further performed in terms of time and/or order, that is, different transformation combinations can be performed in different sequences at different times to acquire images.
在本公开的一个实施例中,在图像采集过程中还可以设置参考图像来辅助提升图像识别的准确度。比如,优选在传送装置301的图像采集区域306设置有参照物区,参照物区中设置有参照物体308;其中,参照物区及参照物体308保持静止(即不随传送装置一起运动);线性图像采集装置在采集时需保障木板样本的图像与参照物体的图像同时被采集。优选地,参照物体具有白色的表面,白色参照物体可以用于提供一个白平衡、亮度或其他图像参数的一个标准参考。In an embodiment of the present disclosure, a reference image may also be set during image acquisition to assist in improving the accuracy of image recognition. For example, preferably, a reference object area is provided in the image acquisition area 306 of the transport device 301, and a reference object 308 is disposed in the reference object area; wherein the reference object area and the reference object 308 remain stationary (ie, do not move with the transport device); linear image The collecting device needs to ensure that the image of the wood board sample and the image of the reference object are collected at the same time. Preferably, the reference object has a white surface and the white reference object can be used to provide a standard reference for white balance, brightness or other image parameters.
在本公开的一个优选实施例中,线性图像采集装置可以是一个或多个线性摄像机(比如多个线性摄像头等),通过一个或多个线性摄像机同时采集一个木板样本的图像,并产生一个样本数据。样本数据包含对应的光照、速度、采集角度等标签,相对于一个图像传感器的情形,多个传感器采集的数据变为多个角度图像数据的组合。In a preferred embodiment of the present disclosure, the linear image capture device may be one or more linear cameras (such as a plurality of linear cameras, etc.), simultaneously acquiring an image of a wooden board sample by one or more linear cameras, and generating a sample data. The sample data includes corresponding labels of illumination, speed, acquisition angle, etc., and the data collected by the plurality of sensors becomes a combination of multiple angle image data with respect to one image sensor.
进一步地,控制装置303还与一个或多个计算机设备连接。在本公开的实施例中,木板分类的检测可以在本地完成,也可以在云端完成。具体地,本地向云端发送采集的图像数据,云端可以提供的信息包括但不限于木板分类的定义、各分类的样本图像、分类识别模型和分类检测结果等。Further, control device 303 is also coupled to one or more computer devices. In an embodiment of the present disclosure, the detection of the wood board classification may be done locally or in the cloud. Specifically, the collected image data is sent locally to the cloud, and the information that the cloud can provide includes, but is not limited to, the definition of the wood board classification, the sample image of each category, the classification recognition model, and the classification detection result.
在本公开实施例的一可选实现方式中,如图8所示,步骤S702,即将所获取的多个一维图像进行拼接,得到待识别的二维图像的步骤,进一步包括:In an optional implementation manner of the embodiment of the present disclosure, as shown in FIG. 8 , step S702 is a step of splicing the acquired one-dimensional images to obtain a two-dimensional image to be recognized, and further includes:
在步骤S801中,将所获取的多个一维图像按照图像获取时间顺序和/或图像次序分成至少两组一维图像;In step S801, the acquired plurality of one-dimensional images are divided into at least two sets of one-dimensional images according to an image acquisition time sequence and/or an image order;
在步骤S802中,将至少两组一维图像分别进行拼接,形成待识别的至少两个二维图像。In step S802, at least two sets of one-dimensional images are respectively spliced to form at least two two-dimensional images to be identified.
在该可选的实现方式中,木板通过传送带被送入图像采集区域,木板在移动过程中通过线性摄像机的扫描区域,完成图像采集,通过线性摄像机对采集的多个一维图像进行处理,得到二维图像,并将采集的二维图像输入到经过训练的木板识别模型中。或者,木板固定在某个区域,而通过移动线性摄像机扫描整个木板,采集多个一维图像,并得到二维图像。In the optional implementation manner, the wooden board is sent to the image collection area through the conveyor belt, and the wooden board completes the image acquisition through the scanning area of the linear camera during the movement, and processes the collected one-dimensional images through the linear camera to obtain the image. A two-dimensional image is entered and the acquired two-dimensional image is entered into a trained wood board recognition model. Alternatively, the board is fixed in an area, and the entire board is scanned by moving a linear camera to acquire a plurality of one-dimensional images and obtain a two-dimensional image.
在某种情况下,图像采集的过程中还可以使用一个外部光源,例如LED灯光源。该光源能够提供一种均匀的光照,以提升图像的基础亮度。同时可以通过使用一个与外部光源同步的线性摄像机,在不同时刻变换不同的光照条件,并得 到多个光照条件下的图像样本。In some cases, an external light source, such as an LED light source, can also be used during image acquisition. The light source provides a uniform illumination to enhance the underlying brightness of the image. At the same time, by using a linear camera synchronized with an external light source, different lighting conditions can be transformed at different times, and image samples under multiple illumination conditions can be obtained.
那么为了得到更加准确的识别结果,还可以将获取的一组一维图像分成两部分,即按照时间顺序分成前后两部分,最后再将前后两部分的一维图像分别拼接得到两个一维图像。如前,在采样获取前半部分一维图像和后半部分一维图像时,可以采用不同的光照条件,这样所获得的两个二维图像所对应的预定速度相同,但是光照条件不同。Then, in order to obtain a more accurate recognition result, the acquired one-dimensional one-dimensional image can be divided into two parts, that is, divided into two parts according to chronological order, and finally one-dimensional images of the front and back two parts are respectively spliced to obtain two one-dimensional images. . As before, when the first half of the one-dimensional image and the second half of the one-dimensional image are sampled, different illumination conditions can be used, so that the two two-dimensional images obtained have the same predetermined speed, but the illumination conditions are different.
同样,还可以将同一预定速度下获取的一组一维图像分成两部分,即获取的一组一维图像中采样次序在奇数位和偶数位的一维图像分别分成两个组,每个组包括的一维图像拼接成一个二维图像,同一预定速度下则能获得两个二维图像。如前,在奇数时刻采样获取一维图像和偶数时刻采样获取一维图像时,可以采用不同的光照条件,这样所获得的两个二维图像所对应的预定速度相同,但是光照条件不同。Similarly, a set of one-dimensional images acquired at the same predetermined speed can be divided into two parts, that is, the one-dimensional images in which the sampling order of the obtained one-dimensional image is divided into odd and even digits are respectively divided into two groups, each group The included one-dimensional images are stitched into a two-dimensional image, and two two-dimensional images can be obtained at the same predetermined speed. As before, when sampling and acquiring a one-dimensional image at an odd time and sampling a one-dimensional image at an even time, different illumination conditions can be used, so that the two two-dimensional images obtained have the same predetermined speed, but the illumination conditions are different.
可选地,光照条件包括木板外部光源光线的强弱、外部光源光线的照射方向、获取一维图像的图像获取单元的拍摄角度和图像获取单元的光圈大小中的一个或多个;预定速度为图像获取单元与木板之间的相对移动速度。Optionally, the lighting condition includes one or more of a strength of the light source outside the board, a direction of illumination of the external source light, a shooting angle of the image acquiring unit that acquires the one-dimensional image, and an aperture size of the image acquiring unit; the predetermined speed is The relative movement speed between the image acquisition unit and the board.
在本公开实施例的一可选实现方式中,步骤S703,根据二维图像以及训练好的木板识别模型进行识别,得到木板的类别以及移动速度,包括:In an optional implementation manner of the embodiment of the present disclosure, in step S703, the two-dimensional image and the trained wood board recognition model are identified, and the category of the board and the moving speed are obtained, including:
将至少两个二维图像分别输入至木板识别模型中,得到木板的类别以及移动速度的两组置信度估值;Inputting at least two two-dimensional images into the wood board recognition model respectively, obtaining two types of confidence estimates of the category of the board and the moving speed;
从两组置信度估值中选取置信度最高的一组作为最终识别结果。The group with the highest confidence is selected from the two sets of confidence estimates as the final recognition result.
该可选的实现方式中,对待识别的木板采集获得的两个二维图像进行识别时,可以将两个待识别的二维图像分别输入至木板识别模型,并将最终得到的识别结果中置信估值更高的一组作为最终识别结果,这样能够增加识别准确率。In the optional implementation manner, when two two-dimensional images obtained by the wood board to be recognized are identified, two two-dimensional images to be recognized may be input to the wood board recognition model respectively, and the final recognition result is trusted. A higher-valued group is used as the final recognition result, which can increase the recognition accuracy.
经过训练的木板识别模型对输入的待识别二维图像进行分析,确定木板的移动速度和类别。如果在训练过程中,每种类别的训练样本如果包含了不同光照条件下的训练样本,则训练好的木板识别模型可以在任意光照条件下实施可靠的速度和类别识别。此处,任意光照条件可以是在一个基础的亮度条件下,例如通过LED外部光源照射的情况下,围绕基础亮度上下浮动的一个光照条件。如果在前期的样本采集不包含多种光照条件,而只包含类别标识,则可能由于光照条件的改变而造成识别的错误。这是由于缺少多光照条件下的样本数据,卷积神经网络无法矫正光照对图像样本带来的影响。而识别过程中不可避免的使用了图像的色彩特征,该特征会随着光照的改变而改变,因此使得不同光照会改变最终的分类结果。当使用同一木板样本的多个光照条件下的图像样本时,将得到多组置信度估值,可以优选其中包含置信度值最高的结果作为最终结果。The trained wood board recognition model analyzes the input two-dimensional image to be identified to determine the moving speed and category of the board. If, during training, each type of training sample contains training samples under different lighting conditions, the trained wood board recognition model can implement reliable speed and category recognition under any lighting conditions. Here, any lighting condition may be an illumination condition that floats up and down around the base brightness under a basic brightness condition, such as by illumination of an external source of the LED. If the previous sample collection does not contain multiple lighting conditions, but only the category identification, the recognition error may be caused by changes in lighting conditions. This is due to the lack of sample data under multi-light conditions, and the convolutional neural network cannot correct the effects of illumination on image samples. The color feature of the image is inevitably used in the recognition process, and the feature changes with the change of illumination, so that different illumination changes the final classification result. When image samples under multiple illumination conditions of the same wood sample are used, multiple sets of confidence estimates will be obtained, preferably with the result with the highest confidence value as the final result.
此外,图像采集的过程中还可以使用一个参考图像,例如白色参照图像。该图像与木板图像同时被采集到一个图像数据中,参考图像可以作为白平衡和亮度或其他图像参数的一个基准。In addition, a reference image, such as a white reference image, can also be used during image acquisition. The image is captured into an image data simultaneously with the wood board image, which can be used as a reference for white balance and brightness or other image parameters.
此时,上述的白色参照物可以对图像进行一个白平衡和亮度的矫正。由于白色参照物可以被视为已知的一种图像,因此光照对木板图像的改变可以由光照对白色参照物的改变推演得到。由于木板在传送带上的速度并不总是等于传送带的速度,所以每一个新的木板都可能以一个任意的速度进入图像采集区域,由于训练样本包含了不同速度下的样本,因此木板识别模型也可以分辨木板的运动速度。在一实施例中,可以根据木板的移动速度确定预定的踢腿时间,并在预定的踢腿时间根据确定的木板类别执行踢腿操作,也就是分类操作,将木板踢入到相应的分类中。At this time, the white reference described above can correct the image for white balance and brightness. Since the white reference can be considered as an image known, the change in illumination of the woodboard image can be derived from the change in illumination of the white reference. Since the speed of the board on the conveyor belt is not always equal to the speed of the conveyor belt, each new board can enter the image acquisition area at an arbitrary speed. Since the training samples contain samples at different speeds, the board identification model is also Can distinguish the speed of movement of the board. In an embodiment, the predetermined kick time may be determined according to the moving speed of the wooden board, and the kicking operation, that is, the sorting operation, is performed according to the determined wooden board type at the predetermined kicking time, and the wooden board is kicked into the corresponding category. .
一个示例的神经网络输出如下:An example neural network output is as follows:
Sample 1:Sample 1:
[类别:{A:95%,B:3%,C:2%},速度:{V0:99%,V1:1%},摄像机角度:{A1:100%}][Category: {A: 95%, B: 3%, C: 2%}, speed: {V0: 99%, V1:1%}, camera angle: {A1: 100%}]
Sample 2:Sample 2:
[类别:{A:1%,B:99%,C:0%},速度:{V0:2%,V1:98%},摄像机角度:{A1:100%}][Category: {A: 1%, B: 99%, C: 0%}, speed: {V0: 2%, V1: 98%}, camera angle: {A1: 100%}]
当线性摄像机获得同一木板的多个二维图像时,木板识别模型的输出可能入下:When a linear camera obtains multiple 2D images of the same board, the output of the board recognition model may be:
Sample 1a:Sample 1a:
[类别:{A:95%,B:3%,C:2%},速度:{V0:99%,V1:1%},摄像机角度:{A1:100%}][Category: {A: 95%, B: 3%, C: 2%}, speed: {V0: 99%, V1:1%}, camera angle: {A1: 100%}]
Sample 1b:Sample 1b:
[类别:{A:92%,B:3%,C:5%},速度:{V0:99%,V1:98%},摄像机角度:{A1:100%}][Category: {A: 92%, B: 3%, C: 5%}, speed: {V0: 99%, V1: 98%}, camera angle: {A1: 100%}]
此时可以将Sample 1a用于最终的分类判断。这是由于Sample 1a采集时所处的由于自然光照和外部光源合成的光照条件更适宜,因此使得置信度值更高。Sample 1a can be used for the final classification judgment at this time. This is due to the fact that Sample 1a is more suitable for illumination conditions due to natural light and external light source synthesis, thus making the confidence value higher.
也就是说,木板识别模型的输出是每个分类(如木板类别、速度、拍摄角度等)的置信度最终估计值。根据这些估计值,可以选择置信度最高的分类作为最终的输出。注意,上述实施过程仅使用了神经网络作为一种基本方式,其他类似的机器学习方法,例如支持向量机,KNN,RNN,K-means,决策森林等方法也可以延续相同的方法和流程,得以实现基于其他机器学习方法的方案。。That is, the output of the board recognition model is the final estimate of the confidence of each category (eg board type, speed, shooting angle, etc.). Based on these estimates, the category with the highest confidence can be selected as the final output. Note that the above implementation only uses neural networks as a basic method. Other similar machine learning methods, such as support vector machine, KNN, RNN, K-means, decision forest, etc., can continue the same method and process. Implement a solution based on other machine learning methods. .
踢腿执行的操作可以是根据一个时间与速度的映射关系得到,例如:The action performed by the kick can be based on a time-to-speed mapping relationship, for example:
T=aV+bT=aV+b
其中V是最终得到的速度估计,a,b是预定义的参数。如果传送带发生了改变,例如踢腿机与摄像头的距离发生改变时,只需要改变a,b的取值即可,而不用重新训练整个神经网络。踢腿时间与速度的映射关系也可以通过很多种方式实现,并不局限于的方法。Where V is the resulting velocity estimate and a, b are predefined parameters. If the conveyor belt changes, such as when the distance between the kicker and the camera changes, only the values of a and b need to be changed without retraining the entire neural network. The mapping relationship between kick time and speed can also be achieved in many ways, not limited to methods.
在本公开实施例的一可选实现方式中,步骤S703中,即将二维图像以及训练好的木板识别模型进行识别,得到木板的类别以及移动速度的步骤,包括:In an optional implementation manner of the embodiment of the present disclosure, in step S703, the two-dimensional image and the trained wood board recognition model are identified, and the steps of the board type and the moving speed are obtained, including:
根据二维图像以及训练好的边界识别模型,得到木板的边界信息;Obtaining boundary information of the board based on the two-dimensional image and the trained boundary recognition model;
根据二维图像、边界信息以及木板识别模型,得到木板的类别以及移动速度。According to the two-dimensional image, the boundary information, and the wood board recognition model, the category of the board and the moving speed are obtained.
在该可选的实现方式中,线性摄像机可能对流水线移动或排列的多个木板不间断的采集一维图像,并拼接得到一个连续的二维图像。这种情况下,可以通过训练好的一个切割模型即木板边界识别模型,用于将连续的二维图像进行切割,即识别出二维图像中的边界信息,并将于边界信息分割成多个二维图像,得到每个只包含一个木板图像的二维图像样本。该切割模型在收到不间断的二维度图像后,能够在t1时刻产生一个起始边界的判决,并在t2时刻产生一个结束边界的判决。进而,通过一个简单的图像处理方法,将t1和t2时刻内的图像数据组成一个仅包含一个独立木板样本的图像。通过连续使用该网络,就能不间断产生多个独立的二维图像样本,并保证每个图像样本仅包含一个完整的木板图像数据。除此之外,该神经网络也可以完成侧边界的识别,将无关背景图像数据剔除。In this alternative implementation, the linear camera may acquire a one-dimensional image uninterruptedly on a plurality of planks that are moved or arranged in a pipeline, and spliced to obtain a continuous two-dimensional image. In this case, a trained cutting model, that is, a board boundary recognition model, can be used to cut a continuous two-dimensional image, that is, to identify boundary information in the two-dimensional image, and to divide the boundary information into multiple A two-dimensional image is obtained for each two-dimensional image sample containing only one wood board image. After receiving the uninterrupted two-dimensional image, the cutting model can generate a decision of the starting boundary at time t1 and generate a decision to end the boundary at time t2. Further, the image data at times t1 and t2 is composed into an image containing only one independent wooden board sample by a simple image processing method. By continuously using the network, multiple independent two-dimensional image samples can be generated without interruption, and that each image sample contains only one complete woodboard image data. In addition to this, the neural network can also perform the identification of the side boundaries and reject the irrelevant background image data.
切割后的包含独立木板的图像数据作为输入,在经过神经网络的每一层时产生输出值,并被用于下一层的输入。在经过所有层级之后,卷积神经网络将在每一个分类上得到一个置信度的估计值。如果线性摄像机获得了多个光照条件下的图像样本,则可以分别将其输入至该卷积神经网络,得到多个置信度估值组。The cut image data containing the individual boards is used as input, and an output value is generated when passing through each layer of the neural network, and is used for the input of the next layer. After passing through all levels, the convolutional neural network will get an estimate of confidence on each classification. If the linear camera obtains image samples under multiple illumination conditions, it can be input to the convolutional neural network separately to obtain multiple confidence evaluation groups.
在实际的识别过程中,由于木板是一种非标准化产品,在一定的情况下训练过的木板识别模型无法获得准确的分类,例如品类A和品类B的最终置信度估计值近似相等,例如51%对49%,则认为该次分类的置信度较低。对于这样的木板,可以通过将其分为一个单独的“无法识别分类”,或通过警报装置通知操作员进行干预。此时,可以通过迭代的方法处理此类木板。首先通过人工的方式对其进行分类,再获得该样本在多速度、多光照、多摄像机角度下的图像样本。这样也就获得了一个新的图像样本,这个图像样本可以添加到之前用于训练神经网络的样本中,再在时机合适的时候重新训练神经网络。通过不断增加样本数据并训练神经网络,能够不断增加对各种异常样本的处理精度,使得低置信度出现的概率逐步下降。如下给出迭代的过程中的数据示例:In the actual identification process, since the board is a non-standardized product, the board identification model trained under certain conditions cannot be accurately classified. For example, the final confidence estimates of category A and category B are approximately equal, for example 51. % vs. 49%, the confidence of this classification is considered to be low. For such boards, the operator can be notified to intervene by dividing them into a single "unrecognizable classification" or by means of an alarm device. At this point, such boards can be processed in an iterative manner. First, it is classified by manual method, and then the image samples of the sample under multi-speed, multi-light, and multi-camera angles are obtained. This results in a new image sample that can be added to the sample used to train the neural network and retrain the neural network when the time is right. By continuously increasing the sample data and training the neural network, the processing accuracy of various abnormal samples can be continuously increased, and the probability of occurrence of low confidence is gradually reduced. An example of the data in the iterative process is given below:
Sample 1Sample 1
Sample 2Sample 2
...
..
Sample NSample N
是用于第一次训练神经网络的样本数据,通过迭代的方法,得到如下样本:It is the sample data used to train the neural network for the first time. Through the iterative method, the following samples are obtained:
Sample 1Sample 1
Sample 2Sample 2
...
Sample NSample N
Sample N+1Sample N+1
Sample N+2Sample N+2
Sample N+3Sample N+3
其中Sample N+1,Sample N+2,Sample N+3都是对应于同一个低置信度的木板,但是对应于不同的速度、光照、摄像机角度等属性。由于图像样本可能受到原木板材质的影响,因此不同批次的原木带来的图像样本特征不同。同时,即使同一批次的原木,也可能由于上色或需求的改变而改变自定义的分类以及分类与样本的对应关系。这些快速变动的需求,均可以通过改变图像样本并重新训练神经网络的方法来快速调整分选算法。例如,Among them, Sample N+1, Sample N+2, and Sample N+3 are all corresponding to the same low-confidence board, but correspond to different speed, illumination, camera angle and other attributes. Since the image samples may be affected by the material of the original wood, the image samples of different batches of logs are different. At the same time, even the same batch of logs may change the custom classification and the correspondence between the classification and the sample due to changes in coloring or demand. These rapidly changing needs can quickly adjust the sorting algorithm by changing image samples and retraining the neural network. E.g,
SampleSet 1,SampleSet2,SampleSet3…..SampleSet 1, SampleSet2, SampleSet3.....
是不同的训练数据组,对应于不同的原木材质、不同的分类方法、不同的喷漆工艺等需求。只要使用对应的训练数据,快速训练神经网络并更新分选算法,则在不改变任何硬件结构的前提下,随时对应于新的需求。尤其是在训练过程在云端实时的情况下,训练过程可以大大缩短,使得原本几个月才能完成的参数调整、校准、测试、部署过程在一天之内完成。It is a different training data set, which corresponds to different raw wood quality, different classification methods, different painting processes and so on. As long as the corresponding training data is used, the neural network is quickly trained and the sorting algorithm is updated, the new requirements are met at any time without changing any hardware structure. Especially in the real-time situation of the training process in the cloud, the training process can be greatly shortened, so that the parameter adjustment, calibration, testing and deployment process that can be completed in a few months can be completed in one day.
本公开提出的上述木板识别方法,无论在任何环境和任何速度下,都能准确地对木板进行分类,并在准确的踢腿时间执行分类操作。而且不需要单独的设备,例如光电传感器来获取木板到达的时间,而是通过分类学习即能确定分类时间。The above-described wood board recognition method proposed by the present disclosure can accurately classify wood boards regardless of any environment and any speed, and perform classification operations at accurate kick time. Moreover, there is no need for a separate device, such as a photoelectric sensor, to obtain the time of arrival of the board, but the classification time can be determined by classification learning.
下述为本公开装置实施例,可以用于执行本公开方法实施例。The following is an apparatus embodiment of the present disclosure, which may be used to implement the method embodiments of the present disclosure.
图9示出根据本公开一实施方式的木板识别的机器学习装置的结构框图,该装置可以通过软件、硬件或者两者的结合实现成为电子设备的部分或者全部。如图9所示,木板识别的机器学习装置包括第一获取模块901、第一拼接模块902和训练模块903:9 is a block diagram showing the structure of a machine learning device for wood board recognition according to an embodiment of the present disclosure, which may be implemented as part or all of an electronic device by software, hardware, or a combination of both. As shown in FIG. 9, the board learning device includes a first acquisition module 901, a first splicing module 902, and a training module 903:
第一获取模块901,被配置为获取木板在多个不同预定速度下的多组一维图像;其中,每组一维图像包括对应木板不同位置处的多个一维图像,且每组一维图像中的多个一维图像对应相同的预定速度;The first obtaining module 901 is configured to acquire a plurality of sets of one-dimensional images of the wooden board at a plurality of different predetermined speeds; wherein each set of one-dimensional images includes a plurality of one-dimensional images at different positions of the corresponding wooden boards, and each set of one-dimensional Multiple one-dimensional images in the image correspond to the same predetermined speed;
第一拼接模块902,被配置为将所获取的多组一维图像中的每组一维图像分别进行拼接,得到在多个不同预定速度下的多个二维图像;The first splicing module 902 is configured to separately splicing each set of one-dimensional images in the acquired plurality of sets of one-dimensional images to obtain a plurality of two-dimensional images at a plurality of different predetermined speeds;
训练模块903,被配置为将木板的类别、多个不同预定速度以及多个二维图像作为多组训练数据,分别对木板识别模型进行训练;多组训练数据中每组训练数据包括木板的类别、多个二维图像中的一个二维图像以及对应的预定速度;木板识别模型的识别结果包括木板的类别以及移动速度。The training module 903 is configured to train the board recognition model as the plurality of sets of training data by using the category of the board, the plurality of different predetermined speeds, and the plurality of two-dimensional images; each group of the training data includes the category of the board a two-dimensional image of the plurality of two-dimensional images and a corresponding predetermined speed; the recognition result of the wood board recognition model includes a category of the wood board and a moving speed.
在本实施例的一个可选实现方式中,第一获取模块,包括:In an optional implementation manner of this embodiment, the first acquiring module includes:
第一获取子模块,被配置为在木板与线性摄像机具有相对速度,且相对速度与线性摄像机的采样帧率的组合对应于多个不同预定速度的情况下,获取木板的多组一维图像。The first acquisition sub-module is configured to acquire a plurality of sets of one-dimensional images of the wood board in a case where the board has a relative speed with the linear camera and the combination of the relative speed and the sampling frame rate of the linear camera corresponds to a plurality of different predetermined speeds.
在本实施例的一个可选实现方式中,第一获取模块,包括:In an optional implementation manner of this embodiment, the first acquiring module includes:
第二获取子模块,被配置为在不同光照条件下,获取木板在多个不同预定速度下的多组一维图像;a second obtaining sub-module configured to acquire a plurality of sets of one-dimensional images of the wood board at a plurality of different predetermined speeds under different lighting conditions;
训练模块,包括:Training modules, including:
第一训练子模块,被配置为将木板的类别、多个不同预定速度、不同光照条件以及多个二维图像作为多组训练数据,分别对木板识别模型进行训练;多组训练数据中每组训练数据包括木板的类别、多个二维图像中的一个二维图像及其对应的预定速度和光照条件。The first training sub-module is configured to train the wood board recognition model as a plurality of sets of training data by using a category of the board, a plurality of different predetermined speeds, different illumination conditions, and a plurality of two-dimensional images; each group of the plurality of sets of training data The training data includes the category of the board, a two-dimensional image of the plurality of two-dimensional images, and their corresponding predetermined speeds and lighting conditions.
第一拼接模块,包括:The first splicing module includes:
第一分组子模块,被配置为将所获取的多组一维图像中的每组一维图像分别按照图像获取时间顺序和/或图像次序分成至少两个小组;a first grouping sub-module configured to divide each set of one-dimensional images in the acquired plurality of sets of one-dimensional images into at least two groups according to an image acquisition time sequence and/or an image order;
第一拼接子模块,被配置为将至少两个小组的一维图像分别进行拼接,形成在不同预定速度下的多个二维图像。The first splicing sub-module is configured to splicing the one-dimensional images of the at least two groups separately to form a plurality of two-dimensional images at different predetermined speeds.
在本实施例的一个可选实现方式中,光照条件包括木板外部光源光线的强弱、外部光源光线的照射方向、获取一维图像的图像获取单元的拍摄角度和图像获取单元的光圈大小中的一个或多个;预定速度为图像获取单元与木板之间的相对移动速度。In an optional implementation manner of the embodiment, the illumination condition includes the intensity of the light of the external light source of the wooden board, the illumination direction of the light of the external light source, the shooting angle of the image acquiring unit that acquires the one-dimensional image, and the aperture size of the image acquiring unit. One or more; the predetermined speed is the relative moving speed between the image acquisition unit and the board.
在本实施例的一个可选实现方式中,方法还包括:In an optional implementation manner of this embodiment, the method further includes:
第二获取模块,被配置为在获取木板的多组一维图像的同时还获取白色参考物体的多个一维图像。The second obtaining module is configured to acquire a plurality of one-dimensional images of the white reference object while acquiring the plurality of sets of one-dimensional images of the wooden board.
在本实施例的一个可选实现方式中,第一拼接模块,包括:In an optional implementation manner of this embodiment, the first splicing module includes:
第三拼接子模块,被配置为将多组一维图像中的每组一维图像分别进行拼接,得到多个二维图像;The third splicing sub-module is configured to splicing each set of one-dimensional images in the plurality of sets of one-dimensional images to obtain a plurality of two-dimensional images;
标注子模块,被配置为对多个二维图像分别进行标注,得到木板的边界信息。The labeling sub-module is configured to label a plurality of two-dimensional images separately to obtain boundary information of the board.
在本实施例的一个可选实现方式中,训练模块,还包括:In an optional implementation manner of this embodiment, the training module further includes:
第二训练子模块,被配置为根据多个二维图像和木板的边界信息对木板边界识别模型进行训练,木板边界识别模型的识别结果包括木板的边界信息。The second training sub-module is configured to train the board boundary recognition model according to the boundary information of the plurality of two-dimensional images and the wooden board, and the recognition result of the board boundary recognition model includes the boundary information of the board.
上述木板识别的机器学习装置与上述木板识别的机器学习方法对应一致,具体细节可参见上述对木板识别的机器学习方法的描述,在此不再赘述。The machine learning device for the wood board recognition is consistent with the machine learning method for the wood board recognition. For details, refer to the above description of the machine learning method for wood board recognition, and details are not described herein.
图10示出根据本公开一实施方式的木板识别装置的结构框图,该装置可以通过软件、硬件或者两者的结合实现成为电子设备的部分或者全部。如图10所示,木板识别装置包括第三获取模块1001、第二拼接模块1002和识别模块1003:FIG. 10 is a block diagram showing the structure of a wood board identifying apparatus according to an embodiment of the present disclosure, which may be implemented as part or all of an electronic device by software, hardware, or a combination of both. As shown in FIG. 10, the board identification device includes a third acquisition module 1001, a second splicing module 1002, and an identification module 1003:
第三获取模块1001,被配置为获取木板的多个一维图像;The third obtaining module 1001 is configured to acquire a plurality of one-dimensional images of the wood board;
第二拼接模块1002,被配置为将所获取的多个一维图像进行拼接,得到在待识别的二维图像;The second splicing module 1002 is configured to splicing the acquired one-dimensional images to obtain a two-dimensional image to be identified;
识别模块1003,拼接模块根据二维图像以及训练好的木板识别模型进行识别,得到木板的类别以及移动速度。The identification module 1003, the splicing module identifies the two-dimensional image and the trained wood board recognition model, and obtains the category of the board and the moving speed.
在本实施例的一个可选实现方式中,第二拼接模块,包括:In an optional implementation manner of this embodiment, the second splicing module includes:
第二分组子模块,被配置为将所获取的多个一维图像按照图像获取时间顺序和/或图像次序分成至少两组一维图像;a second grouping sub-module configured to divide the acquired plurality of one-dimensional images into at least two sets of one-dimensional images according to an image acquisition time sequence and/or an image order;
第三拼接子模块,被配置为将至少两组一维图像分别进行拼接,形成待识别的至少两个二维图像。The third splicing sub-module is configured to splicing at least two sets of one-dimensional images to form at least two two-dimensional images to be identified.
在本实施例的一个可选实现方式中,识别模块,包括:In an optional implementation manner of this embodiment, the identifying module includes:
第一识别子模块,被配置为将至少两个二维图像分别输入至木板识别模型中,得到木板的类别以及移动速度的两组置信度估值;a first identification sub-module configured to input at least two two-dimensional images into the wood board recognition model respectively, to obtain two types of confidence estimates of the category of the board and the moving speed;
第一选取子模块,被配置为从两组置信度估值中选取置信度最高的一组作为最终识别结果。The first selection sub-module is configured to select the group with the highest confidence from the two sets of confidence estimates as the final recognition result.
在本实施例的一个可选实现方式中,方法还包括:In an optional implementation manner of this embodiment, the method further includes:
踢腿模块,被配置为根据木板的移动速度获得木板的踢腿时机。The kick leg module is configured to obtain the kick timing of the board based on the moving speed of the board.
在本实施例的一个可选实现方式中,识别模块,包括:In an optional implementation manner of this embodiment, the identifying module includes:
第二识别子模块,被配置为根据二维图像以及训练好的边界识别模型,得到木板的边界信息;a second identification sub-module configured to obtain boundary information of the wooden board according to the two-dimensional image and the trained boundary recognition model;
第三识别子模块,被配置为根据二维图像、边界信息以及木板识别模型,得到木板的类别以及移动速度。The third identification sub-module is configured to obtain the category of the wooden board and the moving speed according to the two-dimensional image, the boundary information, and the wood board recognition model.
在本实施例的一个可选实现方式中,识别模块,包括:In an optional implementation manner of this embodiment, the identifying module includes:
第四识别子模块,被配置为将多个不同光照条件下获得的多个二维图像分别输入至木板识别模型,得到木板的类别以及移动速度的多组置信度估值;a fourth identification sub-module configured to input a plurality of two-dimensional images obtained under a plurality of different illumination conditions into the wood board recognition model respectively, to obtain a plurality of sets of confidence estimates of the category of the board and the moving speed;
第二选取子模块,被配置为从多组置信度估值中选取置信度最高的一组作为 最终识别结果。The second selection sub-module is configured to select the group with the highest confidence from the plurality of sets of confidence estimates as the final recognition result.
在本实施例的一个可选实现方式中,方法还包括:In an optional implementation manner of this embodiment, the method further includes:
第四获取模块,被配置为在获取木板的多个一维图像的同时还获取白色参考物体的多个一维图像。The fourth obtaining module is configured to acquire a plurality of one-dimensional images of the white reference object while acquiring the plurality of one-dimensional images of the wood board.
上述木板识别的装置与上述木板识别方法对应一致,具体细节可参见上述对木板识别的描述,在此不再赘述。The device for identifying the wood board is consistent with the method for identifying the wood board. For details, refer to the description of the board identification, which is not described here.
图11是适于用来实现根据本公开实施方式的木板识别的机器学习方法的电子设备的结构示意图。11 is a block diagram showing the structure of an electronic device suitable for implementing a machine learning method for wood board recognition according to an embodiment of the present disclosure.
如图11所示,电子设备1100包括中央处理单元(CPU)1101,其可以根据存储在只读存储器(ROM)1102中的程序或者从存储部分1108加载到随机访问存储器(RAM)1103中的程序而执行上述图1所示的实施方式中的各种处理。在RAM1103中,还存储有电子设备1100操作所需的各种程序和数据。CPU1101、ROM1102以及RAM1103通过总线1104彼此相连。输入/输出(I/O)接口1105也连接至总线1104。As shown in FIG. 11, the electronic device 1100 includes a central processing unit (CPU) 1101 that can be loaded into a program in a random access memory (RAM) 1103 according to a program stored in a read only memory (ROM) 1102 or a program stored from the storage portion 1108. The various processes in the embodiment shown in Fig. 1 described above are executed. In the RAM 1103, various programs and data required for the operation of the electronic device 1100 are also stored. The CPU 1101, the ROM 1102, and the RAM 1103 are connected to each other through a bus 1104. An input/output (I/O) interface 1105 is also coupled to bus 1104.
以下部件连接至I/O接口1105:包括键盘、鼠标等的输入部分1106;包括诸如阴极射线管(CRT)、液晶显示器(LCD)等以及扬声器等的输出部分1107;包括硬盘等的存储部分1108;以及包括诸如LAN卡、调制解调器等的网络接口卡的通信部分1109。通信部分1109经由诸如因特网的网络执行通信处理。驱动器1110也根据需要连接至I/O接口1105。可拆卸介质1111,诸如磁盘、光盘、磁光盘、半导体存储器等等,根据需要安装在驱动器1110上,以便于从其上读出的计算机程序根据需要被安装入存储部分1108。The following components are connected to the I/O interface 1105: an input portion 1106 including a keyboard, a mouse, etc.; an output portion 1107 including a cathode ray tube (CRT), a liquid crystal display (LCD), and the like, and a speaker; a storage portion 1108 including a hard disk or the like And a communication portion 1109 including a network interface card such as a LAN card, a modem, or the like. The communication section 1109 performs communication processing via a network such as the Internet. Driver 1110 is also connected to I/O interface 1105 as needed. A removable medium 1111 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory or the like is mounted on the drive 1110 as needed so that a computer program read therefrom is installed into the storage portion 1108 as needed.
特别地,根据本公开的实施方式,上文参考图1描述的方法可以被实现为计算机软件程序。例如,本公开的实施方式包括一种计算机程序产品,其包括有形地包含在及其可读介质上的计算机程序,计算机程序包含用于执行图1的木板识别的机器学习方法的程序代码。在这样的实施方式中,该计算机程序可以通过通信部分1109从网络上被下载和安装,和/或从可拆卸介质1111被安装。In particular, according to an embodiment of the present disclosure, the method described above with reference to FIG. 1 may be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product comprising a computer program tangibly embodied on a readable medium therewith, the computer program comprising program code for performing the machine learning method of the board recognition of FIG. In such an embodiment, the computer program can be downloaded and installed from the network via the communication portion 1109, and/or installed from the removable medium 1111.
上述电子设备还可以用于执行图7所示实施例中的木板识别方法的程序代码。The above electronic device can also be used to execute the program code of the wood board identification method in the embodiment shown in FIG.

Claims (34)

  1. 一种木板识别的机器学习方法,其中,包括:A machine learning method for wood board recognition, which comprises:
    获取所述木板在多个不同预定速度下的多组一维图像;其中,每组一维图像包括对应所述木板不同位置处的多个一维图像,且每组一维图像中的所述多个一维图像对应相同的预定速度;Obtaining a plurality of sets of one-dimensional images of the wooden board at a plurality of different predetermined speeds; wherein each set of one-dimensional images includes a plurality of one-dimensional images corresponding to different positions of the wooden board, and the each of the sets of one-dimensional images Multiple one-dimensional images corresponding to the same predetermined speed;
    将所获取的所述多组一维图像中的每组一维图像分别进行拼接,得到在多个不同预定速度下的多个二维图像;Combining each of the acquired one-dimensional images in the plurality of sets of one-dimensional images to obtain a plurality of two-dimensional images at a plurality of different predetermined speeds;
    将所述木板的类别、所述多个不同预定速度以及所述多个二维图像作为多组训练数据,分别对木板识别模型进行训练;所述多组训练数据中每组训练数据包括所述木板的类别、所述多个二维图像中的一个二维图像以及对应的预定速度;所述木板识别模型的识别结果包括木板的类别以及移动速度。The board identification type, the plurality of different predetermined speeds, and the plurality of two-dimensional images are used as a plurality of sets of training data to respectively train the board recognition model; each of the plurality of sets of training data includes the a category of the board, a two-dimensional image of the plurality of two-dimensional images, and a corresponding predetermined speed; the recognition result of the board recognition model includes a category of the board and a moving speed.
  2. 根据权利要求1所述的木板识别的机器学习方法,其中,获取所述木板在多个不同预定速度下的多组一维图像,包括:The machine learning method for wood board recognition according to claim 1, wherein acquiring a plurality of sets of one-dimensional images of the wood board at a plurality of different predetermined speeds comprises:
    在所述木板与线性摄像机具有相对速度,且所述相对速度与所述线性摄像机的采样帧率的组合对应于所述多个不同预定速度的情况下,获取所述木板的多组一维图像。Acquiring multiple sets of one-dimensional images of the wooden board in a case where the wooden board has a relative speed with a linear camera, and the combination of the relative speed and the sampling frame rate of the linear camera corresponds to the plurality of different predetermined speeds .
  3. 根据权利要求1所述的木板识别的机器学习方法,其中,获取所述木板在多个不同预定速度下的多组一维图像,包括:The machine learning method for wood board recognition according to claim 1, wherein acquiring a plurality of sets of one-dimensional images of the wood board at a plurality of different predetermined speeds comprises:
    在不同光照条件下,获取所述木板在多个不同预定速度下的多组一维图像;Obtaining a plurality of sets of one-dimensional images of the wooden board at a plurality of different predetermined speeds under different illumination conditions;
    将所述木板的类别、所述多个不同预定速度以及所述多个二维图像作为多组训练数据,分别对木板识别模型进行训练,包括:The board type, the plurality of different predetermined speeds, and the plurality of two-dimensional images are used as a plurality of sets of training data to respectively train the board recognition model, including:
    将所述木板的类别、所述多个不同预定速度、所述不同光照条件以及所述多个二维图像作为多组训练数据,分别对木板识别模型进行训练;所述多组训练数据中每组训练数据包括所述木板的类别、所述多个二维图像中的一个二维图像及其对应的预定速度和光照条件。The board identification type, the plurality of different predetermined speeds, the different illumination conditions, and the plurality of two-dimensional images are used as a plurality of sets of training data to respectively train the board recognition model; each of the plurality of sets of training data The group training data includes a category of the board, a two-dimensional image of the plurality of two-dimensional images, and corresponding pre-determined speeds and lighting conditions.
  4. 根据权利要求3所述的木板识别的机器学习方法,其中,将所获取的所述多组一维图像中的每组一维图像分别进行拼接,得到在多个不同预定速度下的多个二维图像,包括:The machine learning method for wood board recognition according to claim 3, wherein each of the acquired one-dimensional images in the plurality of sets of one-dimensional images is separately spliced to obtain a plurality of two at a plurality of different predetermined speeds. Dimensional images, including:
    将所获取的所述多组一维图像中的每组一维图像分别按照图像获取时间顺序和/或图像次序分成至少两个小组;Dividing each of the acquired one-dimensional images of the plurality of sets of one-dimensional images into at least two groups according to an image acquisition time sequence and/or an image order;
    将所述至少两个小组的一维图像分别进行拼接,形成在所述不同预定速度下的多个二维图像。The one-dimensional images of the at least two groups are separately spliced to form a plurality of two-dimensional images at the different predetermined speeds.
  5. 根据权利要求4所述的木板识别的机器学习方法,其中,所述光照条件包括木板外部光源光线的强弱、外部光源光线的照射方向、获取所述一维图像的 图像获取单元的拍摄角度和图像获取单元的光圈大小中的一个或多个;所述预定速度为所述图像获取单元与所述木板之间的相对移动速度。The wood board recognition machine learning method according to claim 4, wherein the illumination condition comprises a light intensity of a light source external to the wood board, an illumination direction of the external light source light, a photographing angle of the image acquisition unit that acquires the one-dimensional image, and One or more of the aperture sizes of the image acquisition unit; the predetermined speed is a relative movement speed between the image acquisition unit and the board.
  6. 根据权利要求1所述的木板识别的机器学习方法,其中,还包括:The machine learning method for wood board recognition according to claim 1, further comprising:
    在获取所述木板的多组一维图像的同时还获取白色参考物体的多个一维图像。A plurality of one-dimensional images of white reference objects are also acquired while acquiring a plurality of sets of one-dimensional images of the wooden board.
  7. 根据权利要求1所述的木板识别的机器学习方法,其中,将所述木板的类别、所述多个不同预定速度以及所述多个二维图像作为多组训练数据,分别对木板识别模型进行训练,包括:The wood board recognition machine learning method according to claim 1, wherein the board type, the plurality of different predetermined speeds, and the plurality of two-dimensional images are used as a plurality of sets of training data to respectively perform a wood board recognition model Training, including:
    将所述多组一维图像中的每组一维图像分别进行拼接,得到多个二维图像;Splicing each set of one-dimensional images in the plurality of sets of one-dimensional images to obtain a plurality of two-dimensional images;
    对所述多个二维图像分别进行标注,得到所述木板的边界信息。The plurality of two-dimensional images are respectively labeled to obtain boundary information of the wooden board.
  8. 根据权利要求7所述的木板识别的机器学习方法,其中,将所述木板的类别、所述多个不同预定速度以及所述多个二维图像作为多组训练数据,分别对木板识别模型进行训练,还包括:The wood board recognition machine learning method according to claim 7, wherein the board type, the plurality of different predetermined speeds, and the plurality of two-dimensional images are used as a plurality of sets of training data to respectively perform a wood board recognition model Training also includes:
    根据所述多个二维图像和所述木板的边界信息对木板边界识别模型进行训练,所述木板边界识别模型的识别结果包括所述木板的边界信息。The board boundary recognition model is trained according to the plurality of two-dimensional images and boundary information of the board, and the recognition result of the board boundary recognition model includes boundary information of the board.
  9. 一种木板识别方法,其中,包括:A method for identifying a wood board, comprising:
    获取所述木板的多个一维图像;Obtaining a plurality of one-dimensional images of the wooden board;
    将所获取的所述多个一维图像进行拼接,得到待识别的二维图像;Splicing the acquired one-dimensional images to obtain a two-dimensional image to be identified;
    根据所述二维图像以及训练好的木板识别模型进行识别,得到所述木板的类别以及移动速度。Identification is performed based on the two-dimensional image and the trained wood board recognition model, and the type of the board and the moving speed are obtained.
  10. 根据权利要求9所述的木板识别方法,其中,将所获取的所述多个一维图像进行拼接,得到待识别的二维图像,包括:The method for identifying a board according to claim 9, wherein the merging the acquired one-dimensional images to obtain a two-dimensional image to be recognized comprises:
    将所获取的所述多个一维图像按照图像获取时间顺序和/或图像次序分成至少两组一维图像;And dividing the acquired plurality of one-dimensional images into at least two sets of one-dimensional images according to an image acquisition time sequence and/or an image order;
    将所述至少两组一维图像分别进行拼接,形成待识别的至少两个二维图像。The at least two sets of one-dimensional images are separately spliced to form at least two two-dimensional images to be identified.
  11. 根据权利要求10所述的木板识别方法,其中,根据所述二维图像以及训练好的木板识别模型进行识别,得到所述木板的类别以及移动速度,包括:The board identifying method according to claim 10, wherein the identifying according to the two-dimensional image and the trained wood board recognition model, the category of the board and the moving speed are obtained, including:
    将所述至少两个二维图像分别输入至所述木板识别模型中,得到所述木板的类别以及移动速度的两组置信度估值;Inputting the at least two two-dimensional images into the wood board recognition model respectively, to obtain two types of confidence estimates of the category of the board and the moving speed;
    从所述两组置信度估值中选取置信度最高的一组作为最终识别结果。The group with the highest confidence is selected from the two sets of confidence estimates as the final recognition result.
  12. 根据权利要求9所述的木板识别方法,其中,还包括:The method for identifying a wood board according to claim 9, further comprising:
    根据所述木板的移动速度获得所述木板的踢腿时机。The kick timing of the board is obtained according to the moving speed of the board.
  13. 根据权利要求9所述的木板识别方法,其中,将所述二维图像以及训练好的木板识别模型进行识别,得到所述木板的类别以及移动速度,包括:The board identifying method according to claim 9, wherein the two-dimensional image and the trained wood board recognition model are identified to obtain a category of the board and a moving speed, including:
    根据所述二维图像以及训练好的边界识别模型,得到所述木板的边界信息;Obtaining boundary information of the wooden board according to the two-dimensional image and the trained boundary recognition model;
    根据所述二维图像、所述边界信息以及所述木板识别模型,得到所述木板的类别以及移动速度。According to the two-dimensional image, the boundary information, and the wood board recognition model, the category of the board and the moving speed are obtained.
  14. 根据权利要求9所述的木板识别方法,其中,根据所述二维图像以及训练好的木板识别模型进行识别,得到所述木板的类别以及移动速度,包括:The board identifying method according to claim 9, wherein the identifying according to the two-dimensional image and the trained wood board recognition model, the category of the board and the moving speed are obtained, including:
    将多个不同光照条件下获得的多个所述二维图像分别输入至所述木板识别模型,得到所述木板的类别以及移动速度的多组置信度估值;Inputting a plurality of the two-dimensional images obtained under a plurality of different illumination conditions into the wood board recognition model, respectively, to obtain a plurality of sets of confidence estimates of the category of the board and the moving speed;
    从所述多组置信度估值中选取置信度最高的一组作为最终识别结果。A group with the highest degree of confidence is selected from the plurality of sets of confidence estimates as a final recognition result.
  15. 根据权利要求9所述的木板识别识别方法,其中,还包括:The method for identifying and identifying a wood board according to claim 9, further comprising:
    在获取所述木板的多个一维图像的同时还获取白色参考物体的多个一维图像。A plurality of one-dimensional images of white reference objects are also acquired while acquiring a plurality of one-dimensional images of the wooden board.
  16. 一种木板识别的机器学习装置,其中,包括:A machine learning device for wood board recognition, comprising:
    第一获取模块,被配置为获取所述木板在多个不同预定速度下的多组一维图像;其中,每组一维图像包括对应所述木板不同位置处的多个一维图像,且每组一维图像中的所述多个一维图像对应相同的预定速度;a first obtaining module configured to acquire a plurality of sets of one-dimensional images of the wooden board at a plurality of different predetermined speeds; wherein each set of one-dimensional images includes a plurality of one-dimensional images corresponding to different positions of the wooden board, and each The plurality of one-dimensional images in the set one-dimensional image correspond to the same predetermined speed;
    第一拼接模块,被配置为将所获取的所述多组一维图像中的每组一维图像分别进行拼接,得到在多个不同预定速度下的多个二维图像;a first splicing module configured to splicing each of the acquired one-dimensional images of the plurality of sets of one-dimensional images to obtain a plurality of two-dimensional images at a plurality of different predetermined speeds;
    训练模块,被配置为将所述木板的类别、所述多个不同预定速度以及所述多个二维图像作为多组训练数据,分别对木板识别模型进行训练;所述多组训练数据中每组训练数据包括所述木板的类别、所述多个二维图像中的一个二维图像以及对应的预定速度;所述木板识别模型的识别结果包括木板的类别以及移动速度。a training module configured to train the board recognition model as the plurality of sets of training data, the category of the board, the plurality of different predetermined speeds, and the plurality of two-dimensional images; each of the plurality of sets of training data The group training data includes a category of the board, a two-dimensional image of the plurality of two-dimensional images, and a corresponding predetermined speed; the recognition result of the board recognition model includes a category of the board and a moving speed.
  17. 根据权利要求16所述的木板识别的机器学习装置,其中,所述第一获取模块,包括:The board-recognized machine learning apparatus according to claim 16, wherein the first obtaining module comprises:
    第一获取子模块,被配置为在所述木板与线性摄像机具有相对速度,且所述相对速度与所述线性摄像机的采样帧率的组合对应于所述多个不同预定速度的情况下,获取所述木板的多组一维图像。a first acquisition submodule configured to acquire when the wood board has a relative speed with the linear camera, and the combination of the relative speed and the sampling frame rate of the linear camera corresponds to the plurality of different predetermined speeds Multiple sets of one-dimensional images of the wood board.
  18. 根据权利要求16所述的木板识别的机器学习装置,其中,所述第一获取模块,包括:The board-recognized machine learning apparatus according to claim 16, wherein the first obtaining module comprises:
    第二获取子模块,被配置为在不同光照条件下,获取所述木板在多个不同预定速度下的多组一维图像;a second obtaining submodule configured to acquire a plurality of sets of one-dimensional images of the board at a plurality of different predetermined speeds under different lighting conditions;
    所述训练模块,包括:The training module includes:
    第一训练子模块,被配置为将所述木板的类别、所述多个不同预定速度、所述不同光照条件以及所述多个二维图像作为多组训练数据,分别对木板识别模型进行训练;所述多组训练数据中每组训练数据包括所述木板的类别、所述多个二 维图像中的一个二维图像及其对应的预定速度和光照条件。a first training sub-module configured to train the board recognition model by using the category of the board, the plurality of different predetermined speeds, the different illumination conditions, and the plurality of two-dimensional images as sets of training data Each of the plurality of sets of training data includes a category of the board, a two-dimensional image of the plurality of two-dimensional images, and corresponding predetermined speeds and lighting conditions.
  19. 根据权利要求16所述的木板识别的机器学习装置,其中,所述第一拼接模块,包括:The machine tool for wood board recognition according to claim 16, wherein the first splicing module comprises:
    第一分组子模块,被配置为将所获取的所述多组一维图像中的每组一维图像分别按照图像获取时间顺序和/或图像次序分成至少两个小组;a first grouping sub-module configured to divide each of the acquired one-dimensional images of the plurality of sets of one-dimensional images into at least two groups according to an image acquisition time sequence and/or an image order;
    第一拼接子模块,被配置为将所述至少两个小组的一维图像分别进行拼接,形成在所述不同预定速度下的多个二维图像。The first splicing sub-module is configured to splicing the one-dimensional images of the at least two groups separately to form a plurality of two-dimensional images at the different predetermined speeds.
  20. 根据权利要求18所述的木板识别的机器学习装置,其中,所述光照条件包括木板外部光源光线的强弱、外部光源光线的照射方向、获取所述一维图像的图像获取单元的拍摄角度和图像获取单元的光圈大小中的一个或多个;所述预定速度为所述图像获取单元与所述木板之间的相对移动速度。The board-recognized machine learning apparatus according to claim 18, wherein said illumination condition comprises a light intensity of a light source external to the wooden board, an irradiation direction of the external light source light, a photographing angle of the image acquisition unit that acquires the one-dimensional image, and One or more of the aperture sizes of the image acquisition unit; the predetermined speed is a relative movement speed between the image acquisition unit and the board.
  21. 根据权利要求16所述的木板识别的机器学习装置,其中,还包括:A wood board-recognized machine learning apparatus according to claim 16, further comprising:
    第二获取模块,被配置为在获取所述木板的多组一维图像的同时还获取白色参考物体的多个一维图像。The second obtaining module is configured to acquire a plurality of one-dimensional images of the white reference object while acquiring the plurality of sets of one-dimensional images of the wooden board.
  22. 根据权利要求16所述的木板识别的机器学习装置,其中,所述第一拼接模块,包括:The machine tool for wood board recognition according to claim 16, wherein the first splicing module comprises:
    第二拼接子模块,被配置为将所述多组一维图像中的每组一维图像分别进行拼接,得到多个二维图像;a second splicing sub-module configured to splicing each set of one-dimensional images in the plurality of sets of one-dimensional images to obtain a plurality of two-dimensional images;
    标注子模块,被配置为对所述多个二维图像分别进行标注,得到所述木板的边界信息。The labeling sub-module is configured to label the plurality of two-dimensional images separately to obtain boundary information of the wood board.
  23. 根据权利要求22所述的木板识别的机器学习装置,其中,所述训练模块,还包括:The board-recognized machine learning apparatus according to claim 22, wherein the training module further comprises:
    第二训练子模块,被配置为根据所述多个二维图像和所述木板的边界信息对木板边界识别模型进行训练,所述木板边界识别模型的识别结果包括所述木板的边界信息。The second training sub-module is configured to train the board boundary recognition model according to the plurality of two-dimensional images and boundary information of the board, the recognition result of the board boundary recognition model including boundary information of the board.
  24. 一种木板识别装置,其中,包括:A wood board identification device, comprising:
    第三获取模块,被配置为获取所述木板的多个一维图像;a third obtaining module configured to acquire a plurality of one-dimensional images of the wood board;
    第二拼接模块,被配置为将所获取的所述多个一维图像进行拼接,得到在待识别的二维图像;a second splicing module configured to splicing the acquired one-dimensional images to obtain a two-dimensional image to be identified;
    识别模块,拼接模块根据所述二维图像以及训练好的木板识别模型进行识别,得到所述木板的类别以及移动速度。The identification module, the splicing module performs recognition according to the two-dimensional image and the trained wood board recognition model, and obtains the category of the wood board and the moving speed.
  25. 根据权利要求24所述的木板识别装置,其中,所述第二拼接模块,包括:The wood board identification device according to claim 24, wherein the second splicing module comprises:
    第二分组子模块,被配置为将所获取的所述多个一维图像按照图像获取时间 顺序和/或图像次序分成至少两组一维图像;a second grouping sub-module configured to divide the acquired plurality of one-dimensional images into at least two sets of one-dimensional images according to an image acquisition time sequence and/or an image order;
    第三拼接子模块,被配置为将所述至少两组一维图像分别进行拼接,形成待识别的至少两个二维图像。The third splicing sub-module is configured to splicing the at least two sets of one-dimensional images separately to form at least two two-dimensional images to be identified.
  26. 根据权利要求25所述的木板识别装置,其中,所述识别模块,包括:The wood board identification device according to claim 25, wherein the identification module comprises:
    第一识别子模块,被配置为将所述至少两个二维图像分别输入至所述木板识别模型中,得到所述木板的类别以及移动速度的两组置信度估值;a first identification sub-module configured to input the at least two two-dimensional images into the wood board recognition model respectively, to obtain two types of confidence estimates of the category of the board and the moving speed;
    第一选取子模块,被配置为从所述两组置信度估值中选取置信度最高的一组作为最终识别结果。The first selection sub-module is configured to select the group with the highest confidence from the two sets of confidence estimates as the final recognition result.
  27. 根据权利要求24所述的木板识别装置,其中,还包括:The wood board identification device according to claim 24, further comprising:
    踢腿模块,被配置为根据所述木板的移动速度获得所述木板的踢腿时机。The kick leg module is configured to obtain a kick timing of the board according to a moving speed of the board.
  28. 根据权利要求24所述的木板识别装置,其中,所述识别模块,包括:The wood board identification device according to claim 24, wherein the identification module comprises:
    第二识别子模块,被配置为根据所述二维图像以及训练好的边界识别模型,得到所述木板的边界信息;a second identification sub-module configured to obtain boundary information of the wooden board according to the two-dimensional image and the trained boundary recognition model;
    第三识别子模块,被配置为根据所述二维图像、所述边界信息以及所述木板识别模型,得到所述木板的类别以及移动速度。The third identification sub-module is configured to obtain a category of the wooden board and a moving speed according to the two-dimensional image, the boundary information, and the wood board recognition model.
  29. 根据权利要求24所述的木板识别装置,其中,所述识别模块,包括:The wood board identification device according to claim 24, wherein the identification module comprises:
    第四识别子模块,被配置为将多个不同光照条件下获得的多个所述二维图像分别输入至所述木板识别模型,得到所述木板的类别以及移动速度的多组置信度估值;a fourth identification sub-module configured to input a plurality of the two-dimensional images obtained under a plurality of different illumination conditions to the wood board recognition model respectively, to obtain a plurality of confidence estimates of the type of the board and the moving speed ;
    第二选取子模块,被配置为从所述多组置信度估值中选取置信度最高的一组作为最终识别结果。The second selection sub-module is configured to select the group with the highest confidence from the plurality of sets of confidence estimates as the final recognition result.
  30. 根据权利要求24所述的木板识别的机器学习装置,其中,还包括:A wood board-recognized machine learning apparatus according to claim 24, further comprising:
    第四获取模块,被配置为在获取所述木板的多个一维图像的同时还获取白色参考物体的多个一维图像。The fourth obtaining module is configured to acquire a plurality of one-dimensional images of the white reference object while acquiring the plurality of one-dimensional images of the wood board.
  31. 一种电子设备,其中,包括存储器和处理器;其中,An electronic device, comprising a memory and a processor; wherein
    所述存储器用于存储一条或多条计算机指令,其中,所述一条或多条计算机指令被所述处理器执行以实现权利要求1-8任一项所述的方法步骤。The memory is for storing one or more computer instructions, wherein the one or more computer instructions are executed by the processor to implement the method steps of any of claims 1-8.
  32. 一种电子设备,其中,包括存储器和处理器;其中,An electronic device, comprising a memory and a processor; wherein
    所述存储器用于存储一条或多条计算机指令,其中,所述一条或多条计算机指令被所述处理器执行以实现权利要求9-15任一项所述的方法步骤。The memory is for storing one or more computer instructions, wherein the one or more computer instructions are executed by the processor to implement the method steps of any of claims 9-15.
  33. 一种计算机可读存储介质,其上存储有计算机指令,其中,该计算机指令被处理器执行时实现权利要求1-8任一项所述的方法步骤。A computer readable storage medium having stored thereon computer instructions, wherein the computer instructions are executed by a processor to implement the method steps of any of claims 1-8.
  34. 一种计算机可读存储介质,其上存储有计算机指令,其中,该计算机指令被处理器执行时实现权利要求9-15任一项所述的方法步骤。A computer readable storage medium having stored thereon computer instructions, wherein the computer instructions, when executed by a processor, implement the method steps of any of claims 9-15.
PCT/CN2018/109106 2017-12-14 2018-09-30 Wood board identification method, machine learning method and device for wood board identification, and electronic device WO2019114380A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201711340401.1A CN107944504B (en) 2017-12-14 2017-12-14 Board recognition and machine learning method and device for board recognition and electronic equipment
CN201711340401.1 2017-12-14

Publications (1)

Publication Number Publication Date
WO2019114380A1 true WO2019114380A1 (en) 2019-06-20

Family

ID=61944188

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/109106 WO2019114380A1 (en) 2017-12-14 2018-09-30 Wood board identification method, machine learning method and device for wood board identification, and electronic device

Country Status (2)

Country Link
CN (1) CN107944504B (en)
WO (1) WO2019114380A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111898525A (en) * 2020-07-29 2020-11-06 广东智媒云图科技股份有限公司 Smoke recognition model construction method, smoke detection method and smoke detection device
SE2151276A1 (en) * 2021-10-20 2023-04-21 Renholmen Ab AUTOMATIC TIMBER SORTING PLANT

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107967491A (en) * 2017-12-14 2018-04-27 北京木业邦科技有限公司 Machine learning method, device, electronic equipment and the storage medium again of plank identification
CN107944504B (en) * 2017-12-14 2024-04-16 北京木业邦科技有限公司 Board recognition and machine learning method and device for board recognition and electronic equipment
CN109249300B (en) * 2018-10-25 2021-01-01 北京木业邦科技有限公司 Wood processing control method, wood processing control device, electronic equipment and storage medium
CN109409428A (en) * 2018-10-25 2019-03-01 北京木业邦科技有限公司 Training method, device and the electronic equipment of plank identification and plank identification model
CN109886092B (en) * 2019-01-08 2024-05-10 平安科技(深圳)有限公司 Object recognition method and device
JP2020121503A (en) * 2019-01-31 2020-08-13 セイコーエプソン株式会社 Printer, machine learning device, machine learning method and printing control program
CN109978867A (en) * 2019-03-29 2019-07-05 北京百度网讯科技有限公司 Toy appearance quality determining method and its relevant device
CN110428409B (en) * 2019-07-31 2023-07-04 海南广营喜福科技有限公司 Furniture quality inspection method and system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106096932A (en) * 2016-06-06 2016-11-09 杭州汇萃智能科技有限公司 The pricing method of vegetable automatic recognition system based on tableware shape
CN107079071A (en) * 2014-10-30 2017-08-18 惠普发展公司,有限责任合伙企业 Determine the coordinate of scan stripes
CN107437094A (en) * 2017-07-12 2017-12-05 北京木业邦科技有限公司 Plank method for sorting and system based on machine learning
CN107944504A (en) * 2017-12-14 2018-04-20 北京木业邦科技有限公司 Plank identifies and machine learning method, device and the electronic equipment of plank identification

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001053496A (en) * 1999-08-06 2001-02-23 Matsushita Electric Ind Co Ltd Electronic component mounting method
US6624883B1 (en) * 2000-09-28 2003-09-23 National Research Council Of Canada Method of and apparatus for determining wood grain orientation
JP4544199B2 (en) * 2006-05-15 2010-09-15 ソニー株式会社 Image encoding apparatus and method, and image decoding apparatus and method
CN102937599B (en) * 2012-10-25 2015-01-07 中国科学院自动化研究所 Non-destructive testing systems and method used for detecting a metal-containing object through X-ray detection
CN103338325A (en) * 2013-06-14 2013-10-02 杭州普维光电技术有限公司 Chassis image acquisition method based on panoramic camera
CN103903012A (en) * 2014-04-09 2014-07-02 西安电子科技大学 Polarimetric SAR data classifying method based on orientation object and support vector machine
CN104134234B (en) * 2014-07-16 2017-07-25 中国科学技术大学 A kind of full automatic three-dimensional scene construction method based on single image
US9588098B2 (en) * 2015-03-18 2017-03-07 Centre De Recherche Industrielle Du Quebec Optical method and apparatus for identifying wood species of a raw wooden log
CN106596575A (en) * 2016-12-15 2017-04-26 南通维新自动化科技有限公司 Wood plate surface defect detection device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107079071A (en) * 2014-10-30 2017-08-18 惠普发展公司,有限责任合伙企业 Determine the coordinate of scan stripes
CN106096932A (en) * 2016-06-06 2016-11-09 杭州汇萃智能科技有限公司 The pricing method of vegetable automatic recognition system based on tableware shape
CN107437094A (en) * 2017-07-12 2017-12-05 北京木业邦科技有限公司 Plank method for sorting and system based on machine learning
CN107944504A (en) * 2017-12-14 2018-04-20 北京木业邦科技有限公司 Plank identifies and machine learning method, device and the electronic equipment of plank identification

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111898525A (en) * 2020-07-29 2020-11-06 广东智媒云图科技股份有限公司 Smoke recognition model construction method, smoke detection method and smoke detection device
SE2151276A1 (en) * 2021-10-20 2023-04-21 Renholmen Ab AUTOMATIC TIMBER SORTING PLANT
WO2023068979A1 (en) * 2021-10-20 2023-04-27 Renholmen Ab An automatic wood sorting facility

Also Published As

Publication number Publication date
CN107944504B (en) 2024-04-16
CN107944504A (en) 2018-04-20

Similar Documents

Publication Publication Date Title
WO2019114380A1 (en) Wood board identification method, machine learning method and device for wood board identification, and electronic device
CN107437094B (en) Wood board sorting method and system based on machine learning
US20240118218A1 (en) Stroboscopic stepped illumination defect detection system
CN107832780B (en) Artificial intelligence-based wood board sorting low-confidence sample processing method and system
CN104034638B (en) The diamond wire online quality detecting method of granule based on machine vision
CN111612737B (en) Artificial board surface flaw detection device and detection method
CN113884497B (en) FPCA (focal plane array) fly shooting detection method based on composite light source
CN108267455B (en) Device and method for detecting defects of printed characters of plastic film
US11568629B2 (en) System and method for finding and classifying patterns in an image with a vision system
CN102253048A (en) Machine vision detection method and system for detection of various products
CN206772843U (en) The classified detection system with reference to the defects of CCD line scan cameras and deep learning
KR20200084940A (en) CNN(Convolutional Neural Network) based pest and damage fruit classification device and method
CN107891012B (en) Pearl size and circularity sorting device based on equivalent algorithm
US8315457B2 (en) System and method for performing multi-image training for pattern recognition and registration
JP2021515885A (en) Methods, devices, systems and programs for setting lighting conditions and storage media
CN109406527A (en) A kind of miniature video camera module group lens subtle appearance defect detecting system and method
KR20210004162A (en) Automatic Data Set Generation Device and SW and their Control Method for AI Machine Learning Learning
CN207222383U (en) Plank sorting system
CN116843615B (en) Lead frame intelligent total inspection method based on flexible light path
CN116678898B (en) Generalized wafer defect detection method, system, equipment and medium
CN105910534B (en) Product of rubber and plastic geometric measurement system
CN112446421A (en) Silkworm cocoon counting and identifying method based on machine vision
CN108176603A (en) The more code name recognition methods of engine link and its automatic sorting apparatus
CN209550027U (en) Disposable paper urine pants intelligent sorting system based on computer vision
CN207996826U (en) Plank sorting system

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18887396

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 23/09/2020)

122 Ep: pct application non-entry in european phase

Ref document number: 18887396

Country of ref document: EP

Kind code of ref document: A1