WO2019000312A1 - 台球位置确定方法、台球位置确定装置及电子设备 - Google Patents

台球位置确定方法、台球位置确定装置及电子设备 Download PDF

Info

Publication number
WO2019000312A1
WO2019000312A1 PCT/CN2017/090774 CN2017090774W WO2019000312A1 WO 2019000312 A1 WO2019000312 A1 WO 2019000312A1 CN 2017090774 W CN2017090774 W CN 2017090774W WO 2019000312 A1 WO2019000312 A1 WO 2019000312A1
Authority
WO
WIPO (PCT)
Prior art keywords
billiard
photo
pool
determining
line
Prior art date
Application number
PCT/CN2017/090774
Other languages
English (en)
French (fr)
Inventor
李传兵
Original Assignee
深圳英麦吉科技有限公司
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 深圳英麦吉科技有限公司 filed Critical 深圳英麦吉科技有限公司
Priority to PCT/CN2017/090774 priority Critical patent/WO2019000312A1/zh
Priority to CN201780003849.6A priority patent/CN108475435B/zh
Publication of WO2019000312A1 publication Critical patent/WO2019000312A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/70Determining position or orientation of objects or cameras
    • 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
    • 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
    • A63D2015/001Billiards, e.g. carom billiards or pocket billiards; Billiard tables with inclination indicating means

Definitions

  • the invention relates to a billiard position determining method, a billiard position determining device and an electronic device.
  • Billiards also known as billiards, is a sport that is loved by people in modern life. It can be used not only as an entertainment program for family and friends, but also as an important international competition in the world (such as snooker). American billiards). Whether it is entertainment or competition, how to help billiards improve the level of hitting is an important issue, and how to determine the position of the billiards plays a crucial role in helping the billiards improve the level of the shot.
  • the present invention provides a billiard position determining method, a billiard position determining device and an electronic device.
  • a method for determining a billiard position comprising:
  • the photo of the pool table including at least a cue ball, a target ball, an associated ball and a next target ball located on the billiard table, the position of the associated ball being changed between the cue ball and the target ball Other balls that cause a corresponding change in position;
  • the position of the corresponding billiards is determined according to each of the two lines of the determined angle formed by the edge of the adjacent billiard table in the photo of the pool table.
  • the obtaining a photo of at least one pool table including at least the cue ball, the target ball, the associated ball and the next target ball located on the billiard table include:
  • the photo of the pool table including the entire table of the pool table and all billiards on the billiard table; or
  • the photo of the pool table including at least one corner pocket of the poolside table of the pool table and the cue ball, the target ball, the associated ball and the next target ball on the billiard table;
  • the photo of the at least two pool tables including at least two different pool tables
  • the corner bag of the library side, the photo of the plurality of pool tables includes at least a cue ball, a target ball, an associated ball and a next target ball on the billiard table.
  • connection between the billiard in the photo of each pool table and the library side of the at least one pool table in the corresponding photo includes:
  • the photo of the billiard table includes the entire table of the billiard table and all billiards on the billiard table a first line and a second line formed by the two sides of the pool table of the two billiard tables; or
  • the photo of the pool table includes at least one corner pocket of the poolside table of the pool table and the cue ball, the target ball, and the associated ball on the billiard table And the next target ball, determining the first connection formed by the billiards in the photo of the billiard table and the corner of a poolside table of the pool table and the intersection of a billiard and a billiard table The second connection formed; or
  • the photo of the at least two pool tables includes at least two a different billiard table of the side of the library, the photo of the plurality of billiard tables including at least the cue ball, the target ball, the associated ball and the next target ball on the billiard table, determine each billiard The line between the billiards in the photo of the table and the intersection of a poolside and a table inside the pool table in the corresponding photo.
  • the photo of each pool table is determined.
  • the angle between the connection and the edge of the adjacent billiard table includes:
  • the first connection Determining an angle formed by the first connecting line and an adjacent side of the first connecting line according to a length of the prestored library side, a pre-stored width of the library side and a trigonometric function, the first connection
  • the line has two adjacent sides, and the first line has a mutual relationship with the angle formed by the two adjacent sides;
  • the second connection Determining an angle formed by the second connecting line and an adjacent side of the second connecting line according to a length of the prestored library side, a pre-stored width of the library side and a trigonometric function, the second connection
  • the line has two adjacent sides, and the second line has a mutual relationship with the angle formed by the two adjacent sides.
  • the angle formed by the connection in the photo of each pool table and the edge of the adjacent pool table includes:
  • the angle ⁇ formed by the edge CF and its adjacent side is determined.
  • the side CF has two adjacent sides BC and CD, and the edge CF has a mutual relationship with the angle formed by the sides BC and CD.
  • the angle ⁇ and the angle ⁇ can be directly solved by the trigonometric function relationship.
  • the length of the side AB and the sides AD are unknown, further, the length of the side AB is equal to the length of the side AD.
  • a billiard position determining device comprising:
  • An image acquisition module configured to obtain a photo of at least one pool table, the photo of the pool table includes a cue ball, a target ball, an associated ball, and a next target ball located on the billiard table, and the associated ball is a cue ball and a target Other billiards whose position changes correspondingly when the position of the ball changes;
  • connection determining module configured to determine a connection formed between each billiard in each photo of the pool table and the library side of the pool table in the corresponding photo
  • An angle determining module for determining an angle formed by a line in a photo of each billiard table and a bank edge of an adjacent billiard table;
  • the position determining module is configured to determine a position of the corresponding billiard according to each of the two connected lines formed in the photo of the pool table and the adjacent angle formed by the adjacent pool table.
  • the image acquisition module is configured to:
  • the photo of the pool table including the entire table of the pool table and all billiards on the billiard table; or
  • the photo of the pool table including at least one corner pocket of the poolside table and the cue ball, the target ball, the associated ball and the next target ball on the billiard table ;
  • the photo of the at least two pool tables including at least two different pool tables
  • the corner bag of the library side, the photo of the plurality of pool tables includes at least a cue ball, a target ball, an associated ball and a next target ball on the billiard table.
  • connection determination module is configured to:
  • the photo of the billiard table includes the entire table of the billiard table and all billiards on the billiard table a first line and a second line formed by the two sides of the pool table of the two billiard tables; or
  • the photo of the pool table includes at least one corner pocket of the poolside table of the pool table and the cue ball, the target ball, and the associated ball on the billiard table And the next target ball, determining the first connection formed by the billiards in the photo of the billiard table and the corner of a poolside table of the pool table and the intersection of a billiard and a billiard table The second connection formed; or
  • the photo of the at least two pool tables includes at least two a different corner pocket, the photo of the plurality of billiard tables including the cue ball, the target ball, the associated ball and the next target ball on the billiard table, determining the billiards and corresponding photos in the photo of each billiard table
  • the angle determining module is configured to:
  • the first connection Determining an angle formed by the first connecting line and an adjacent side of the first connecting line according to a length of the prestored library side, a pre-stored width of the library side and a trigonometric function, the first connection
  • the line has two adjacent sides, and the first line has a mutual relationship with the angle formed by the two adjacent sides;
  • the second connection Determining an angle formed by the second connecting line and an adjacent side of the second connecting line according to a length of the prestored library side, a pre-stored width of the library side and a trigonometric function, the second connection
  • the line has two adjacent sides, and the second line has a mutual relationship with the angle formed by the two adjacent sides.
  • the angle determination module is used to:
  • the angle ⁇ formed by the edge CF and its adjacent side is determined.
  • the side CF has two adjacent sides BC and CD, and the edge CF has a mutual relationship with the angle formed by the sides BC and CD.
  • the angle ⁇ and the ⁇ value can be directly solved by the trigonometric function relationship.
  • the length of the side AB is equal to the length of the side AD.
  • An electronic device comprising a processor, the processor for performing the steps of the billiard position determining method according to any one of the above, when the computer program stored in the non-volatile storage medium is executed.
  • the billiard position determining method, the billiard position determining device and the electronic device of the present invention can determine the position of each billiard by analyzing the photograph, thereby positioning the billiard position, conveniently calculating the hitting path and giving the hitting suggestion. And the hitting suggestion can be provided to the user through the electronic device, thereby helping the billiard player to raise the hitting level.
  • FIG. 1 is a schematic structural view of a billiard tabletop and billiards set on a billiard tabletop;
  • FIG. 2 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
  • FIG. 3 is a schematic flow chart of a method for determining a billiard position provided by the present invention.
  • FIG. 4 is a schematic diagram of an external camera device ingesting a billiard table according to an embodiment of the present invention
  • FIG. 5 is a schematic diagram of an ingestion of a billiard table by an electronic device according to an embodiment of the invention.
  • FIG. 6 is a first line formed by a poolside table corner A1 of a billiard table and a billiard table in a photo of a billiard table according to a first embodiment of the present invention, and a library side table of billiards and billiard tables. a schematic plan view of the second line formed by the angle A2;
  • FIG. 7 is a first line formed by a billiard table and a billiard table in the photo of a billiard table according to a second embodiment of the present invention, and a top side of the billiard and billiard table a schematic plan view of a second line formed by the angle C1;
  • Figure 8 is a plan view showing the line formed by the billet and the top corner of the pool side of the billiard table in the photo of the billiard table according to the third embodiment of the present invention.
  • FIG. 9 is a view showing the first embodiment of the present invention for determining the angle formed by the first line O 1 A1 and the bank edge of the adjacent billiard table and the second line O 1 A2 and the bank side of the adjacent billiard table Schematic diagram of the angle;
  • 10 is a second embodiment of the present invention for determining the angle formed by the first line O 1 A1 and the bank edge of the adjacent billiard table and the second line O 1 C1 and the bank edge of the adjacent pool table Schematic diagram of the angle;
  • Figure 11 is a schematic view of the specific angle defined in Figure 10.
  • Billiard tabletop 1 Library side 11 Corner pocket 12, 12a, 12b, 12c, 12d Medium bag 13, 13a, 13b Kurtani 111 Medial side 112 Outer side 113 billiards 2 Cue ball twenty one Billiards twenty two Electronic equipment 10, 100, 610, 620, 630 Billiard position determining device 20
  • Non-volatile storage medium 30 processor 40
  • Angle determination module 230
  • a component when referred to as being "fixed” to another component, it can be directly on the other component or the component can be in the middle. When a component is considered to be “set to” another component, it can be placed directly on another component or possibly with a centered component.
  • the terms “left”, “right”, and the like, as used herein, are for illustrative purposes only.
  • FIG. 1 is a schematic diagram of a billiard tabletop and a billiard set on a billiard tabletop.
  • a plurality of billiards 2 are placed on the billiard table top 1, wherein at least one cue ball 21 and a plurality of target billiard balls 22 are included.
  • the present invention is described by taking snooker as an example.
  • other types of billiards such as British billiards, American billiards, French billiards, or Chinese billiards, may be used, and are not limited thereto.
  • the billiard tabletop 1 is rectangular.
  • the billiard table top 1 includes a library side 11 on the four sides of the billiard table top 1, a corner pocket 12 at the four corners of the billiard table top 1, and two middle pockets 13 at the center of the long side.
  • Each library side 11 includes a library side Tuni 111.
  • the library side table 111 of the billiard tabletop 1 forms a number of intersections. Specifically, the extension line of the inner side 112 of the poolside table 111 of the billiard tabletop 1 forms four intersection points A, which are the intersections A1, A2, A3 and A4 of the library side of the billiard tabletop.
  • intersection points C which are respectively the intersections C1, C2, C3 and C4 of the billiard table and the outer frame of the billiard table.
  • the intersection points A1, A2, A3 and A4 are not limited to the position in the figure, but can also be in other positions on the billiard tabletop.
  • the intersection point A1 can also be located at the lower right, upper left or lower left of the billiard tabletop.
  • the intersection points C1, C2, C3 and C4 are not limited to the position in the figure, but can be located at other positions on the billiard tabletop.
  • the intersection point C2 can also be located at the upper right, upper left or lower left of the billiard tabletop.
  • the four intersections formed by the inner side of the pool side table of the billiard table 1 are the four vertices formed by the inner side frame of the billiard table top 1 and the side table of the billiard table 1
  • the four intersections formed by the outer frame are the four vertices formed by the outer edge of the poolside tabletop of the billiard tabletop 1.
  • the four intersections formed by the inner side of the billiard tabletop 1 are the four bottom points formed by the inner side of the poolside table 1 of the billiard tabletop, and the side of the billiard table 1
  • the four intersection points formed by the outer frame are the four bottom points formed by the outer side frame of the billiard table top 1.
  • the billiard table top 1 further includes an identifier, and the four bottom points formed by the library side 111 of the billiard table 1 can be determined by the identifier.
  • the identifier may be a symbol for identifying the four bottom points formed by the library side table 111 of the billiard tabletop 1, such as the origin, number, etc.
  • the four bottom points formed by the inner side frame of the billiard table 1 can be determined by the origin, the number, and the like.
  • the identifier may also be an indication of a number of bottom points formed by the library side 111 of the billiard table top 1, such as a first line or two on the billiard table top 1 at the bottom of the inner side 112 of the library side 111 Point, etc., or a second straight line or two points at the diagonal of the billiard tabletop 1, etc., thereby determining the intersection of the two first straight lines, or determining a straight line by two points and determining by two The intersection of the straight lines, or by determining the intersection of the vertical line drawn by the vertices formed by the inner edge of the library side and the second line, or by determining the line by two points, and by determining the inner side of the library The intersection of the formed vertical line drawn downward from the vertical line and the determined line determines the four bottom points formed by the
  • the four intersections formed by the inner side of the billiard tabletop 1 can be determined as follows:
  • the method for determining the four bottom points formed by the inner side frame of the billiard table top 1 is as described above, and will not be described herein.
  • the four intersections formed by the outer side of the library side table 1 of the billiard tabletop 1 can also be determined.
  • the four corner pockets 12 are 12a, 12b, 12c and 12d, respectively.
  • the two middle pockets 13 are 13a and 13b, respectively.
  • Billiard tabletop 1 can include 22 billiards, only some billiards are shown in the figure. Twenty-two billiards include a white cue ball 21 and twenty-one billiards to be hit. Twenty-one billiards to be hit include 22 red balls and six colored balls. The six colored balls are yellow, green, brown, blue, pink, and black.
  • the positioning points of billiards are O 1 , O 2 , O 3 , O 4 , O 5, respectively. . . , O 22 .
  • the point of the billiard is the point on the billiard equal to the height of the side of the library.
  • the bottom of the billiard is a plane
  • the point of the billiard is the bottom point of the billiard.
  • the center of the billiard is a plane, the positioning point of the billiard is the center of the ball.
  • FIG. 2 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
  • the electronic device 10 can be a smart phone, a tablet, a smart wearable device, or the like.
  • the smart wearable device can be a virtual reality helmet device, an augmented reality helmet device (such as augmented reality glasses), or a smart watch.
  • the electronic device 10 is a smart phone.
  • the electronic device 10 includes a billiard position determining device 20.
  • the electronic device 10 also includes a non-volatile storage medium 30, a processor 40, and an imaging device 50.
  • the billiard position determining device 20 can obtain at least one photo of a pool table.
  • the photo of the billiard table includes at least a cue ball, a target ball, an associated ball and a next target ball on the billiard table, and the associated ball is a cue ball and a target ball.
  • billiards that change position correspondingly when the position changes; determine the connection between each billiard in each photo of the pool table and the library side of the pool table in the corresponding photo; determine each billiard The angle between the line in the photo of the table and the edge of the adjacent billiard table; the connection between each of the two angles formed in the photo of the billiard table and the edge of the adjacent billiard table Determine the location of the billiards to determine the location of the billiards in the photo of the pool table.
  • Processor 40 may include one or more microprocessors, digital processors.
  • the processor 40 is configured to execute at least one instruction to implement a billiard position determination method.
  • the image pickup apparatus 50 is for taking a photo. It is apparent that the image pickup apparatus 50 is not limited to being included in the electronic apparatus 10 of the present embodiment, and may be an external image pickup apparatus.
  • the imaging device 50 can communicate with the electronic device 10 such that the imaging device 50 can transmit the captured photos to the electronic device 10 for analysis by the electronic device 10.
  • the billiard position determining apparatus 20 includes an image obtaining module 210, a connection determining module 220, an angle determining module 230, and a position determining module 240.
  • a module as referred to in the present invention refers to a series of computer program segments that can be executed by a processor and that are capable of performing fixed functions, which are stored in a non-volatile storage medium.
  • the image obtaining module 210 is configured to obtain a photo of at least one billiard table.
  • the photo of the billiard table includes at least a cue ball, a target ball, an associated ball, and a next target ball located on the billiard table, and the associated ball is a cue ball and a target.
  • Other billiards that change position correspondingly when the position of the ball changes.
  • the photo of the pool table includes at least a cue ball, a target ball, an associated ball and a next target ball on the billiard table.
  • the photos of the plurality of pool tables together include at least the cue ball, the target ball, the associated ball and the next target ball on the billiard table.
  • the photo of the pool table includes all billiards on the billiard table.
  • the connection determination module 220 is configured to determine a connection formed between each billiard in each photo of the pool table and a library side intersection of at least one pool table in the corresponding photo.
  • the included angle determination module 230 is configured to determine an angle formed by a line in the photo of each pool table and a bank edge of an adjacent pool table.
  • the position determining module 240 is configured to determine a position of the corresponding billiard according to each of the two lines determined by the angle formed by the bank edge of the adjacent billiard table in the photo of the pool table.
  • the specific functions of the image acquisition module 210, the connection determination module 220, the angle determination module 230, and the location determination module 240 will be described below in conjunction with the flowcharts.
  • FIG. 3 is a schematic flow chart of a method for determining a billiard position provided by the present invention.
  • the billiard position determination method is applied to an electronic device.
  • the electronic device can be a smart phone, a tablet, a smart wearable device, or the like.
  • the smart wearable device can be a virtual reality helmet device, an augmented reality helmet device (such as augmented reality glasses), or a smart watch.
  • the electronic device is a smart phone.
  • the billiard position determining method may include the following steps:
  • the photo of the pool table includes at least a cue ball, a target ball, an associated ball and a next target ball on the billiard table, and the associated ball is caused by a change in the position of the cue ball and the target ball. The location changes accordingly for other billiards.
  • the photo of the pool table includes at least the cue ball, the target ball, the associated ball and the next target ball on the billiard table.
  • the photos of the plurality of pool tables together include at least the cue ball, the target ball, the associated ball and the next target ball on the billiard table.
  • the photo of the pool table includes all billiards on the billiard table.
  • the photo of the pool table includes at least a cue ball, a target ball, an associated ball and a next target ball on the billiard table, including:
  • Option 1 Get a photo of a pool table with photos of the pool table and all billiards on the billiard table.
  • the imaging device 400 is a built-in imaging device.
  • the electronic device 100 is placed above the billiard table to capture photos through the camera 400 in the electronic device 100.
  • the electronic device 100 can be placed above the billiard table by a bracket fixed to the ceiling.
  • FIG. 4 is a schematic diagram of an external camera device ingesting a billiard table according to an embodiment of the invention.
  • the imaging device 400 is an external imaging device.
  • the imaging device 400 is an external imaging device disposed above the billiard table (such as a lighting device on the table of the ball), and the external camera device can communicate with the electronic device 100, and the photo taken by the external camera device can be It is transmitted to the electronic device 100 for analysis by the electronic device 100.
  • the camera 400 can ingest the entire table of the pool table, so that the photo of the pool table includes the entire table of the pool table and all the billiards on the billiard table.
  • Option 2 Obtain at least one photo of a pool table.
  • the photo of the pool table includes at least one corner pocket of the poolside table and the cue ball, the target ball, the associated ball and the next target ball on the billiard table.
  • FIG. 5 is a schematic diagram of an electronic device ingesting a billiard table according to an embodiment of the invention.
  • the electronic device 500 When ingesting the billiard table, the electronic device 500 necessarily ingests at least one corner pocket of the poolside binni of the pool table, and at least ingests the cue ball, the target ball, the associated ball, and the next target ball. Before taking the shot, the user knows the cue ball, the target ball that he is ready to hit, the associated ball, and the next target ball.
  • the electronic device 500 is located at a corner pocket of the billiard table to ingest the billiard table.
  • the camera due to the perspective of the camera, it is generally impossible to capture a desired range in one shot (such as photographing the left half of the table), so it is necessary to take multiple shots from different angles, such as rotating the electronic device 500 at a corner pocket of the billiard table.
  • the shooting is performed such that the plurality of photographs together include at least the cue ball, the target ball, the associated ball, and the next target ball.
  • Option 3 Get a photo of at least two pool tables, each of which includes at least one corner pocket and at least one ball of the poolside table, at least two pool tables including at least two different billiards
  • the corner of the table is a corner of the library.
  • the photos of the multiple pool tables include at least the cue ball, the target ball, the associated ball and the next target ball on the billiard table.
  • the method for ingesting the billiard table by the electronic device in the third scheme is similar to the method for ingesting the billiard table by the electronic device in the second scheme, except that the electronic device 610 takes at least two photos of the billiard table together when ingesting the billiard table. It must include the cue ball, the target ball, the associated ball and the next target ball.
  • S302 Determine a connection formed between each billiard in each photo of the pool table and the library side of the pool table in the corresponding photo.
  • step S302 is to determine the billiards in the photo of the pool table and the two pool tables.
  • the first connection and the second connection formed by the intersection of the Kubian and Nepali are as follows:
  • FIG. 6 is a first connection formed by the billiard table of the billiard table in the photo of the billiard table and the billiard table of the billiard table in the photo of the billiard table of the first embodiment of the present invention, and the billiard and billiard tabletop of the billiard table.
  • the photo of the pool table includes the entire tabletop of the pool table and all billiards on the billiard table. Only some of the billiards on the billiard table are shown in the figure.
  • the points of the billiards on the billiard table are O 1 , O 2 , O 3 , O 4 , O 5, respectively. . . , O 22 .
  • the poolside table of the pool table is A1, A2, A3 and A4.
  • the first line formed by the billiards in the photo of the pool table and the corner of the poolside table of the pool table is O 1 A1, O 2 A1, O 3 A1, O 4 A1, O 5 A1 , . . . , O 22 A1.
  • the second line formed by the billiards in the photo of the pool table and the side of the library side of the pool table A4 is O 1 A4, O 2 A4, O 3 A4, O 4 A4, O 5 A4 , . . . , O 22 A4.
  • the figure shows only the first connection formed by the intersection of some billiards on the billiard table and the poolside table of the billiard table, and the second connection formed by the intersection A4 of the poolside table. line.
  • the first connection and the second connection formed by the billiards in the photo of the pool table and the intersection of the two side pools of the two billiard tables may be determined.
  • the acquired photo is a photo of at least one pool table
  • the photo of the pool table includes at least one corner pocket of the poolside table of the pool table and the cue ball, the target ball, the associated ball and the next target ball on the billiard table
  • a first line formed by the intersection of the billiards in the photo of the pool table and the poolside table of the billiard table and the intersection of the billiards and the billiard table of the billiard table are determined.
  • the second connection is as follows:
  • FIG. 7 is a first line formed by the billiard table of the billiard table of the second embodiment of the billiard table and the pool side of the billiard table, and the billiard and billiard table.
  • the photo of the pool table includes at least one intersection of the poolside binni of the pool table and the cue ball, the target ball, the associated ball and the next target ball on the billiard table. Only some of the billiards on the billiard table are shown in the figure.
  • the points of the billiards on the billiard table are O 1 , O 2 , O 3 , O 4 , O 5, respectively. . . , O 22 .
  • the poolside table of the pool table is A1.
  • the intersection of the poolside and the outer frame of the pool table is C1.
  • the first line formed by the billiards in the photo of the pool table and the corner of the poolside table of the pool table is O 1 A1, O 2 A1, O 3 A1, O 4 A1, O 5 A1 , . . . , O 22 A1.
  • the second line formed by the billiards in the photo of the pool table and the poolside corner of the billiard table is O 1 C1, O 2 C1, O 3 C1, O 4 C1, O 5 C1 , . . . , O 22 C1.
  • intersection of the poolside table and the poolside table and the billiard table of the billiard table are not limited to the above-mentioned intersections at the same side of the reservoir, and can also be located at the intersection of different sides of the reservoir.
  • the intersection of the library side and the inner frame is A2
  • the intersection of the outer side of the library side is C1 or C3 or C4.
  • the first connection is formed by the billiards in the photo of the pool table and the corner of the poolside table of the pool table A1
  • the second connection is the pool side of the billiard table and the pool table in the photo of the pool table.
  • the outer frame intersection is formed by C2 or C3 or C4.
  • step S302 is to determine the billiard in the photo of each pool table and the billiard in the corresponding photo
  • FIG. 8 is a plan view showing a line formed by the intersection of the billiards and the poolside table of the billiard table in the photo of the billiard table according to the third embodiment of the present invention.
  • the photo of the pool table includes an intersection of a billiards and a pool table in the side of the pool.
  • the point of the billiards is O 1 .
  • the poolside table of the pool table is A1.
  • the connection between the billiards in the photo of the pool table and the intersection of the poolside and the inner frame of the billiard table is O 1 A1.
  • connection between the other billiards in the photo of the pool table and the intersection of the poolside and the inner frame of the billiard table in the corresponding photo is determined.
  • S303 Determine an angle formed by a line in the photo of each pool table and a bank edge of an adjacent pool table.
  • connection determined in step S302 when determining the angle formed by the connection with the bank edge of the adjacent pool table, it can be determined by:
  • step S302 is to determine the first connection and the second connection formed by each billiard in the photo of the pool table and the library side of the two pool tables
  • step S303 is to determine the photo of the pool table.
  • the angle between the first line and the second line respectively and the bank side of the adjacent pool table is as follows:
  • FIG. 9 is a first embodiment of the present invention for determining the angle formed by the first connection line O 1 A1 and the library side A1A2 of the billiard table, and the second connection line O 1 A4 and the pool side A1A4 of the pool table.
  • the pre-stored A1A2 side length L A1A2, A2A3 side length L and a tangent function A2A3 tan ⁇ L PA2 / L A1A2 determining a first connection clip O O 1 A1 and connect adjacent first sides 1 A1 formed Angle ⁇ .
  • the bank side of the adjacent pool table of the first line O 1 A1 and the bank side of the adjacent pool table of the second line O 1 A4 can be not only A1A2 and A1A4, but also respectively
  • the side A1A4 with the largest angle of the connection O 1 A1 and the side A3A4 with the largest angle with the second line O 1 A4 can determine the angle formed by the first connection line O 1 A1 and the side A1A2 and the second connection.
  • the embodiment is not limited to determining the angle formed by the first line O 1 A1 and the bank edge of the adjacent billiard table, and the second line O 1 A4 and the bank edge of the adjacent billiard table.
  • the angle can also be used to determine the angle formed by the first line O 1 C1 and the edge of the adjacent pool table and the angle formed by the second line O 1 C4 and the edge of the adjacent pool table. Or, in order to determine the angle formed by the first line O 1 A1 and the bank edge of the adjacent billiard table, and the angle formed by the second line O 1 A2 and the bank edge of the adjacent billiard table, Or to determine the angle formed by the first line O 1 C1 and the bank edge of the adjacent billiard table and the angle formed by the second line O 1 C2 and the bank edge of the adjacent billiard table, etc. .
  • the embodiment is not limited to determining the angle formed by the adjacent line of the first line and the adjacent line by the tangent function, and determining the first connection by a trigonometric function such as a cotangent function, a sine function, or a cosine function.
  • a trigonometric function such as a cotangent function, a sine function, or a cosine function.
  • the angle formed by the line and the adjacent side of the first line the embodiment is not limited to determining the angle formed by the adjacent side of the second line and the second line by the tangent function, and may also pass A trigonometric function such as a cotangent function, a sine function, a cosine function, etc. determines an angle formed by the adjacent line of the second line and the second line.
  • the angle formed by the other first lines and the other second lines respectively with the bank edges of the adjacent pool tables is determined by a similar method.
  • step S302 is to determine the first connection formed by the billiards in the photo of the billiard table and the library side of the pool table, and the second point formed by the intersection of the billiards and the billiard table of the billiard table.
  • step S303 is to determine an angle formed by the first line and the second line in the photo of the pool table and the bank edge of the adjacent pool table, as follows:
  • step S303 Please refer to FIG. 10 to FIG. 11 for determining the angle formed by the first connection line O 1 A1 and the bank edge of the adjacent pool table and the second connection line O 1 C1 and adjacent to the second embodiment of the present invention.
  • the extension line of the first line O 1 A1 forms an intersection E1 with the side B1C1;
  • the angle ⁇ formed by the adjacent side of the side A1E1 and the side A1E1 is determined.
  • the adjacent side of the side A1E1 is the side A1B1 with the smallest angle formed by the side A1B1 and the side A1E1, and the angle ⁇ formed by the adjacent side of the side A1E1 and the side A1E1 is determined.
  • the adjacent side of the side A1E1 is the side A1D1 with the largest angle formed by the side A1E1 and the side A1E1, and the angle formed by the adjacent side of the side A1E1 and the side A1E1 is determined as the determining side.
  • the second line O 1 C1 forms an intersection F1 with the side A1D1;
  • the angle ⁇ formed by the adjacent side of the edge C1F1 and the side C1F1 is determined.
  • the adjacent side of the side C1F1 is the side C1D1 with the smallest angle formed by the side B1C1 and C1D1 and the side C1F1, and the angle ⁇ formed by the adjacent side of the side C1F1 and the side C1F1 is determined.
  • the adjacent side of the side C1F1 is the side B1C1 with the largest angle formed by the side C1F1 and the side C1F1, and the angle formed by the adjacent side of the side C1F1 and the side C1F1 is determined as the determining side.
  • the first connection is not limited to O 1 A1, but also O 1 A2, O 1 A3, etc.
  • the second connection is not limited to O 1 C1, but also O 1 C2, O 1 C3, and the like.
  • the angle formed by the other first connection lines and the other second connection lines with the bank edges of the adjacent pool tables is determined by a similar method.
  • the angle ⁇ can be solved according to the length of the side AB and the side AD and the length relationship between the side B1E1 and the side B1C1 in the photo according to the trigonometric function, and the edge is utilized according to the trigonometric function relationship.
  • the length of A1B1 and the side A1D1 and the relationship between the length of the side D1F1 and the side A1D1 in the photograph are used to solve the angle ⁇ .
  • the angle ⁇ formed by the side A1E1 and the side A1B1 includes:
  • Determining the side length L A1B1 A1B1 is equal to the length L of the edge A1D1 A1D1;
  • Determining the side length L A1B1 A1B1 is equal to the side length L B1C1 B1C1; in this embodiment, since the edge of A1B1 length L A1B1 equal to the side length L A1D1 A1D1, and side A1B1 in vertical edge B1C1, side A1D1 perpendicular to the side C1D1 , the side A1B1 A1B1 length L is equal to the side length L B1C1 B1C1.
  • the angle formed by the side A1E1 and the side A1B1 and the angle formed by the side A1E1 and the side A1D1 are complementary, and the angle formed by the side A1E1 and the side A1D1 is equal to 90°- ⁇ .
  • the angle ⁇ formed by the side A1E1 and the side A1B1 is not limited to the angle ⁇ formed by the side A1E1 and the side A1B1 according to the tangent function, and may be based on the cotangent A trigonometric function such as a function, a sine function, or a cosine function determines the angle ⁇ formed by the edge A1E1 and the edge A1B1.
  • the method for determining the angle ⁇ formed by the adjacent side of the side C1F1 and the side C1F1 is similar to the method of determining the angle ⁇ formed by the side A1E1 and the side A1B1, and details are not described herein.
  • step S303 is to determine the connection and corresponding in the photos of the plurality of pool tables.
  • the angle formed by the bank side of the adjacent billiard table is similar to the method of determining the angle ⁇ formed by the edge A1E1 and the edge A1B1, and details are not described herein.
  • the angle formed by the other first connection lines and the other second connection lines with the bank edges of the adjacent pool tables is determined by a similar method.
  • S304 Determine the position of the corresponding billiard according to each of the two connected lines formed in the photo of the pool table and the defined angle formed by the bank of the adjacent pool table.
  • Step S303 is to determine the angle between the first line and the second line in the photo of the pool table and the bank side of the adjacent pool table
  • the first line and the second line are photos of the pool table.
  • Step S304 is a first connection of the determined angle formed by the bank edge of the adjacent pool table according to the billiards of the pool table and the poolside table of the two pool tables.
  • the corresponding second line of the determined angle formed by the bank edge of the adjacent pool table determines the position of the corresponding billiard. details as follows:
  • the position of the billiard is determined according to the angle formed by the first line O 1 A1 and the side A1A2, the angle formed by the second line O 1 A4 and the side A1A4, and the length of the side A1A4.
  • the embodiment is not limited to the above method, and may be an angle formed according to the first connection line O 1 A1 and the side A1A4, an angle formed according to the second connection line O 1 A4 and the side A3A4, and an edge A1A4.
  • the length of the billiard is determined, or the angle formed by the first line O 1 C1 and the adjacent side, the angle formed by the second line O 1 C4 and the adjacent side, and the length of the side C1C4 To determine the location of the billiards and so on.
  • step S303 When the step S303 is to determine the angle between the first line and the second line in the photo of the pool table and the bank side of the adjacent pool table, the first line and the second line are respectively pool tables.
  • step S304 is based on the photo in the pool table.
  • the first line of the determined angle formed by the bank of the billiard table and the corresponding second line of the determined angle formed by the bank edge of the adjacent billiard table determine the position of the corresponding billiard. details as follows:
  • the length of the side A1C1 is determined according to the length of the side A1B1 and the length of the side A1D1, and according to the angle formed by the first connecting line O 1 A1 and the side A1A2, the second connecting line O 1 C1
  • the position of the billiards is determined by the angle formed by the side A1A2 and the length of the side A1C1.
  • step S303 When step S303 is to determine the angle formed by the line in the photo of the plurality of pool tables and the bank edge of the corresponding adjacent pool table, the connection is a pool in the photo of each pool table and a library in the corresponding photo.
  • step S304 determines the position of the corresponding billiard according to each of the two lines of the determined angle formed by the bank edge of the adjacent pool table in the photo of the plurality of pool tables.
  • the step S304 includes the picture formed in accordance with a first connection side and O 1 A1 A1A2
  • the angle between the corner, the line O 1 A4 in the second photo and the side A3A4 and the length of the side A1A4 determine the position of the billiard.
  • the present invention is not limited to the above embodiments, and may have other modifications, such as: first obtaining two photos of a pool table including at least the same billiard, and determining one of the same billiards included in the photos of the two pool tables. Determine the connection between the billiards in the photo of the two pool tables and the intersection of a poolside and a countertop in the corresponding photo, and determine the connection between the photos of the two pool tables and the side of the adjacent pool table.
  • the formed angle determines the position of the billiard according to the two lines of the known angle formed by the bank edge of the adjacent billiard table and the length of the side of the library; the length of the side AC is determined according to the position of the billiard ; determine the first line formed by the billiards in the photo of each pool table and the intersection of the library side and the inner corner of the corresponding photo, and the billiards in the photo of each billiard table and the corresponding side of the library
  • the second line formed by the intersection of the boxes determines the angle formed by the first line in the photo of each pool table and the edge of the adjacent pool table and the second line and the pool of the adjacent pool table.
  • the angle formed by the side according to the photo of the pool table a first line of a known angle formed by the bank edge of an adjacent billiard table, a corresponding second line of a known angle formed by the bank edge of an adjacent billiard table, and
  • the length of the side AC determines the position of the corresponding billiard in the photo
  • the electronic device can predict the hitting position, the hitting path, the hitting angle, the hitting strength, the hitting manner, and the shooting speed according to the position of each billiard. Further, the electronic device can also display the hitting position, the hitting path, the hitting angle, the hitting strength, the hitting manner, and the shooting speed in a graphical and/or numerical manner, thereby helping the billiard player to raise the hitting level.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Image Analysis (AREA)
  • Apparatus Associated With Microorganisms And Enzymes (AREA)

Abstract

一种台球位置确定方法,所述方法包括:获取至少一张台球桌的照片,所述台球桌的照片中包括位于所述台球桌面上的母球、目标球、关联球及下一个目标球(S301);确定每张台球桌的照片中的每个台球与对应照片中的至少一台球桌的库边台尼交点所形成的连线(S302);确定每张台球桌的照片中的连线与相邻的台球桌的库边所形成的夹角(S303);根据台球桌的照片中与相邻的台球桌的库边所形成的已确定夹角的每两条连线确定对应台球的位置(S304)。还提供一种台球位置确定装置及电子设备,可定位台球位置。

Description

台球位置确定方法、台球位置确定装置及电子设备 技术领域
本发明涉及一种台球位置确定方法、台球位置确定装置及电子设备。
背景技术
台球,也可以称为桌球,其是在现代生活中深受人们喜爱的一项体育运动,它不仅可以作为亲朋好友聚会的娱乐项目,也是国际上一项重要的国际比赛项目(如斯诺克、美式台球)。无论是娱乐还是比赛,如何帮助台球运动者提升击球水平都是一项重要的课题,而如何确定台球位置则在帮助台球运动者提升击球水平过程中起到至关重要的作用。
发明内容
为解决现有技术中确定台球位置的问题,本发明提供一种台球位置确定方法、台球位置确定装置及电子设备。
一种台球位置确定方法,所述方法包括:
获取至少一张台球桌的照片,所述台球桌的照片至少包括位于所述台球桌面上的母球、目标球、关联球及下一个目标球,关联球为母球和目标球的位置发生变化时引起的位置相应变化的其他球;
确定每张台球桌的照片中的每个台球与对应照片中的至少一台球桌的库边台尼交点所形成的连线;
确定每张台球桌的照片中的连线与相邻的台球桌的库边所形成的夹角;
根据台球桌的照片中与相邻的台球桌库边所形成的已确定夹角的每两条连线确定对应台球的位置。
进一步地,所述获取至少一张台球桌的照片,所述台球桌的照片至少包括位于所述台球桌面上的母球、目标球、关联球及下一个目标球包括:
获取一张台球桌的照片,所述台球桌的照片包括所述台球桌的整个桌面及位于所述台球桌面上的所有台球;或者
获取至少一张台球桌的照片,所述台球桌的照片包括台球桌的库边台尼的至少一个角袋及位于所述台球桌面上的母球、目标球、关联球及下一个目标球;或者
获取至少二张台球桌的照片,每张台球桌的照片包括台球桌的库边台尼的至少一个角袋及至少一个球,所述至少两张台球桌的照片包括至少两个不同的台球桌的库边台尼的角袋,所述多张台球桌的照片至少包括位于所述台球桌面上的母球、目标球、关联球及下一个目标球。
进一步地,所述确定每张台球桌的照片中的台球与对应照片中的至少一台球桌的库边台尼交点所形成的连线包括:
当所获取的照片为一张台球桌的照片,且所述台球桌的照片包括所述台球桌的整个桌面及位于所述台球桌面上的所有台球时,确定所述台球桌的照片中的台球与二个台球桌的库边台尼交点分别所形成的第一连线及第二连线;或者
当所获取的照片为至少一张台球桌的照片,且所述台球桌的照片至少包括台球桌的库边台尼的至少一个角袋及位于所述台球桌面上的母球、目标球、关联球及下一个目标球时,确定所述台球桌的照片中的台球与台球桌的一库边台尼内框交点所形成的第一连线及台球与台球桌的一库边台尼外框交点所形成的第二连线;或者
当所获取的照片为至少二张台球桌的照片,且每张台球桌的照片包括台球桌的库边台尼的至少一个角袋及至少一个球,所述至少两张台球桌的照片包括至少两个不同的台球桌的库边台尼的角袋,所述多张台球桌的照片至少包括位于所述台球桌面上的母球、目标球、关联球及下一个目标球时,确定每张台球桌的照片中的台球与对应照片中台球桌的一库边台尼内框交点所形成的连线。
进一步地,当确定所述台球桌的照片中的台球与二个台球桌的库边台尼交点分别所形成的第一连线及第二连线时,所述确定每张台球桌的照片中的连线与相邻的台球桌的库边所形成的夹角包括:
确定所述第一连线的反向延长线与所述台球桌的库边台尼侧边所形成的交点P;
根据预存的库边台尼的长度、预存的库边台尼的宽度及三角函数确定所述第一连线与所述第一连线的相邻边所形成的夹角,所述第一连线有两条相邻边,所述第一连线与这两条相邻边的所形成的夹角成互余关系;
确定所述第二连线的反向延长线与所述台球桌面的库边所形成的交点Q;
根据预存的库边台尼的长度、预存的库边台尼的宽度及三角函数确定所述第二连线与所述第二连线的相邻边所形成的夹角,所述第二连线有两条相邻边,所述第二连线与这两条相邻边的所形成的夹角成互余关系。
进一步地,当确定所述台球桌的照片中的台球与台球桌的库边台尼内框交点所形成的第一连线及台球与台球桌的库边台尼外框交点所形成的第二连线时,所述确定每张台球桌的照片中的连线与相邻的台球桌的库边所形成的夹角包括:
确定库边台尼内框交点A及所述库边台尼内框的延长线与库边台尼外侧边所形成的两交点B、D;
确定交点A与交点B及交点D所形成的边AB及AD,确定交点C与交点B及交点D所形成的边BC及CD;
确定第一连线的延长线与边BC或CD所形成的交点E;
确定交点A与交点E所形成的边AE;
确定所述边AE与其相邻边所形成的夹角θ,所述边AE有两条相邻边AB及AD,所述边AE与边AB及AD所形成的夹角成互余关系;
确定第二连线与边AB或AD所形成的交点F;
确定交点C与交点F所形成的边CF;
确定所述边CF与其相邻边所形成的夹角Ψ,所述边CF有两条相邻边BC及CD,所述边CF与边BC及CD所形成的夹角成互余关系。
若边AB和边AD的长度已知,则可以利用三角函数关系直接求解夹角θ及夹角Ψ。
若边AB和边AD长度未知,进一步地,所述边AB的长度等于所述边AD的长度。
一种台球位置确定装置,所述装置包括:
图像获取模块,用于获取至少一张台球桌的照片,所述台球桌的照片包括位于所述台球桌面上的母球、目标球、关联球及下一目标球,关联球为母球和目标球的位置发生变化时引起的位置相应变化的其他台球;
连线确定模块,用于确定每张台球桌的照片中的每个台球与对应照片中的至少一台球桌的库边台尼交点所形成的连线;
夹角确定模块,用于确定每张台球桌的照片中的连线与相邻的台球桌的库边所形成的夹角;
位置确定模块,用于根据台球桌的照片中与相邻的台球桌库边所形成的已确定夹角的每两条连线确定对应台球的位置。
进一步地,所述图像获取模块用于:
获取一张台球桌的照片,所述台球桌的照片包括所述台球桌的整个桌面及位于所述台球桌面上的所有台球;或者
获取至少一张台球桌的照片,所述台球桌的照片至少包括台球桌的库边台尼的至少一个角袋及位于所述台球桌面上的母球、目标球、关联球及下一个目标球;或者
获取至少二张台球桌的照片,每张台球桌的照片包括台球桌的库边台尼的至少一个角袋及至少一个球,所述至少两张台球桌的照片包括至少两个不同的台球桌的库边台尼的角袋,所述多张台球桌的照片至少包括位于所述台球桌面上的母球、目标球、关联球及下一个目标球。
进一步地,所述连线确定模块用于:
当所获取的照片为一张台球桌的照片,且所述台球桌的照片包括所述台球桌的整个桌面及位于所述台球桌面上的所有台球时,确定所述台球桌的照片中的台球与二个台球桌的库边台尼交点分别所形成的第一连线及第二连线;或者
当所获取的照片为至少一张台球桌的照片,且所述台球桌的照片至少包括台球桌的库边台尼的至少一个角袋及位于所述台球桌面上的母球、目标球、关联球及下一个目标球时,确定所述台球桌的照片中的台球与台球桌的一库边台尼内框交点所形成的第一连线及台球与台球桌的一库边台尼外框交点所形成的第二连线;或者
当所获取的照片为至少二张台球桌的照片,且每张台球桌的照片包括台球桌的库边台尼的至少一个角袋及至少一个球,所述至少两张台球桌的照片包括至少两个不同的角袋,所述多张台球桌的照片包括位于所述台球桌面上的母球、目标球、关联球及下一个目标球时,确定每张台球桌的照片中的台球与对应照片中台球桌的一库边台尼内框交点所形成的连线。
进一步地,当确定所述台球桌的照片中的台球与二个台球桌的库边台尼交点分别所形成的第一连线及第二连线时,所述夹角确定模块用于:
确定所述第一连线的反向延长线与所述台球桌的库边台尼侧边所形成的交点P;
根据预存的库边台尼的长度、预存的库边台尼的宽度及三角函数确定所述第一连线与所述第一连线的相邻边所形成的夹角,所述第一连线有两条相邻边,所述第一连线与这两条相邻边的所形成的夹角成互余关系;
确定所述第二连线的反向延长线与所述台球桌面的库边所形成的交点Q;
根据预存的库边台尼的长度、预存的库边台尼的宽度及三角函数确定所述第二连线与所述第二连线的相邻边所形成的夹角,所述第二连线有两条相邻边,所述第二连线与这两条相邻边的所形成的夹角成互余关系。
进一步地,当确定所述台球桌的照片中的台球与台球桌的库边台尼内框交点所形成的第一连线及台球与台球桌的库边台尼外框交点所形成的第二连线时,所述夹角确定模块用于:
确定库边台尼内框交点A及所述库边台尼内框的延长线与库边台尼外侧边所形成的两交点B、D;
确定交点A与交点B及交点D所形成的边AB及AD,确定交点C与交点B及交点D所形成的边BC及CD;
确定第一连线的延长线与边BC或CD所形成的交点E;
确定交点A与交点E所形成的边AE;
确定所述边AE与其相邻边所形成的夹角θ,所述边AE有两条相邻边AB及AD,所述边AE与边AB及AD所形成的夹角成互余关系;
确定第二连线与边AB或AD所形成的交点F;
确定交点C与交点F所形成的边CF;
确定所述边CF与其相邻边所形成的夹角Ψ,所述边CF有两条相邻边BC及CD,所述边CF与边BC及CD所形成的夹角成互余关系。
若边AB和AD的长度已知,则可以利用三角函数关系直接求解夹角θ、Ψ值。
若边AB和AD长度未知,进一步地,所述边AB的长度等于所述边AD的长度。
一种电子设备,所述电子设备包括处理器,所述处理器用于执行非易失性存储介质中存储的计算机程序时实现如上任意一项所述台球位置确定方法的步骤。
相较于现有技术,本发明台球位置确定方法、台球位置确定装置及电子设备可以通过分析照片来确定每个台球的位置,从而可定位台球的位置,方便计算击球路径及给出击打建议,并且可通过电子设备将击打建议提供给使用者,从而帮助台球运动者提升击球水平。
附图说明
图1为台球桌面与设置于台球桌面的台球的结构示意图;
图2为本发明一实施例的电子设备的结构示意图;
图3为本发明提供的台球位置确定方法的示意流程图;
图4为本发明一实施例的外置摄像装置摄取台球桌的示意图;
图5为本发明一实施例的电子设备摄取台球桌的示意图;
图6为本发明第一实施例的台球桌的照片中的台球与台球桌的库边台尼内框顶角A1所形成的第一连线及台球与台球桌的库边台尼内框顶角A2所形成的第二连线的平面示意图;
图7为本发明第二实施例的台球桌的照片中的台球与台球桌的库边台尼内框顶角A1所形成的第一连线及台球与台球桌的库边台尼外框顶角C1所形成的第二连线的平面示意图;
图8为本发明第三实施例的台球桌的照片中的台球与台球桌的库边台尼内框顶角所形成的连线的平面示意图;
图9为本发明第一实施例的确定第一连线O1A1与邻近的台球桌的库边所形成的夹角及第二连线O1A2与邻近的台球桌的库边所形成的夹角的示意图;
图10为本发明第二实施例的确定第一连线O1A1与邻近的台球桌的库边所形成的夹角及第二连线O1C1与邻近的台球桌的库边所形成的夹角的示意图;
图11为图10中具体确定夹角的示意图。
主要元件符号说明
台球桌面 1
库边 11
角袋 12、12a、12b、12c、12d
中袋 13、13a、13b
库边台尼 111
内侧边 112
外侧边 113
台球 2
母球 21
待击打台球 22
电子设备 10、100、610、620、630
台球位置确定装置 20
非易失性存储介质 30
处理器 40
摄像设备 50、400
图像获取模块 210
连线确定模块 220
夹角确定模块 230
位置确定模块 240
如下具体实施方式将结合上述附图进一步说明本发明。
具体实施方式
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
需要说明的是,当组件被称为“固定于”另一个组件,它可以直接在另一个组件上或者也可以存在居中的组件。当一个组件被认为是“设置于”另一个组件,它可以是直接设置在另一个组件上或者可能同时存在居中组件。本文所使用的术语“左”、“右”以及类似的表述只是为了说明的目的。
除非另有定义,本文所使用的所有的技术和科学术语与属于本发明的技术领域的技术人员通常理解的含义相同。本文中在本发明的说明书中所使用的术语只是为了描述具体的实施例的目的,不是旨在于限制本发明。
请参阅图1,其为台球桌面与设置于台球桌面的台球的结构示意图。台球桌面1上放置有多个台球2,其中,包括至少一个母球21与多个目标台球22。其中,本发明以斯诺克为例进行说明。可变更地,在本发明其他实施方式中,还可以为其他类型的台球,例如英式台球、美式台球、法式台球或者中式台球等,并不以此为限。
台球桌面1呈长方形。台球桌面1包括位于台球桌面1的四条边的库边11,位于台球桌面1的四个角落的角袋12以及两个长边中心位置的中袋13。每个库边11包括库边台尼111。台球桌面1的库边台尼111形成若干交点。具体的,台球桌面1的库边台尼111的内侧边112的延长线形成四个交点A,分别为台球桌面的库边台尼内框交点A1、A2、A3及A4。台球桌面1的库边台尼111的外侧边113的延长线形成四个交点C,分别为台球桌面的库边台尼外框交点C1、C2、C3及C4。显然,交点A1、A2、A3及A4不仅局限于图中的位置,还可处于台球桌面的其他位置,例如交点A1还可位于台球桌面的右下方、左上方或者左下方。交点C1、C2、C3及C4不仅局限于图中的位置,还可处于台球桌面的其他位置,例如交点C2还可位于台球桌面的右上方、左上方或者左下方。
当以库边台尼高度为平面时,台球桌面1的库边台尼内框形成的四个交点为台球桌面1的库边台尼内框形成的四个顶点,台球桌面1的库边台尼外框形成的四个交点为台球桌面1的库边台尼外框形成的四个顶点。
当以台球的底部为平面时,台球桌面1的库边台尼内框形成的四个交点为台球桌面1的库边台尼内框形成的四个底点,台球桌面1的库边台尼外框形成的四个交点为台球桌面1的库边台尼外框形成的四个底点。在本实施方式中,台球桌面1上还包括标识符,通过标识符可确定台球桌面1的库边台尼111所形成的四个底点。标识符可为标识台球桌面1的库边台尼111所形成的四个底点的符号,如为台球桌面1上位于库边台尼111所形成的四个底点处的原点、数字等,通过位于原点、数字等可确定台球桌面1的库边台尼内框形成的四个底点。标识符还可为指示台球桌面1的库边台尼111所形成的若干底点的标注,如台球桌面1上位于库边台尼111的内侧边112的底部的第一直线或者两个点等,或者位于台球桌面1的对角线处的第二直线或两个点等,从而可通过确定两条第一直线的相交点,或者通过两个点确定一条直线并通过两条确定的直线的相交点,或者通过确定库边台尼内框形成的顶点向下引出的垂直线与第二直线的相交点,或者通过两个点确定一条直线,并通过确定库边台尼内框形成的顶点向下引出的垂直线与所述确定的直线的相交点来确定台球桌面1的库边台尼内框形成的四个底点。相应的,台球桌面1的库边台尼外框形成的四个底点也可通过相似的方法确定。
当以台球的球心为平面时,台球桌面1的库边台尼内框形成的四个交点可通过如下方式确定:
确定台球桌面1的库边台尼内框形成的四个顶点,确定台球桌面1的库边台尼内框形成的四个底点,并根据台球的半径与库边台尼的高度的比值来确定台球桌面1的库边台尼内框形成的四个交点的位置。其中,台球桌面1的库边台尼内框所形成的四个底点的确定方法如上所述,在此不进行赘述。
相应的,通过相似的方法台球桌面1的库边台尼外框形成的四个交点也可确定。
四个角袋12分别为12a、12b、12c及12d。两个中袋13分别为13a及13b。
台球桌面1上可以包括有二十二只台球,图中仅示意了部分台球。二十二只台球包括一只白色的母球21以及二十一只待击打台球22。二十一只待击打台球22中包括十五只红色球与六只彩色球,六只彩球分别为黄色球、绿色球、咖啡色球、蓝色球、粉色球、黑色球。台球的定位点分别为O1,O2,O3,O4,O5, 。。。,O22。当以库边台尼高度为平面时,台球的定位点为台球上与库边台尼高度相等的点。当以台球的底部为平面时,台球的定位点为台球的底点。当以台球的中心为平面时,台球的定位点为球心。
请参考图2,为本发明一实施例的电子设备的结构示意图。电子设备10可为智能手机、平板电脑、智能穿戴式设备等。智能穿戴设备可为虚拟现实头盔设备、增强现实头盔设备(如增强现实眼镜)或者智能手表等。在本实施例中,电子设备10为智能手机。电子设备10包括台球位置确定装置20。电子设备10还包括非易失性存储介质30、处理器40及摄像设备50。
台球位置确定装置20能获取至少一张台球桌的照片,台球桌的照片中至少包括位于台球桌面上的母球、目标球、关联球及下一个目标球,关联球为母球和目标球的位置发生变化时引起的位置相应变化的其他台球;确定每张台球桌的照片中的每个台球与对应照片中的至少一台球桌的库边台尼交点所形成的连线;确定每张台球桌的照片中的连线与相邻的台球桌的库边所形成的夹角;根据台球桌的照片中与相邻的台球桌的库边所形成的每两条夹角已确定的连线确定对应台球的位置,从而确定台球桌的照片中的台球的位置。
处理器40可以包括一个或者多个微处理器、数字处理器。处理器40用于执行至少一个指令以实现台球位置确定方法。
摄像设备50用于摄取照片。显然,摄像设备50不仅局限于本实施例的包括在电子设备10中,还可为外置摄像设备。摄像设备50可以与电子设备10之间进行通信,从而摄像设备50可将拍摄的照片传输至电子设备10上以供电子设备10进行分析。
具体的,在本实施例中,台球位置确定装置20包括图像获取模块210、连线确定模块220、夹角确定模块230及位置确定模块240。本发明所称的模块是指一种能够被处理器所执行并且能够完成固定功能的一系列计算机程序段,其存储在非易失性存储介质中。
图像获取模块210用于获取至少一张台球桌的照片,台球桌的照片中至少包括位于所述台球桌面上的母球、目标球、关联球及下一个目标球,关联球为母球和目标球的位置发生变化时引起的位置相应变化的其他台球。当台球桌的照片的数量为一张时,台球桌的照片中至少包括位于所述台球桌面上的母球、目标球、关联球及下一个目标球。当台球桌的照片的数量大于一张时,多张台球桌的照片一起至少包括位于台球桌面的母球、目标球、关联球及下一个目标球。在其他实施方式中,台球桌的照片中包括位于台球桌面上的所有台球。
连线确定模块220用于确定每张台球桌的照片中的每个台球与对应照片中的至少一台球桌的库边台尼交点所形成的连线。
夹角确定模块230用于确定每张台球桌的照片中的连线与相邻的台球桌的库边所形成的夹角。
位置确定模块240用于根据台球桌的照片中的与相邻的台球桌的库边所形成的夹角已确定的每两条连线确定对应台球的位置。
下面将结合流程图来说明图像获取模块210、连线确定模块220、夹角确定模块230及位置确定模块240的具体功能。
图3为本发明提供的台球位置确定方法的示意流程图。台球位置确定方法应用于电子设备中。电子设备可为智能手机、平板电脑、智能穿戴式设备等。智能穿戴设备可为虚拟现实头盔设备、增强现实头盔设备(如增强现实眼镜)或者智能手表等。在本实施例中,电子设备为智能手机。如图3所示,台球位置确定方法可包括以下步骤:
S301:获取至少一张台球桌的照片,台球桌的照片至少包括位于台球桌面上的母球、目标球、关联球及下一个目标球,关联球为母球和目标球的位置发生变化时引起的位置相应变化的其他台球。当台球桌的照片的数量为一张时,台球桌的照片中至少包括位于台球桌面上的母球、目标球、关联球及下一个目标球。当台球桌的照片的数量大于一张时,多张台球桌的照片一起至少包括位于台球桌面的母球、目标球、关联球及下一个目标球。在其他实施方式中,台球桌的照片中包括位于台球桌面上的所有台球。
获取至少一张台球桌的照片,台球桌的照片至少包括位于台球桌面上的母球、目标球、关联球及下一个目标球,具体包括:
方案一:获取一张台球桌的照片,台球桌的照片包括台球桌的整个桌面及位于台球桌面上的所有台球。
在本实施例中,所述摄像装置400为内置摄像装置。电子设备100放置于台球桌面的上方,以便通过电子设备100中的摄像装置400来获取照片。其中,电子设备100可以通过固定于天花板上的支架放置于台球桌面的上方。在其他实施例中,请参阅图4,其为本发明一实施例的外置摄像装置摄取台球桌的示意图。摄像装置400为外置摄像装置。具体地,摄像装置400为设置在台球桌面上方(如球桌上方的照明设备)的外置摄像装置,外置摄像装置可以与电子设备100之间进行通信,外置摄像装置拍摄的照片可以被传输至电子设备100上以供电子设备100进行分析。在方案一中,摄像装置400可摄取台球桌的整个桌面,从而台球桌的照片中包括台球桌的整个桌面及位于台球桌面上的所有台球。
方案二:获取至少一张台球桌的照片,台球桌的照片至少包括台球桌的库边台尼的至少一个角袋及位于台球桌面上的母球、目标球、关联球及下一个目标球。
请参阅图5,其为本发明一实施例的电子设备摄取台球桌的示意图。电子设备500在摄取台球桌时,必然摄取台球桌的库边台尼的至少一个角袋,并且必然至少摄取母球、目标球、关联球及下一个目标球。在进行拍摄前,用户知道母球、自己预备击打的目标球、关联球及下一个目标球。较佳的,电子设备500位于台球桌的某一角袋处摄取台球桌。但是由于摄像头视角的原因,一般一次拍摄不能拍摄到理想的范围(如拍摄到球桌的左半部分),因此需要从不同角度多次拍摄,如在位于台球桌的一角袋处旋转电子设备500进行拍摄,从而使得多次拍摄的照片中一起至少包括母球、目标球、关联球及下一个目标球。
方案三:获取至少二张台球桌的照片,每张台球桌的照片包括台球桌的库边台尼的至少一个角袋及至少一个球,至少两张台球桌的照片包括至少两个不同的台球桌的库边台尼的角袋,多张台球桌的照片至少包括位于台球桌面上的母球、目标球、关联球及下一个目标球。
在方案三中电子设备摄取台球桌的方法与所述方案二中电子设备摄取台球桌的方法相似,不同之处在于:电子设备610在摄取所述台球桌时,至少两张台球桌的照片一起必然包括母球、目标球、关联球及下一个目标球。
S302:确定每张台球桌的照片中的每个台球与对应照片中的至少一台球桌的库边台尼交点所形成的连线。
根据所获取的照片,在确定连线时,可通过以下方式确定:
当所获取的照片为一张台球桌的照片,且台球桌的照片包括台球桌的整个桌面及位于台球桌面上的所有台球时,步骤S302为确定台球桌的照片中的台球与二个台球桌的库边台尼交点分别所形成的第一连线及第二连线,具体如下:
请参考图6,为本发明第一实施例的台球桌的照片中的台球与台球桌面的库边台尼内框交点A1所形成的第一连线及台球与台球桌面的库边台尼内框交点A4所形成的第二连线的平面示意图。台球桌的照片包括台球桌的整个桌面及位于台球桌面上的所有台球。图中仅示意了位于台球桌面上的部分台球。台球桌面上的台球的定位点分别为O1,O2,O3,O4,O5, 。。。,O22。台球桌的库边台尼内框交点为A1、A2、A3及A4。台球桌的照片中的台球与台球桌的库边台尼内框交点A1所形成的第一连线为O1A1,O2A1,O3A1,O4A1,O5A1, 。。。,O22A1。台球桌的照片中的台球与台球桌的库边台尼内框交点A4所形成的第二连线为O1A4,O2A4,O3A4,O4A4,O5A4, 。。。,O22A4。图中仅示意了位于台球桌面上的部分台球与台球桌的库边台尼内框交点A1所形成的第一连线及与台球桌的库边台尼内框交点A4所形成的第二连线。
显然,本实施例中,不仅局限于确定台球桌的照片中的台球与交点A1及交点A4分别所形成的第一连线及第二连线,还可为台球桌的照片中的台球与A1、A2、A3及A4中的其他交点分别所形成的第一连线及第二连线。或者还可为确定台球桌的照片中的台球与二个台球桌的库边台尼外框交点分别所形成的第一连线及第二连线。
当所获取的照片为至少一张台球桌的照片,且台球桌的照片包括台球桌的库边台尼的至少一个角袋及位于台球桌面上的母球、目标球、关联球及下一个目标球时,步骤S302为确定台球桌的照片中的台球与台球桌的一库边台尼内框交点所形成的第一连线及台球与台球桌的一库边台尼外框交点所形成的第二连线,具体如下:
请参考图7,为本发明第二实施例的台球桌的照片中的台球与台球桌的库边台尼内框交点A1所形成的第一连线及台球与台球桌的库边台尼外框交点C1所形成的第二连线的平面示意图。台球桌的照片中至少包括台球桌的库边台尼的至少一个交点及位于台球桌面上的母球、目标球、关联球及下一个目标球。图中仅示意了位于台球桌面上的部分台球。台球桌面上的台球的定位点分别为O1,O2,O3,O4,O5, 。。。,O22。台球桌的库边台尼内框交点为A1。台球桌的库边台尼外框交点为C1。台球桌的照片中的台球与台球桌的库边台尼内框交点A1所形成的第一连线为O1A1,O2A1,O3A1,O4A1,O5A1, 。。。,O22A1。台球桌的照片中的台球与台球桌的库边台尼外框交点C1所形成的第二连线为O1C1,O2C1,O3C1,O4C1,O5C1, 。。。,O22C1。
显然,台球桌的库边台尼内框交点及台球桌的库边台尼外框交点不均局限于上述的位于同一个库边台尼交点处,还可位于不同库边台尼交点处。例如,库边台尼内框交点为A2时,库边台尼外框交点为C1或者C3或者C4。如此,当第一连线为台球桌的照片中的台球与台球桌的库边台尼内框交点A1所形成时,第二连线为台球桌的照片中的台球与台球桌的库边台尼外框交点C2或C3或C4所形成。
当所获取的照片为至少二张台球桌的照片,且每张台球桌的照片包括台球桌的库边台尼的至少一个角袋及至少一个球,至少两张台球桌的照片包括至少两个不同的角袋,多张台球桌的照片至少包括位于台球桌面上的母球、目标球、关联球及下一个目标球时,步骤S302为确定每张台球桌的照片中的台球与对应照片中台球桌的一库边台尼内框交点所形成的连线,具体如下:
请参考图8,为本发明第三实施例的台球桌的照片中的台球与台球桌的库边台尼内框交点所形成的连线的平面示意图。台球桌的照片包括一个台球及台球桌的库边台尼的一个交点。台球的定位点为O1。台球桌的库边台尼内框交点为A1。台球桌的照片中的台球与台球桌的库边台尼内框交点所形成的连线为O1A1。
以相同的方式,确定台球桌的照片中的其他台球与相应照片中的台球桌的库边台尼内框交点所形成的连线。
S303:确定每张台球桌的照片中的连线与相邻的台球桌的库边所形成的夹角。
根据步骤S302所确定的连线,在确定连线与相邻的台球桌的库边所形成的夹角时,可通过以下方式确定:
当步骤S302为确定台球桌的照片中的每个台球与二个台球桌的库边台尼交点分别所形成的第一连线及第二连线时,步骤S303为确定台球桌的照片中的第一连线及第二连线分别与相邻的台球桌的库边所形成的夹角,具体如下:
请参考图9,为本发明第一实施例的确定第一连线O1A1与台球桌的库边A1A2所形成的夹角及第二连线O1A4与台球桌的库边A1A4所形成的夹角的示意图。具体的,步骤S303:
确定第一连线O1A1的反向延长线与台球桌面的库边A2A3所形成的交点P;
根据预存的边A1A2的长度LA1A2、边A2A3的长度LA2A3及正切函数tanσ=LPA2/LA1A2确定第一连线O1A1与第一连线O1A1的相邻边所形成的夹角σ。其中,第一连线O1A1的相邻边为库边台尼的侧边中与第一连线O1A1夹角最小的边A1A2。以斯诺克球桌尺寸为例,边A1A2的长度为254厘米,边A2A3的长度为127厘米,则第一连线O1A1与边A1A2所形成的夹角σ=arctanLPA2/LA1A2=arctanLPA2/2LA2A3;
确定第二连线O1A4的反向延长线与台球桌面的库边A1A2所形成的交点Q;
根据预存的边A1A2的长度LA1A2、边A1A4的长度LA1A4及正切函数tanα=LQA1/LA1A4确定第二连线O1A4与第二连线O1A4的相邻边A1A4所形成的夹角α。其中,第二连线O1A4的相邻边为库边台尼的侧边中与第二连线O1A4夹角最小的边A1A4。
显然,第一连线O1A1的相邻的台球桌的库边及第二连线O1A4的相邻的台球桌的库边不仅可分别为A1A2及A1A4,还可分别为与第一连线O1A1夹角最大的边A1A4及与第二连线O1A4夹角最大的边A3A4,则可通过确定第一连线O1A1与边A1A2所形成的夹角及第二连线O1A4与边A1A4所形成的夹角来确定第一连线O1A1与边A1A4所形成的夹角及第二连线O1A4与边A3A4所形成的夹角,其中,第一连线O1A1与边A1A2及边A1A4所形成的夹角成互余关系,第二连线O1A4与边A1A4及边A3A4所形成的夹角成互余关系。而本实施例也不仅局限于确定第一连线O1A1与相邻的台球桌的库边所形成的夹角及第二连线O1A4与相邻的台球桌的库边所形成的夹角,还可为确定第一连线O1C1与相邻的台球桌的库边所形成的夹角及第二连线O1C4与相邻的台球桌的库边所形成的夹角,或者还可为确定第一连线O1A1与相邻的台球桌的库边所形成的夹角及第二连线O1A2与相邻的台球桌的库边所形成的夹角,或者还可为确定第一连线O1C1与相邻的台球桌的库边所形成的夹角及第二连线O1C2与相邻的台球桌的库边所形成的夹角等等。本实施例还不仅局限于通过正切函数确定第一连线与第一连线的相邻边所形成的夹角,还可为通过余切函数、正弦函数、余弦函数等三角函数确定第一连线与第一连线的相邻边所形成的夹角,本实施例也不仅局限于通过正切函数确定第二连线与第二连线的相邻边所形成的夹角,还可为通过余切函数、正弦函数、余弦函数等三角函数确定第二连线与第二连线的相邻边所形成的夹角。
相应的,通过相似的方法确定其他第一连线及其他第二连线分别与相邻的台球桌的库边所形成的夹角。
当步骤S302为确定台球桌的照片中的台球与一台球桌的库边台尼内框交点所形成的第一连线及台球与一台球桌的库边台尼外框交点所形成的第二连线时,步骤S303为确定台球桌的照片中的第一连线及第二连线分别与相邻的台球桌的库边所形成的夹角,具体如下:
请继续参考图10-图11,为本发明第二实施例的确定第一连线O1A1与相邻的台球桌的库边所形成的夹角及第二连线O1C1与相邻的台球桌的库边所形成的夹角的示意图。具体的,步骤S303:
确定库边台尼内框交点A1及所述库边台尼内框的延长线与库边台尼外侧边所形成的两交点B1、D1;
确定交点A1与交点B1及交点D1所形成的边A1B1及A1D1,确定交点C1与交点B1及交点D1所形成的边B1C1及C1D1;
确定第一连线O1A1的延长线与边B1C1或C1D1所形成的交点E1;在本实施例中,第一连线O1A1的延长线与边B1C1形成交点E1;
确定交点A1与交点E1所形成的边A1E1;
确定边A1E1与边A1E1的相邻边所形成的夹角θ。在本实施例中,边A1E1的相邻边为边A1B1及A1D1中与边A1E1所形成的夹角最小的边A1B1,则确定边A1E1与边A1E1的相邻边所形成的夹角θ为确定边A1E1与边A1B1所形成的夹角θ。在其他实施例中,边A1E1的相邻边为边A1B1及A1D1中与边A1E1所形成的夹角最大的边A1D1,则确定边A1E1与边A1E1的相邻边所形成的夹角为确定边A1E1与边A1D1所形成的夹角。
确定第二连线O1C1与边A1B1或A1D1所形成的交点F1;在本实施例中,第二连线O1C1与边A1D1形成交点F1;
确定交点C1与交点F1所形成的边C1F1;
确定边C1F1与边C1F1的相邻边所形成的夹角Ψ。在本实施例中,边C1F1的相邻边为边B1C1及C1D1中与边C1F1所形成的夹角最小的边C1D1,则确定边C1F1与边C1F1的相邻边所形成的夹角Ψ为确定边C1F1与边C1D1所形成的夹角Ψ。在其他实施例中,边C1F1的相邻边为边B1C1及C1D1中与边C1F1所形成的夹角最大的边B1C1,则确定边C1F1与边C1F1的相邻边所形成的夹角为确定边C1F1与边B1C1所形成的夹角。
显然,第一连线不仅局限于O1A1,还可为O1A2、O1A3等,第二连线不仅局限于O1C1,还可为O1C2、O1C3等。
相应的,通过相似的方法确定其他第一连线及其他第二连线与分别与相邻的台球桌的库边所形成的夹角。
其中,当边A1B1和边A1D1的长度已知时,可根据三角函数关系利用边AB与边AD的长度及照片中边B1E1与边B1C1的长度关系求解夹角θ,并根据三角函数关系利用边A1B1与边A1D1的长度及照片中边D1F1与边A1D1的长度关系求解夹角Ψ。
当边A1B1和边A1D1的长度未知时,确定边A1E1与边A1B1所形成的夹角θ包括:
确定边A1B1的长度LA1B1等于边A1D1的长度LA1D1
确定边A1B1的长度LA1B1等于边B1C1的长度LB1C1;在本实施例中,由于边A1B1的长度LA1B1等于边A1D1的长度LA1D1,且边A1B1垂直于边B1C1,边A1D1垂直于边C1D1,则边A1B1的长度LA1B1等于边B1C1的长度LB1C1
确定边B1E1的长度LB1E1与边B1C1的长度LB1C1的比值;
根据正切函数tanθ=LB1E1/LA1B1=LB1E1/LB1C1确定边A1E1与边A1B1所形成的夹角θ=arctanLB1E1/LB1C1
其中,边A1E1与边A1B1所形成的夹角θ与边A1E1与边A1D1所形成的夹角互余,则边A1E1与边A1D1所形成的夹角等于90°-θ。
显然,当边A1B1和边A1D1的长度未知时,确定边A1E1与边A1B1所形成的夹角θ不仅局限于根据正切函数确定边A1E1与边A1B1所形成的夹角θ,还可为根据余切函数、正弦函数、余弦函数等三角函数确定边A1E1与边A1B1所形成的夹角θ。
其中,确定边C1F1与边C1F1的相邻边所形成的夹角Ψ与确定边A1E1与边A1B1所形成的夹角θ的方法相似,在此不进行赘述。
当步骤S302为确定每张台球桌的照片中的台球与对应照片中一库边台尼内框交点所形成的连线时,步骤S303为确定多张台球桌的照片中的连线与对应的相邻的台球桌的库边所形成的夹角。其中,确定连线与相邻的台球桌的库边所形成的夹角与确定边A1E1与边A1B1所形成的夹角θ的方法相似,在此不进行赘述。相应的,通过相似的方法确定其他第一连线及其他第二连线与分别与相邻的台球桌的库边所形成的夹角。
S304:根据台球桌的照片中与相邻的台球桌的库边所形成的已确定夹角的每两条连线确定对应台球的位置。
根据步骤S303所确定的每张台球桌的照片中的连线与相邻的台球桌的库边所形成的夹角,在确定台球的位置时,可通过以下方式确定:
当步骤S303为确定台球桌的照片中的第一连线及第二连线分别与相邻的台球桌的库边所形成的夹角,第一连线及第二连线为台球桌的照片中的台球与二个台球桌的库边台尼交点所形成的时,步骤S304为根据台球桌的照片中与相邻的台球桌的库边所形成的已确定夹角的第一连线及对应的与相邻的台球桌的库边所形成的已确定夹角的第二连线确定对应台球的位置。具体如下:
请参考图9,为根据第一连线O1A1与边A1A2所形成的夹角、根据第二连线O1A4与边A1A4所形成的夹角及边A1A4的长度来确定台球的位置。
显然,本实施例不仅局限于上述方法,还可为根据第一连线O1A1与边A1A4所形成的夹角、根据第二连线O1A4与边A3A4所形成的夹角及边A1A4的长度来确定台球的位置,或者为根据第一连线O1C1与相邻边所形成的夹角、根据第二连线O1C4与相邻边所形成的夹角及边C1C4的长度来确定台球的位置等等。
以相同的方式,确定台球桌的照片中的其他台球的位置。
当步骤S303为确定台球桌的照片中的第一连线及第二连线分别与相邻的台球桌的库边所形成的夹角,第一连线及第二连线分别为台球桌的照片中的台球与一台球桌的库边台尼内框交点所形成的及台球与一台球桌的库边台尼外框交点所形成的时,步骤S304为根据台球桌的照片中与相邻的台球桌的库边所形成的已确定夹角的第一连线及对应的与相邻的台球桌的库边所形成的已确定夹角的第二连线来确定对应台球的位置。具体如下:
请参考图10-图11,为根据边A1B1的长度及边A1D1的长度确定边A1C1的长度,并根据第一连线O1A1与边A1A2所形成的夹角、第二连线O1C1与边A1A2所形成的夹角及边A1C1的长度来确定台球的位置。
以相同的方式,确定台球桌的照片中的其他台球的位置。
当步骤S303为确定多张台球桌的照片中的连线与对应的相邻的台球桌的库边所形成的夹角,连线为每张台球桌的照片中的台球与对应照片中一库边台尼内框交点所形成的时,步骤S304为根据多张台球桌的照片中与相邻的台球桌的库边所形成的已确定夹角的每两条连线确定对应台球的位置。例如,当第一张照片中及第二张照片中包括相同的台球,台球的定位点为O1时,步骤S304包括根据第一张照片中的连线O1A1与边A1A2所形成的夹角、第二张照片中的连线O1A4与边A3A4所形成的夹角及边A1A4的长度来确定台球的位置。
显然,本发明不仅局限于上述的实施例,还可以有其他变形,如为:先获取两张包括至少同一台球的台球桌的照片,确定两张台球桌的照片中所包括的一相同的台球,确定两张台球桌的照片中的台球与对应照片中的一库边台尼内框交点所形成的连线,确定两张台球桌的照片中的连线与相邻的台球桌的库边所形成的夹角,根据与相邻的台球桌的库边所形成的已知夹角的两条连线及库边台尼的长度确定台球的位置;根据台球的位置来确定边AC的长度;确定每张台球桌的照片中的台球与对应照片中的库边台尼内框交点所形成的第一连线及每张台球桌的照片中的台球与对应照片中的库边台尼外框交点所形成的第二连线,确定每张台球桌的照片中的第一连线与相邻的台球桌的库边所形成的夹角及第二连线与相邻的台球桌的库边所形成的夹角,根据台球桌的照片中的每个与相邻的台球桌的库边所形成的已知夹角的第一连线、对应的与相邻的台球桌的库边所形成的已知夹角的第二连线及边AC的长度确定台球桌的照片中的对应台球的位置。显然,实施例二还可无需再确定最开始确定了位置的台球的位置,从而降低电子设备的工作量。
从而,电子设备可根据各个台球的位置来预测出击球位置、击球路径、击球角度、击球力度、击球方式、出杆速度。进一步地,电子设备还可以图形及/或数值的方式显示出击球位置、击球路径、击球角度、击球力度、击球方式、出杆速度,从而帮助台球运动者提升击球水平。
以上实施方式仅用以说明本发明的技术方案而非限制,尽管参照以上较佳实施方式对本发明进行了详细说明,本领域的普通技术人员应当理解,可以对本发明的技术方案进行修改或等同替换都不应脱离本发明技术方案的精神和范围。本领域技术人员还可在本发明精神内做其它变化等用在本发明的设计,只要其不偏离本发明的技术效果均可。这些依据本发明精神所做的变化,都应包含在本发明所要求保护的范围之内。

Claims (15)

  1. 一种台球位置确定方法,其特征在于,所述方法包括:
    获取至少一张台球桌的照片,所述台球桌的照片至少包括位于所述台球桌面上的母球、目标球、关联球及下一个目标球,关联球为母球和目标球的位置发生变化时引起的位置相应变化的其他台球;
    确定每张台球桌的照片中的每个台球与对应照片中的至少一台球桌的库边台尼交点所形成的连线;
    确定每张台球桌的照片中的连线与相邻的台球桌的库边所形成的夹角;
    根据台球桌的照片中与相邻的台球桌的库边所形成的已确定夹角的每两条连线确定对应台球的位置。
  2. 如权利要求1所述的台球位置确定方法,其特征在于,所述获取至少一张台球桌的照片,所述台球桌的照片至少包括位于所述台球桌面上的母球、目标球、关联球及下一个目标球包括:
    获取一张台球桌的照片,所述台球桌的照片包括所述台球桌的整个桌面及位于所述台球桌面上的所有台球;或者
    获取至少一张台球桌的照片,所述台球桌的照片包括台球桌的库边台尼的至少一个角袋及位于所述台球桌面上的母球、目标球、关联球及下一个目标球;或者
    获取至少二张台球桌的照片,每张台球桌的照片包括台球桌的库边台尼的至少一个角袋及至少一个球,所述至少两张台球桌的照片包括至少两个不同的台球桌的库边台尼的角袋,所述多张台球桌的照片至少包括位于所述台球桌面上的母球、目标球、关联球及下一个目标球。
  3. 如权利要求2所述的台球位置确定方法,其特征在于,所述确定每张台球桌的照片中的台球与对应照片中的至少一台球桌的库边台尼交点所形成的连线包括:
    当所获取的照片为一张台球桌的照片,且所述台球桌的照片包括所述台球桌的整个桌面及位于所述台球桌面上的所有台球时,确定所述台球桌的照片中的台球与二个台球桌的库边台尼交点分别所形成的第一连线及第二连线;或者
    当所获取的照片为至少一张台球桌的照片,且所述台球桌的照片至少包括台球桌的库边台尼的至少一个角袋及位于所述台球桌面上的母球、目标球、关联球及下一个目标球时,确定所述台球桌的照片中的台球与台球桌的一库边台尼内框交点所形成的第一连线及台球与台球桌的一库边台尼外框交点所形成的第二连线;或者
    当所获取的照片为至少二张台球桌的照片,且每张台球桌的照片包括台球桌的库边台尼的至少一个角袋及至少一个球,所述至少两张台球桌的照片包括至少两个不同的角袋,所述多张台球桌的照片至少包括位于所述台球桌面上的母球、目标球、关联球及下一个目标球时,确定每张台球桌的照片中的台球与对应照片中台球桌的一库边台尼内框交点所形成的连线。
  4. 如权利要求3所述的台球位置确定方法,其特征在于,当确定所述台球桌的照片中的台球与二个台球桌的库边台尼交点分别所形成的第一连线及第二连线时,所述确定每张台球桌的照片中的连线与相邻的台球桌的库边所形成的夹角包括:
    确定所述第一连线的反向延长线与所述台球桌的库边台尼侧边所形成的交点P;
    根据预存的库边台尼的长度、预存的库边台尼的宽度及三角函数确定所述第一连线与所述第一连线的相邻边所形成的夹角,所述第一连线有两条相邻边,所述第一连线与这两条相邻边的所形成的夹角成互余关系;
    确定所述第二连线的反向延长线与所述台球桌面的库边所形成的交点Q;
    根据预存的库边台尼的长度、预存的库边台尼的宽度及三角函数确定所述第二连线与所述第二连线的相邻边所形成的夹角,所述第二连线有两条相邻边,所述第二连线与这两条相邻边的所形成的夹角成互余关系。
  5. 如权利要求3所述的台球位置确定方法,其特征在于,当确定所述台球桌的照片中的台球与台球桌的库边台尼内框交点所形成的第一连线及台球与台球桌的库边台尼外框交点所形成的第二连线时,所述确定每张台球桌的照片中的连线与相邻的台球桌的库边所形成的夹角包括:
    确定库边台尼内框交点A及所述库边台尼内框的延长线与库边台尼外侧边所形成的两交点B、D;
    确定交点A与交点B及交点D所形成的边AB及AD,确定交点C与交点B及交点D所形成的边BC及CD;
    确定第一连线的延长线与边BC或CD所形成的交点E;
    确定交点A与交点E所形成的边AE;
    确定所述边AE与其相邻边所形成的夹角θ,所述边AE有两条相邻边AB及AD,所述边AE与边AB及AD所形成的夹角成互余关系;
    确定第二连线与边AB或AD所形成的交点F;
    确定交点C与交点F所形成的边CF;
    确定所述边CF与其相邻边所形成的夹角Ψ,所述边CF有两条相邻边BC及CD,所述边CF与边BC及CD所形成的夹角成互余关系。
  6. 如权利要求5所述的台球位置确定方法,其特征在于:所述边AB的长度等于所述边AD的长度。
  7. 如权利要求5所述的台球位置确定方法,其特征在于:根据预存的边AB的长度、预存的边AD的长度及三角函数确定夹角θ及夹角Ψ。
  8. 一种台球位置确定装置,其特征在于,所述装置包括:
    图像获取模块,用于获取至少一张台球桌的照片,所述台球桌的照片至少包括位于所述台球桌面上的母球、目标球、关联球及下一个目标球,关联球为母球和目标球的位置发生变化时引起的位置相应变化的其他台球;
    连线确定模块,用于确定每张台球桌的照片中的每个台球与对应照片中的至少一台球桌的库边台尼交点所形成的连线;
    夹角确定模块,用于确定每张台球桌的照片中的连线与相邻的台球桌的库边所形成的夹角;
    位置确定模块,用于根据台球桌的照片中与相邻的台球桌的库边所形成的已确定夹角的每两条连线确定对应台球的位置。
  9. 如权利要求8所述的台球位置确定装置,其特征在于,所述图像获取模块用于:
    获取一张台球桌的照片,所述台球桌的照片包括所述台球桌的整个桌面及位于所述台球桌面上的所有台球;或者
    获取至少一张台球桌的照片,所述台球桌的照片至少包括台球桌的库边台尼的至少一个角袋及位于所述台球桌面上的母球、目标球、关联球及下一个目标球;或者
    获取至少二张台球桌的照片,每张台球桌的照片包括台球桌的库边台尼的至少一个角袋及至少一个球,所述至少两张台球桌的照片包括至少两个不同的台球桌的库边台尼的角袋,所述多张台球桌的照片至少包括位于所述台球桌面上的母球、目标球、关联球及下一个目标球。
  10. 如权利要求9所述的台球位置确定装置,其特征在于,所述连线确定模块用于:
    当所获取的照片为一张台球桌的照片,且所述台球桌的照片包括所述台球桌的整个桌面及位于所述台球桌面上的所有台球时,确定所述台球桌的照片中的台球与二个台球桌的库边台尼交点分别所形成的第一连线及第二连线;或者
    当所获取的照片为至少一张台球桌的照片,且所述台球桌的照片至少包括台球桌的库边台尼的至少一个角袋及位于所述台球桌面上的母球、目标球、关联球及下一个目标球时,确定所述台球桌的照片中的台球与台球桌的一库边台尼内框交点所形成的第一连线及台球与台球桌的一库边台尼外框交点所形成的第二连线;或者
    当所获取的照片为至少二张台球桌的照片,且每张台球桌的照片包括台球桌的库边台尼的至少一个角袋及至少一个球,所述至少两张台球桌的照片包括至少两个不同的角袋,所述多张台球桌的照片至少包括位于所述台球桌面上的母球、目标球、关联球及下一个目标球时,确定每张台球桌的照片中的台球与对应照片中台球桌的一库边台尼内框交点所形成的连线。
  11. 如权利要求10所述的台球位置确定装置,其特征在于,当确定所述台球桌的照片中的台球与二个台球桌的库边台尼交点分别所形成的第一连线及第二连线时,所述夹角确定模块用于:
    确定所述第一连线的反向延长线与所述台球桌的库边台尼侧边所形成的交点P;
    根据预存的库边台尼的长度、预存的库边台尼的宽度及三角函数确定所述第一连线与所述第一连线的相邻边所形成的夹角,所述第一连线有两条相邻边,所述第一连线与这两条相邻边的所形成的夹角成互余关系;
    确定所述第二连线的反向延长线与所述台球桌面的库边所形成的交点Q;
    根据预存的库边台尼的长度、预存的库边台尼的宽度及三角函数确定所述第二连线与所述第二连线的相邻边所形成的夹角,所述第二连线有两条相邻边,所述第二连线与这两条相邻边的所形成的夹角成互余关系。
  12. 如权利要求10所述的台球位置确定装置,其特征在于,当确定所述台球桌的照片中的台球与台球桌的库边台尼内框交点所形成的第一连线及台球与台球桌的库边台尼外框交点所形成的第二连线时,所述夹角确定模块用于:
    确定库边台尼内框交点A及所述库边台尼内框的延长线与库边台尼外侧边所形成的两交点B、D;
    确定交点A与交点B及交点D所形成的边AB及AD,确定交点C与交点B及交点D所形成的边BC及CD;
    确定第一连线的延长线与边BC或CD所形成的交点E;
    确定交点A与交点E所形成的边AE;
    确定所述边AE与其相邻边所形成的夹角θ,所述边AE有两条相邻边AB及AD,所述边AE与边AB及AD所形成的夹角成互余关系;
    确定第二连线与边AB或AD所形成的交点F;
    确定交点C与交点F所形成的边CF;
    确定所述边CF与其相邻边所形成的夹角Ψ,所述边CF有两条相邻边BC及CD,所述边CF与边BC及CD所形成的夹角成互余关系。
  13. 如权利要求12所述的台球位置确定装置,其特征在于:所述边AB的长度等于所述边AD的长度。
  14. 如权利要求12所述的台球位置确定装置,其特征在于:根据预存的边AB的长度、预存的边AD的长度及三角函数确定夹角θ及夹角Ψ。
  15. 一种电子设备,其特征在于,所述电子设备包括处理器,所述处理器用于执行非易失性存储介质中存储的计算机程序时实现如权利要求1-7中任意一项所述台球位置确定方法的步骤。
PCT/CN2017/090774 2017-06-29 2017-06-29 台球位置确定方法、台球位置确定装置及电子设备 WO2019000312A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2017/090774 WO2019000312A1 (zh) 2017-06-29 2017-06-29 台球位置确定方法、台球位置确定装置及电子设备
CN201780003849.6A CN108475435B (zh) 2017-06-29 2017-06-29 台球位置确定方法、台球位置确定装置及电子设备

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/090774 WO2019000312A1 (zh) 2017-06-29 2017-06-29 台球位置确定方法、台球位置确定装置及电子设备

Publications (1)

Publication Number Publication Date
WO2019000312A1 true WO2019000312A1 (zh) 2019-01-03

Family

ID=63266472

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/090774 WO2019000312A1 (zh) 2017-06-29 2017-06-29 台球位置确定方法、台球位置确定装置及电子设备

Country Status (2)

Country Link
CN (1) CN108475435B (zh)
WO (1) WO2019000312A1 (zh)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020105973A1 (ko) * 2018-11-23 2020-05-28 김현철 당구장 보조 시스템 및 그 서버
CN114470717A (zh) * 2022-02-21 2022-05-13 华拓智造机械设备(天津)有限公司 一种用于桌球类运动中击球位置的精确检测方法

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060166752A1 (en) * 2005-01-21 2006-07-27 Black William E Billiard aim instruction kit
CN102327697A (zh) * 2011-10-14 2012-01-25 李姣昂 投影式台球训练***及其实现方法
CN104117202A (zh) * 2014-07-02 2014-10-29 乔冰 投影式台球击球智能辅助***和方法
CN104147777A (zh) * 2014-07-30 2014-11-19 上海斐讯数据通信技术有限公司 一种应用于台球练习的辅助方法及***
CN106267796A (zh) * 2016-07-29 2017-01-04 李智 一种通过拍照辅助台球瞄准的方法

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003260163A (ja) * 2002-03-11 2003-09-16 Takashi Orito イメージボールを想定する「厚み」を類推出来るビリヤード練習用具
US7118486B2 (en) * 2004-05-10 2006-10-10 Evers Edward E Laser light aiming trainer for the game of pool and similar games
CN101770550A (zh) * 2010-03-09 2010-07-07 刘铮 一种斯诺克台球的计算机辅助斯诺克判别方法
CN101848376A (zh) * 2010-05-19 2010-09-29 朱万政 台球走位分析电视***
CN101947385B (zh) * 2010-10-12 2012-09-12 刘铮 在斯诺克运动中获取台球碰撞关系和完整运动轨迹的方法
CN105107190A (zh) * 2015-09-15 2015-12-02 清华大学 应用于中式台球中的图像采集处理***及图像处理方法
CN105457263B (zh) * 2016-01-18 2017-03-29 李智 台球瞄准辅助器材

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060166752A1 (en) * 2005-01-21 2006-07-27 Black William E Billiard aim instruction kit
CN102327697A (zh) * 2011-10-14 2012-01-25 李姣昂 投影式台球训练***及其实现方法
CN104117202A (zh) * 2014-07-02 2014-10-29 乔冰 投影式台球击球智能辅助***和方法
CN104147777A (zh) * 2014-07-30 2014-11-19 上海斐讯数据通信技术有限公司 一种应用于台球练习的辅助方法及***
CN106267796A (zh) * 2016-07-29 2017-01-04 李智 一种通过拍照辅助台球瞄准的方法

Also Published As

Publication number Publication date
CN108475435B (zh) 2021-09-03
CN108475435A (zh) 2018-08-31

Similar Documents

Publication Publication Date Title
WO2017124792A1 (zh) 动态捕捉人脸摄像的方法、***及移动终端
WO2017069396A1 (ko) 가상 객체의 충돌 체크에 의한 반응형 증강현실 카드 게임의 데이터 처리 방법 및 반응형 증강현실 카드 게임 플레이 장치
WO2017086673A1 (en) Image sensor and electronic device having the same
WO2017026815A1 (en) Portable apparatus and method for displaying a screen
WO2017206456A1 (zh) 一种视频通话中视频图像展示方法及装置
WO2019000312A1 (zh) 台球位置确定方法、台球位置确定装置及电子设备
WO2018040444A1 (zh) 一种双摄像头拍照控制方法、拍照控制装置及终端
WO2014189275A1 (en) Apparatus and method of recognizing external device in a communication system
WO2018068533A1 (zh) 一种人脸检测的方法及装置
WO2019203528A1 (en) Electronic apparatus and method for controlling thereof
WO2018129792A1 (zh) Vr播放方法、vr播放装置及vr播放***
WO2019223296A1 (zh) 一种显示面板的制作方法和显示面板
WO2020040620A1 (en) Electronic device including sensor placed under display
WO2021133025A1 (en) Electronic device comprising image sensor and method of operation thereof
WO2023277253A1 (en) Automatic representation switching based on depth camera field of view
WO2015190668A1 (ko) 이동 단말기
WO2020124848A1 (zh) 空调器的控制方法、空调器及存储介质
WO2018205229A1 (zh) 补光控制装置、***、方法以及移动设备
EP4042670A1 (en) Electronic device and method for displaying image at the electronic device
WO2021072860A1 (zh) 视频解码方法、装置、设备及计算机可读存储介质
WO2016072538A1 (ko) 유저 인터페이스를 통한 카메라 장치의 동작 방법
WO2019112308A1 (en) Electronic device, user terminal apparatus, and control method thereof
WO2019194544A1 (en) Method and system for handling 360 degree image content
WO2019033263A1 (zh) 台球位置确定方法、台球位置确定装置及电子设备
WO2019107975A1 (en) Electronic device shooting image and method for displaying the image

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17915405

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17915405

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 17915405

Country of ref document: EP

Kind code of ref document: A1