CN113827945A - Billiard ball hitting assisting method - Google Patents

Billiard ball hitting assisting method Download PDF

Info

Publication number
CN113827945A
CN113827945A CN202111291921.4A CN202111291921A CN113827945A CN 113827945 A CN113827945 A CN 113827945A CN 202111291921 A CN202111291921 A CN 202111291921A CN 113827945 A CN113827945 A CN 113827945A
Authority
CN
China
Prior art keywords
determining
billiard
ball
billiards
coordinate information
Prior art date
Legal status (The legal status 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 status listed.)
Granted
Application number
CN202111291921.4A
Other languages
Chinese (zh)
Other versions
CN113827945B (en
Inventor
孙艳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nanjing Yuanming Zhenyue Technology Co ltd
Original Assignee
Shenzhen Baiguangke Technology Co ltd
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 Shenzhen Baiguangke Technology Co ltd filed Critical Shenzhen Baiguangke Technology Co ltd
Priority to CN202111291921.4A priority Critical patent/CN113827945B/en
Publication of CN113827945A publication Critical patent/CN113827945A/en
Application granted granted Critical
Publication of CN113827945B publication Critical patent/CN113827945B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63DBOWLING GAMES, e.g. SKITTLES, BOCCE OR BOWLS; INSTALLATIONS THEREFOR; BAGATELLE OR SIMILAR GAMES; BILLIARDS
    • A63D15/00Billiards, e.g. carom billiards or pocket billiards; Billiard tables
    • A63D15/006Training or aiming arrangements on billiard tables
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63DBOWLING GAMES, e.g. SKITTLES, BOCCE OR BOWLS; INSTALLATIONS THEREFOR; BAGATELLE OR SIMILAR GAMES; BILLIARDS
    • A63D15/00Billiards, e.g. carom billiards or pocket billiards; Billiard tables
    • A63D15/20Scoring or registering devices
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63BAPPARATUS FOR PHYSICAL TRAINING, GYMNASTICS, SWIMMING, CLIMBING, OR FENCING; BALL GAMES; TRAINING EQUIPMENT
    • A63B2243/00Specific ball sports not provided for in A63B2102/00 - A63B2102/38
    • A63B2243/002Billiards

Landscapes

  • Image Analysis (AREA)

Abstract

The invention discloses a billiard ball hitting auxiliary method, which comprises the following steps: determining first coordinate information of the cue ball, second coordinate information of other billiards except the cue ball and third coordinate information of the pocket opening; determining a first billiard set according to the second coordinate information and the third coordinate information; respectively generating a first auxiliary line set of cue balls and billiards in the first billiard set, and removing corresponding billiards from the first billiard set when it is determined that foreign matters exist on at least one first auxiliary line to obtain a second billiard set; determining target billiards according to the first coordinate information of the cue balls and the second coordinate information of the billiards in the second billiard ball set; generating a second auxiliary line set between the target billiards and the corresponding target pocket openings; determining batting information according to the first auxiliary line set, the second auxiliary line set and a preset billiard collision model of the target billiards. The hitting information can be conveniently and accurately acquired, and the hitting hit rate is improved.

Description

Billiard ball hitting assisting method
Technical Field
The invention relates to the technical field of billiards, in particular to a billiard ball hitting assisting method.
Background
At present, billiards are popular sports, and use a ball rod to hit a ball on a billiard table surface, and the game success or failure is determined by calculating scores. For novices, experience on billiards is reduced, and the billiards cannot be driven into a designated position, such as a pocket, so that a billiard ball hitting auxiliary method is urgently needed.
Disclosure of Invention
The present invention is directed to solving, at least to some extent, one of the technical problems in the art described above. Therefore, the invention aims to provide a billiard ball hitting auxiliary method which provides accurate hitting information for a player, facilitates hitting billiards into a specified position, improves hitting hit rate and facilitates improving hitting level of the player.
In order to achieve the above object, an embodiment of the present invention provides a billiards hitting assisting method, including:
determining first coordinate information of the cue ball and second coordinate information of other billiards except the cue ball;
acquiring third coordinate information of a bag opening on the billiard table;
determining a first billiard set according to the second coordinate information and the third coordinate information;
respectively generating a cue ball and a first auxiliary line set of billiards in the first billiard ball set, respectively judging whether foreign matters exist on the first auxiliary lines included in the first auxiliary line set, and removing corresponding billiards from the first billiard ball set when the foreign matters exist on at least one first auxiliary line to obtain a second billiard ball set;
determining target billiards according to the first coordinate information of the cue balls and the second coordinate information of the billiards in the second billiard ball set;
generating a second auxiliary line set between the target billiards and the corresponding target pocket openings;
determining batting information according to the first auxiliary line set, the second auxiliary line set and a preset billiard collision model of the target billiards.
According to some embodiments of the invention, the determining the first coordinate information of the cue ball and the second coordinate information of the billiard ball other than the cue ball comprises:
acquiring an image shot from the position right above the billiard table as an image to be identified;
extracting the characteristics of the image to be identified, and determining a plurality of circular areas;
acquiring color information of the circular area, and determining cue balls and other billiards according to the color information;
and acquiring center information of the plurality of circular areas, and determining first coordinate information of the cue ball and second coordinate information of other billiards except the cue ball according to a preset coordinate system.
According to some embodiments of the invention, obtaining third coordinate information of a pocket on the billiard table comprises:
and acquiring the center information of the bag opening, and determining the third coordinate information of the bag opening on the billiard table according to a preset coordinate system.
According to some embodiments of the invention, determining a first pool set from the second coordinate information and the third coordinate information comprises:
calculating first distance values between the billiards and each bag opening according to second coordinate information of the billiards and third coordinate information of the bag opening on the billiard table, screening out the smallest first distance value, judging whether the smallest first distance value is smaller than or equal to a preset distance value, and determining that the billiards are valid when the smallest first distance value is smaller than or equal to the preset distance value;
and respectively executing the steps on the billiards, and determining a first billiard set according to the determined effective billiards.
According to some embodiments of the invention, the determining whether there is a foreign object on the first auxiliary line included in the first auxiliary line set comprises:
graying the first auxiliary line set to obtain the gray values of the pixels on the first auxiliary line, calculating the gray difference value of the adjacent pixels, judging whether the gray difference value is greater than a preset gray difference value, counting the number of gray difference values greater than the preset gray difference value, and determining that foreign matters exist on the first auxiliary line when the number is greater than the preset number.
According to some embodiments of the invention, determining the target billiard ball according to the first coordinate information of the cue ball and the second coordinate information of the billiard balls in the second billiard ball set comprises:
and respectively calculating second distance values of the cue balls and each billiard ball in the second billiard ball set according to the first coordinate information of the cue balls and the second coordinate information of the billiard balls in the second billiard ball set, and determining the billiard ball corresponding to the smallest second distance value as the target billiard ball.
According to some embodiments of the invention, determining hitting information according to the first auxiliary line set, the second auxiliary line set and a preset billiard collision model of the target billiard comprises:
selecting a second auxiliary line positioned in the middle from the second auxiliary line set as a target second auxiliary line;
generating a simulated cue ball at the collision point of the target cue ball according to the target second auxiliary line and a preset cue ball collision model, and acquiring parameter information of the simulated cue ball;
according to the parameter information and a plurality of first auxiliary lines included in the first auxiliary line set, carrying out derivation calculation, and determining hitting parameters of the cue ball based on each first auxiliary line; and evaluating each hitting parameter, and determining hitting information according to an evaluation result.
According to some embodiments of the invention, the striking parameters comprise a striking power and a striking angle.
According to some embodiments of the invention, obtaining color information for a circular area from which cue balls and other billiard balls are determined comprises:
respectively obtaining a first color value of each pixel point in an RGB color space, wherein the first color value comprises an R channel value, a G channel value and a B channel value;
classifying pixels in a circular area, wherein a pixel point with the minimum R channel value in the first color value is taken as a first type pixel point, a pixel point with the minimum G channel value in the first color value is taken as a second type pixel point, and a pixel point with the minimum B channel value in the first color value is taken as a third type pixel point;
respectively counting the number of first-class pixels, second-class pixels and third-class pixels in the circular region, and determining the color types included in the circular region based on a preset rule according to the counted number; determining a circular region including one color type as a first type circular region, determining a circular region including two color types as a second type circular region, and determining a circular region including three color types as a third type circular region;
presetting color types included by the cue ball, determining a first circular area when the color types included by the cue ball are determined to be one, converting the first circular area from RGB color space to HIS color space, and obtaining a second color value; comparing the second color value with a first preset color value, and determining a first target circular area in the first circular area corresponding to the cue ball according to a comparison result; when the color types of the cue ball are determined to be two or three, determining a second circular area or a third circular area, and converting the second circular area or the third circular area from an RGB color space to an LAB color space to obtain a third color value; and comparing the third color value with a second preset color value, and determining a second circular area of the second type or a second target circular area in the third type corresponding to the cue ball according to the comparison result.
According to some embodiments of the invention, the individual impact parameters are evaluated, including based on a pre-constructed evaluation index system;
the method for constructing the evaluation index system comprises the following steps:
determining an evaluation index according to a preset evaluation purpose and an evaluation object;
acquiring an incidence relation between evaluation indexes, and constructing an evaluation index system according to the incidence relation;
obtaining an evaluation index sample, and calculating and determining the weight coefficient of each evaluation index in an evaluation index system based on a least square method;
evaluating the striking parameters based on the evaluation index system with the weight coefficient set to obtain an evaluation mean value, and respectively calculating the offset coefficient between the evaluation value obtained by each evaluation index in the evaluation index system and the evaluation mean value;
and correcting the weight coefficient according to the offset coefficient to obtain a new weight coefficient.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and drawings.
The technical solution of the present invention is further described in detail by the accompanying drawings and embodiments.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the principles of the invention and not to limit the invention. In the drawings:
FIG. 1 is a flow diagram of a method of assisting in the hitting of a billiard ball according to one embodiment of the present invention;
FIG. 2 is a flow diagram for determining coordinate information for cue balls and pool balls other than cue balls, according to one embodiment of the present invention;
fig. 3 is a flow chart for determining shot information according to one embodiment of the present invention.
Detailed Description
The preferred embodiments of the present invention will be described in conjunction with the accompanying drawings, and it will be understood that they are described herein for the purpose of illustration and explanation and not limitation.
As shown in fig. 1, an embodiment of the present invention provides a billiard ball hitting assisting method, including steps S1-S7:
s1, determining first coordinate information of the cue ball and second coordinate information of other billiards except the cue ball;
s2, acquiring third coordinate information of a pocket opening on the billiard table;
s3, determining a first billiard set according to the second coordinate information and the third coordinate information;
s4, generating a first auxiliary line set of cue balls and cue balls in the first cue ball set respectively, judging whether foreign matters exist on the first auxiliary lines in the first auxiliary line set respectively, and removing corresponding cue balls from the first cue ball set when the foreign matters exist on at least one first auxiliary line to obtain a second cue ball set;
s5, determining target billiards according to the first coordinate information of the cue balls and the second coordinate information of the billiards in the second billiard set;
s6, generating a second auxiliary line set between the target billiards and the corresponding target pocket mouth;
and S7, determining batting information according to the first auxiliary line set, the second auxiliary line set and a preset billiard collision model of the target billiards.
The working principle of the technical scheme is as follows: establishing a coordinate system on a table top of the billiards, and determining first coordinate information of the cue balls and second coordinate information of other billiards except the cue balls; acquiring third coordinate information of a bag opening on the billiard table; determining a first billiard set according to the second coordinate information and the third coordinate information; the first billiard set represents billiards with the distance less than or equal to the preset distance from the bag opening, and popular billiards are billiards close to the bag opening, and the success rate of the billiards entering the bag opening is high. Respectively generating a cue ball and a first auxiliary line set of billiards in the first billiard ball set, respectively judging whether foreign matters exist on the first auxiliary lines included in the first auxiliary line set, and removing corresponding billiards from the first billiard ball set when the foreign matters exist on at least one first auxiliary line to obtain a second billiard ball set; when the billiards are hit, the billiards need to be collided with the target ball through collision of other billiards, namely, the situation that the target ball is indirectly collided is avoided. The second pool of billiards may all be cue balls that may hit the target ball directly. Determining target billiards according to the first coordinate information of the cue balls and the second coordinate information of the billiards in the second billiard ball set; generating a second auxiliary line set between the target billiards and the corresponding target pocket openings; determining batting information according to the first auxiliary line set, the second auxiliary line set and a preset billiard collision model of the target billiards. The second auxiliary lines are grouped to show that the billiard ball enters the bag opening to have a plurality of tracks, and each track is shown by one second auxiliary line. The first auxiliary line is the path from the cue ball to the target billiard ball for collision, and there are a plurality of paths, each of which is indicated by one first auxiliary line.
The beneficial effects of the above technical scheme are that: the cue ball, other billiards and the bag opening are coordinated, so that the calculation precision is improved conveniently, and the relationship among the cue ball, other billiards and the bag opening is displayed more accurately. In order to simplify the calculation process and improve the hit rate, the first billiard set is determined firstly, the second billiard set is determined secondly, and the target billiards are determined finally. According to the first auxiliary line set, the second auxiliary line set and the preset billiard collision model of the target billiards, the batting information is accurately determined, so that a batting person can accurately master batting strength and angle, the billiards can be conveniently hit into a designated position, batting hit rate is improved, and batting level of the batting person is conveniently improved.
As shown in fig. 2, according to some embodiments of the present invention, the determining the first coordinate information of the cue ball and the second coordinate information of the billiards other than the cue ball includes steps S11 to S14:
s11, acquiring an image shot from the position right above the billiard table as an image to be identified;
s12, extracting the features of the image to be recognized, and determining a plurality of circular areas;
s13, acquiring color information of the circular area, and determining cue balls and other billiards according to the color information;
and S14, acquiring center information of the plurality of circular areas, and determining first coordinate information of the cue ball and second coordinate information of other billiards except the cue ball according to a preset coordinate system.
The working principle of the technical scheme is as follows: acquiring an image shot from the position right above the billiard table as an image to be identified; extracting the characteristics of the image to be identified, and determining a plurality of circular areas; acquiring color information of the circular area, and determining cue balls and other billiards according to the color information; and acquiring center information of the plurality of circular areas, and determining first coordinate information of the cue ball and second coordinate information of other billiards except the cue ball according to a preset coordinate system.
The beneficial effects of the above technical scheme are that: the accuracy of determining the first coordinate information of the cue ball and the second coordinate information of other billiards except the cue ball is improved.
According to some embodiments of the invention, obtaining third coordinate information of a pocket on the billiard table comprises:
and acquiring the center information of the bag opening, and determining the third coordinate information of the bag opening on the billiard table according to a preset coordinate system.
The beneficial effects of the above technical scheme are that: and accurately determining the third coordinate information of the pocket opening on the billiard table.
According to some embodiments of the invention, determining a first pool set from the second coordinate information and the third coordinate information comprises:
calculating first distance values between the billiards and each bag opening according to second coordinate information of the billiards and third coordinate information of the bag opening on the billiard table, screening out the smallest first distance value, judging whether the smallest first distance value is smaller than or equal to a preset distance value, and determining that the billiards are valid when the smallest first distance value is smaller than or equal to the preset distance value;
and respectively executing the steps on the billiards, and determining a first billiard set according to the determined effective billiards.
The working principle of the technical scheme is as follows: calculating first distance values between the billiards and each bag opening according to second coordinate information of the billiards and third coordinate information of the bag opening on the billiard table, screening out the smallest first distance value, judging whether the smallest first distance value is smaller than or equal to a preset distance value, and determining that the billiards are valid when the smallest first distance value is smaller than or equal to the preset distance value; and respectively executing the steps on the billiards, and determining a first billiard set according to the determined effective billiards.
The beneficial effects of the above technical scheme are that: the billiards with higher billiard-entering success rate are preliminarily determined, the complexity and the calculation amount of subsequent calculation are reduced, and the calculation efficiency is improved.
According to some embodiments of the invention, the determining whether there is a foreign object on the first auxiliary line included in the first auxiliary line set comprises:
graying the first auxiliary line set to obtain the gray values of the pixels on the first auxiliary line, calculating the gray difference value of the adjacent pixels, judging whether the gray difference value is greater than a preset gray difference value, counting the number of gray difference values greater than the preset gray difference value, and determining that foreign matters exist on the first auxiliary line when the number is greater than the preset number.
The working principle of the technical scheme is as follows: graying the first auxiliary line set to obtain the gray values of the pixels on the first auxiliary line, calculating the gray difference value of the adjacent pixels, judging whether the gray difference value is greater than a preset gray difference value, counting the number of gray difference values greater than the preset gray difference value, and determining that foreign matters exist on the first auxiliary line when the number is greater than the preset number.
The beneficial effects of the above technical scheme are that: and when the number of the gray difference values larger than the preset gray difference value is determined to be larger than the preset number, the first auxiliary line is determined to have the foreign matters. The accuracy of determining whether there is a foreign object on the first auxiliary wire is improved.
According to some embodiments of the invention, determining the target billiard ball according to the first coordinate information of the cue ball and the second coordinate information of the billiard balls in the second billiard ball set comprises:
and respectively calculating second distance values of the cue balls and each billiard ball in the second billiard ball set according to the first coordinate information of the cue balls and the second coordinate information of the billiard balls in the second billiard ball set, and determining the billiard ball corresponding to the smallest second distance value as the target billiard ball.
The working principle of the technical scheme is as follows: and respectively calculating second distance values of the cue balls and each billiard ball in the second billiard ball set according to the first coordinate information of the cue balls and the second coordinate information of the billiard balls in the second billiard ball set, and determining the billiard ball corresponding to the smallest second distance value as the target billiard ball.
The beneficial effects of the above technical scheme are that: further reducing the hitting range, reducing the calculation amount and simultaneously improving the hitting rate of the cue ball billiards.
As shown in fig. 3, according to some embodiments of the present invention, determining hitting information according to the first auxiliary line set, the second auxiliary line set and a preset billiard collision model of the target billiard includes steps S71-S73:
s71, selecting a second auxiliary line positioned in the middle from the second auxiliary line set as a target second auxiliary line;
s72, generating a simulated cue ball at the collision point of the target billiard according to the target second auxiliary line and a preset billiard collision model, and acquiring parameter information of the simulated cue ball;
s73, carrying out derivation calculation according to the parameter information and a plurality of first auxiliary lines included in the first auxiliary line set, and determining the hitting parameters of the cue ball based on each first auxiliary line; and evaluating each hitting parameter, and determining hitting information according to an evaluation result.
The working principle of the technical scheme is as follows: selecting a second auxiliary line positioned in the middle from the second auxiliary line set as a target second auxiliary line; and selecting the second auxiliary line positioned in the middle, wherein the second auxiliary line is determined to be the optimal track through multiple experiments, and the success rate of bag opening entering is highest. Generating a simulated cue ball at the collision point of the target cue ball according to the target second auxiliary line and a preset cue ball collision model, and acquiring parameter information of the simulated cue ball; according to the parameter information and a plurality of first auxiliary lines included in the first auxiliary line set, carrying out derivation calculation, and determining hitting parameters of the cue ball based on each first auxiliary line; and evaluating each hitting parameter, and determining hitting information according to an evaluation result.
The beneficial effects of the above technical scheme are that: and reversely deducing the hitting parameters during hitting based on the bagging result of the target billiards, evaluating the hitting parameters, and determining hitting information according to the optimal hitting parameters. The evaluation is made taking into consideration the realism, comfort and the like of the player in terms of the power, angle and the like of the shot. The optimal batting information convenient to determine improves the hit rate of batting, has improved batting person's batting experience simultaneously, is convenient for improve batting level.
According to some embodiments of the invention, the striking parameters comprise a striking power and a striking angle.
In one embodiment, the method further comprises:
striking the target billiards according to the striking information to obtain continuous frame images of the target billiards after collision;
analyzing the continuous frame images, determining track points of a target billiard ball on each frame image, connecting a plurality of track points, and determining the moving track of the target billiard ball;
and calculating the difference degree between the moving track and the target second auxiliary line, judging whether the difference degree is greater than the preset difference degree, and sending an alarm prompt when the difference degree is determined to be greater than the preset difference degree.
The calculating the difference degree H between the moving track and the target second auxiliary line comprises the following steps:
Figure BDA0003333632380000121
wherein N is the number of track points; f is the collision force of the cue ball and the target billiard ball; diThe coordinate of the ith track point in the moving track is shown; di' is the coordinate of the trace point at the corresponding instant on the target second auxiliary line.
The working principle and the beneficial effects of the technical scheme are as follows: striking the target billiards according to the striking information to obtain continuous frame images of the target billiards after collision; analyzing the continuous frame images, determining track points of a target billiard ball on each frame image, connecting a plurality of track points, and determining the moving track of the target billiard ball; and calculating the difference degree between the moving track and the target second auxiliary line, judging whether the difference degree is greater than the preset difference degree, and when the difference degree is determined to be greater than the preset difference degree, indicating that the model parameters of the billiard collision model are abnormal and needing to be corrected, so that the coincidence degree between the moving track of the billiard and the target second auxiliary line is high, and the accuracy of the determined batting information is improved.
According to some embodiments of the invention, obtaining color information for a circular area from which cue balls and other billiard balls are determined comprises:
respectively obtaining a first color value of each pixel point in an RGB color space, wherein the first color value comprises an R channel value, a G channel value and a B channel value;
classifying pixels in a circular area, wherein a pixel point with the minimum R channel value in the first color value is taken as a first type pixel point, a pixel point with the minimum G channel value in the first color value is taken as a second type pixel point, and a pixel point with the minimum B channel value in the first color value is taken as a third type pixel point;
respectively counting the number of first-class pixels, second-class pixels and third-class pixels in the circular region, and determining the color types included in the circular region based on a preset rule according to the counted number; determining a circular region including one color type as a first type circular region, determining a circular region including two color types as a second type circular region, and determining a circular region including three color types as a third type circular region;
presetting color types included by the cue ball, determining a first circular area when the color types included by the cue ball are determined to be one, converting the first circular area from RGB color space to HIS color space, and obtaining a second color value; comparing the second color value with a first preset color value, and determining a first target circular area in the first circular area corresponding to the cue ball according to a comparison result; when the color types of the cue ball are determined to be two or three, determining a second circular area or a third circular area, and converting the second circular area or the third circular area from an RGB color space to an LAB color space to obtain a third color value; and comparing the third color value with a second preset color value, and determining a second circular area of the second type or a second target circular area in the third type corresponding to the cue ball according to the comparison result.
The working principle of the technical scheme is as follows: respectively obtaining a first color value of each pixel point in an RGB color space, wherein the first color value comprises an R channel value, a G channel value and a B channel value; classifying pixels in a circular area, wherein a pixel point with the minimum R channel value in the first color value is taken as a first type pixel point, a pixel point with the minimum G channel value in the first color value is taken as a second type pixel point, and a pixel point with the minimum B channel value in the first color value is taken as a third type pixel point; respectively counting the number of first-class pixels, second-class pixels and third-class pixels in the circular region, and determining the color types included in the circular region based on a preset rule according to the counted number; each type of pixel point represents a color, and when the number of the type of pixel point is 0, the circular area is represented to lack the color represented by the type. Determining a circular region including one color type as a first type circular region, determining a circular region including two color types as a second type circular region, and determining a circular region including three color types as a third type circular region; presetting color types included by the cue ball, determining a first circular area when the color types included by the cue ball are determined to be one, converting the first circular area from RGB color space to HIS color space, and obtaining a second color value; comparing the second color value with a first preset color value, and determining a first target circular area in the first circular area corresponding to the cue ball according to a comparison result; the HIS color space can be described by a cone space model, and the change situations of the hue, the brightness and the saturation of the first type of circular area are clearly shown. The color gamut of the LAB color space is large, more pixel data can be displayed, the defined colors are the most, and when the LAB color space comprises at least two color types, the color weight value of each pixel point can be accurately determined, so that a better color effect is realized. The first predetermined color value is a color value in the HIS color space determined from the cue ball. The second preset color value is a color value in the LAB color space determined from the cue ball.
The beneficial effects of the above technical scheme are that: the color type information included in the circular area is accurately determined and classified, and the circular area is converted into different color spaces according to the number of the color types of the cue balls, so that the color of the cue balls can be accurately determined, and the cue balls and other billiards can be further determined.
According to some embodiments of the invention, the individual impact parameters are evaluated, including based on a pre-constructed evaluation index system;
the method for constructing the evaluation index system comprises the following steps:
determining an evaluation index according to a preset evaluation purpose and an evaluation object;
acquiring an incidence relation between evaluation indexes, and constructing an evaluation index system according to the incidence relation;
obtaining an evaluation index sample, and calculating and determining the weight coefficient of each evaluation index in an evaluation index system based on a least square method;
evaluating the striking parameters based on the evaluation index system with the weight coefficient set to obtain an evaluation mean value, and respectively calculating the offset coefficient between the evaluation value obtained by each evaluation index in the evaluation index system and the evaluation mean value;
and correcting the weight coefficient according to the offset coefficient to obtain a new weight coefficient.
The working principle of the technical scheme is as follows: evaluating each striking parameter, including evaluating based on a pre-established evaluation index system; the method for constructing the evaluation index system comprises the following steps: determining an evaluation index according to a preset evaluation purpose and an evaluation object; acquiring an incidence relation between evaluation indexes, and constructing an evaluation index system according to the incidence relation; obtaining an evaluation index sample, and calculating and determining the weight coefficient of each evaluation index in an evaluation index system based on a least square method; evaluating the striking parameters based on the evaluation index system with the weight coefficient set to obtain an evaluation mean value, and respectively calculating the offset coefficient between the evaluation value obtained by each evaluation index in the evaluation index system and the evaluation mean value; and correcting the weight coefficient according to the offset coefficient to obtain a new weight coefficient. And calculating the offset coefficient between the evaluation value obtained by each evaluation index in the evaluation index system and the evaluation mean value based on the Euclidean distance.
The beneficial effects of the above technical scheme are that: and evaluating based on an evaluation index system to determine the accuracy of evaluation, so that the optimal striking parameters can be determined conveniently. The reasonability of each evaluation index system in the set evaluation index system is improved, subjective and objective errors are reduced, the balance of each evaluation index is guaranteed, the accuracy of an evaluation result is further improved, the dependence on historical data is eliminated, and the method is simple, convenient and practical.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (10)

1. A billiard ball hitting assist method, comprising:
determining first coordinate information of the cue ball and second coordinate information of other billiards except the cue ball;
acquiring third coordinate information of a bag opening on the billiard table;
determining a first billiard set according to the second coordinate information and the third coordinate information;
respectively generating a cue ball and a first auxiliary line set of billiards in the first billiard ball set, respectively judging whether foreign matters exist on the first auxiliary lines included in the first auxiliary line set, and removing corresponding billiards from the first billiard ball set when the foreign matters exist on at least one first auxiliary line to obtain a second billiard ball set;
determining target billiards according to the first coordinate information of the cue balls and the second coordinate information of the billiards in the second billiard ball set;
generating a second auxiliary line set between the target billiards and the corresponding target pocket openings;
determining batting information according to the first auxiliary line set, the second auxiliary line set and a preset billiard collision model of the target billiards.
2. The billiard ball hitting assisting method of claim 1, wherein the determining of the first coordinate information of the cue ball and the second coordinate information of the billiard ball other than the cue ball includes:
acquiring an image shot from the position right above the billiard table as an image to be identified;
extracting the characteristics of the image to be identified, and determining a plurality of circular areas;
acquiring color information of the circular area, and determining cue balls and other billiards according to the color information;
and acquiring center information of the plurality of circular areas, and determining first coordinate information of the cue ball and second coordinate information of other billiards except the cue ball according to a preset coordinate system.
3. The billiard ball hitting assisting method of claim 1, wherein the obtaining of the third coordinate information of the pocket of the billiard table includes:
and acquiring the center information of the bag opening, and determining the third coordinate information of the bag opening on the billiard table according to a preset coordinate system.
4. The billiard ball striking assistance method of claim 1, wherein determining a first billiard ball set based on the second coordinate information and the third coordinate information includes:
calculating first distance values between the billiards and each bag opening according to second coordinate information of the billiards and third coordinate information of the bag opening on the billiard table, screening out the smallest first distance value, judging whether the smallest first distance value is smaller than or equal to a preset distance value, and determining that the billiards are valid when the smallest first distance value is smaller than or equal to the preset distance value;
and respectively executing the steps on the billiards, and determining a first billiard set according to the determined effective billiards.
5. The billiard ball hitting assisting method of claim 1, wherein the determining whether there is a foreign object on a first assisting line included in the first assisting line set includes:
graying the first auxiliary line set to obtain the gray values of the pixels on the first auxiliary line, calculating the gray difference value of the adjacent pixels, judging whether the gray difference value is greater than a preset gray difference value, counting the number of gray difference values greater than the preset gray difference value, and determining that foreign matters exist on the first auxiliary line when the number is greater than the preset number.
6. The billiard ball hitting assisting method of claim 1, wherein determining the target billiard ball based on first coordinate information of a cue ball and second coordinate information of billiards in the second billiard ball set includes:
and respectively calculating second distance values of the cue balls and each billiard ball in the second billiard ball set according to the first coordinate information of the cue balls and the second coordinate information of the billiard balls in the second billiard ball set, and determining the billiard ball corresponding to the smallest second distance value as the target billiard ball.
7. The billiard ball hitting assisting method of claim 1, wherein determining hitting information according to the first auxiliary line set, the second auxiliary line set and a preset billiard ball collision model of the target billiard ball includes:
selecting a second auxiliary line positioned in the middle from the second auxiliary line set as a target second auxiliary line;
generating a simulated cue ball at the collision point of the target cue ball according to the target second auxiliary line and a preset cue ball collision model, and acquiring parameter information of the simulated cue ball;
according to the parameter information and a plurality of first auxiliary lines included in the first auxiliary line set, carrying out derivation calculation, and determining hitting parameters of the cue ball based on each first auxiliary line; and evaluating each hitting parameter, and determining hitting information according to an evaluation result.
8. A billiard ball striking assistance method as claimed in claim 7, wherein said striking parameters include striking force and striking angle.
9. A billiard ball hitting assist method as set forth in claim 2, wherein obtaining color information of a circular area and determining cue balls and other billiard balls based on the color information comprises:
respectively obtaining a first color value of each pixel point in an RGB color space, wherein the first color value comprises an R channel value, a G channel value and a B channel value;
classifying pixels in a circular area, wherein a pixel point with the minimum R channel value in the first color value is taken as a first type pixel point, a pixel point with the minimum G channel value in the first color value is taken as a second type pixel point, and a pixel point with the minimum B channel value in the first color value is taken as a third type pixel point;
respectively counting the number of first-class pixels, second-class pixels and third-class pixels in the circular region, and determining the color types included in the circular region based on a preset rule according to the counted number; determining a circular region including one color type as a first type circular region, determining a circular region including two color types as a second type circular region, and determining a circular region including three color types as a third type circular region;
presetting color types included by the cue ball, determining a first circular area when the color types included by the cue ball are determined to be one, converting the first circular area from RGB color space to HIS color space, and obtaining a second color value; comparing the second color value with a first preset color value, and determining a first target circular area in the first circular area corresponding to the cue ball according to a comparison result; when the color types of the cue ball are determined to be two or three, determining a second circular area or a third circular area, and converting the second circular area or the third circular area from an RGB color space to an LAB color space to obtain a third color value; and comparing the third color value with a second preset color value, and determining a second circular area of the second type or a second target circular area in the third type corresponding to the cue ball according to the comparison result.
10. A billiard ball striking assisting method as recited in claim 7, wherein each striking parameter is evaluated, including evaluation based on a pre-constructed evaluation index system;
the method for constructing the evaluation index system comprises the following steps:
determining an evaluation index according to a preset evaluation purpose and an evaluation object;
acquiring an incidence relation between evaluation indexes, and constructing an evaluation index system according to the incidence relation;
obtaining an evaluation index sample, and calculating and determining the weight coefficient of each evaluation index in an evaluation index system based on a least square method;
evaluating the striking parameters based on the evaluation index system with the weight coefficient set to obtain an evaluation mean value, and respectively calculating the offset coefficient between the evaluation value obtained by each evaluation index in the evaluation index system and the evaluation mean value;
and correcting the weight coefficient according to the offset coefficient to obtain a new weight coefficient.
CN202111291921.4A 2021-11-02 2021-11-02 Billiard ball hitting auxiliary method Active CN113827945B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111291921.4A CN113827945B (en) 2021-11-02 2021-11-02 Billiard ball hitting auxiliary method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111291921.4A CN113827945B (en) 2021-11-02 2021-11-02 Billiard ball hitting auxiliary method

Publications (2)

Publication Number Publication Date
CN113827945A true CN113827945A (en) 2021-12-24
CN113827945B CN113827945B (en) 2024-04-12

Family

ID=78966916

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111291921.4A Active CN113827945B (en) 2021-11-02 2021-11-02 Billiard ball hitting auxiliary method

Country Status (1)

Country Link
CN (1) CN113827945B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103955693A (en) * 2013-05-06 2014-07-30 北京瑞盖科技有限公司 Nine-ball computer-assisted detection identification method
WO2015135357A1 (en) * 2014-03-10 2015-09-17 北京瑞盖科技有限公司 Assisted-training system and method for billiards
CN106055518A (en) * 2016-06-07 2016-10-26 北京瑞盖科技股份有限公司 Ball hitting path recommending method and device
CN108694466A (en) * 2018-05-18 2018-10-23 梁栋 The recommendation method and device of path of the stroke
CN109011534A (en) * 2018-08-08 2018-12-18 Oppo广东移动通信有限公司 Billiard ball batting householder method, device, storage medium and electronic equipment
KR20200076043A (en) * 2018-12-19 2020-06-29 박정은 Automatic judging apparatus and method of billiard score
CN112733718A (en) * 2021-01-11 2021-04-30 深圳市瑞驰文体发展有限公司 Foreign matter detection-based billiard game cheating identification method and system
KR20210092685A (en) * 2020-01-16 2021-07-26 주식회사 인텐 System for managing billiard game of artificial intelligence based on image analysis technology
CN113209597A (en) * 2021-05-19 2021-08-06 深圳市普汇智联科技有限公司 Offline billiard hitting assisting method, device, terminal and storage medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103955693A (en) * 2013-05-06 2014-07-30 北京瑞盖科技有限公司 Nine-ball computer-assisted detection identification method
WO2015135357A1 (en) * 2014-03-10 2015-09-17 北京瑞盖科技有限公司 Assisted-training system and method for billiards
CN106055518A (en) * 2016-06-07 2016-10-26 北京瑞盖科技股份有限公司 Ball hitting path recommending method and device
CN108694466A (en) * 2018-05-18 2018-10-23 梁栋 The recommendation method and device of path of the stroke
CN109011534A (en) * 2018-08-08 2018-12-18 Oppo广东移动通信有限公司 Billiard ball batting householder method, device, storage medium and electronic equipment
KR20200076043A (en) * 2018-12-19 2020-06-29 박정은 Automatic judging apparatus and method of billiard score
KR20210092685A (en) * 2020-01-16 2021-07-26 주식회사 인텐 System for managing billiard game of artificial intelligence based on image analysis technology
CN112733718A (en) * 2021-01-11 2021-04-30 深圳市瑞驰文体发展有限公司 Foreign matter detection-based billiard game cheating identification method and system
CN113209597A (en) * 2021-05-19 2021-08-06 深圳市普汇智联科技有限公司 Offline billiard hitting assisting method, device, terminal and storage medium

Also Published As

Publication number Publication date
CN113827945B (en) 2024-04-12

Similar Documents

Publication Publication Date Title
US7283647B2 (en) Method and system for physical motion analysis and training of a golf club swing motion using image analysis techniques
KR100923066B1 (en) Simulator for realistic golf and control method for the same
CN111905350B (en) Automatic table tennis hitting performance evaluation method and system based on motion data
CN110458100A (en) Based on target detection and the identification of the table tennis drop point of tracking and methods of marking and system
CN109876416B (en) Skipping rope counting method based on image information
CN108905182B (en) Intelligent glasses and billiard shooting positioning and aiming method
US11000734B2 (en) Systems and methods for computing a strokes gained performance metric from ball flight data that considers predetermined offline information
CN112733718B (en) Foreign matter detection-based billiard game cheating identification method and system
CN113827945A (en) Billiard ball hitting assisting method
CN114042304A (en) Electronic judgment system for boxing
Stöckl et al. A model for visualizing difficulty in golf and subsequent performance rankings on the PGA Tour
CN109464798B (en) Sensory data driven snooker auxiliary exercise method
KR0126443B1 (en) Swing motion analysis system of golf
CN113209597A (en) Offline billiard hitting assisting method, device, terminal and storage medium
US20160361592A1 (en) Golfer classification method, golfer classification system and golf club selection method
CN111275021A (en) Automatic football offside line scribing method based on computer vision
CN108961321B (en) Billiard reset method and storage medium
US11583728B2 (en) System and method for tracking and analyzing golf shot
CN110314368B (en) Auxiliary method, device, equipment and readable medium for billiard ball hitting
Herder et al. The relationship between player skill level and golf shot “feel” estimation
WO2020144210A1 (en) Method and system for golf training
CN113011273B (en) Intelligent visual detection method and system for billiard cue
CN220424511U (en) Intelligent badminton control training scoring system
CN111672088B (en) Air volleyball match display method and system
CN114241426B (en) Outdoor intelligent gymnasium management system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20240315

Address after: Room 1210-5, Unit 2, Building B3, Science and Technology Innovation Complex, No. 8 Jialing Jiangdong Street, Jianye District, Nanjing City, Jiangsu Province, 210000

Applicant after: Nanjing Yuanming Zhenyue Technology Co.,Ltd.

Country or region after: China

Address before: 518000 shenfang Plaza b3403g076, No. 3005, Renmin South Road, Jiabei community, Nanhu street, Luohu District, Shenzhen, Guangdong

Applicant before: Shenzhen baiguangke Technology Co.,Ltd.

Country or region before: China

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant