The content of the invention
It is an object of the invention to overcome the deficiencies in the prior art, and characteristic is had by oneself in itself according to billiard ball sphere, further right
Color identification device and method are optimized, and every ball acquisition time is foreshortened to 10 seconds and is thought.It is specific that one kind is provided
Billiard ball pattern identification device and method based on single color sensor.The identification device is simple in structure, accuracy is high, each several part
Harmony is good.
In order to solve the above technical problems, the specific embodiment of the invention provides a kind of billiard ball based on single color sensor
Pattern identification device, the device include:Housing;Light-shield cover is arranged on the housing, for stopping that ambient is irradiated to platform
The pickup area of ball;Sensor is arranged in the light-shield cover, for sensing the distribution of color characteristic of the pickup area;Hair
Light part is arranged in the light-shield cover, for irradiating the pickup area;And processor, it is connected, is used for the sensor
The type of the billiard ball is determined according to the distribution of color characteristic.
In the specific embodiment of the present invention, which further includes:Motion is connected to the processor, and is used
The housing is moved to a yard ball position in the type according to the billiard ball, and the in vivo institute of the shell is driven in moving process
State billiard ball rolling;And the steering engine on the housing is arranged at, it is connected to the processor, for the shell is in vivo described
Billiard ball are discharged into the code ball position.
In the specific embodiment of the present invention, which is characterized in that the identification device further includes:Support plate is arranged at described
Below motion, when the motion drives the housing movement, it is in vivo described that the support plate contacts the shell
Billiard ball, so that the billiard ball roll, so that the sensor detects multiple pickup areas of the billiard ball.
In the specific embodiment of the present invention, the steering engine is located at the both sides of the billiard ball with the sensor.
In the specific embodiment of the present invention, the light-shield cover has cylindrical shape outer.
Wherein, when gathering the distribution of color characteristic of the billiard ball, the axle center of the cylindrical shape outer passes through the billiard ball
The centre of sphere.
Wherein, when gathering the distribution of color characteristic of the billiard ball, the spherical surface of the billiard ball is close to the cylindrical shape outer,
The region of the cylindrical shape outer delineation is the pickup area.
The specific embodiment of the present invention also provides a kind of billiard ball pattern recognition methods based on single color sensor, should
Method includes:Enter the in vivo billiard ball of shell using two pillars squeezes of housing so that the billiard ball are close to light-shield cover;Utilize biography
Sensor gathers the distribution of color characteristic that the billiard ball correspond to the region of the light-shield cover;It is and true according to the distribution of color characteristic
The type of the fixed billiard ball.
Wherein, this method further includes:The region of the light-shield cover is corresponded to using the LED light irradiation billiard ball.
Wherein, this method further includes:Using motion the housing is driven to be moved on the supporting plate by rectangle track,
So that the billiard ball roll in the support plate, so that the sensor gathers the multiple regions of the billiard ball.
Wherein, this method further includes:The housing is moved to by a yard ball position according to the type of the billiard ball;And pass through
The billiard ball are discharged into the code ball position by the steering engine.
Above-mentioned specific embodiment is understood according to the present invention, a kind of billiard ball pattern identification dress based on single color sensor
It puts and method at least has the advantages that:The pattern of billiard ball is identified by color sensor, can accomplish to identify
Speed is fast, simple in structure and reliability is high, and billiard ball are not damaged in itself, moreover it is possible to improve the swing ball effect of automatic swing ball machine
Rate greatly reduces artificial usage degree.
It is to be understood that above-mentioned general description and detailed description below are merely illustrative and illustrative, not
It can the limitation scope of the invention to be advocated.
Description of the drawings
Following attached drawing is the part for specification of the present invention, depicts example embodiments of the present invention, appended attached
Figure is used for illustrating the principle of the present invention together with the description of specification.
Fig. 1 is a kind of billiard ball pattern identification device based on single color sensor that the specific embodiment of the invention provides
Overall structure figure.
Fig. 2 is a kind of billiard ball pattern identification device based on single color sensor that the specific embodiment of the invention provides
Identification schematic diagram.
Fig. 3 is a kind of billiard ball pattern identification device based on single color sensor that the specific embodiment of the invention provides
Identification schematic diagram side view.
Fig. 4 is a kind of billiard ball pattern identification device based on single color sensor that the specific embodiment of the invention provides
Light-shield cover schematic diagram.
Fig. 5 is a kind of billiard ball pattern identification device based on single color sensor that the specific embodiment of the invention provides
Circuit structure diagram.
Fig. 6 is a kind of billiard ball pattern recognition methods based on single color sensor that the specific embodiment of the invention provides
Identification path profile.
Fig. 7 is a kind of billiard ball pattern recognition methods based on single color sensor that the specific embodiment of the invention provides
Embodiment one flow chart.
Fig. 8 is a kind of billiard ball pattern recognition methods based on single color sensor that the specific embodiment of the invention provides
Embodiment two flow chart.
Fig. 9 is a kind of billiard ball pattern recognition methods based on single color sensor that the specific embodiment of the invention provides
Embodiment three flow chart.
Figure 10 is a kind of billiard ball pattern identification side based on single color sensor that the specific embodiment of the invention provides
The flow chart of the example IV of method.
Reference sign:
1- housings, 2- light-shield covers, 3- sensors, 4- illuminating parts, 5- processors, 6- motions, 7- steering engines, 8- supports
Plate, 21- cylindrical shapes outer, A- paths A, B- path B, C- billiard ball, L1- distance L1, L2- distances L2
Specific embodiment
The existing various exemplary embodiment that the present invention will be described in detail, the detailed description are not considered as the limit to the present invention
System, and it is understood as the more detailed description to certain aspects of the invention, characteristic and embodiment.
In the case of without departing substantially from the scope or spirit of the invention, the specific embodiment of description of the invention can be done more
Kind is improved and variation, this will be apparent to those skilled in the art.Other realities obtained by the specification of the present invention
It is apparent obtain for technical personnel to apply mode.Present specification and embodiment are only exemplary.
Fig. 1 is a kind of billiard ball pattern identification device based on single color sensor that the specific embodiment of the invention provides
Overall structure figure.As shown in Figure 1, billiard ball C drives housing 1 supporting inside the housing 1 of detection, using motion 6
It is moved on plate 8 by rectangle track so that billiard ball C is rolled in support plate 8, while sensor 3 gathers multiple spot on billiard ball C spherical surfaces
Data, the type of billiard ball C is determined according to data, and motion 6 drives housing 1 that billiard ball C is moved to a yard ball position;It is pre- when reaching
When determining code ball position, steering engine 7 discharges the billiard ball C in housing 1, and reaching corresponding code ball position, (code ball position is usually in support plate 8
Delta-shaped region in).As shown in Figure 2 and Figure 4, which further includes:Light-shield cover 2, sensor 3, illuminating part 4 and steering engine
7, light-shield cover 2 is mounted in PCB circuit board, and PCB circuit board is fixed with 1 phase of housing, and light-shield cover 2 irises out area in PCB circuit board
Domain is provided with sensor 3 and illuminating part 4.As shown in figure 5, the identification device also has processor 5.Wherein, light-shield cover 2 is arranged at
On housing 1, for stopping that ambient is irradiated to the pickup area of billiard ball C, light-shield cover 2 has cylindrical shape outer 21, picking platform
During the distribution of color characteristic of ball C, the spherical surface of billiard ball C is close to cylindrical shape outer 21, and the region that cylindrical shape outer 21 is drawn a circle to approve is to adopt
Collect region, so can guarantee interior UV light without exchange, and do not influence billiard ball C movements.Gather the distribution of color characteristic of billiard ball C
When, the axle center of cylindrical shape outer 21 passes through the centre of sphere of billiard ball C.Sensor 3 is arranged in light-shield cover 2, for sensing pickup area
Distribution of color characteristic.Sensor 3 is color sensor, and this color sensor can directly return to the RGB data detected,
Data characteristics is apparent, and hardware cost is low, and using simple, extra peripheral hardware and Processing Algorithm is not required.Illuminating part 4 is highlighted
LED light, illuminating part 4 are arranged in light-shield cover 2, for irradiating pickup area.Since color sensor testing principle is based on not
It shares the same light ingredient intensity of illumination, is needed in use to billiard ball C spherical surface polishings.Under open environment, ambient can be mixed into sensing
Device has an impact result, so needing to close polishing light source, keeps apart with ambient light, this ensure that the standard of testing result
True property.Processor 5 is connected with sensor 3, for determining the type of billiard ball C according to distribution of color characteristic.Steering engine 7 is arranged at housing
It on 1, is connected with processor 5, for the billiard ball C in housing 1 to be discharged into a yard ball position.As shown in figure 3, steering engine 7 and sensor 3
Positioned at the both sides of billiard ball C, two pillars on steering engine 7 and housing 1 limit billiard ball C jointly, prevent billiard ball C during rolling
It is separated with light-shield cover 2, influences the result of acquisition.In the entire motion process of acquisition, steering engine 7 is to maintain always stops billiard ball C's
State, when harvester is moved to billiard ball C placement positions, steering engine 7 will discharge that billiard ball C is allowed to fall into correspondence position.In addition,
Motion 6 is connected with processor 5, and housing 1 is moved to a yard ball position for the type according to billiard ball C.Support plate 8 is arranged at
Below motion 6, when motion 6 drives the movement of housing 1, support plate 8 contacts the billiard ball C in housing 1, so that billiard ball
C is rolled, so that sensor 3 detects multiple pickup areas of billiard ball C.Housing 1 be metal material, by sheet metal process process and
Into.Such material can make housing 1 more durable, expanded service life.
Fig. 5 is a kind of billiard ball pattern identification device based on single color sensor that the specific embodiment of the invention provides
Circuit structure diagram.In figure, steering engine 7 is blocked billiard ball by the control of processor 5, and then processor 5 controls illuminating part 4 to send light,
For detection zone to be illuminated, it is followed by subsequent processing device 5 and sensor 3 is controlled to be detected, while detection, processor 5 also controls
Motion 6 carries out desired trajectory movement, to carry out color detection to the multiple regions of billiard ball.
Fig. 6 is a kind of billiard ball pattern recognition methods based on single color sensor that the specific embodiment of the invention provides
Identification path profile.C points of billiard ball are panchromatic and half color, to complete to identify, it is necessary to the number of colours of spherical surface multiple spot the pattern of billiard ball C
According to needing to allow the point acquisitions multiple to billiard ball C Surface of sensor 3.For the position of collection point, the present invention is according to half color billiard ball C
The distribution of color characteristic of spherical surface proposes a kind of specific acquisition path, is avoided that extra collection point, improves acquisition as much as possible
Speed.The present invention is gathered with roll mode, and in support plate 8, the movement locus of housing 1 is exactly a rectangle, a length of 1/2
Ball perimeter, width are 1/4 billiard ball perimeter.Cross direction movement can be quickly through length direction movement just carries out real-time timing sampling, can
It is moved with middling speed.
Fig. 7 is a kind of billiard ball pattern recognition methods based on single color sensor that the specific embodiment of the invention provides
Embodiment one flow chart, as shown in fig. 7, using two pillars squeeze billiard ball of housing it is made to be close to light-shield cover, Ran Houli
Color acquisition is carried out to the region in light-shield cover with sensor, the type of billiard ball is finally determined according to distribution of color characteristic.
In the specific embodiment shown in the drawings, the billiard ball pattern recognition methods based on single color sensor includes:
Step 100:Enter the in vivo billiard ball of shell using two pillars squeezes of housing so that the billiard ball are close to be in the light
Cover.In specific embodiments of the present invention, after billiard ball enter housing, processor control steering engine squeeze station ball makes it be close to light-shield cover,
Prevent extraneous light from entering in light-shield cover.
Step 102:The distribution of color characteristic in the region of the light-shield cover is corresponded to using the sensor acquisition billiard ball.This hair
In bright specific embodiment, billiard ball are close on light-shield cover, and processor controls sensor to carry out color to light-shield cover overlay area
Acquisition,
Step 103:The type of the billiard ball is determined according to the distribution of color characteristic.In specific embodiments of the present invention,
Color acquisition is carried out to billiard ball by using sensor, then the color data collected is passed to processor by sensor, is located
Reason device analyzes color data, the color of final definite billiard ball.
Referring to Fig. 7, billiard ball are pressed on light-shield cover by steering engine, prevent extraneous light from entering in light-shield cover, sensor inspection
It surveys by the color in the billiard ball region of light-shield cover covering, the color data detected is then passed into processor, by processor
The type of billiard ball is determined to the analysis of distribution of color characteristic.
Fig. 8 is a kind of billiard ball pattern recognition methods based on single color sensor that the specific embodiment of the invention provides
Embodiment two flow chart, be the inspection of sensor as shown in figure 8, using the billiard ball region that is covered of LED light irradiation light-shield cover
It surveys and light source is provided.
In the specific embodiment shown in the drawings, before step 102, the billiard ball pattern based on single color sensor is known
Other method includes:
Step 101:The region of the light-shield cover is corresponded to using the LED light irradiation billiard ball.Specific embodiments of the present invention
In, the detection process of sensor is actually to need light source, and light-shield cover blocks extraneous light source, this is just needed in light-shield cover
Inside sets a light source, and necessary factor is provided for the detection of sensor.
Referring to Fig. 8, it is contemplated that the influence of surrounding environment light can make the detection of sensor deviation occur, so billiard ball table
Face area to be detected is covered with light-shield cover, prevents ambient from entering.But the detection of sensor is also required to light, so keeping off
The inside of light shield sets LED light, and polishing is carried out to billiard ball surface.
Fig. 9 is a kind of billiard ball pattern recognition methods based on single color sensor that the specific embodiment of the invention provides
Embodiment three flow chart, as shown in figure 9, allow motion drive housing on the supporting plate according to rectangular track transport
It is dynamic, so as to which sensor is allowed to collect the multiple regions of billiard ball.
In the specific embodiment shown in the drawings, before step 102, the billiard ball pattern based on single color sensor is known
Other method includes:
Step 101 ':Using motion the housing is driven to be moved on the supporting plate by rectangle track so that described
Billiard ball roll in the support plate, so that the sensor gathers the multiple regions of the billiard ball.The specific reality of the present invention
It applies in example, is moved on the supporting plate according to rectangular track, be in order to which sensor is allowed to walk one on the surface of billiard ball with 90 degree
Intersecting route can so detect the type of billiard ball to the greatest extent, improve the accuracy of identification.
Figure 10 is a kind of billiard ball pattern identification side based on single color sensor that the specific embodiment of the invention provides
The flow chart of the example IV of method, as shown in Figure 10, according to the type of the billiard ball obtained after detection, processor controlled motion mechanism
Predetermined position is moved to, then steering engine is controlled to be discharged into billiard ball on predetermined position.
In the specific embodiment shown in the drawings, after step 103, the billiard ball pattern based on single color sensor is known
Other method includes:
Step 104:The housing is moved to by a yard ball position according to the type of the billiard ball.Specific embodiments of the present invention
In, the billiard ball terminated for color acquisition according to the type of its billiard ball detected, it is necessary to classify, so detection post processing
Device moves to predetermined position according to the Type Control motion of billiard ball.
Step 105:The billiard ball are discharged by the code ball position by the steering engine.Specific embodiments of the present invention
In, after billiard ball are moved to predetermined position, controller will control steering engine to unclamp billiard ball, and billiard ball are discharged into predetermined position
It puts, this completes the identifications and classification of billiard ball.
In the embodiment of the present invention, sphere posture that billiard ball C is fallen into after housing 1 be it is random, the starting point in the path of rolling,
Direction is all random.What is considered now is the critical condition shown in Fig. 6, i.e., after billiard ball C is fallen, sensor 3 and colour circle
Outer is tangent, is moved towards the direction of Maximum Contact colored region.The corresponding route of the situation as in Fig. 6 from left to bottom right
Route A.As shown in fig. 6, light-shield cover 2 selects a diameter of 8mm in the present invention, sensor 3 is located at the centre position of light-shield cover 2, institute
Using it is tangent when route A and colour circle outer it is tangent and distance L1 is 4mm.Point on route A is in addition to numeric area
Existing " non-white ", and the route out of route A rotates counterclockwise a very big angular range is also presentation " non-white ".Because
The movement locus of housing 1 is a rectangle, and a length of 1/2 billiard ball perimeter, width is 1/4 billiard ball perimeter, so route B is route A
It is rotated by 90 ° counterclockwise, by measurement, such as Fig. 6, the straight line between the intersection point on the outer circle border of route B and the colour circle on billiard ball C
Distance L2 is 5.7mm, more than the radius 4mm of light-shield cover 2.I.e. in route B, there is the collection point of " white ".For the pole of Fig. 6
The mutually orthogonal route of a pair of limit situation can also meet while be related to " white " and " colour " remainder, so it is with generally
Property.
The foregoing is merely the schematical specific embodiment of the present invention, before the design of the present invention and principle is not departed from
It puts, the equivalent variations and modification that any those skilled in the art is made should all belong to the scope of protection of the invention.