Method and apparatus according to color and wood grain sorting timberTechnical field
The invention belongs to industrial Automatic Measurement Technique field, especially a kind of method according to color and wood grain sorting timber the invention still further relates to the equipment of realizing this method simultaneously.
Background technology
In the timber processing, in order to ensure product quality, need carry out sorting according to its color and wood grain to timber, this is because timber is natural material, with a kind of tree, and same one tree, the material of different parts, color is all different, and people then have higher requirement for timber products, and the uniformity of color and texture is the most basic requirement.
At present, man of wood-working factory is in order to satisfy the requirement of consumers in general to color, general all is to adopt artificial mode to carry out the timber sorting, the mode of this artificial separation exists some unavoidable defectives, it is inefficiency, contingency is excessive, the quality instability of sorting, add the workman and all repeating high-intensity work every day, they can both accomplish to judge accurately to be impossible to each timber to want requirement, working time one is long, the degree of contingency is just big more, just because a carelessness of twice just causes product quality to descend, causes the loss of enterprise on economy and prestige probably.
Summary of the invention
The object of the present invention is to provide a kind of method according to color and wood grain sorting timber, it adopts image recognition technology, and according to color and wood grain polytheistic classification, it is careful to classify, and algorithm is simple, and software and hardware is all realized easily.
Another purpose of purpose of the present invention also is to provide a kind of equipment according to color and wood grain sorting timber, and it not only can finish sorting work automatically, and efficiency of separation height, sorting quality are stable.
The technical solution adopted in the present invention is: a kind of method according to color and wood grain sorting timber, and it may further comprise the steps:
A) set up categorical data: according to wood color, wood grain angle of inclination and color spot ratio factor etc., set up the timber image category data that will classify, these data are stored in the memory of stored program controlled;
B) gather the timber image: absorb the timber image by video imaging apparatus, and image is sent to program control system;
C) determine the timber classification: program control system is extracted the information such as color, wood grain angle of inclination and color spot ratio of timber image, generates the timber image feature data, according to timber image category data, determines the affiliated classification of timber;
D) start sorting unit: program control system is sent control signal, and the timber sorting unit of classification sorts out this timber under starting, and perhaps starts automatic spray code spraying apparatus, the classification under this timber of sign on the timber.
In order to realize said method, the present invention also provides a kind of equipment according to color and wood grain sorting timber, it comprises timber conveyer belt, timber video imaging apparatus, some timber sorting units and program control system, video imaging apparatus is installed in the starting end of timber conveyer belt, some timber sorting units are installed in the side of video imaging apparatus downstream timber conveyer belt equally spacedly, and video imaging apparatus is connected with the program control system circuit respectively with some timber sorting units.
Described video imaging apparatus, it comprises a base, one side of base is installed the door glyph framework, on two columns of framework slideway is arranged, the light shield that is slidingly installed on the slideway, light shield installed inside illuminating lamp, fix a support above the light shield, a camera is fixed in the upper end of support, the leading screw of mounting strap wind on the crossbeam of framework, and the lower end of leading screw is installed on the nut part of light shield side.
Described timber sorting unit is an air-cylinder type timber roof fall device, it comprises cylinder, piston and piston rod, the gases at high pressure three-way magnetic valve that is connected with the program control system circuit, push pedal is installed on the top of piston rod, a gases at high pressure input of three-way magnetic valve is connected with high-pressure gas pipeline, and two gases at high pressure outputs are communicated with the front and back end of cylinder respectively.
The timber sorting unit is the mechanical part of a frequent movement, in order to increase its structural strength and durability, in two sides of cylinder gathering sill is installed, and is provided with gib block in two gathering sills, and the top of two gib blocks is fixed in the push pedal.
The present invention is according to the advantage of the method and apparatus of color and wood grain sorting timber: its adopts image recognition technology this method, and according to color, wood grain polytheistic classification, it is careful classify, can reach 200 classifications, and algorithm is simple, and software and hardware is realization easily all.This equipment adopts camera to discern wood color and wood grain, can accurately determine wood color aberration scope and wood grain type, and classification is accurately unified, has avoided manual sort's individual difference and inconsistency.This separator transports timber by conveyer belt, has improved operating efficiency.Particularly conveyer belt can be assembled very longly, in a side of conveyer belt nearly more than 200 timber sorting unit can be installed, can be very thin timber assortment, and so careful classification manually cannot realize.Described timber sorting unit adopts air-cylinder type wooden unit roof fall device, and it has simple in structure, and control is easy, the advantage that is active in one's movements.Described video imaging apparatus video imaging apparatus is an independent device, uses flexible for installation; The setting of light shield and illuminating lamp has reduced the influence of environment light source, has improved the accuracy of image recognition; The setting of the leading screw of band wind can be adjusted the spacing between camera and the timber neatly, can adapt to the sorting of different-thickness timber.
Description of drawings
Fig. 1 is the equipment perspective view of the present invention according to color and wood grain sorting timber;
Fig. 2 is the video imaging apparatus perspective view of the present invention according to the equipment of color and wood grain sorting timber;
Fig. 3 is the timber sorting unit perspective view of the present invention according to the equipment of color and wood grain sorting timber.
The specific embodiment
The present invention will be further described in detail below in conjunction with the drawings and specific embodiments.
Embodiment 1: a kind of method according to color and wood grain sorting timber, and it may further comprise the steps:
A) set up categorical data:, set up the timber image category data that will classify according to wood color, wood grain angle of inclination and color spot ratio factor.Color factors is distinguished three aberration ranks, select three representational timber to demarcate with the video imaging apparatus sampling, the demarcation color is respectively: FF9900 (R=255, G=153, B=0), F8CC34 (R=248, G=204, B=52), E3CF63 (R=227, G=207, B=99); Two ranks are distinguished at the wood grain angle of inclination, and the angle of inclination is a straight burr smaller or equal to 5 °, and angle is a twill greater than 5 °; Color spot ratio factor is divided into three ranks, and color spot (wood grain color) accounts for plate face ratio smaller or equal to 1%, and color spot accounts for plate face ratio 1~10%, and color spot accounts for plate face ratio more than or equal to 10%.(3 * 2 * 3=18) become 18 categorical datas, see the following form 1 with horizontal combination according to above-mentioned factor.
Table 1 sorting timber assortment tables of data
B) gather the timber image: absorb the timber image by video imaging apparatus, and image is sent to program control system;
C) determine the timber classification: program control system is extracted color, wood grain angle of inclination and the color spot percent information of timber image, generates the timber image feature data, according to timber image category data, determines the affiliated classification of timber; As: wherein one by the timber of sorting, generates the timber image feature data by program control system to be: the color rgb value is ECD53C (Rn=236, Gn=213, Bn=60), 4 ° at wood grain angle of inclination, color spot accounts for plate face ratio 6%.Wood grain inclination angle and color spot account for plate face ratio program can directly be judged, color factors need be demarcated color with each level of categorical data and be calculated similarity degree respectively.
S1=|R1-Rn|+|G1-Gn|+|B1-Bn|=|255-236|+|153-213|+|0-60|=139
S2=|R2-Rn|+|G2-Gn|+|B2-Bn|=|248-236|+|204-213|+|52-60|=29
S3=|R2-Rn|+|G2-Gn|+|B2-Bn|=|227-236|+|207-213|+|99-60|=54
The classification that color and rgb value by this timber of computational discrimination is F8CC34 is approaching, determines that thus it is 8 classification that this timber belongs to sequence number in the table 1.
D) start sorting unit: program control system is sent control signal, starts No. 8 timber sorting units this timber is sorted out.
Embodiment 2: as shown in Figure 1, a kind of equipment according to color and wood grain sorting timber, it comprises timber conveyer belt 1, timbervideo imaging apparatus 2, sometimber sorting units 3 and program control system,video imaging apparatus 2 is installed in the starting end of timber conveyer belt 1, sometimber sorting units 3 are installed in the side ofvideo imaging apparatus 2 downstream timber conveyer belts 1 equally spacedly, andvideo imaging apparatus 2 is connected with the program control system circuit respectively with some timber sorting units 3.As shown in Figure 2, describedvideo imaging apparatus 2, it comprises abase 21, and a side ofbase 21 is installed door glyph framework 22, on two columns of framework 22slideway 24 is arranged, alight shield 29 is slidingly installed on theslideway 24,light shield 29 installed inside illuminatinglamps 28 are fixed asupport 27 above thelight shield 29, acamera 26 is fixed in the upper end ofsupport 27, the leadingscrew 23 of mounting strap wind on thecrossbeam 25 of framework 22, the lower end of leadingscrew 23 is installed on the nut part oflight shield 29 sides.As shown in Figure 3, describedtimber sorting unit 3 is air-cylinder type wooden unit roof fall devices, it comprises cylinder 31, piston and piston rod 32, the gases at high pressure three-way magnetic valve 36 that is connected with the program control system circuit, push pedal 33 is installed on the top of piston rod 32, a gases at high pressure input 37 of three-way magnetic valve is connected with high-pressure gas pipeline, and two gases at high pressure outputs 38,39 are communicated with the front and back end of cylinder 31 respectively.Two sides at cylinder 31 are equipped with gathering sill, and the top that is provided with 34,35, two gib blocks 34,35 of gib block in two gathering sills is fixed in the push pedal 33.