A billiards scoring system based on image recognition processing

By establishing a virtual model of billiards and tables, combining image processing and video processing algorithms, and analyzing the movement path of billiards, the problems of high installation requirements and poor robustness of existing billiards automatic scoring system equipment have been solved, and the system can be installed at any installation position. Accurate scoring and high-precision recognition under occlusion.

CN118230216BActive Publication Date: 2024-10-22GUANGDONG FENHUI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410413409.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-04-08
Publication Date
2024-10-22
Estimated Expiration
2044-04-08

AI Technical Summary

Technical Problem

The existing automatic billiard scoring system has high requirements for equipment installation. The camera must be installed directly above the center of the table and has poor robustness. It is difficult to accurately identify billiard balls in different installation positions, especially in snooker games due to the scoring rules. The requirements for complex and accurate identification are high, and existing systems are difficult to meet them.

Method used

By establishing a virtual model of billiard balls and table, combined with image processing and video processing algorithms, the movement path and impact speed of billiard balls are analyzed, the motion of billiard balls is simulated, the accuracy of scoring is improved, and the data is obtained through the camera and the position chip of the table for image adjustment. , to ensure the accuracy of scoring.

Benefits of technology

It achieves accurate identification and scoring of billiard balls at any camera installation position, improves the accuracy of billiard scoring, solves the problem of equipment installation location restrictions, and maintains scoring accuracy under obstruction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118230216B_ABST
    Figure CN118230216B_ABST
Patent Text Reader

Abstract

The invention discloses a billiard scoring system based on image recognition processing, comprising: a camera, which collects image data of a billiard table and a billiard ball on the table; a processor, which is used to process multiple frames of image data of a billiard ball hitting process recorded by the camera, identify the number and position of various colored balls, and compare and output a score result in combination with billiard rules; a virtual model of the billiard table and the billiard ball, which obtains the mass of the billiard ball, the size data of the billiard ball, the size data of the billiard table, and the friction coefficient μ between the billiard ball and the billiard table to establish the virtual model of the billiard table and the billiard ball, and simulates the path, speed and position of the billiard ball on the table based on the movement of a cue hitting the billiard ball, and predicts the change of the billiard ball; the camera collects the movement path of the billiard ball and the impact position of the billiard ball, calculates the movement of the billiard ball after the impact through the force of the cue hitting the ball, and analyzes the movement path of the billiard ball, and obtains the reflection point of the billiard ball to the light to position the billiard ball to the table.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of billiard scoring image recognition processing, in particular to a billiard scoring system based on image recognition processing. Background Art

[0002] The billiards scoring system based on image processing is a system that uses image processing technology to achieve automatic scoring of billiards games.

[0003] Chinese patent publication number CN110334617A discloses a method for judging whether a billiard ball has collided with the edge of a pool and a billiard game scoring system. In this case, within a range of a shot, a billiard ball, a pool edge and a pool edge position are identified based on an acquired game image; at least one frame of a game process image is acquired, and information about a moving billiard ball in each frame of the game process image is identified; based on the image / inter-frame data of the moving billiard ball, an estimated position of the moving billiard ball in relationship with the pool edge is estimated; based on the relationship between the estimated position of each moving billiard ball and the pool edge position, the pool edge collision information of the moving billiard ball corresponding to the current shot is determined.

[0004] Chinese patent announcement number CN108090486A discloses an image processing method and device in a billiard game, wherein the video information including the surface of a billiard table and the billiard balls on the surface is collected by the shooting device, and the video information is analyzed based on a projection model constructed including the shooting device and the position of the billiard balls. After obtaining the position information of the billiard balls, the billiard balls in the image included in the video information are elliptical. The position information of the billiard balls in the image of the video information is obtained based on the projection model, which improves the accuracy of the position information.

[0005] The existing billiards automatic scoring system has high requirements for equipment installation. The camera must be installed directly above the center of the table, and the camera lens must be level with the table surface. Official professionals are required to install it on site, and a wide-angle camera must be used and orthodontic treatment must be performed. The algorithm it uses requires that the equipment installation meet certain installation requirements, reach a certain height, and the camera requires orthodontic treatment, otherwise the system will not be able to be used normally (recognize billiards), indicating that its billiards recognition algorithm has poor robustness.

[0006] In billiards competitions, the scoring rules for snooker are as follows:

[0007] The scores of the balls are: red ball 1 point, yellow ball 2 points, green ball 3 points, brown ball (or coffee ball) 4 points, blue ball 5 points, pink ball 6 points, and black ball 7 points.

[0008] Foul Penalty: If there is a mistake when hitting the ball, the penalty points of one side should be added to the other side according to the score of the ball, but it should not be less than four points. For example, if you miss the blue ball when you should hit the blue ball or hit the blue ball but the pink ball or black ball goes into the pocket, you will be penalized 6 points and 7 points respectively.

[0009] Free ball: After the opponent commits a foul, if the white ball cannot hit the thinnest edges on both sides of the ball with the smallest score on the table at the same time, there will be a free ball, and you can choose any ball as the ball with the smallest score on the table.

[0010] Single shot score: refers to the player's consecutive goals scored by hitting the ball, and the points scored by the opponent's penalty shots are not included.

[0011] As for the rules of snooker, billiard scoring based on image recognition is quite difficult, and it requires accurate identification of the position and color of the billiard ball to ensure analysis of the billiard ball's movement path and the location and changes of the collision. Summary of the invention

[0012] One of the purposes of the present invention is to provide a billiard scoring system based on image recognition processing, which establishes a virtual model of the billiard ball and the table through the changes of the billiard ball in the image, analyzes the movement and impact speed of the billiard ball during the billiard movement, simulates the movement of the billiard ball after the impact, and improves the accuracy of image scoring.

[0013] To achieve the above objectives, the present invention is implemented through the following technical solutions: A billiards scoring system based on image recognition processing, comprising:

[0014] A camera collects image data including the billiard table and the billiard balls on the table;

[0015] The processor is used to process the multi-frame image data of the billiard hitting process recorded by the camera, identify the number and position of various colored balls, and compare and output the score results in combination with the billiard rules;

[0016] A virtual model of the billiard table and billiard balls is established by obtaining the mass of the billiard balls, the size of the billiard balls, the size of the billiard table, and the friction coefficient μ between the billiard balls and the billiard table. The path, speed, and position of the billiard balls on the billiard table are simulated based on the movement of the cue hitting the billiard balls, and the changes of the billiard balls are predicted.

[0017] Video processing algorithm, which processes the image data collected by the camera, obtains the camera shooting angle and the table position data, and stretches the table image data;

[0018] The camera collects the movement path of the billiard ball and the impact position of the billiard ball, calculates the movement of the billiard ball after the impact through the force of the cue hitting the ball, analyzes the movement path of the billiard ball, and obtains the reflection point of the billiard ball to the light to locate the billiard ball on the table.

[0019] In one or more embodiments of the present invention, the camera and the table both include a position chip, which collects the camera height and the camera illumination angle through the position chip, analyzes the table deviation value in the camera's image data through the position information of the camera and the table, and adjusts the table image in the image data based on the table image in the image data and the table deviation value.

[0020] In one or more embodiments of the present invention, the friction coefficient μ between the billiard ball and the billiard table is obtained, the billiard ball is placed on an inclined plane, and the surface material of the inclined plane is ensured to be the same as the surface material of the billiard table; the inclination angle of the inclined plane is gradually increased until the billiard ball begins to slide; the inclination angle at which the billiard ball begins to slide is recorded, denoted as θ0; the friction coefficient μ is calculated by the following formula: μ=tan(θ0).

[0021] In one or more embodiments of the present invention, the friction coefficient μ is introduced into the virtual model of the billiard table and the billiard ball, and the virtual model of the billiard table and the billiard ball is established according to the mass of the billiard ball, the size data of the billiard ball, the size data of the billiard table and the friction coefficient μ. The coordinates are established based on the side edge of the virtual model of the billiard table, and the table top of the billiard table is divided into two upper and lower coordinate areas.

[0022] In one or more embodiments of the present invention, the billiard balls on the table are marked respectively. n (x, y), where C represents the color corresponding to the billiard ball, n represents the number of the same color, (x, y) is the coordinate of the billiard ball on the table, n changes with the number of billiard balls of the same color on the table, and the movement of the billiard ball is tracked when the billiard ball moves on the table, and the billiard ball is re-marked after it falls into the storage.

[0023] In one or more embodiments of the present invention, the motion path of the billiard ball is predicted by the billiard ball motion speed:

[0024] Get the initial position of the billiard ball, build a cue mass model, and use the camera to collect the cue's movement time and distance to calculate the cue's movement speed v and movement force P:

[0025] P = mv = m(d / t);

[0026] Among them, P is the force of the club movement, m is the mass of the club, v is the speed of the club, d is the distance the club moves when it hits the billiard ball, and t is the time it takes for the club to move the distance;

[0027] The speed of the billiard ball is calculated by the movement force and speed generated by the cue hitting the billiard ball and the friction coefficient μ between the billiard ball and the table;

[0028] The motion coordinates of the billiard ball are collected multiple times by the camera, and the impact position of the billiard ball is predicted based on the initial coordinates, movement speed and coordinates of the billiard ball during the movement.

[0029] In one or more embodiments of the present invention, the position of the billiard ball is calculated:

[0030] The friction force is calculated by the billiard ball friction coefficient μ, the billiard ball mass and the gravitational acceleration: F = μ·m·g;

[0031] The acceleration of the billiard ball is: a = F / m = μ·g;

[0032] At each time step, the velocity Vt and position Xt of the billiard ball are updated by the following formula:

[0033] Vt=V1-a·dt;

[0034] Xt=X1+Vt·dt;

[0035] Among them, dt is the time step, V1 is the current speed of the billiard ball, and X1 is the current position.

[0036] In one or more embodiments of the present invention, the billiard ball expands outward from the central coordinate to form a coordinate within a square frame. When the billiard ball moves, the speed and position of the billiard ball are updated, the impact point of the billiard ball can be analyzed, and the movement angle of the impacted billiard ball can be determined based on the impact point of the billiard ball. The displaced billiard ball forms a circular impact edge with the central coordinate. The updating of the billiard ball position can obtain the contact coordinate position of the billiard ball and the impacted billiard ball, and analyze the movement direction of the billiard ball.

[0037] In one or more embodiments of the present invention, the batsman is analyzed based on the billiards motion path and rules. If a goal is scored within the rules in combination with the billiards path, the batsman's score continues to be counted. If a foul occurs, the other batsman is given a corresponding score and the scoring of the batsman ends, and the scoring of another batsman begins.

[0038] In one or more embodiments of the present invention, the processor transmits the image data collected by the camera and the predicted simulated hitting scores of the billiards by the virtual model of the billiards and the virtual model of the billiard table to the display device via electrical signals, and the display device outputs the scoring situation.

[0039] Through the above technical solution, the present invention has the following beneficial effects:

[0040] 1. This application configures a simulation model of a billiard ball and a billiard table, simulates the billiard motion according to the changes in the simulation model, analyzes the changes of the billiard ball on the table based on the image and the motion path of the billiard ball, improves the accuracy of billiard scoring, and does not limit the installation position of the camera. It only needs to be installed above the table at any angle that can capture the entire table, which solves the problem that similar products can only be installed above the center of the table.

[0041] 2. It can identify billiard balls, tables, people and cues of different colors within the camera's field of view. It can also automatically identify the size of the billiard balls within the camera's field of view, obtain the position of the camera and the table to process the image, ensure the accuracy of the billiard ball movement in the image, and further improve the accuracy of billiard scoring recognition.

[0042] 3. During the image acquisition process, the contestants and referees may block the billiard table. In this state, the accuracy of billiard scoring will be greatly improved. Therefore, the displacement caused by the collision of the billiard ball is analyzed and simulated through the model of the billiard table and the billiard ball, which further ensures that the accuracy of billiard scoring will not be reduced in the case of blockage.

[0043] 4. The number and position of billiard balls are identified by the bright spots produced by projecting light on the billiard balls, ensuring the accuracy of billiard ball position identification. The accuracy of billiard ball identification will not be affected due to the billiard balls blocking each other during the image acquisition process by the camera. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] Figure 1 A schematic diagram of the camera installation position of the present invention;

[0045] Figure 2 A schematic diagram of the camera connection process of the present invention;

[0046] Figure 3 It is a schematic diagram of the system architecture of the present invention;

[0047] Figure 4 It is a schematic diagram of the coordinates of the ball table of the present invention;

[0048] Figure 5 It is a schematic diagram of the impact point of billiards motion of the present invention;

[0049] Figure 6 It is a scoring flow chart of the scoring system of the present invention. DETAILED DESCRIPTION

[0050] The following will disclose multiple embodiments of the present invention with the accompanying drawings. For the purpose of clear description, many practical details will be described together in the following description. However, it should be understood that these practical details should not be used to limit the present invention. In other words, in some embodiments of the present invention, these practical details are not necessary. And if it is possible to implement, the features of different embodiments can be applied interchangeably.

[0051] Unless otherwise defined, all words (including technical and scientific terms) used herein have their usual meanings, which can be understood by those familiar with this field. Furthermore, the definitions of the above words in commonly used dictionaries should be interpreted as the meanings consistent with the relevant fields of the present invention in the content of this specification. Unless otherwise clearly defined, these words will not be interpreted as idealized or overly formal meanings.

[0052] See also Figure 1-Figure 6 The present invention provides a billiard scoring system based on image recognition processing, which recognizes the collected image information to score billiards.

[0053] In one embodiment, a billiard scoring system includes:

[0054] A camera collects image data including the billiard table and the billiard balls on the table;

[0055] The processor is used to process the multi-frame image data of the billiard hitting process recorded by the camera, identify the number and position of various colored balls, and compare and output the score results in combination with the billiard rules;

[0056] Optionally, the processor processes multiple frames of image data recorded by the camera during the billiard hitting process and inputs them into a deep learning algorithm or a machine learning algorithm to identify the number and position of various colored balls, and compares them with billiard rules to output scoring results.

[0057] Among them, the deep learning algorithm is YOLOv7, and the real-time target detection algorithm can achieve high-speed and high-precision target detection on different devices.

[0058] Machine learning algorithms use traditional algorithms such as support vector machines (SVM), decision trees, k-nearest neighbors (KNN), etc., which can help identify and classify data points.

[0059] Combined with computer vision technology, the movement of billiards is captured by a camera, and then the image data is processed by a deep learning model to identify balls of different colors and calculate their positions. Finally, according to the rules of billiards, the system can automatically calculate the score results. It can not only be used to automatically record scores during the game, but also as a training tool to help players analyze and improve their skills.

[0060] A virtual model of the billiard table and billiard balls is established by obtaining the mass of the billiard balls, the size of the billiard balls, the size of the billiard table, and the friction coefficient μ between the billiard balls and the billiard table. The path, speed, and position of the billiard balls on the billiard table are simulated based on the movement of the cue hitting the billiard balls, and the changes of the billiard balls are predicted.

[0061] Video processing algorithm, which processes the image data collected by the camera, obtains the camera shooting angle and the table position data, and stretches the table image data;

[0062] The camera collects the movement path of the billiard ball and the impact position of the billiard ball, calculates the movement of the billiard ball after the impact through the force of the cue hitting the ball, analyzes the movement path of the billiard ball, and obtains the reflection point of the billiard ball to the light to locate the billiard ball on the table.

[0063] In this embodiment, by establishing a virtual model of the billiard table and the billiard ball, in conjunction with the image data, the movement path of the billiard ball can be accurately analyzed to ensure accurate billiard scoring. The combination of the video processing algorithm with the virtual model of the billiard table and the billiard ball can analyze the process from the billiard ball being hit by the cue to the end of the billiard ball movement, thereby ensuring accurate billiard scoring.

[0064] By obtaining a virtual model of the billiard table and the billiard ball and analyzing the friction coefficient μ between the billiard ball and the table, the impact force of the cue and the friction coefficient μ can be used to calculate the billiard ball's movement speed and impact force, and then the time when the billiard ball hits the point can be obtained. Detailed data on the billiard ball collision can be obtained, which can further ensure the analysis of the billiard ball's path.

[0065] In one embodiment, the camera and the table both include a position chip, which collects the camera height and the camera illumination angle through the position chip, analyzes the table deviation value in the camera's image data through the position information of the camera and the table, and adjusts the table image in the image data based on the table image in the image data and the table deviation value.

[0066] In this embodiment, since the camera is not installed directly above the desktop and does not illuminate the desktop vertically, the image data collected by the camera will be distorted. Therefore, the deformation deviation value of the image data collected by the camera is calculated according to the camera height, illumination angle and table position, and the table in the image data is stretched and adjusted according to the deformation deviation value.

[0067] After the billiard table is adjusted to a normal size, it can be made to match the size of the billiard table, thereby ensuring the accuracy of collecting billiard scores.

[0068] In one embodiment, the friction coefficient μ between the billiard ball and the billiard table is obtained, and the billiard ball is placed on an inclined plane, ensuring that the surface material of the inclined plane is the same as the surface material of the billiard table; the inclination angle of the inclined plane is gradually increased until the billiard ball begins to slide; the inclination angle at which the billiard ball begins to slide is recorded, denoted as θ0; the friction coefficient μ is calculated using the following formula: μ=tan(θ0).

[0069] In this embodiment, the friction coefficient μ between the billiard ball and the table is calculated, which can facilitate the calculation of the ball speed after the cue hits the billiard ball, thereby ensuring the accuracy of the analysis of the billiard ball's motion path, thereby ensuring that the actual billiard ball motion is consistent with the billiard ball analysis motion.

[0070] In one embodiment, the friction coefficient μ is introduced into the virtual model of the billiard table and the billiard ball, and the virtual model of the billiard table and the billiard ball is established according to the mass of the billiard ball, the size data of the billiard ball, the size data of the billiard table and the friction coefficient μ. The coordinates are established based on the trouser edge of one side of the virtual model of the billiard table, and the table top of the billiard table is divided into two upper and lower coordinate areas.

[0071] In this embodiment, the table surface is divided by coordinates, and the position of the billiard ball on the table is represented by the coordinates, so that different billiard balls can be distinguished accordingly. During the hitting process, the position of the coordinate point is determined according to the movement path of the white ball and the billiard ball it collides with, and the path between the coordinate points is the movement path of the billiard ball. Clearly understanding the coordinates of the billiard ball can further ensure the accuracy of billiard scoring.

[0072] In one embodiment, the billiard balls on the table are marked respectively, C n (x, y), where C represents the color corresponding to the billiard ball, n represents the number of the same color, (x, y) is the coordinate of the billiard ball on the table, n changes with the number of billiard balls of the same color on the table, and the movement of the billiard ball is tracked when the billiard ball moves on the table, and the billiard ball is re-marked after it falls into the storage.

[0073] In this embodiment, different billiard balls of the same color can be distinguished according to the coordinates of the billiard balls, so that the corresponding billiard balls can be identified and their positions can be obtained, and the status of the billiard balls on the table can be analyzed according to the positions. When the number of billiard balls of the same color decreases, the last number n billiard balls that appear are compared with the billiard ball images after the decrease, and the billiard ball numbers are adjusted.

[0074] In order to process the billiard ball numbers faster, the final image with the number of billiard balls n is compared with the image of the billiard balls after the number of balls is reduced. The numbers of the billiard balls that have not been displaced are not modified, and the numbers of the billiard balls that have been displaced are adjusted. When the number of the billiard ball that has not been displaced is n, the numbers of all the billiard balls on the table are adjusted to n-1, and the billiard ball numbered 0 is renumbered.

[0075] In one embodiment, the motion path of the billiard ball is predicted by the billiard ball motion speed:

[0076] Get the initial position of the billiard ball, build a cue mass model, and use the camera to collect the cue's movement time and distance to calculate the cue's movement speed v and movement force P:

[0077] P = mv = m(d / t);

[0078] Among them, P is the force of the club movement, m is the mass of the club, v is the speed of the club, d is the distance the club moves when it hits the billiard ball, and t is the time it takes for the club to move the distance;

[0079] The speed of the billiard ball is calculated by the movement force and speed generated by the cue hitting the billiard ball and the friction coefficient μ between the billiard ball and the table;

[0080] The motion coordinates of the billiard ball are collected multiple times by the camera, and the impact position of the billiard ball is predicted based on the initial coordinates, movement speed and coordinates of the billiard ball during the movement.

[0081] In this embodiment, the mass data of the cue and the billiard ball are fixed values, and the movement distance and movement time of the cue are acquired through camera collection, and the movement speed v and movement force P of the cue are calculated, so that the movement of the billiard ball can be calculated, and the position of the billiard ball can be predicted according to the acceleration change caused by the movement of the billiard ball. The accuracy of the camera in collecting the movement of the billiard ball can be further guaranteed, and the prediction of the position of the billiard ball can also help the camera to calibrate the position of the billiard ball.

[0082] Optionally, in another embodiment, the ratio S of a single pixel to the real world can be confirmed, and then the Euler distance d of the position of a single billiard ball between two frames of graphics can be combined to obtain the movement speed of the billiard ball V = (f / i) × S, where i is the interval time between the two frames of image acquisition and f / i is the pixel speed.

[0083] In one embodiment, the position of the billiard ball is calculated:

[0084] The friction force is calculated by the billiard ball friction coefficient μ, the billiard ball mass and the gravitational acceleration: F = μ·m·g;

[0085] Acceleration of the billiard ball (a): a = F / m = μ·g;

[0086] At each time step, the velocity Vt and position Xt of the billiard ball are updated by the following formula:

[0087] Vt=V1-a·dt;

[0088] Xt=X1+Vt·dt;

[0089] Among them, dt is the time step, V1 is the current speed of the billiard ball, and X1 is the current position.

[0090] In this embodiment, the speed and position of the billiard ball are continuously updated through a formula, so that the movement path of the billiard ball and the time required to reach a certain position can be predicted according to the speed change generated during the movement of the billiard ball.

[0091] Optionally, since the path and position of the billiard ball are constantly updated, it is possible to ensure that when the billiard ball collides, the predicted impact position of the billiard ball is accurate, thereby reducing the deviation in the prediction of the impact position of the billiard ball and further ensuring the accuracy of the billiard ball motion calculation.

[0092] In one embodiment, the billiard ball expands outward from the center coordinate to form a coordinate within a square frame. When the billiard ball moves, the speed and position of the billiard ball are updated, the impact point of the billiard ball can be analyzed, and the movement angle of the impacted billiard ball can be determined based on the impact point of the billiard ball. The displaced billiard ball forms a circular impact edge with the center coordinate. The updating of the billiard ball position can obtain the contact coordinate position of the billiard ball and the impacted billiard ball, and analyze the movement direction of the billiard ball.

[0093] In this embodiment, the table motion direction analysis is trained based on deep learning technology using a large amount of billiard ball collision image sample data, and the stationary billiard ball box is based on the motion direction of the billiard ball moving toward it, that is, the motion path of the moving billiard ball is directed toward the edge position of the box of the stationary billiard ball.

[0094] Continuously adjusting the position of the stationary billiard ball box can avoid the situation where a collision between the moving billiard ball and the stationary billiard ball is judged to have occurred but in fact has not occurred, further ensuring the accuracy of the prediction.

[0095] Training with a large amount of billiard ball collision image sample data can improve the accuracy of simulating billiard ball movements with the virtual model of the billiard table and desktop.

[0096] In one embodiment, the batsman is analyzed based on the billiards motion path and rules. If a goal is scored within the rules according to the billiards path combined with the rules, the batsman's score continues to be counted. If a foul occurs, the other batsman is given a corresponding score and the scoring of the batsman ends, and the scoring of another batsman begins.

[0097] In this embodiment, the batsman does not need to be identified based on images. It only needs to analyze the results of the batting behavior based on the movement path and rules of the billiards ball, and score according to the results without identifying the batsman, thereby reducing the batsman's interference with scoring.

[0098] In one embodiment, the processor transmits the image data collected by the camera and the predicted simulated hitting scores of the billiards by the virtual model of the billiards and the virtual model of the billiard table to the display device via electrical signals, and the display device outputs the scoring situation.

[0099] In summary, the technical solutions disclosed in the above embodiments of the present invention have at least the following advantages:

[0100] 1. This application configures a simulation model of a billiard ball and a billiard table, simulates the billiard motion according to the changes in the simulation model, analyzes the changes of the billiard ball on the table based on the image and the motion path of the billiard ball, improves the accuracy of billiard scoring, and does not limit the installation position of the camera. It only needs to be installed above the table at any angle that can capture the entire table, which solves the problem that similar products can only be installed above the center of the table.

[0101] 2. It can identify billiard balls, tables, people and cues of different colors within the camera's field of view. It can also automatically identify the size of the billiard balls within the camera's field of view, obtain the position of the camera and the table to process the image, ensure the accuracy of the billiard ball movement in the image, and further improve the accuracy of billiard scoring recognition.

[0102] 3. During the image acquisition process, the contestants and referees may block the billiard table. In this state, the accuracy of billiard scoring will be greatly improved. Therefore, the displacement caused by the collision of the billiard ball is analyzed and simulated through the model of the billiard table and the billiard ball, which further ensures that the accuracy of billiard scoring will not be reduced in the case of blockage.

[0103] 4. The number and position of billiard balls are identified by the bright spots produced by projecting light on the billiard balls, ensuring the accuracy of billiard ball position identification. The accuracy of billiard ball identification will not be affected due to the billiard balls blocking each other during the image acquisition process by the camera.

[0104] Although the present invention is disclosed in conjunction with the above embodiments, it is not intended to limit the present invention. Anyone familiar with this technology can make various changes and modifications without departing from the spirit and scope of the present invention. Therefore, the scope of protection of the present invention should be based on the definition of the attached claims.

Claims

1. A billiards scoring system based on image recognition processing, characterized in that: include: A camera collects image data including the billiard table and the billiard balls on the table; A processor, used for processing image data collected by the camera, and the image data processed by the processor is output as billiard scoring information through a display device; A virtual model of the billiard table and billiard balls is established by obtaining the mass of the billiard balls, the size of the billiard balls, the size of the billiard table, and the friction coefficient μ between the billiard balls and the billiard table. The path, speed, and position of the billiard balls on the billiard table are simulated based on the movement of the cue hitting the billiard balls, and the changes of the billiard balls are predicted. Video processing algorithm, which processes the image data collected by the camera, obtains the camera shooting angle and the table position data, and stretches the table image data; The camera collects the movement path and impact position of the billiard ball, calculates the movement of the billiard ball after the impact by the force of the cue hitting the ball, analyzes the movement path of the billiard ball, and obtains the reflection point of the billiard ball on the light to locate the billiard ball on the table; Mark the billiard balls on the table respectively, C n (x, y), where C represents the color corresponding to the billiard ball, n represents the number of the same color, (x, y) is the coordinate of the billiard ball on the table, n changes with the number of billiard balls of the same color on the table, and the movement of the billiard ball is tracked when the billiard ball moves, and the billiard ball is re-marked after it falls into the storage; Predict the motion path of the billiard ball by its speed: Get the initial position of the billiard ball, build a cue mass model, and use the camera to collect the cue's movement time and distance to calculate the cue's movement speed v and movement force P: P = mv = m(d / t); Among them, P is the force of the club movement, m is the mass of the club, v is the speed of the club, d is the distance the club moves when it hits the billiard ball, and t is the time it takes for the club to move the distance; The speed of the billiard ball is calculated by the movement force and speed generated by the cue hitting the billiard ball and the friction coefficient μ between the billiard ball and the table; The motion coordinates of the billiard ball are collected multiple times by a camera, and the impact position of the billiard ball is predicted according to the initial coordinates, motion speed and coordinates of the billiard ball during the motion process; Compute the position of the billiard ball: The friction force is calculated by the billiard ball friction coefficient μ, the billiard ball mass and the gravitational acceleration: F = μ·m·g; The acceleration of the billiard ball is: a = F / m = μ·g; At each time step, the velocity Vt and position Xt of the billiard ball are updated by the following formula: Vt = V1-a·dt; Xt=X1+Vt·dt; Among them, dt is the time step, V1 is the current speed of the billiard ball, and X1 is the current position.

2. A billiard scoring system based on image recognition processing according to claim 1, characterized in that: Both the camera and the table include a position chip, which collects the camera height and the camera illumination angle through the position chip, and analyzes the table deviation value in the camera's image data through the position information of the camera and the table, and adjusts the table image in the image data based on the table image in the image data and the table deviation value.

3. A billiard scoring system based on image recognition processing according to claim 1, characterized in that: Obtain the friction coefficient μ between the billiard ball and the table, place the billiard ball on the inclined plane, and ensure that the surface material of the inclined plane is the same as the surface material of the billiard table; gradually increase the inclination angle of the inclined plane until the billiard ball starts to slide; record the inclination angle at which the billiard ball starts to slide, recorded as θ0; the friction coefficient μ is calculated using the following formula: μ=tan(θ0).

4. A billiard scoring system based on image recognition processing according to claim 3, characterized in that: Substitute the friction coefficient μ into the virtual model of the billiard table and the billiard ball, establish the virtual model of the billiard table and the billiard ball according to the mass of the billiard ball, the size data of the billiard ball, the size data of the billiard table and the friction coefficient μ, establish the coordinates based on one side of the trouser edge of the virtual model of the billiard table, and divide the billiard table top into two upper and lower coordinate areas.

5. A billiard scoring system based on image recognition processing according to claim 4, characterized in that: The billiard ball expands outward from the center coordinate to form a coordinate within a square. When the billiard ball moves, the speed and position of the billiard ball are updated, the impact point of the billiard ball can be analyzed, and the movement angle of the impacted billiard ball can be judged based on the impact point of the billiard ball. The displaced billiard ball forms a circular impact edge with the center coordinate. The update of the billiard ball position can obtain the contact coordinate position of the billiard ball and the impacted billiard ball, and analyze the movement direction of the billiard ball.

6. A billiard scoring system based on image recognition processing according to claim 5, characterized in that: The batsman is analyzed based on the billiards movement path and rules. If a goal is scored within the rules according to the billiards path combined with the rules, the batsman's score will continue to be counted. If a foul occurs, the other batsman will be given the corresponding score and the scoring for the batsman will end, and the scoring for another batsman will begin.

7. A billiard scoring system based on image recognition processing according to claim 6, characterized in that: The processor transmits the image data collected by the camera and the predicted and simulated hitting scores of the billiards by the virtual model of the billiards and the virtual model of the billiard table to the display device through electrical signals, and the display device outputs the scoring situation.