A kind of golf localization method and device
Technical field
The application belongs to sports field, specifically, relates to a kind of golf localization method and dress
Put.
Background technology
Golf, as a fashion, popular Leisure Sport amusement project, has attracted
Increasing people participates in.And golf driving cages is often the only way which must be passed of player, but exercise
The swing exercise action repeated in can make again player feel uninteresting and dull, it is impossible to transfers practising a ball game of player
Enthusiasm, greatly reduces the efficiency of exercise.
In order to transfer the exercise enthusiasm of sportsman and improve the exercise efficiency of sportsman, most of courts all can be drawn
Entering scoring, the golf getting sportsmen is marked.At present golf is marked
Mode, be the most mainly determined according to position in greens of the falling sphere point of golf
Efficiently it is accurately positioned the falling sphere point position of golf, to improve golf scoring accuracy, becomes this
The technical problem that skilled person is in the urgent need to address.
Summary of the invention
In view of this, technical problems to be solved in this application there is provided a kind of golf localization method
And device, improve golf positional accuracy and location efficiency.
In order to solve above-mentioned technical problem, this application discloses a kind of golf localization method, including:
Acquisition arranges T-ground, any one greens corresponding the fruit of greens that gathers of image capture device
Ridge image;Wherein, arranging multiple image capture device in described court, each greens correspondence is at least
One image capture device, for gathering the greens image of described greens;
Identify described greens image, detect whether to there is Unidentified golf;
When detection exists Unidentified golf, calculate described golf falling sphere in described greens
The positional information of point;
Determine described golf corresponding make position all-in-one;Wherein, each is beaten position and arranges a dozen positions one
Body machine;
Sending described positional information to described position all-in-one of beating, described position all-in-one of beating is for according to described
Positional information carries out golf scoring.
Preferably, the corresponding multiple image capture devices of each greens;
Described identification described greens image, detects whether that there is Unidentified golf includes:
The greens image that any one corresponding for described greens image capture device currently gathers is gathered with it
Previous Zhang Guoling image compare, detect whether to there are differences a little;
When detection there are differences, identify whether described discrepancy is golf.
Preferably, beat, from difference, the golf color difference that position impacts out;
The described position all-in-one of beating determining that described golf is corresponding includes:
Identify described golf color, determine and corresponding with described golf color make position all-in-one.
Preferably, described acquisition arranges T-ground, the image capture device collection that any one greens is corresponding
Greens greens image before, described method also includes:
When receiving arbitrary impact message beaten and send when position all-in-one detection golf is impacted, trigger
Each image capture device arranging T-ground gathers the greens image of greens.
A kind of golf positioner, including arranging multiple image capture devices of T-ground, each
Individual greens at least one image capture device corresponding, for gathering the greens image of described greens;With described
The image processing equipment that image capture device connects;And be separately positioned on each beaten in bit location and beat
Position, be connected with described image processing equipment multiple makes position all-in-one;
Described image capture device includes the greens image of greens for gathering;
Described image processing equipment is for obtaining the institute that image capture device corresponding to any one greens gathers
State the greens image of greens;Identify described greens image, detect whether to there is Unidentified golf;
When detection exists golf, calculate the position letter of described golf falling sphere point in described greens
Breath;Determine described golf corresponding make position all-in-one;Described positional information is sent and beats position to described
All-in-one;
Described position all-in-one of beating is for obtaining the positional information that described image processing equipment sends;According to described
Positional information carries out golf scoring.
Preferably, described position all-in-one of beating includes calculating equipment, radar module and batting detection module;
Described batting detection module is used for detecting whether golf is impacted;
Described radar module is used for following the tracks of described golf, and entering the falling sphere point of described golf
Row location;
Described calculating equipment is for being impacted, at described height at described batting detection module detection golf
Golf ball, by the Preset Time after impacting, does not receives the position letter that described image processing equipment sends
During breath, obtain the radar fix letter of the described golf T-ground falling sphere point of described radar module location
Breath, and carry out golf scoring according to described radar fix information;It is impacted at described golf
After Preset Time in, receive described image processing equipment send positional information time, according to institute's rheme
Confidence breath carries out golf scoring.
Preferably, the centrally disposed marker of described greens;Gao Er is there is in described image processing equipment in detection
During husband's ball, the positional information of falling sphere point is specifically in described greens to calculate described golf:
When detection exists Unidentified golf, calculate described golf in described greens, phase
Positional information to the falling sphere point at described greens center;
Described calculating equipment carries out golf according to described positional information and marks specifically:
Described positional information is converted to the dislocation in described radar module correspondence coordinates computed system
Information, and carry out golf scoring according to described dislocation information.
Preferably, beat, from difference, the golf color difference that position impacts out;Described image processing equipment is true
What fixed described golf was corresponding makes position all-in-one specifically:
Identify described golf color, determine and corresponding with described golf color make position all-in-one.
Preferably, the corresponding multiple image capture devices of each greens;
In greens image described in described image processing equipment identification, detect whether to there is golf concrete
It is:
The greens image that any one corresponding for described greens image capture device currently gathers is gathered with it
Previous Zhang Guoling image compare, detect whether to there are differences a little;When detection there are differences,
Identify whether described discrepancy is golf.
Preferably, described position all-in-one of beating is additionally operable to detect golf when being impacted, at described image
Reason equipment sends impact message;
Described image processing equipment is additionally operable to get arbitrary described impact message playing position all-in-one transmission
Time, trigger described image capture device and gather greens image.
Compared with prior art, the application can obtain and include techniques below effect:
The greens image of greens is included, by described by the image capture device collection disposing T-ground
Greens image is identified, and can effectively detect whether to exist Unidentified golf, and golf
The falling sphere point of ball, obtains falling sphere point positional information in greens such that it is able to calculate, and this positional information is i.e.
May be used for realizing golf is marked.Gao Er i.e. can be the most effectively positioned by image recognition
Husband's ball, improves setting accuracy and location efficiency.
Certainly, the arbitrary product implementing the application must be not necessarily required to reach all the above skill simultaneously
Art effect.
Accompanying drawing explanation
Accompanying drawing described herein is used for providing further understanding of the present application, constitutes of the application
Point, the schematic description and description of the application is used for explaining the application, is not intended that the application's
Improper restriction.In the accompanying drawings:
Fig. 1 is the structural representation of a kind of one embodiment of golf positioner of the embodiment of the present application
Figure;
Fig. 2 is that the structure of a kind of golf another embodiment of positioner of the embodiment of the present application is shown
It is intended to;
Fig. 3 be the embodiment of the present application golf positioner in beat the structural representation of position all-in-one;
Fig. 4 is a kind of schematic diagram of golf falling sphere point position in the embodiment of the present application;
Fig. 5 is the another kind of schematic diagram of golf falling sphere point position in the embodiment of the present application;
Fig. 6 is a kind of schematic diagram of golf falling sphere point position transformational relation in the embodiment of the present application;
Fig. 7 is the another kind of schematic diagram of golf falling sphere point position transformational relation in the embodiment of the present application;
Fig. 8 is the structural representation of a kind of one embodiment of golf localization method of the embodiment of the present application
Figure;
Fig. 9 is an enforcement of a kind of processing means realizing golf location of the embodiment of the present application
The structural representation of example.
Detailed description of the invention
Presently filed embodiment is described in detail, thereby to the application below in conjunction with drawings and Examples
How application technology means solve technical problem and reach the process that realizes of technology effect and can fully understand
And implement according to this.
Technical scheme is primarily adapted for use in golf driving cages, by location golf, with reality
The golf now got sportsman is marked, and certainly, the application also not only limits and golf white silk
Practise field and golf is marked, any application scenarios needing to position golf, all can use
Technical scheme realizes.
Current golf location mode, it is common that use the mode of radar tracking location, by environment because of
The impact of the reasons such as element, degree of accuracy still cannot ensure.
In order to provide golf setting accuracy, inventor is through a series of skills researching and proposing the application
Art scheme, in the embodiment of the present application, arranges multiple image capture device, each greens pair in court
Answer at least one image capture device, for gathering the greens image including described greens, thus by right
The greens image of the image capture device collection that any one greens is corresponding is identified, and can effectively detect institute
State and in greens, whether there is Unidentified golf, and the falling sphere of described Unidentified golf
Point, obtains falling sphere point positional information in described greens such that it is able to calculate, and this positional information is the most permissible
For realization, golf is marked.Golf i.e. can be the most effectively positioned by image recognition
Ball, improves setting accuracy and location efficiency.
Below in conjunction with accompanying drawing, technical scheme is described in detail.
The structure of a kind of one embodiment of golf positioner that Fig. 1 provides for the embodiment of the present application
Schematic diagram, this device includes arranging the multiple image capture device of T-ground 101, and each greens is corresponding
At least one image capture device, sets with described image acquisition for gathering the greens image of described greens
Standby 101 image processing equipments 102 connected and be arranged on each and beat in bit location that each beats position
Multiple in 20 make position all-in-one 103, and each is beaten position 20 and is respectively provided with a dozen all-in-ones 103.
In the embodiment of the present application, described court specifically golf driving cages.
In golf driving cages, greens is usually virtual greens, with markers such as flagpoles as greens in
The heart, the diameter range of distance greens center certain distance is as greens.In the embodiment of the present application, marker can
To select flagpole, as greens center.
By arranging several annulus in virtual greens, each annulus gives different mark, i.e. can use
Mark in the golf that sportsman is impacted out.
In golf driving cages, beating position including multiple, beating bit quantity can be determined by court width.
These dozen of position may be constructed multiple beats bit location, and each is beaten bit location and includes that continuous print is multiple and beat position, no
Can be close to can also keep at a certain distance away with beating bit location.Each beats bit location can corresponding multiple fruits
Ridge, is separately positioned on distance and beats bit location 50 yards, 100 yards, 150 yards, the position of 200 yards or
Other position.Each greens only corresponding one beats bit location, and greens center correspondence beats the centre of bit location
Beat position.
In fig. 1 it is shown that one group is beaten the greens that bit location is corresponding, beat bit location and include that 5 are beaten
Position, beats position in the middle of the correspondence of greens center.
Image capture device 101 arranges T-ground, by adjusting image capture device so that image is adopted
Collection equipment can gather and obtain the greens image including greens.
Wherein, in the image capture device that court is arranged, set for gathering the image acquisition of a greens
Multiple for including, can be that each greens all disposes multiple image capture device.
In Fig. 1, it is shown that image capture device corresponding to greens can include the situation of three, its
In image capture device 101 be arranged on the centre beaten in bit location and beat a corresponding position, Ke Yishi
The roof directly over position or more high position are beaten in centre.Two other image capture device 101 is arranged on fruit
The opposition both sides in ridge, its line beats the image capture device of corresponding position, position to greens with being arranged on centre
The line near normal at center.Rectangular coordinate system can be set up with greens center for initial point, be arranged on centre
The image capture device beating corresponding position, position is Y-axis to greens center line connecting direction, vertical Y axle
Direction is X-axis.
Wherein, each greens can all be correspondingly arranged at the centre beaten in bit location and beat a corresponding position
Same image capture device, the greens image of each greens can be gathered respectively.Each fruit
Both sides, ridge independently arrange two image capture devices, are only used for gathering the greens image of described greens.
Certainly, the centre in beating bit location beat a corresponding position can also for each greens respectively solely
Erect and put an image capture device equipment, be only used for gathering the greens image of a greens.
Also being three image capture devices that each greens is independently arranged all can be according to shown in Fig. 1
Arrange.
Certainly, as another embodiment, three image capture devices being independently arranged for each greens
101 can also arrange as shown in Figure 2, and one of them is beaten in bit location as collecting device 101 is arranged on
Centre beat a corresponding position, can be middle to beat the roof directly over position or more high position.Additionally
Two image capture devices 101 are arranged on the both sides beating bit location.
It should be noted that the application not only restriction and the image capture device described in Fig. 1 or Fig. 2
Arrangement and layout quantity.The quantity of image capture device and position can be according to the actual feelings in court
Condition selects.Arbitrary image can be avoided to adopt by disposing multiple image capture devices for each greens
Collection equipment cause owing to being blocked cannot accurate acquisition to the problem of golf.
Wherein, image capture device 101 is for gathering the greens image including greens;
Image processing equipment 102 is for obtaining the institute that image capture device corresponding to any one greens gathers
State the greens image of greens;Identify described greens image, detect whether to there is Unidentified golf;
When detection exists Unidentified golf, calculate described golf falling sphere point in described greens
Positional information;Determine described golf corresponding make position all-in-one;By described golf described fruit
In ridge, the positional information of falling sphere point sends and makes position all-in-one to described;
Image capture device corresponding to any one greens can be included as the image that described greens is independently arranged
Collecting device, can also include the image capture device that each greens shares simultaneously.
Wherein, image processing equipment can include one, is connected with each image capture device.
The greens image of multiple image capture device collections that each greens is independently arranged can arrange same
One greens mark, the greens mark difference of the greens image that the image capture device of different greens gathers,
Such that it is able to facilitate greens image corresponding to the same greens of image processing equipment identification.Greens mark is permissible
For distinguishing different greens.
Wherein, the greens image of each image capture device collection can arrange image identification, thus can
To facilitate image processing equipment to distinguish the greens image that same image capture device gathers.
Additionally, as another embodiment, image processing equipment can prestore different images collection and set
The corresponding relation that standby device identification identifies with greens, image processing equipment is according to described device identification and fruit
The corresponding relation of ridge mark, determines the greens figure that image capture device equipment corresponding to any one greens gathers
Picture.
Thus when getting the greens image that any one image capture device gathers, according to image capture device
Device identification, the greens that described greens image is corresponding can be identified.According to described image capture device
Device identification, can identify the greens image that same image capture device gathers.
Certainly, image processing equipment can also include multiple, image processing equipment only with a greens
Corresponding multiple image capture devices connect.
Make position all-in-one 103 for obtaining the positional information that described image processing equipment 102 sends;According to
Described positional information carries out golf scoring.
Positional information is golf falling sphere point positional information in described greens, can carry described height
The greens mark of the falling sphere point place greens of golf ball, thus make position all-in-one and can identify that golf falls
Ball point place greens, and the positional information etc. in described greens.
Make position all-in-one to can be also used for exporting, owing to several diameter can be drawn in greens appraisal result
Different annulus, each annulus can give different marks respectively.Thus make position all-in-one can be by
The positional information that image processing equipment sends, is converted to number of rings and drop point region, thus i.e. can obtain
The mark of corresponding number of rings.Make position all-in-one and can also export golf according to number of rings and drop point region
The schematic diagram etc. of hit scoring ring.
Wherein, when image capture device corresponding to greens includes multiple, image processing equipment can be with
Time obtain multiple image capture device gather greens image, it can select any one image capture device
The greens image gathered is identified, if there is Unidentified golf in the current greens image obtained
Ball, will this Unidentified golf as the golf newly gone out by impact, and calculating location information.
If there is not Unidentified height in the greens image that any one image capture device described currently gathers
Golf ball, then can select the greens image of other image capture device collections to be identified.
Additionally, as another embodiment, image processing equipment can also be by corresponding for greens each
The greens image of individual image capture device collection is identified respectively, detects whether to there is Unidentified Gao Er
Husband's ball.Any one can be selected to there is the greens image of Unidentified golf, calculate the position of falling sphere point
Confidence ceases.
Falling sphere point in each greens image that there is Unidentified golf can certainly be calculated
Positional information, sends meeting a pre-conditioned positional information to making position all-in-one, and this is pre-conditioned
Such as can be closest to the positional information at greens center.
Image processing equipment detects whether to there is Unidentified golf, can be by any one image acquisition
The previous Zhang Guoling image that the greens image that equipment currently gathers gathers with it compares, and detects whether to deposit
At discrepancy, and when there are differences, identify whether this discrepancy is golf.
In prior art, beat the golf falling sphere dot position information that position all-in-one obtains, it is common that pass through
Radar tracking location realizes, and degree of accuracy cannot ensure, and in the present embodiment, by arranging T-ground
Image capture device, gather and include the greens image of greens, image processing equipment greens image is entered
Row identifies, can effectively detect whether to exist golf, and the falling sphere point of golf, thus can
Falling sphere point positional information in greens is obtained, by positional information transmission to making position all-in-one, i.e. to calculate
May be used for golf is marked.Golf i.e. can be the most effectively positioned by image recognition
Ball, improves setting accuracy and location efficiency.
Wherein, make position all-in-one and i.e. can use the existing all-in-one beaten and arrange in position, commented by integrated
Divide function so that the positional information of image processing equipment can be obtained, it is possible to carry out according to positional information
Golf is marked.Certainly, beating in the all-in-one of position can also the portion such as video camera of integrated collection slance
Part, makes position all-in-one and can also arrange different exercise mode according to user's request, practises mould in difference
In formula, golf appraisal result can be different, and making position all-in-one can be by the Gao Er obtained that bats each time
Husband's ball appraisal result preserves, same as the prior art, repeats no more.
Wherein, image processing equipment calculates described golf positional information of falling sphere point in described greens
Specifically calculate described golf in described greens, the position of the falling sphere point at the most described greens center
Information.
Identify greens center for convenience, at the centrally disposed marker of greens, such as flagpole, hang above flagpole
Flag, flagpole has certain altitude, such as 1.5 meters.
Wherein, include multiple beating position owing to beating bit location, in order to identify golf corresponding beat position one
Machine, can use the golf of different colours, and each beats the corresponding color of position all-in-one, different
Beat color corresponding to position all-in-one different, can only from the golf color playing position impact making position all-in-one
For beating position all-in-one corresponding color.
Therefore, image processing equipment determine described golf corresponding make position all-in-one specifically:
Identify described golf color, determine and corresponding with described golf color make position all-in-one.
Wherein, image processing equipment detect Unidentified golf can in conjunction with golf color and
Falling sphere point positions etc. realize.
As another embodiment, as it is shown on figure 3, with in Fig. 1 or Fig. 2 make position all-in-one 103 can
To include calculating equipment 201, radar module 202 and batting detection module 203.
Described batting detection module 203 is used for detecting whether golf is impacted;
Described radar module 202 is used for following the tracks of described golf, and the falling sphere point to described golf
Carrying out position;Radar module 202 can be constantly in tracking mode.
Described calculating equipment 201 is for being impacted, in institute at described batting detection module detection golf
State golf by the Preset Time after impacting, do not receive the position that described image processing equipment sends
During confidence breath, obtain the radar fix of the described golf T-ground falling sphere point of described radar module location
Information, and carry out golf scoring according to described radar fix information;Impacted at described golf
In Preset Time afterwards, when receiving the positional information that described image processing equipment sends, according to described
Positional information carries out golf scoring.
Calculating equipment by the Preset Time after impacting, does not receives described image procossing at golf
During the positional information that equipment sends, then may determine that golf does not falls within greens, i.e. can pass through thunder
Reach module and obtain radar fix information, to determine the falling sphere point position of golf, utilize radar fix to believe
Breath carries out golf scoring.
As another embodiment, calculating equipment can be by presetting after impacting at described golf
In time, when receiving the positional information that described image processing equipment 102 sends, believe according to described position
Breath carries out golf scoring;And if at described golf by the Preset Time after impacting, not
When receiving the positional information that described image processing equipment 102 sends, then can directly determine golf
Appraisal result, such as must be divided into 0 or some preset relatively low mark etc..
The compositions such as batting detection module 203 can be by sound induction apparatus, optical inductor, shell mechanism;Right
The batting each time of player senses, and batting signal is sent to calculating equipment, the most normally bats
The worst batting, calculating equipment i.e. can obtain whether golf is impacted.
Radar module 202 follows the tracks of described golf, and fixed to the carrying out of the falling sphere point of described golf
Position can be specifically tracking golf, and measures the point of the falling sphere after batting and falling sphere point and radar module
The batting deflection angle of vertical direction.Radar module is positioned at beats position, it is hereby achieved that falling sphere point distance beats position
Distance and the relatively described batting deflection angle beating position of falling sphere point, thus described distance is beaten the distance of position
And the relatively described batting deflection angle beating position, be converted to corresponding number of rings, i.e. can obtain golf
Scoring mark.
Calculating equipment can also is that according to radar fix information, determines the position letter that image processing equipment sends
The greens at golf falling sphere point place in breath, such that it is able to the position letter sent according to image processing equipment
Breath carries out golf scoring.
Wherein, owing to annulus can be drawn centered by greens center, accordingly, as a kind of possible reality
Existing mode, image processing equipment 102 calculates the positional information obtained, and this positional information can be polar coordinate
Polar coordinate in system, these polar coordinate with described greens center as limit, limit point to multiple in beating in position
Between to beat the ray of position be pole axis.
As shown in Figure 4, the positional information of falling sphere point B can be expressed as footpath, pole ρ and polar angle θ.Pole
Footpath ρ is the falling sphere point distance to greens center, and polar angle θ is falling sphere point and the line at greens center and pole axis
Between clockwise angle.
Image processing equipment identification pole axis for convenience, can arrange label symbol in greens, by figure
As identifying, acquisition pole axis position can be identified, such that it is able to calculate obtain footpath, pole ρ corresponding to falling sphere point with
And polar angle θ.
As the implementation that another is possible, image processing equipment 102 calculates the positional information obtained,
This positional information can be the coordinate points in rectangular coordinate system, rectangular coordinate system with greens center as initial point,
Greens center is pointed to and beat the centre of bit location to be beaten a direction is Y-axis, and the either direction of vertical Y axle is X
Axle.
As shown in Figure 5, the positional information of falling sphere point B can be expressed as (X1, Y1).
Greens center can be by identifying that the marker in image determines.
Owing to radar fix information includes that falling sphere point distance beats the distance of position and falling sphere point is fought each other position mutually
Batting deflection angle.
Therefore to convenient unified calculation, data can be unified.Making position all-in-one can be by radar
Location information is converted to polar coordinate in polar coordinate system or the coordinate in rectangular coordinate system.
It is, of course, also possible to be that described positional information is converted to the translation bit in radar module respective coordinates system
Confidence ceases, and i.e. falling sphere point distance beats the distance of position and falling sphere point is fought each other the batting deflection angle of position mutually, thus
Golf scoring can be carried out with specific reference to described dislocation information.
The calculation of dislocation is exemplified below.
Assume that beating bit location for one includes that 5 are beaten position, 3# beat position for centre beat position, it is assumed that golf from
1# beats position and impacts out.
In polar coordinate system, as shown in Figure 6, it is assumed that the position of the falling sphere point B that image processing equipment obtains
Confidence breath is for (ρ, θ), by the positional information of described falling sphere point B and falling sphere point place greens
Greens mark sends to making position all-in-one.Make position all-in-one to be changed by the positional information of falling sphere point B,
Dislocation information includes that falling sphere point distance beats distance Dx of position and fight each other the mutually batting of position of falling sphere point is inclined
Corner Ax.
Wherein, beat after position all-in-one determines golf falling sphere point place greens, it is known that D1 is 1#
Beat position and beat the distance of position to 3#;Da1 is that 1# beats the position distance to greens center;Da3 is that 3# beats position and arrives
The distance at greens center;Aa1 is that 1# beats position and direction of stroke angle, namely direction of stroke beats position with 1#
The angle of vertical direction;The polar coordinate of the falling sphere point that (ρ, θ) provides for image processing equipment.
Then understand and can be formed triangle by Da1, ρ, and Dx;
∠ β=(360-∠ ρ)+Aa1;
Placement and 1# beat the distance of positions from Dx2=ρ2+Da12-2* ρ * Da1*COS (β), can solve
Obtain Dx;
Angle ∠ γ: ρ of Da1 Yu Dx2=Dx2+Da12-2Dx*Da1*COS (γ), can solve and obtain
Obtain γ;
Then batting deflection angle Ax=Aa1+ γ.
Make position all-in-one and dislocation information can be reconverted into number of rings etc., i.e. can carry out golf
Scoring.
In rectangular coordinate system, as shown in Figure 7, it is assumed that the position of the falling sphere point B that image processing equipment obtains
Confidence breath is (X1, Y1), in order to be changed by the positional information of falling sphere point B, translation bit confidence
Breath includes that falling sphere point distance beats distance Dx of position and falling sphere point is fought each other batting deflection angle Ax of position mutually.
Beat position beat the distance of position to 3# it is known that D1 is 1#;
Da1 is that 1# beats the position distance to greens center;
Da3 is that 3# beats the position distance to greens center;
Aa1 is that 1# beats position and direction of stroke angle, namely beats the angle of a vertical direction with 1#;
The polar coordinate of the falling sphere point that (X1, Y1) provides for image processing equipment.
Then understand:
Falling sphere point B to 1# beats Y-axis vertical dimension Yx=Da3-Y1 of position;
Falling sphere point B to 1# beats X-axis lateral separation Xx=D1+X1 of position;
Xx, Yx, Dx form right angled triangle;
Can obtain, placement B Yu 1# beats the distance of positions from Dx2=Xx2+Yx2, i.e. can solve acquisition
Dx
Batting deflection angle tan (Ax)=Xx/Yx;I.e. can solve acquisition Ax.
Wherein, as another embodiment, when image capture device corresponding to greens includes multiple;
Image processing equipment 102 identifies in described greens image, and detecting whether to there is Unidentified golf can
With specifically:
The greens image currently gathered by any one corresponding for described greens image capture device is corresponding
Reference picture compare, detect whether to there is golf;Wherein, described reference picture can be
Do not include the greens image of golf.
Wherein, first fruit that any one image capture device described can specifically be gathered by reference picture
Ridge image is as reference picture.
Certainly, in order to improve recognition accuracy further, reducing environmental effect, this reference picture can be
The greens image of previous of the current greens image gathered that described any image collecting device gathers.
Therefore as another embodiment, image processing equipment 102 identifies in described greens image, detection
Whether there is Unidentified golf can be specifically:
The greens image that any one corresponding for described greens image capture device currently gathers is gathered with it
Previous Zhang Guoling image compare, detect whether to there are differences a little;
When detection there are differences, identify whether described discrepancy is golf.
If described discrepancy is golf, be Unidentified golf, newly gone out by impact and
Fall the golf in greens.
The image capture device corresponding due to greens includes multiple, described there is golf in detection
Time, calculate described golf positional information of falling sphere point in described greens and may is that
Select any one to there is the greens image of unidentified golf, calculate described golf described
The positional information of falling sphere point in greens.
Can certainly calculate and obtain from there is the greens image of unidentified golf according to each
Described golf in the positional information of falling sphere point, selects any one positional information to send in described greens
To making position all-in-one.
Wherein, as another embodiment, when detection exists golf, described golf is calculated
In described greens, the positional information of falling sphere point may is that
When detection exists golf, calculate and select the positional information of numerical value minimum as described Gao Er
Husband's ball is the positional information of falling sphere point in described greens.
Such as, when the positional information of falling sphere point B can be expressed as (X1, Y1) in rectangular coordinate system,
Assume to include three image capture devices, arrange as shown in fig. 1, including being arranged on the image beating position end
Collecting device and be arranged on the image capture device of greens both sides.
Image processing equipment can obtain three greens images, it is possible to obtain the falling sphere point of three golf
Coordinate.Now three groups of coordinates can be compared, select X-axis numerical value minimum or Y-axis is minimum
One group of coordinate as described golf positional information of falling sphere point in described greens.
Make position all-in-one to send impact to image processing equipment disappear when detecting golf and being impacted
Breath.
The equipment that specifically calculates, can be to figure when described batting detection module detection golf is impacted
As processing equipment sends impact message.
When image processing equipment is additionally operable to get arbitrary described impact message playing position all-in-one transmission, touch
Send out image capture device described and gather greens image.Adopt such that it is able to obtain the image for any one greens
The greens image of the described greens that collection equipment gathers.
Such that it is able to first the greens image gathered by described image capture device is as reference picture, will
Subsequently received greens image compares with reference picture successively, directly obtains there are differences a little
Greens image, this discrepancy i.e. can confirm as golf.
Wherein, owing to can bat from multiple positions of beating simultaneously, image processing equipment is according to discrepancy
Number, can detect the golf that there are multiple Unidentified different colours, it is possible to calculate acquisition respectively
The falling sphere dot position information of each unidentified golf;According to golf color, each is high
What the falling sphere dot position information of golf ball sent to corresponding color makes position all-in-one.
By the embodiment of the present application, court arranges at least one image capture device for each greens,
Gathering the greens image including described greens, image processing equipment is by the greens figure to image capture device
As being identified, can effectively detect whether to exist golf, and the falling sphere point of golf, from
And acquisition falling sphere point positional information in greens can be calculated, the transmission of this positional information is to beating position one
Machine, makes position all-in-one and can position golf ball position, thus i.e. may be used for realizing entering golf
Row scoring.Can the most effectively position golf by image recognition, improve setting accuracy and determine
Position efficiency.
The flow process of a kind of one embodiment of golf localization method that Fig. 8 provides for the embodiment of the present application
Figure, this embodiment technical scheme can be applied particularly to golf positioner as shown in Figure 1 or 2
In image processing equipment in.
The method can include following step:
801: obtain and arrange T-ground, it is described that image capture device corresponding to any one greens gathers
The greens image of greens.
Wherein it is possible to obtain in real time, the greens image that the image capture device of T-ground gathers is set.
Can also be receiving arbitrary impact beaten and send when all-in-one detection golf in position is impacted
During message, first trigger each image capture device collection greens image that T-ground is set, thus
I.e. can obtain the greens image that image capture device gathers.
Image capture device can use common camera, high-speed camera, DV, photographing unit
Deng optical imaging apparatus.Equipment has high magnification zoom function, has real-time data transmission function.Pass through
Adjust the parameters such as proper focal length so that can gather and obtain the greens image including greens.
Image capture device can include multiple, such that it is able to avoid only one of which image capture device due to
The problem that odjective cause does not collects golf such as block, it is ensured that detection degree of accuracy.
The installation site of image capture device can set according to practical situation, need to guarantee to gather acquisition
Greens image including greens.
Wherein, in order to reduce wiring distance, when installation equipment and repair apparatus, do not affect court operation, can
Position end is beaten to be respectively provided with by image capture device.
802: identify described greens image, detect whether to there is Unidentified golf;If it is,
Perform step 803 if it does not, step 801 can be returned to be continued executing with.
803: calculate described golf positional information of falling sphere point in described greens.
Wherein it is possible to the specifically current greens image of collection compares with the previous Zhang Guoling image of collection
Relatively, detect whether to there are differences a little;
When detection there are differences, identify whether described discrepancy is golf.
Owing to different sportsmen may be from multiple position impact golf of beating, therefore, by identifying described greens
Image, may detect that multiple Unidentified golf.
Wherein, when image capture device includes multiple, each image capture device can be gathered
In greens image, compare with the previous Zhang Guoling image each gathered, detect whether to exist unidentified
Golf.
Then when detection exists golf, calculate described golf position of falling sphere point in described greens
Confidence breath may is that
Select any one to there is the greens image of unidentified golf, calculate described golf described
The positional information of falling sphere point in greens.
Described positional information can represent with polar coordinate representation or rectangular coordinate, specifically may refer to above
Described in, do not repeat them here.
804: determine described golf corresponding make position all-in-one.
Wherein, each is beaten position and arranges a dozen all-in-ones.
Owing to different sportsmen may play position impact golf from multiple, there is multiple Unidentified height in detection
During golf ball, determine for convenience golf corresponding make position all-in-one.Require to play position impact from difference
The golf color gone out is different;
Therefore, the described position all-in-one of beating determining that described golf is corresponding may is that
Identify described golf color, determine and corresponding with described golf color make position all-in-one.
805: send described positional information to described position all-in-one of beating, described position all-in-one of beating is for root
Golf scoring is carried out according to described positional information.
In the present embodiment, by the image capture device arranged for each greens in court, collection includes
The greens image of greens, is identified greens image by image processing equipment, can effectively detect whether
There is golf, and the falling sphere point of golf, obtain falling sphere point in greens such that it is able to calculate
Positional information, by positional information transmission to making position all-in-one, i.e. may be used for golf is commented
Point.The image quality of image capture device is not affected by environmental change, i.e. can be quick by image recognition
Effectively position golf, improve setting accuracy and location efficiency.
Corresponding with embodiment illustrated in fig. 8, as it is shown in figure 9, present invention also provides one to realize golf
The processing means of ball location, this processing means can be golf as shown in Figure 1 or 2 with concrete configuration
In image processing equipment in ball positioner.
This processing means may include that
Image acquisition unit 901, arranges T-ground for acquisition, and image corresponding to any one greens is adopted
The greens image of the described greens that collection equipment gathers;
First recognition unit 902, is used for identifying described greens image, detects whether to there is golf;
Position calculation unit 903, for when detection exists golf, calculates described golf and exists
The positional information of falling sphere point in described greens;
Second recognition unit 904, for determine described golf corresponding make position all-in-one;Wherein,
Each is beaten position and arranges a dozen all-in-ones;
Position transmitting element 905, for described positional information is sent to described position all-in-one of beating, described
Make position all-in-one for carrying out golf scoring according to described positional information.
Wherein, beat, from difference, the golf color difference that position impacts out;Described second recognition unit is concrete
Can be to identify described golf color, determine and corresponding with described golf color beat position integrally
Machine.
Image capture device corresponding to any one greens can include multiple, and the first recognition unit can be concrete
It is that any one image capture device in image capture device corresponding for any one greens is currently gathered greens
The previous Zhang Guoling image that image gathers with it compares, and detects whether to there are differences a little;Deposit in detection
When discrepancy, identify whether described discrepancy is golf.
The most described position calculation unit can be to select any one to there is the greens figure of unidentified golf
Picture, calculates described golf positional information of falling sphere point in described greens.
This device can also include trigger collection unit, is used for receiving arbitrary position all-in-one of beating and detects Gao Er
During the impact message sent when husband's ball is impacted, trigger the image capture device collection being arranged on greens center
Greens image, it is possible to the image capture device that triggering image acquisition unit obtains any one greens corresponding is adopted
The greens image of collection.
By the embodiment of the present application, utilize the greens image that image capture device gathers, it is achieved that golf
Ball identification and the location of falling sphere point, improve setting accuracy, and utilize previous Zhang Guoling image to currently
The greens image obtained compares, and identifies golf, can reduce environmental effect so that positioning accurate
Degree in 10cm (centimetre) rank, thus can improve golf setting accuracy and location efficiency,
Ensure the accuracy of golf scoring.
In a typical configuration, calculating equipment include one or more processor (CPU), input/
Output interface, network interface and internal memory.
Internal memory potentially includes the volatile memory in computer-readable medium, random access memory
(RAM) and/or the form such as Nonvolatile memory, such as read only memory (ROM) or flash memory (flash
RAM).Internal memory is the example of computer-readable medium.
Computer-readable medium includes that permanent and non-permanent, removable and non-removable media can be by
Any method or technology realize information storage.Information can be computer-readable instruction, data structure,
The module of program or other data.The example of the storage medium of computer includes, but are not limited to phase transition internal memory
(PRAM), static RAM (SRAM), dynamic random access memory (DRAM),
Other kinds of random access memory (RAM), read only memory (ROM), electrically erasable
Read only memory (EEPROM), fast flash memory bank or other memory techniques, the read-only storage of read-only optical disc
Device (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassette tape, magnetic
The storage of band magnetic rigid disk or other magnetic storage apparatus or any other non-transmission medium, can be used for storing permissible
The information being accessed by a computing device.According to defining herein, computer-readable medium does not include non-temporary
Computer readable media (transitory media), such as data signal and the carrier wave of modulation.
As employed some vocabulary in the middle of description and claim to censure specific components.This area skill
Art personnel are it is to be appreciated that hardware manufacturer may call same assembly with different nouns.This explanation
In the way of book and claim not difference by title is used as distinguishing assembly, but with assembly in function
On difference be used as distinguish criterion." bag as mentioned by the middle of description in the whole text and claim
Contain " it is an open language, therefore " comprise but be not limited to " should be construed to." substantially " refer to receive
Range of error in, those skilled in the art can solve described technical problem in the range of certain error,
Basically reach described technique effect.Additionally, " coupling " word comprise at this any directly and the most electrical
Couple means.Therefore, if a first device is coupled to one second device described in literary composition, then represent described
One device can directly be electrically coupled to described second device, or pass through other devices or couple means indirectly
It is electrically coupled to described second device.Description subsequent descriptions is to implement the better embodiment of the application,
For the purpose of right described description is the rule so that the application to be described, it is not limited to the model of the application
Enclose.The protection domain of the application is when being as the criterion depending on the defined person of claims.
Also, it should be noted term " includes ", " comprising " or its any other variant are intended to non-
Comprising of exclusiveness, so that include that the commodity of a series of key element or system not only include that those are wanted
Element, but also include other key elements being not expressly set out, or also include for this commodity or be
Unite intrinsic key element.In the case of there is no more restriction, statement " including ... " limit
Key element, it is not excluded that there is also other identical element in the commodity including described key element or system.
Described above illustrate and describes some preferred embodiments of the application, but as previously mentioned, it should reason
Solve the application and be not limited to form disclosed herein, be not to be taken as the eliminating to other embodiments,
And can be used for various other combination, amendment and environment, and can in application contemplated scope described herein,
It is modified by above-mentioned teaching or the technology of association area or knowledge.And those skilled in the art are carried out changes
Move and change is without departing from spirit and scope, the most all should be in the protection of the application claims
In the range of.