WO2019033263A1 - Billiard ball position determining method, billiard ball position determining apparatus and electronic device - Google Patents

Billiard ball position determining method, billiard ball position determining apparatus and electronic device Download PDF

Info

Publication number
WO2019033263A1
WO2019033263A1 PCT/CN2017/097487 CN2017097487W WO2019033263A1 WO 2019033263 A1 WO2019033263 A1 WO 2019033263A1 CN 2017097487 W CN2017097487 W CN 2017097487W WO 2019033263 A1 WO2019033263 A1 WO 2019033263A1
Authority
WO
WIPO (PCT)
Prior art keywords
fixed point
billiard
coordinates
distance
point
Prior art date
Application number
PCT/CN2017/097487
Other languages
French (fr)
Chinese (zh)
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 CN201780007912.3A priority Critical patent/CN108701364B/en
Priority to PCT/CN2017/097487 priority patent/WO2019033263A1/en
Publication of WO2019033263A1 publication Critical patent/WO2019033263A1/en

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
    • G06T7/73Determining position or orientation of objects or cameras using feature-based methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/60Analysis of geometric attributes
    • G06T7/66Analysis of geometric attributes of image moments or centre of gravity
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10004Still image; Photographic image

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:
  • Obtaining a first photo taken at a first shooting position the first photo comprising a billiard tabletop, a billiard on the billiard table top, a first fixed point, a second fixed point, and a third fixed point, wherein the The first fixed point, the second fixed point, and the third fixed point are known relative to a coordinate of a reference coordinate system;
  • Coordinate calculation based on the first imaging position to the first position on the photographing distance is billiards l o1 + r coordinate information of a first section, said first section comprising a plurality of coordinate information to the first
  • the distance of the shooting position is the coordinates of l o1 +r;
  • the second photo including the billiard tabletop, the billiards, a fourth fixed point, a fifth fixed point, and a a six fixed point, wherein the fourth fixed point, the fifth fixed point, and the sixth fixed point are known relative to coordinates of the reference coordinate system, the second photo and the first photo
  • the billiard has no change in the position of the billiard tabletop;
  • a billiard position determining device comprising:
  • a photo acquisition module configured to acquire a first photo taken at the first shooting position and a second photo taken at a second shooting position different from the first shooting position, where the first photo includes a billiard tabletop a billiard, a first fixed point, a second fixed point and a third fixed point on the billiard table, wherein the first fixed point, the second fixed point and the third fixed point are compared with a coordinate of a reference coordinate system
  • the second photo includes the billiard table top, the billiard, the first four fixed points, the fifth fixed point and the sixth fixed point, wherein the fourth fixed point
  • the fifth fixed point and the sixth fixed point are known compared to the coordinates of the reference coordinate system, and the second photo and the billiard in the first photo have no change in the position of the billiard tabletop.
  • a distance acquiring module configured to acquire a distance from the first photographing position to the first fixed point, the second fixed point, the third fixed point, and the billiard ball center, and obtain the second photographing position to a distance between the fourth fixed point, the fifth fixed point, the sixth fixed point, and the billiard ball center, wherein a distance from the first shooting position to the billiard is set to l o1 , and the second shooting position
  • the distance to the billiard is set to l o2
  • the radius of the billiard is set to r
  • the distance from the first photographing position to the billiard ball center is l o1 + r
  • the second photographing position is to the billiard
  • the distance between the centers of the sphere is l o2 +r;
  • a first calculating module configured to respectively perform the first shooting according to the coordinates of the first fixed point, the second fixed point, and the third fixed point, and the first fixed point, the second fixed point, and the third fixed point a distance of the position to calculate coordinates of the first photographing position, and coordinates according to the fourth fixed point, the fifth fixed point, and the sixth fixed point, and the fourth fixed point, the fifth fixed point, and the sixth fixed point Calculating coordinates of the second photographing position by distances respectively from the second photographing position;
  • a second calculation module based on coordinates of the photographing position of the first imaging position to calculate the first distance to the pool for the first interval l o1 + r coordinate information, and according to the second imaging position coordinates Calculating second interval coordinate information of the distance from the second shooting position to the billiards as l o2 +r, the first interval coordinate information including a plurality of distances to the first shooting position is l o1 +r Coordinates, the second interval coordinate information includes a plurality of coordinate information of a distance to the second photographing position of l o2 + r;
  • a spherical core coordinate acquiring module configured to acquire coordinates of the billiard ball center, wherein coordinates of the billiard ball center are located in the first region coordinate information, and are also located in the second region coordinate information.
  • An electronic device comprising a processor for implementing a billiard position determining method for executing a computer program stored in a non-volatile storage medium, the billiard position determining method comprising the steps of:
  • Obtaining a first photo taken at a first shooting position the first photo comprising a billiard tabletop, a billiard on the billiard table top, a first fixed point, a second fixed point, and a third fixed point, wherein the The first fixed point, the second fixed point, and the third fixed point are known relative to a coordinate of a reference coordinate system;
  • Coordinate calculation based on the first imaging position to the first position on the photographing distance is billiards l o1 + r coordinate information of a first section, said first section comprising a plurality of coordinate information to the first
  • the distance of the shooting position is the coordinates of l o1 +r;
  • the second photo including the billiard tabletop, the billiards, a fourth fixed point, a fifth fixed point, and a a six fixed point, wherein the fourth fixed point, the fifth fixed point, and the sixth fixed point are known relative to coordinates of the reference coordinate system, the second photo and the first photo
  • the billiard has no change in the position of the billiard tabletop;
  • the billiard position determining method, the billiard position determining device and the electronic device of the present invention can determine the position of the billiard by analyzing the photograph, thereby positioning the billiard position, conveniently calculating the hitting path and giving the hitting suggestion, and The billiards can be improved by the electronic device to provide the hitting suggestions to the user.
  • FIG. 1 is a flow chart of a method for determining a billiard position of the present invention.
  • FIG. 2 is a plan view showing two shooting positions, a fixed point of a billiard tabletop and a billiard tabletop, and billiards in the method for determining the position of the billiards shown in FIG. 1.
  • FIG. 3 is a schematic diagram showing the principle of acquiring the coordinates of the billiard ball center in the first embodiment of the method for determining the billiard position shown in FIG. 1.
  • FIG. 3 is a schematic diagram showing the principle of acquiring the coordinates of the billiard ball center in the first embodiment of the method for determining the billiard position shown in FIG. 1.
  • FIG. 4 is a schematic diagram of two overlapping coordinates of the determination of the method for determining the position of the billiards shown in FIG. 1.
  • FIG. 5 is a schematic diagram showing the principle of acquiring the coordinates of the billiard ball center in the second embodiment of the method for determining the billiard position shown in FIG. 1.
  • FIG. 5 is a schematic diagram showing the principle of acquiring the coordinates of the billiard ball center in the second embodiment of the method for determining the billiard position shown in FIG. 1.
  • FIG. 6 is a schematic diagram showing the principle of the step of acquiring the coordinates of the billiard ball center in the third embodiment of the method for determining the billiard position shown in FIG. 1.
  • FIG. 7 is a schematic diagram showing the principle of acquiring the coordinates of the billiard ball center in the fourth embodiment of the method for determining the billiard position shown in FIG. 1.
  • FIG. 7 is a schematic diagram showing the principle of acquiring the coordinates of the billiard ball center in the fourth embodiment of the method for determining the billiard position shown in FIG. 1.
  • FIG. 8 is a schematic structural view of an electronic device using the first embodiment of the method for determining the position of the billiards shown in FIG. 1.
  • Fig. 9 is a view showing the configuration of an electronic apparatus using a second embodiment of the method for determining the position of the billiards shown in Fig. 1.
  • 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 flow chart of a method for determining a billiard position according to the present invention.
  • the method for determining the position of the billiards includes the following steps S1-S9.
  • Step S1 Acquire a first photo taken at a first shooting position, where the first photo includes a billiard tabletop, a billiard on the billiard tabletop, a first fixed point, a second fixed point, and a third fixed point.
  • the first fixed point, the second fixed point, and the third fixed point are known relative to a coordinate of a reference coordinate system.
  • FIG. 2 is a plan view showing the two shooting positions, the fixed position of the billiard table and the billiard tabletop, and the billiards in the method for determining the position of the billiard.
  • photographing of the first photograph may be performed at the first photographing position O using a photographing device such as a camera.
  • the camera such as a camera
  • the camera can be a camera on an electronic device (such as an electronic device such as a smart phone or a tablet).
  • the first photographing position O is a position at which a first fixed point A, a second fixed point B, a third fixed point C, and a billiard 101 located on the billiard table top 100 on the billiard table top 100 can be photographed.
  • the first photo includes a billiard tabletop 100, a billiard 101 located on the billiard tabletop 100, and a first fixed point A, a second fixed point B, and a third fixed point C on the billiard table.
  • the first fixed point A, the second fixed point B, and the third fixed point C are known relative to a coordinate of a reference coordinate system, such as the first fixed point A, the second fixed point B, and the third fixed point.
  • Point C can be the identification point of the billiard tabletop (such as three identification points on the snooker tabletop), the specific identification point on the billiard table or the billiard table, or other additional locations (such as outside the pool table).
  • the first fixed point A, the second fixed point B, and the third fixed point C are fixed points on the billiard table top 100 as an example.
  • the reference coordinate system may be a horizontal plane of the billiard table, wherein a position of a bag of the billiard table is a coordinate zero point (0, 0, 0), where the sides of the bag are located
  • the straight line is the x-axis and the y-axis (if the direction of the line where the longer Tuni is located is the x-axis, the direction of the line where the shorter Tuni is located is the y-axis), and the direction of the billiard table is perpendicular to
  • the z-axis wherein the z-axis coordinates of the points above the billiard table top are positive (ie greater than 0).
  • FIG. 3 is a schematic diagram showing the principle of acquiring the coordinates of the billiard ball center in the first embodiment of the method for determining the billiard position shown in FIG. 1. Since the first fixed point A, the second fixed point B, and the third fixed point C are fixed points on the billiard table top 100, the first fixed point A, the second fixed point B, and the third fixed point The coordinates of C are known, and the coordinates of the first fixed point A, the second fixed point B, and the third fixed point C are respectively (x 1 , y 1 , 0), (x 2 , y 2 , 0), (x 3 , y 3 , 0) Further, it is assumed that the coordinates of the first photographing position O can be set to (x, y, z).
  • the billiard table may include a plurality of billiards, and the billet may also be photographed on the first photo.
  • the billing position is mainly described by taking the billiard as an example.
  • the method for determining the position of the other billiards can be substantially the same as the method for determining the position of the billiards. Therefore, the icons in the present case are not drawn and illustrated, but the billiard tabletop is not affected by the determination method of the billiard position using the case.
  • the positions of all the billiards on the board are all determined, that is, the coordinates of all the billiards are calculated, so that the billiard table and the model of all the billiards are established by using the coordinates of all billiards, thereby analyzing and calculating the most suitable hit by the model. Billiards and give suggestions for hitting.
  • Step S2 obtaining a distance from the first photographing position to the first fixed point, the second fixed point, the third fixed point, and the billiard ball center, wherein the first photographing position to the billiard ball
  • the distance is set to l o1
  • the radius of the billiard is set to r
  • the distance from the first photographing position to the billiard ball center is l o1 + r.
  • the first shooting position O can be detected by the distance sensor to the first fixed point A, the second fixed point B, the third fixed point C, and the billiard 101, respectively. the distance.
  • the distance from the first photographing position to the first fixed point A is the first photographing position O (such as the center of the framing surface of the first photographing position where the photographing device is located) to the first The distance from the center of the fixed point A is set to l 1 ;
  • the distance from the first photographing position O to the second fixed point B is the distance from the first photographing position O to the center of the second fixed point B Set to l 2 ;
  • the distance from the first photographing position O to the third fixed point C is the distance from the first photographing position O to the center of the third fixed point C, and is set to l 3 ;
  • the distance from the first photographing position O to the billiard 101 is: the distance of the surface of the billiard 101 closest to the first photographing position O, which is set to l o1
  • the distance l o1 of the surface of the billiard 101 closest to the first photographing position O cannot be directly detected by the distance sensor.
  • the distance l o1 ' of the surface of the billiard 101 that is farthest from the first photographing position O can be detected by the distance sensor, and calculated according to the l o1 ' and the r by the Pythagorean theorem
  • the distance from the first photographing position to the billiard ball center is obtained as l o1 + r.
  • the l o1 and l o1 ' are in accordance with the following formula:
  • the distance sensor may be a distance sensor disposed on an electronic device (such as a smart phone, a tablet computer, or the like), such as an infrared distance sensor, a laser distance sensor, or the like, which may be adjacent to the photographing device for taking a photo.
  • an electronic device such as a smart phone, a tablet computer, or the like
  • an infrared distance sensor such as a laser distance sensor, or the like
  • the distance sensor may also be disposed on a distance sensing component on the photographing device (such as the photographing head), such as the photographing device may be a 3D photographing device, for photographing a two-dimensional photograph and detecting the The depth information (ie, the distance information from the first photographing position O) of the target scene (such as the fixed points A, B, C and the billiards 101) involved in the two-dimensional photograph.
  • a distance sensing component on the photographing device such as the photographing head
  • the photographing device may be a 3D photographing device, for photographing a two-dimensional photograph and detecting the The depth information (ie, the distance information from the first photographing position O) of the target scene (such as the fixed points A, B, C and the billiards 101) involved in the two-dimensional photograph.
  • Step S3 calculating, according to the coordinates of the first fixed point, the second fixed point, and the third fixed point, and the distance between the first fixed point, the second fixed point, and the third fixed point respectively to the first shooting position The coordinates of the first shooting position.
  • the coordinates of the first photographing position O can be calculated. (x, y, z). It can be understood that, in principle, two coordinate values can be obtained by the above formula, and a coordinate with the z-axis coordinate value z being positive can be selected.
  • step S4 the first interval coordinate information of the distance from the first shooting position to the billiard is l o1 + r is calculated according to the coordinates of the first shooting position, and the first interval coordinate information includes multiple The distance of the first shooting position is the coordinate of l o1 +r.
  • the distance from the first photographing position O to the billiard 101 is calculated as l o1 + according to the coordinates (x, y, z) of the first photographing position O obtained in step S3.
  • the first interval coordinate information of r it can be understood that the first region 102 formed by sequentially connecting the plurality of coordinates of the first interval coordinate information is a circular arc region or a circular region (the embodiment shown in FIG. 3 mainly The first area 102 is described as an arc area. It can be understood that since the distance from the center 101a of the billiard 101 to the first photographing position O is also l o1 +r, the first section coordinate information is The coordinates of the center of the ball 101a of the billiards 101 are included.
  • Step S5 acquiring a second photo taken at a second shooting position different from the first shooting position, where the second photo includes the billiard tabletop, the billiard, the fourth fixed point, and the fifth fixed a point and a sixth fixed point, wherein the fourth fixed point, the fifth fixed point, and the sixth fixed point are known relative to coordinates of the reference coordinate system, the second photo and the first sheet
  • the billiards in the photo have no change in the position of the billiard table.
  • the photographing device (such as a camera) may be used to perform the photographing of the second photograph at the second photographing position O′, wherein the photographing device may be the same photographing device as the photographing device that photographs the first photograph.
  • the photographing device of the second photo may not be the same photographing device as the photographing device of the first photo (such as cameras of two different mobile phones respectively).
  • the fourth fixed point, the fifth fixed point and the sixth fixed point may also be the identification points of the billiard tabletop (such as three identification points on the snooker tabletop), billiard table table, billiard tabletop or extra
  • the other fixed position (such as a specific position outside the billiard table) is added, and in the embodiment, the fourth fixed point, the fifth fixed point, and the sixth fixed point are fixed points on the billiard table top 100, and A fixed point that overlaps with the first fixed point A, the second fixed point B, and the third fixed point C will be described as an example.
  • the first fixed point A, the second fixed point B, and the third fixed point C may be the same as the fourth fixed point, the fifth fixed point, and the sixth fixed point, respectively; In an embodiment, the first fixed point A, the second fixed point B, and the third fixed point C may be the same as or different from the positional parts of the fourth fixed point, the fifth fixed point, and the sixth fixed point.
  • the second photographing position O′ is a first fixed point A, a second fixed point B, a third fixed point C, and the billiard 101 located on the billiard table top 100 on the billiard table top 100 .
  • the second photo includes a billiard tabletop 100, the billiards 101 on the billiard tabletop 100, and a first fixed point A (ie, a fourth fixed point) on the billiard tabletop 100, and a second fixed Point B (ie, the fifth fixed point) and the third fixed point C (ie, the sixth fixed point).
  • the second photo and the billiard 101 in the first photo have no change in the position of the billiard tabletop 101, that is, the first photo and the second photo are for the same target.
  • the step S5 may be performed after the step S4 is completed, or may be performed after the step S1 or S2 is completed. Further, it is assumed that the coordinates of the second photographing position O' can be set to (x', y', z').
  • Step S6 acquiring a distance from the second shooting position to the fourth fixed point, the fifth fixed point, the sixth fixed point, and the billiard ball center, wherein the second shooting position is to the billiard The distance is set to l o2 , and the distance from the second shooting position to the billiard ball center is l o2 + r.
  • the second shooting position O' can be detected by the distance sensor involved in the step S2 to the first fixed point A (ie, the fourth fixed point) and the second The fixed point B (ie, the fifth fixed point), the third fixed point C (ie, the sixth fixed point), and the distance of the billiard 101.
  • the distance from the second photographing position O' to the first fixed point A is the second photographing position O' (such as the center of the framing surface of the second photographing position where the photographing device is located) to the a distance of the center of the first fixed point A is set to 14 ; a distance from the second photographing position O' to the second fixed point B is the second photographing position O' to the second fixed point The distance from the center of B is set to l 5 ; the distance from the second photographing position O' to the third fixed point C is the distance from the second photographing position O' to the center of the third fixed point C , to l 6; a second imaging position O 'distance to the pool of 101: 101 closest to the surface of the pool to the second imaging position O' from the point to l o2.
  • the distance from the point where the surface of the billiard 101 is closest to the second photographing position O′ cannot be directly detected by the distance sensor. O2 , at this time, the distance l o2 ' of the surface of the billiard 101 that is farthest from the second photographing position O' can be detected by the distance sensor, and the parsing is performed according to the l o2 ' and the r The theorem calculates that the distance from the first photographing position to the billiard ball center is l o2 + r.
  • the l o2 and l o2 ' are in accordance with the following formula:
  • the step S6 may be performed after the step S5 is completed, or may be performed after the step S1 or S2 is completed, that is, the steps S3 and S4 may be performed after the steps S1, S2, S5 and S6. .
  • Step S7 calculating, according to the coordinates of the fourth fixed point, the fifth fixed point, and the sixth fixed point, and the distance between the fourth fixed point, the fifth fixed point, and the sixth fixed point respectively to the second shooting position The coordinates of the second shooting position.
  • the second photographing position O′ can be calculated. Coordinates (x', y', z'). It can be understood that, in principle, two coordinate values can be obtained by the above formula, and a coordinate in which the z-axis coordinate value z' is positive is selected. It can be understood that the principle of calculating the coordinates of the second shooting position O′ in the step S7 is basically the same as the principle of calculating the coordinates of the first shooting position O in the step S3.
  • Step S8 the coordinate calculation according to the second imaging position to the second position of the photographing distance to the billiard l o2 + r coordinate information of a second section, said second section comprising a plurality of coordinate information to the The distance of the second shooting position is the coordinate information of l o2 +r.
  • the second shooting position O' is calculated on the billiard 101 according to the coordinates (x', y', z') of the second shooting position O' obtained in step S7.
  • l o2 + r is the distance second section coordinate information
  • a plurality of coordinates of the second coordinate information section of the second connection region are sequentially formed in a circular area 103, to be understood that, since the pool 101 The distance from the center of the core 101a to the second photographing position O' is also l02 +r, so the second section coordinate information includes the coordinates of the center of the ball 101a of the billiards 101.
  • the principle of calculating the second interval coordinate information in the step S8 is basically the same as the principle of calculating the first interval coordinate information in the step S4.
  • Step S9 Acquire coordinates of the billiard ball center, wherein coordinates of the billiard ball center are located in the first area coordinate information, and are also located in the second area coordinate information.
  • the first interval coordinate information and the second interval coordinate information obtained in step S8 are obtained according to the step S4, and the first interval coordinate information and the The second interval coordinate information includes an overlapping coordinate, and the coordinates of the billiard ball center are the one overlapping coordinates. Therefore, the step S9 may include the following steps:
  • the one overlapping coordinate is used as the coordinates of the billiard ball center.
  • the first interval coordinate information and the second interval coordinate information obtained in step S8 are obtained according to the step S4, and the first interval coordinate information and the second interval coordinate information are known.
  • the coordinates of the billiard ball center is one of the two overlapping coordinates, so it is necessary to select one of the two overlapping coordinates to coordinate the billiard ball center. Therefore, the step S9 includes the following steps:
  • the number of the overlapping coordinates is two, one of the two overlapping coordinates is selected as the coordinates of the billiard ball center.
  • the step S9 may include the following steps S91-S95.
  • Step S91 acquiring a third photo taken at a third shooting position O′′ different from the first shooting position and the second shooting position, where the third photo includes the billiard tabletop, the billiard, a seventh fixed point, the eighth fixed point, and the ninth fixed point, wherein the seventh fixed point, the eighth fixed point, and the ninth fixed point are known relative to coordinates of the reference coordinate system, There is no change in the position of the billiard table in the third photo and the billiard in the first photo.
  • the shooting of the third photo may be performed at the third shooting position O′′ using a photographing device (such as a camera), wherein the photographing device may be used with a photographing device that captures the first and second photographs
  • a photographing device such as a camera
  • the photographing device may be used with a photographing device that captures the first and second photographs
  • it can also be a different camera (such as cameras with three different mobile phones).
  • the seventh fixed point, the eighth fixed point, and the ninth fixed point may also be the identification points of the billiard tabletop (such as three identification points on the snooker tabletop), the billiard table, the billiard tabletop, or The specific identification point on the additional location (such as a specific location outside the billiard table), in the embodiment, the seventh fixed point, the eighth fixed point, and the ninth fixed point are fixed on the billiard table top 100 A fixed point that coincides with the first fixed point A, the second fixed point B, and the third fixed point C will be described as an example.
  • the first fixed point A, the second fixed point B, and the third fixed point C may be the same as the seventh fixed point, the eighth fixed point, and the ninth fixed point, respectively;
  • the first fixed point A, the second fixed point B, and the third fixed point C may be at least partially identical or different from positions of the seventh fixed point, the eighth fixed point, and the ninth fixed point. .
  • the positions of the seventh fixed point, the eighth fixed point, and the ninth fixed point may also be the same as the positions of the fourth, fifth, and sixth fixed points, or partially the same or Different from each other, the coordinates of the seventh fixed point, the eighth fixed point, and the ninth fixed point are not affected, and the third shooting position is respectively to the seventh fixed point, the eighth fixed point, and the ninth fixed point
  • the coordinates of the third shooting position O'' are calculated by the distance of the point and the billiard.
  • the third photographing position O′′ is a first fixed point A, a second fixed point B, a third fixed point C, and the billiard 101 located on the billiard table top 100 that can be photographed on the billiard table top 100 .
  • the second photo includes a billiard tabletop 100, the billiards 101 on the billiard tabletop 100, and a first fixed point A (ie, a seventh fixed point) on the billiard tabletop 100, and a second Fixed point B (ie the eighth fixed point) and third fixed point C (ie the ninth fixed point).
  • the third photo and the billiard 101 in the first and second photos do not change in the position of the billiard tabletop 101, that is, the first photo, the second photo And the third photo is three photos taken at different locations for the same target scene (the position of each billiard on the billiard table is unchanged). Further, it is assumed that the coordinates of the third photographing position O'' can be set to (x'', y'', z''). It can be understood that the principle of calculating the coordinates of the third shooting position O'' in the step S91 is substantially the same as the principle of calculating the coordinates of the first shooting position O in the step S3.
  • Step S92 acquiring a distance from the third shooting position to the seventh fixed point, the eighth fixed point, the ninth fixed point, and the billiard ball center, wherein the third shooting position is to the billiards
  • the distance is set to l o3
  • the distance from the third shooting position to the billiard ball center is l o3 + r.
  • the third shooting position O′′ can be detected by the distance sensor involved in the above steps S2 and S6 to the first fixed point A (ie, the seventh fixed point).
  • the second fixed point B ie, the eighth fixed point
  • the third fixed point C ie, the ninth fixed point
  • the distance of the billiard 101 ie, the seventh fixed point.
  • the distance from the third photographing position O′′ to the first fixed point A is the third photographing position O′′ (such as the center of the framing surface of the third photographing position where the photographing device is located) a distance to the center of the first fixed point A is set to 17 ; a distance from the third photographing position O'' to the second fixed point B is the third photographing position O'' to the The distance from the center of the second fixed point B is set to 18 ; the distance from the third shooting position O'' to the third fixed point C is the third shooting position O'' to the third fixed from the center point C is set to l 9; the third imaging position O '' distance to the pool 101 as follows: the surface closest to the third pool 101 of the imaging position O 'points' of the Distance is set to l o3 .
  • the distance from the point where the surface of the billiard 101 is closest to the third photographing position O′′ cannot be directly detected by the distance sensor.
  • the distance l o3 ′ of the surface of the billiard 101 that is farthest from the third shooting position O′′ can be detected by the distance sensor, and passed according to the l o 3 ′ and the r
  • the Pythagorean theorem calculates that the distance from the first photographing position to the billiard ball center is l o3 + r.
  • the l o3 and l o3 ' are in accordance with the following formula:
  • Step S93 calculating, according to the coordinates of the seventh fixed point, the eighth fixed point, and the ninth fixed point, and the distance between the seventh fixed point, the eighth fixed point, and the ninth fixed point respectively to the third shooting position The coordinates of the third shooting position.
  • the third shooting position O′′ to the first fixed point A (ie, the seventh fixed point)
  • the third photographing position O′′ can be calculated.
  • Step S94 calculating third section coordinate information of the distance from the third shooting position to the billiards as l o3 +r according to the coordinates of the third shooting position, where the third section coordinate information includes multiple places
  • the distance of the third shooting position is the coordinate information of l o3 +r.
  • the third shooting position O'' is calculated according to the coordinates (x'', y'', z'') of the third shooting position O'' obtained in step S93.
  • the distance information on the billiard 101 is the third interval coordinate information of l o3 + r.
  • the third region 104 formed by sequentially connecting the plurality of coordinates of the third interval coordinate information is a circular region.
  • the distance from the center 101a of the billiard 101 to the third photographing position O'' is also l o3 +r, so the third section coordinate information includes the coordinates of the center 101a of the billiard 101.
  • Step S95 selecting one of the two overlapping coordinates as the coordinates of the billiard ball center according to the third area coordinate information and the two overlapping coordinates, wherein the coordinates of the billiard ball center are still located.
  • the third area coordinate information is selected from the third area coordinate information.
  • step S95 the first interval coordinate information, the second interval coordinate information obtained in step S8, and the third interval coordinate are obtained according to step S94. It can be seen that the first section coordinate information, the second section coordinate information and the third section coordinate information only include one overlapping coordinate, and the coordinates of the billiard ball core 101a are the one overlapping coordinates.
  • FIG. 6 is a schematic diagram showing the principle of acquiring the coordinates of the billiard ball center in the third embodiment of the method for determining the billiard position shown in FIG.
  • the billiard table top is further divided into at least two fixed areas, and the at least two fixed areas are opposite.
  • the coordinates of the reference coordinate system are fixed, and the step S9 may specifically include the following steps:
  • the coordinates of the billiard ball center are also located in the fixed area.
  • the billiard 101 is located in the fixed area 100a, so according to the first photo and/or Or the information displayed by the second photo may be a coordinate of the coordinates of the two overlapping coordinates located in the fixed area 100a as the coordinates of the billiard ball core 101a.
  • FIG. 7 is a schematic diagram showing the principle of acquiring the coordinates of the billiard ball center in the fourth embodiment of the method for determining the billiard position shown in FIG. 1.
  • the billiard table top further includes a specific point, and the specific point is relative to the reference coordinate system.
  • the coordinates are known, and the step S9 of selecting one of the two overlapping coordinates as the coordinates of the billiard ball center may include the following steps S991-S996.
  • Step S991 calculating coordinates of two projection points of the two overlapping coordinates on the billiard table, the projection points including a first projection point and a second projection point.
  • the specific point is T
  • the two projection points are S1 and S2, respectively.
  • Step S992 acquiring coordinates of a first feature point on a first line defined by the first projection point and the specific point.
  • the first feature point is located at a intersection of the first straight line with a known straight line on the billiard table (such as a billiard desktop library edge line, a kick-off line on a desktop, or a connection between two specific points on the desktop).
  • a known straight line is known with respect to the coordinates of the reference coordinate system, as shown in FIG. 7 , the first straight line intersects the library edge line, the first straight line and the library edge line They are 105 and 107, respectively, and the first feature point is S3.
  • Step S993 Acquire coordinates of a second feature point on a second line defined by the second projection point and the specific point.
  • the second feature point is located at an intersection of the second line and the known line on the billiard table. As shown in FIG. 7, the second line intersects the bank edge, the second line is 106, and the second feature point is S4.
  • Step S994 calculating a distance of the first feature point to the first or the second shooting position according to the coordinates of the first feature point S3, which is defined as a first distance.
  • Step S995 calculating a distance of the second feature point to the first or the second shooting position according to the coordinates of the second feature point S4, which is defined as a second distance.
  • Step S996 acquiring a third line defined by the specific point on the first or second photo and a projection point of the billiard center on the billiard table, and the third line and the first line a pixel point at the intersection of the known straight lines on the second photo, comparing the distance from the pixel point to the first or second photographing position to the first distance and the second distance, respectively
  • the distance between the pixel point and the first or second photographing position is equal to the first distance
  • the overlap coordinate corresponding to the first projection point is the coordinate of the billiard ball center; If the distance between the first and second shooting positions is equal to the second distance, the overlapping coordinates corresponding to the second projection point is the coordinates of the billiard ball center.
  • the distance from the pixel point to the first or second shooting position can be obtained by a distance sensor.
  • step S994 if the distance of the first feature point to the first shooting position is selected in step S994, the second feature point is also selected to be calculated in step S995. Describe the distance of the first shooting position, and in step S996, obtain a third line defined by the specific point on the first photo and the projection point of the billiard ball in the billiard tabletop, thereby the pixel point Comparing the first photographing position distance with the first distance and the second distance, respectively, if the pixel point to the first photographing position distance and the first distance are equal, the first projection The overlap coordinate corresponding to the point is the coordinate of the billiard ball center; if the pixel point to the first photographing position distance and the second distance are equal, the overlapping coordinates corresponding to the second projection point is the billiard The coordinates of the center of the ball.
  • step S994 if the distance from the first feature point to the second photographing position is selected in step S994, the second feature point is also selected to be calculated in step S995. Describe the distance of the second shooting position, and in step S996, obtain a third line defined by the specific point on the second photo and the projection point of the billiard ball center on the billiard tabletop, thereby the pixel point
  • the second shooting position distance is respectively compared with the first distance and the second distance, and if the pixel point to the second shooting position distance is equal to the first distance, the first projection
  • the overlap coordinate corresponding to the point is the coordinate of the billiard ball center; if the pixel point to the second photographing position distance and the second distance are equal, the overlapping coordinates corresponding to the second projection point is the billiard The coordinates of the center of the ball.
  • FIG. 8 is a schematic structural diagram of an electronic device according to a first embodiment of the method for determining a billiard position shown in FIG. 1.
  • the electronic device 10 can be a smart smart phone, a tablet computer, 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 further includes a non-volatile storage medium 30, a processor 40, a camera 50, and a distance sensor 60.
  • the billiard position determining device 20 may be a computer program segment loaded on the electronic device 10, and the billiard position determining method shown in FIG. 1 may be executed.
  • the processor 40 may include one or more microprocessors, digital processors for executing at least one instruction to implement a billiard position determination method.
  • the camera 50 is used to take photos (such as a first photo, a second photo, and a third photo).
  • photos such as a first photo, a second photo, and a third photo.
  • the invention is not limited to the present embodiment and is included in the electronic device 10, and may be an external camera.
  • the communication can be with the electronic device 10 such that the captured photo can be transmitted to the electronic device 10 for analysis by the electronic device 10.
  • the distance sensor 60 may be a distance sensor infrared distance sensor, a laser distance sensor, or the like disposed on the electronic device, and may be disposed adjacent to the camera 50 for taking a photo for emitting infrared into the shooting range of the photo. And sensing a signal such as a laser, and receiving the sensing signal reflected by the target scene to analyze depth information of the target scene (ie, distance information from the first shooting position O), thereby detecting the camera 50 to the location The first fixed point, the second fixed point, the third fixed point, and the distance of the billiard.
  • the billiard position determining apparatus 20 includes a photo acquiring module 210, a distance acquiring module 220, a first calculating module 230, a second calculating module 240, and a spherical center coordinate acquiring module 250.
  • 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 can be stored in a non-volatile storage medium.
  • the photo obtaining module 210 may perform the steps S1, S5, and S91, etc.
  • the distance acquiring module may perform the steps S2, S6, etc.
  • the first calculating module 230 may perform the step S3, S7, etc.
  • the second calculation module 240 can perform the steps S4, S8, and the like.
  • the spherical center coordinate acquisition module 250 can perform the step S9. Since the above steps S1-S9 have been described in detail above, the specific execution steps of each module will not be described herein.
  • FIG. 9 is a schematic structural diagram of an electronic device according to a second embodiment of the method for determining a billiard position shown in FIG. 1.
  • the electronic device 10 ′ of the second implementation is substantially the same as the electronic device 10 of the first embodiment, the difference between the two is mainly that the electronic device 10 ′ includes a 3D imaging device 70 , and the 3D imaging device 70 is used for Taking the first photo, the second photo, the third photo, and detecting the 3D imaging device 70 to the first fixed point, the second fixed point, the third fixed point, and the For the distance of the billiards, the 3D camera 70 may have a distance sensor for detecting the 3D camera 70 to the first fixed point A, the second fixed point B, the third fixed point C, and the The distance of the billiards 101.
  • the billiard position determining method S1-S9, the billiard position determining device 20 and the electronic device 10, 10' of the present invention can determine the position of the billiards (such as billiards 101) by analyzing the photos, thereby positioning the billiards. It is convenient to calculate the hitting path and give a hit suggestion, and the hitting suggestion can be provided to the user through the electronic device 10, 10', thereby helping the billiard player to raise the hitting level.

Abstract

A billiard ball position determining method, a billiard ball position determining apparatus and an electronic device. The method mainly comprises: calculating coordinates of two photographing positions by means of two photos of a billiard table having fixed points and a billiard ball photographed at two different photographing positions and detecting the distances (respectively being lo1 and lo2) from two different photographing positions to the fixed points and the billiard ball, the number of the fixed points in each photo being three or more; further obtaining first interval coordinate information and second interval coordinate information that the distances from the two photographing positions to the billiard ball are lo1 + r and lo2 + r respectively according to the coordinates of two photographing positions and the distances from the two different photographing positions to the billiard ball, r being the radius of the billiard ball; and further obtaining the coordinates of the center of the billiard ball, the coordinates of the center of the billiard ball being located in first region coordinate information and also in second region coordinate information.

Description

台球位置确定方法、台球位置确定装置及电子设备Billiard position determining method, billiard position determining device and electronic device 技术领域Technical field
本发明涉及一种台球位置确定方法、台球位置确定装置及电子设备。The invention relates to a billiard position determining method, a billiard position determining device and an electronic device.
背景技术Background technique
台球,也可以称为桌球,其是在现代生活中深受人们喜爱的一项体育运动,它不仅可以作为亲朋好友聚会的娱乐项目,也是国际上一项重要的国际比赛项目(如斯诺克、美式台球)。无论是娱乐还是比赛,如何帮助台球运动者提升击球水平都是一项重要的课题,而如何确定台球位置则在帮助台球运动者提升击球水平过程中起到至关重要的作用。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.
发明内容Summary of the invention
为解决现有技术中确定台球位置的问题,本发明提供一种台球位置确定方法、台球位置确定装置及电子设备。In order to solve the problem of determining the position of the billiard in the prior art, 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, the method comprising:
获取在第一拍摄位置拍摄的第一张照片,所述第一张照片上包括台球桌面、位于台球桌面上的一个台球、第一固定点、第二固定点及第三固定点,其中所述第一固定点、第二固定点及第三固定点相较于一参考坐标系的坐标已知;Obtaining a first photo taken at a first shooting position, the first photo comprising a billiard tabletop, a billiard on the billiard table top, a first fixed point, a second fixed point, and a third fixed point, wherein the The first fixed point, the second fixed point, and the third fixed point are known relative to a coordinate of a reference coordinate system;
获取所述第一拍摄位置分别到所述第一固定点、第二固定点、第三固定点及所述台球球心的距离,其中,所述第一拍摄位置到所述台球的距离设为lo1,所述台球的半径设为r,所述第一拍摄位置到所述台球球心的距离为lo1+r;Obtaining a distance from the first photographing position to the first fixed point, the second fixed point, the third fixed point, and the billiard ball center, wherein a distance from the first photographing position to the billiard ball is set to l o1 , the radius of the billiard is set to r, the distance from the first shooting position to the billiard ball center is l o1 + r;
依据所述第一固定点、第二固定点及第三固定点的坐标与所述第一固定点、第二固定点及第三固定点分别到所述第一拍摄位置的距离计算所述第一拍摄位置的坐标;Calculating the first point according to the coordinates of the first fixed point, the second fixed point, and the third fixed point, and the distance from the first fixed point, the second fixed point, and the third fixed point to the first shooting position The coordinates of a shooting position;
依据所述第一拍摄位置的坐标计算所述第一拍摄位置到所述台球上的距离为lo1+r的第一区间坐标信息,所述第一区间坐标信息包括多个到所述第一拍摄位置的距离为lo1+r的坐标;Coordinate calculation based on the first imaging position to the first position on the photographing distance is billiards l o1 + r coordinate information of a first section, said first section comprising a plurality of coordinate information to the first The distance of the shooting position is the coordinates of l o1 +r;
获取在不同于所述第一拍摄位置的第二拍摄位置拍摄的第二张照片,所述第二张照片上包括所述台球桌面、所述台球、第四固定点、第五固定点及第六固定点,其中,所述第四固定点、第五固定点及第六固定点相较于所述参考坐标系的坐标已知,所述第二张照片与所述第一张照片中的所述台球在所述台球桌面的位置没有变化;Acquiring a second photo taken at a second shooting position different from the first shooting position, the second photo including the billiard tabletop, the billiards, a fourth fixed point, a fifth fixed point, and a a six fixed point, wherein the fourth fixed point, the fifth fixed point, and the sixth fixed point are known relative to coordinates of the reference coordinate system, the second photo and the first photo The billiard has no change in the position of the billiard tabletop;
获取所述第二拍摄位置分别到所述第四固定点、第五固定点及第六固定点及所述台球球心的距离,其中,所述第二拍摄位置到所述台球的距离设为lo2,所述第二拍摄位置到所述台球球心的距离为lo2+r;Obtaining a distance from the second shooting position to the fourth fixed point, the fifth fixed point, and the sixth fixed point, respectively, and the billiard ball center, wherein a distance from the second shooting position to the billiard ball is set to l o2 , the distance from the second shooting position to the billiard ball center is l o2 + r;
依据所述第四固定点、第五固定点及第六固定点的坐标与所述第四固定点、第五固定点及第六固定点分别到所述第二拍摄位置的距离计算所述第二拍摄位置的坐标;Calculating the number according to the coordinates of the fourth fixed point, the fifth fixed point, and the sixth fixed point, and the distance from the fourth fixed point, the fifth fixed point, and the sixth fixed point to the second shooting position respectively Second, the coordinates of the shooting position;
依据所述第二拍摄位置的坐标计算所述第二拍摄位置到所述台球上的距离为lo2+r的第二区间坐标信息,所述第二区间坐标信息包括多个到所述第二拍摄位置的距离为lo2+r的坐标信息;及Calculating, according to the coordinates of the second photographing position, second interval coordinate information of the distance from the second photographing position to the billiards as l o2 +r, the second interval coordinate information including a plurality of to the second The distance of the shooting position is the coordinate information of l o2 +r; and
获取所述台球球心的坐标,其中所述台球球心的坐标位于所述第一区域坐标信息中,也位于所述第二区域坐标信息中。Obtaining coordinates of the billiard ball center, wherein coordinates of the billiard ball center are located in the first region coordinate information, and also in the second region coordinate information.
一种台球位置确定装置,其包括:A billiard position determining device comprising:
照片获取模块,用于获取在第一拍摄位置拍摄的第一张照片及在不同于所述第一拍摄位置的第二拍摄位置拍摄的第二张照片,所述第一张照片上包括台球桌面、位于台球桌面上的一个台球、第一固定点、第二固定点及第三固定点,其中所述第一固定点、第二固定点及第三固定点相较于一参考坐标系的坐标已知,所述第二张照片上包括所述台球桌面、所述台球、所述第一四固定点、所述第五固定点及所述第六固定点,其中,所述第四固定点、第五固定点及第六固定点相较于所述参考坐标系的坐标已知,所述第二张照片与所述第一张照片中的所述台球在所述台球桌面的位置没有变化;a photo acquisition module, configured to acquire a first photo taken at the first shooting position and a second photo taken at a second shooting position different from the first shooting position, where the first photo includes a billiard tabletop a billiard, a first fixed point, a second fixed point and a third fixed point on the billiard table, wherein the first fixed point, the second fixed point and the third fixed point are compared with a coordinate of a reference coordinate system It is known that the second photo includes the billiard table top, the billiard, the first four fixed points, the fifth fixed point and the sixth fixed point, wherein the fourth fixed point The fifth fixed point and the sixth fixed point are known compared to the coordinates of the reference coordinate system, and the second photo and the billiard in the first photo have no change in the position of the billiard tabletop. ;
距离获取模块,用于获取所述第一拍摄位置分别到所述第一固定点、第二固定点、第三固定点及所述台球球心的距离,以及获取所述第二拍摄位置分别到所述第四固定点、第五固定点、第六固定点及所述台球球心的距离,其中,所述第一拍摄位置到所述台球的距离设为lo1,所述第二拍摄位置到所述台球的距离设为lo2,所述台球的半径设为r,所述第一拍摄位置到所述台球球心的距离为lo1+r,所述第二拍摄位置到所述台球球心的距离为lo2+r;a distance acquiring module, configured to acquire a distance from the first photographing position to the first fixed point, the second fixed point, the third fixed point, and the billiard ball center, and obtain the second photographing position to a distance between the fourth fixed point, the fifth fixed point, the sixth fixed point, and the billiard ball center, wherein a distance from the first shooting position to the billiard is set to l o1 , and the second shooting position The distance to the billiard is set to l o2 , the radius of the billiard is set to r, the distance from the first photographing position to the billiard ball center is l o1 + r, and the second photographing position is to the billiard The distance between the centers of the sphere is l o2 +r;
第一计算模块,用于依据所述第一固定点、第二固定点及第三固定点的坐标与所述第一固定点、第二固定点及第三固定点分别到所述第一拍摄位置的距离计算所述第一拍摄位置的坐标,以及依据所述第四固定点、第五固定点及第六固定点的坐标与所述第四固定点、第五固定点及第六固定点分别到所述第二拍摄位置的距离计算所述第二拍摄位置的坐标;a first calculating module, configured to respectively perform the first shooting according to the coordinates of the first fixed point, the second fixed point, and the third fixed point, and the first fixed point, the second fixed point, and the third fixed point a distance of the position to calculate coordinates of the first photographing position, and coordinates according to the fourth fixed point, the fifth fixed point, and the sixth fixed point, and the fourth fixed point, the fifth fixed point, and the sixth fixed point Calculating coordinates of the second photographing position by distances respectively from the second photographing position;
第二计算模块,依据所述第一拍摄位置的坐标计算所述第一拍摄位置到所述台球上的距离为lo1+r的第一区间坐标信息,以及依据所述第二拍摄位置的坐标计算所述第二拍摄位置到所述台球上的距离为lo2+r的第二区间坐标信息,所述第一区间坐标信息包括多个到所述第一拍摄位置的距离为lo1+r的坐标,所述第二区间坐标信息包括多个到所述第二拍摄位置的距离为lo2+r的坐标信息;及A second calculation module, based on coordinates of the photographing position of the first imaging position to calculate the first distance to the pool for the first interval l o1 + r coordinate information, and according to the second imaging position coordinates Calculating second interval coordinate information of the distance from the second shooting position to the billiards as l o2 +r, the first interval coordinate information including a plurality of distances to the first shooting position is l o1 +r Coordinates, the second interval coordinate information includes a plurality of coordinate information of a distance to the second photographing position of l o2 + r;
球心坐标获取模块,用于获取所述台球球心的坐标,其中所述台球球心的坐标位于所述第一区域坐标信息中,也位于所述第二区域坐标信息中。a spherical core coordinate acquiring module, configured to acquire coordinates of the billiard ball center, wherein coordinates of the billiard ball center are located in the first region coordinate information, and are also located in the second region coordinate information.
一种电子设备,其包括处理器,所述处理器用于执行非易失性存储介质中存储的计算机程序时实现一种台球位置确定方法,所述台球位置确定方法包括如下步骤:An electronic device comprising a processor for implementing a billiard position determining method for executing a computer program stored in a non-volatile storage medium, the billiard position determining method comprising the steps of:
获取在第一拍摄位置拍摄的第一张照片,所述第一张照片上包括台球桌面、位于台球桌面上的一个台球、第一固定点、第二固定点及第三固定点,其中所述第一固定点、第二固定点及第三固定点相较于一参考坐标系的坐标已知;Obtaining a first photo taken at a first shooting position, the first photo comprising a billiard tabletop, a billiard on the billiard table top, a first fixed point, a second fixed point, and a third fixed point, wherein the The first fixed point, the second fixed point, and the third fixed point are known relative to a coordinate of a reference coordinate system;
获取所述第一拍摄位置分别到所述第一固定点、第二固定点、第三固定点及所述台球球心的距离,其中,所述第一拍摄位置到所述台球的距离设为lo1,所述台球的半径设为r,所述第一拍摄位置到所述台球球心的距离为lo1+r;Obtaining a distance from the first photographing position to the first fixed point, the second fixed point, the third fixed point, and the billiard ball center, wherein a distance from the first photographing position to the billiard ball is set to l o1 , the radius of the billiard is set to r, the distance from the first shooting position to the billiard ball center is l o1 + r;
依据所述第一固定点、第二固定点及第三固定点的坐标与所述第一固定点、第二固定点及第三固定点分别到所述第一拍摄位置的距离计算所述第一拍摄位置的坐标;Calculating the first point according to the coordinates of the first fixed point, the second fixed point, and the third fixed point, and the distance from the first fixed point, the second fixed point, and the third fixed point to the first shooting position The coordinates of a shooting position;
依据所述第一拍摄位置的坐标计算所述第一拍摄位置到所述台球上的距离为lo1+r的第一区间坐标信息,所述第一区间坐标信息包括多个到所述第一拍摄位置的距离为lo1+r的坐标;Coordinate calculation based on the first imaging position to the first position on the photographing distance is billiards l o1 + r coordinate information of a first section, said first section comprising a plurality of coordinate information to the first The distance of the shooting position is the coordinates of l o1 +r;
获取在不同于所述第一拍摄位置的第二拍摄位置拍摄的第二张照片,所述第二张照片上包括所述台球桌面、所述台球、第四固定点、第五固定点及第六固定点,其中,所述第四固定点、第五固定点及第六固定点相较于所述参考坐标系的坐标已知,所述第二张照片与所述第一张照片中的所述台球在所述台球桌面的位置没有变化;Acquiring a second photo taken at a second shooting position different from the first shooting position, the second photo including the billiard tabletop, the billiards, a fourth fixed point, a fifth fixed point, and a a six fixed point, wherein the fourth fixed point, the fifth fixed point, and the sixth fixed point are known relative to coordinates of the reference coordinate system, the second photo and the first photo The billiard has no change in the position of the billiard tabletop;
获取所述第二拍摄位置分别到所述第四固定点、第五固定点及第六固定点及所述台球球心的距离,其中,所述第二拍摄位置到所述台球的距离设为lo2,所述第二拍摄位置到所述台球球心的距离为lo2+r;Obtaining a distance from the second shooting position to the fourth fixed point, the fifth fixed point, and the sixth fixed point, respectively, and the billiard ball center, wherein a distance from the second shooting position to the billiard ball is set to l o2 , the distance from the second shooting position to the billiard ball center is l o2 + r;
依据所述第四固定点、第五固定点及第六固定点的坐标与所述第四固定点、第五固定点及第六固定点分别到所述第二拍摄位置的距离计算所述第二拍摄位置的坐标;Calculating the number according to the coordinates of the fourth fixed point, the fifth fixed point, and the sixth fixed point, and the distance from the fourth fixed point, the fifth fixed point, and the sixth fixed point to the second shooting position respectively Second, the coordinates of the shooting position;
依据所述第二拍摄位置的坐标计算所述第二拍摄位置到所述台球上的距离为lo2+r的第二区间坐标信息,所述第二区间坐标信息包括多个到所述第二拍摄位置的距离为lo2+r的坐标信息;及Calculating, according to the coordinates of the second photographing position, second interval coordinate information of the distance from the second photographing position to the billiards as l o2 +r, the second interval coordinate information including a plurality of to the second The distance of the shooting position is the coordinate information of l o2 +r; and
获取所述台球球心的坐标,其中所述台球球心的坐标位于所述第一区域坐标信息中,也位于所述第二区域坐标信息中。Obtaining coordinates of the billiard ball center, wherein coordinates of the billiard ball center are located in the first region coordinate information, and also in the second region coordinate information.
相较于现有技术,本发明台球位置确定方法、台球位置确定装置及电子设备可以通过分析照片来确定台球的位置,从而可定位台球的位置,方便计算击球路径及给出击打建议,并且可通过电子设备将击打建议提供给使用者,从而帮助台球运动者提升击球水平。Compared with the prior art, the billiard position determining method, the billiard position determining device and the electronic device of the present invention can determine the position of the billiard by analyzing the photograph, thereby positioning the billiard position, conveniently calculating the hitting path and giving the hitting suggestion, and The billiards can be improved by the electronic device to provide the hitting suggestions to the user.
附图说明DRAWINGS
图1为本发明台球位置的确定方法的流程图。1 is a flow chart of a method for determining a billiard position of the present invention.
图2为图1所示的台球位置的确定方法涉及的两个拍摄位置、台球桌面及台球桌面的固定点及台球的平面示意图。2 is a plan view showing two shooting positions, a fixed point of a billiard tabletop and a billiard tabletop, and billiards in the method for determining the position of the billiards shown in FIG. 1.
图3为图1所示的台球位置的确定方法的第一种实施例的获取所述台球球心的坐标的步骤的原理示意图。FIG. 3 is a schematic diagram showing the principle of acquiring the coordinates of the billiard ball center in the first embodiment of the method for determining the billiard position shown in FIG. 1. FIG.
图4为图1所示的台球位置的确定方法的确定的两个重叠坐标的示意图。4 is a schematic diagram of two overlapping coordinates of the determination of the method for determining the position of the billiards shown in FIG. 1.
图5为图1所示的台球位置的确定方法的第二种实施例的获取所述台球球心的坐标的步骤的原理示意图。FIG. 5 is a schematic diagram showing the principle of acquiring the coordinates of the billiard ball center in the second embodiment of the method for determining the billiard position shown in FIG. 1. FIG.
图6为图1所示的台球位置的确定方法的第三种实施例的获取所述台球球心的坐标的步骤的原理示意图。FIG. 6 is a schematic diagram showing the principle of the step of acquiring the coordinates of the billiard ball center in the third embodiment of the method for determining the billiard position shown in FIG. 1.
图7为图1所示的台球位置的确定方法的第四种实施例的获取所述台球球心的坐标的步骤的原理示意图。FIG. 7 is a schematic diagram showing the principle of acquiring the coordinates of the billiard ball center in the fourth embodiment of the method for determining the billiard position shown in FIG. 1. FIG.
图8为使用图1所示的台球位置的确定方法的第一实施方式的电子设备的结构示意图。8 is a schematic structural view of an electronic device using the first embodiment of the method for determining the position of the billiards shown in FIG. 1.
图9为使用图1所示的台球位置的确定方法的第二实施方式的电子设备的结构示意图。Fig. 9 is a view showing the configuration of an electronic apparatus using a second embodiment of the method for determining the position of the billiards shown in Fig. 1.
主要元件符号说明Main component symbol description
第一拍摄位置   OFirst shooting position O
第二拍摄位置   O’Second shooting position O’
第三拍摄位置   O’’Third shooting position O’’
第一固定点    AFirst fixed point A
第二固定点    BSecond fixed point B
第三固定点    CThird fixed point C
台球桌面     100 Billiards desktop 100
台球       101 Billiards 101
步骤       S1-S9Steps S1-S9
电子设备     10 Electronic equipment 10
台球位置确定装置 20Billiard position determining device 20
非易失性存储介质 30Non-volatile storage medium 30
处理器      40 Processor 40
摄像头      50 Camera 50
距离感测器    60 Distance sensor 60
照片获取模块   210 Photo acquisition module 210
距离获取模块   220 Distance acquisition module 220
第一计算模块   230 First calculation module 230
第二计算模块   240 Second calculation module 240
球心坐标获取模块 250Ball center coordinate acquisition module 250
3D拍摄装置    70 3D camera 70
如下具体实施方式将结合上述附图进一步说明本发明。The invention will be further illustrated by the following detailed description in conjunction with the accompanying drawings.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, but not all embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
需要说明的是,当组件被称为“固定于”另一个组件,它可以直接在另一个组件上或者也可以存在居中的组件。当一个组件被认为是“设置于”另一个组件,它可以是直接设置在另一个组件上或者可能同时存在居中组件。本文所使用的术语“左”、“右”以及类似的表述只是为了说明的目的。It should be noted that when a component is 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.
除非另有定义,本文所使用的所有的技术和科学术语与属于本发明的技术领域的技术人员通常理解的含义相同。本文中在本发明的说明书中所使用的术语只是为了描述具体的实施例的目的,不是旨在于限制本发明。All technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs, unless otherwise defined. The terminology used in the description of the present invention is for the purpose of describing particular embodiments and is not intended to limit the invention.
请参阅图1,图1为本发明台球位置的确定方法的流程图。所述台球位置的确定方法包括如下步骤S1-S9。Please refer to FIG. 1. FIG. 1 is a flow chart of a method for determining a billiard position according to the present invention. The method for determining the position of the billiards includes the following steps S1-S9.
步骤S1,获取在第一拍摄位置拍摄的第一张照片,所述第一张照片上包括台球桌面、位于台球桌面上的一个台球、第一固定点、第二固定点及第三固定点,其中所述第一固定点、第二固定点及第三固定点相较于一参考坐标系的坐标已知。Step S1: Acquire a first photo taken at a first shooting position, where the first photo includes a billiard tabletop, a billiard on the billiard tabletop, a first fixed point, a second fixed point, and a third fixed point. The first fixed point, the second fixed point, and the third fixed point are known relative to a coordinate of a reference coordinate system.
请参阅图2,图2为图1所示的台球位置的确定方法涉及的两个拍摄位置、台球桌面及台球桌面的固定点及台球的平面示意图。具体地,可以使用拍摄装置(如摄像头)在所述第一拍摄位置O进行所述第一张照片的拍摄。可以理解,所述拍摄装置(如摄像头)看可以是电子设备(如智能手机、平板电脑等电子设备)上的摄像头。所述第一拍摄位置O为可以拍摄到所述台球桌面100上的第一固定点A、第二固定点B、第三固定点C及位于所述台球桌面100上的一个台球101的位置,因此,所述第一张照片上包括台球桌面100、位于台球桌面100上的一个台球101、及位于台球桌上的第一固定点A、第二固定点B及第三固定点C。其中所述第一固定点A、第二固定点B及第三固定点C相较于一参考坐标系的坐标已知,如所述第一固定点A、第二固定点B及第三固定点C可以是所述台球桌面的标识点(如斯诺克台球桌面上的三个标识点)、台球桌上台尼或台球桌面上的特定标识点或者额外添加的其他位置(如在台球桌外的特定位置)特定的标识点,本实施方式中主要以所述第一固定点A、第二固定点B及第三固定点C是台球桌面100上的固定点为例进行说明。其中,所述参考坐标系可以是以所述台球桌面为水平面,其中,所述台球桌面的一个球袋的位置为坐标零点(0,0,0),所述球袋两侧的台尼所在直线为x轴与y轴(如所述较长的台尼所在的直线所在方向为x轴,所述较短的台尼所在的直线所在方向为y轴),以垂直所述台球桌面方向为z轴,其中位于所述台球桌面上方的各点的z轴坐标为正(即大于0)。Please refer to FIG. 2. FIG. 2 is a plan view showing the two shooting positions, the fixed position of the billiard table and the billiard tabletop, and the billiards in the method for determining the position of the billiard. Specifically, photographing of the first photograph may be performed at the first photographing position O using a photographing device such as a camera. It can be understood that the camera (such as a camera) can be a camera on an electronic device (such as an electronic device such as a smart phone or a tablet). The first photographing position O is a position at which a first fixed point A, a second fixed point B, a third fixed point C, and a billiard 101 located on the billiard table top 100 on the billiard table top 100 can be photographed. Therefore, the first photo includes a billiard tabletop 100, a billiard 101 located on the billiard tabletop 100, and a first fixed point A, a second fixed point B, and a third fixed point C on the billiard table. The first fixed point A, the second fixed point B, and the third fixed point C are known relative to a coordinate of a reference coordinate system, such as the first fixed point A, the second fixed point B, and the third fixed point. Point C can be the identification point of the billiard tabletop (such as three identification points on the snooker tabletop), the specific identification point on the billiard table or the billiard table, or other additional locations (such as outside the pool table). In the present embodiment, the first fixed point A, the second fixed point B, and the third fixed point C are fixed points on the billiard table top 100 as an example. Wherein, the reference coordinate system may be a horizontal plane of the billiard table, wherein a position of a bag of the billiard table is a coordinate zero point (0, 0, 0), where the sides of the bag are located The straight line is the x-axis and the y-axis (if the direction of the line where the longer Tuni is located is the x-axis, the direction of the line where the shorter Tuni is located is the y-axis), and the direction of the billiard table is perpendicular to The z-axis, wherein the z-axis coordinates of the points above the billiard table top are positive (ie greater than 0).
请参阅图3,图3为图1所示的台球位置的确定方法的第一种实施例的获取所述台球球心的坐标的步骤的原理示意图。由于所述第一固定点A、第二固定点B、第三固定点C是所述台球桌面100上的固定点,因此所述第一固定点A、第二固定点B、第三固定点C的坐标已知,设所述第一固定点A、第二固定点B、第三固定点C的坐标分别为(x1,y1,0)、(x2,y2,0)、(x3,y3,0),进一步地,设所述第一拍摄位置O的坐标可以设为(x,y,z)。Please refer to FIG. 3. FIG. 3 is a schematic diagram showing the principle of acquiring the coordinates of the billiard ball center in the first embodiment of the method for determining the billiard position shown in FIG. 1. Since the first fixed point A, the second fixed point B, and the third fixed point C are fixed points on the billiard table top 100, the first fixed point A, the second fixed point B, and the third fixed point The coordinates of C are known, and the coordinates of the first fixed point A, the second fixed point B, and the third fixed point C are respectively (x 1 , y 1 , 0), (x 2 , y 2 , 0), (x 3 , y 3 , 0) Further, it is assumed that the coordinates of the first photographing position O can be set to (x, y, z).
可以理解,所述台球桌面上可能包括多个台球,所述第一张照片上也可以拍摄到多个台球,本案主要以所述一个台球为例,对所述一个台球位置的定方法进行说明,可以理解,关于其他台球位置的确定方法可以与所述一个台球位置的确定方法可以基本相同,因此本案各图示未做绘制及说明,但是不影响使用本案的台球位置的确定方法将台球桌面上的所有台球的位置全部确定,即计算出所有台球的坐标,从而利用所有台球的坐标建立所述台球桌面及所述所有台球的模型,从而藉由所述模型分析并计算最合适击打的台球并给出击打建议等。It can be understood that the billiard table may include a plurality of billiards, and the billet may also be photographed on the first photo. In the present case, the billing position is mainly described by taking the billiard as an example. It can be understood that the method for determining the position of the other billiards can be substantially the same as the method for determining the position of the billiards. Therefore, the icons in the present case are not drawn and illustrated, but the billiard tabletop is not affected by the determination method of the billiard position using the case. The positions of all the billiards on the board are all determined, that is, the coordinates of all the billiards are calculated, so that the billiard table and the model of all the billiards are established by using the coordinates of all billiards, thereby analyzing and calculating the most suitable hit by the model. Billiards and give suggestions for hitting.
步骤S2,获取所述第一拍摄位置分别到所述第一固定点、第二固定点、第三固定点及所述台球球心的距离,其中,所述第一拍摄位置到所述台球的距离设为lo1,所述台球的半径设为r,所述第一拍摄位置到所述台球球心的距离为lo1+r。Step S2, obtaining a distance from the first photographing position to the first fixed point, the second fixed point, the third fixed point, and the billiard ball center, wherein the first photographing position to the billiard ball The distance is set to l o1 , the radius of the billiard is set to r, and the distance from the first photographing position to the billiard ball center is l o1 + r.
具体地,所述步骤S2中,可以通过距离感测器侦测所述第一拍摄位置O分别到所述第一固定点A、第二固定点B、第三固定点C及所述台球101的距离。可以理解,所述第一拍摄位置到所述第一固定点A的距离为所述第一拍摄位置O(如所述拍摄装置所在的第一拍摄位置的取景表面的中心)至所述第一固定点A的中心的距离,设为l1;所述第一拍摄位置O到所述第二固定点B的距离为所述第一拍摄位置O至所述第二固定点B的中心的距离,设为l2;所述第一拍摄位置O到所述第三固定点C的距离为所述第一拍摄位置O至所述第三固定点C的中心的距离,设为l3;所述第一拍摄位置O到所述台球101的距离为:所述台球101的表面最接近所述第一拍摄位置O的点的距离,设为lo1,所述台球的半径设为r。可以理解,在一种实施方式中,由于所述台球球心可能被遮挡,从而通过距离传感器无法直接侦测到所述台球101的表面最接近所述第一拍摄位置O的点的距离lo1,此时,可以通过距离传感器侦测到所述台球101的表面最远离所述第一拍摄位置O的点的距离lo1’,并依据所述lo1’及所述r通过勾股定理计算获得所述第一拍摄位置到所述台球球心的距离为lo1+r。具体地,所述lo1、lo1’符合如下公式:Specifically, in the step S2, the first shooting position O can be detected by the distance sensor to the first fixed point A, the second fixed point B, the third fixed point C, and the billiard 101, respectively. the distance. It can be understood that the distance from the first photographing position to the first fixed point A is the first photographing position O (such as the center of the framing surface of the first photographing position where the photographing device is located) to the first The distance from the center of the fixed point A is set to l 1 ; the distance from the first photographing position O to the second fixed point B is the distance from the first photographing position O to the center of the second fixed point B Set to l 2 ; the distance from the first photographing position O to the third fixed point C is the distance from the first photographing position O to the center of the third fixed point C, and is set to l 3 ; The distance from the first photographing position O to the billiard 101 is: the distance of the surface of the billiard 101 closest to the first photographing position O, which is set to l o1 , and the radius of the billiard is set to r. It can be understood that, in an embodiment, since the billiard ball core may be blocked, the distance l o1 of the surface of the billiard 101 closest to the first photographing position O cannot be directly detected by the distance sensor. At this time, the distance l o1 ' of the surface of the billiard 101 that is farthest from the first photographing position O can be detected by the distance sensor, and calculated according to the l o1 ' and the r by the Pythagorean theorem The distance from the first photographing position to the billiard ball center is obtained as l o1 + r. Specifically, the l o1 and l o1 ' are in accordance with the following formula:
lo1+r=
Figure WO40670-appb-I000001
l o1 +r=
Figure WO40670-appb-I000001
.
其中,所述距离感测器可以为设置于电子设备(如智能手机、平板电脑等电子设备)上的距离传感器,如红外距离传感器、激光距离传感器等,其可以邻近所述拍摄照片的拍摄装置设置,用于向所述照片的拍摄范围内发出红外、激光等感测信号,并接收经目标景物反射的所述感测信号以分析目标景物的深度信息(即与所述第一拍摄位置O的距离信息)。The distance sensor may be a distance sensor disposed on an electronic device (such as a smart phone, a tablet computer, or the like), such as an infrared distance sensor, a laser distance sensor, or the like, which may be adjacent to the photographing device for taking a photo. Providing, for emitting a sensing signal of infrared, laser, or the like into a shooting range of the photo, and receiving the sensing signal reflected by the target scene to analyze depth information of the target scene (ie, with the first shooting position O Distance information).
所述距离感测器也可以设置于所述拍摄装置(如所述拍摄头)上的距离感测元件,如所述拍摄装置可以为3D拍摄装置,用于拍摄二维照片以及侦测所述二维照片中涉及的目标景物(如所述固定点A、B、C及所述台球101)的深度信息(即与所述第一拍摄位置O的距离信息)。The distance sensor may also be disposed on a distance sensing component on the photographing device (such as the photographing head), such as the photographing device may be a 3D photographing device, for photographing a two-dimensional photograph and detecting the The depth information (ie, the distance information from the first photographing position O) of the target scene (such as the fixed points A, B, C and the billiards 101) involved in the two-dimensional photograph.
步骤S3,依据所述第一固定点、第二固定点及第三固定点的坐标与所述第一固定点、第二固定点及第三固定点分别到所述第一拍摄位置的距离计算所述第一拍摄位置的坐标。Step S3, calculating, according to the coordinates of the first fixed point, the second fixed point, and the third fixed point, and the distance between the first fixed point, the second fixed point, and the third fixed point respectively to the first shooting position The coordinates of the first shooting position.
具体地,所述步骤S3中,依据所述参考坐标系中任意两个的距离计算公式可知,所述第一拍摄位置O至所述第一固定点A的距离满足:(x-x1)2+(y-y1)2+z2=l1 2;所述第一拍摄位置O至所述第二固定点B的距离满足:(x-x2)2+(y-y2)2+z2=l2 2;所述第一拍摄位置O至所述第三固定点C的距离满足:(x-x3)2+(y-y3)2+z2=l3 2。由于以上公式中,所述x1、x2、x3、y1、y2、y3、l1、l2、l3均已知,因此可以计算获得所述第一拍摄位置O的坐标(x,y,z)。可以理解,原则上,通过上述公式可以获得两个坐标值,选择z轴坐标值z为正的一坐标即可。Specifically, in the step S3, according to the distance calculation formula of any two of the reference coordinate systems, the distance from the first shooting position O to the first fixed point A satisfies: (xx 1 ) 2 + (yy 1 ) 2 + z 2 = l 1 2 ; the distance from the first photographing position O to the second fixed point B satisfies: (xx 2 ) 2 + (yy 2 ) 2 + z 2 = l 2 2 The distance from the first photographing position O to the third fixed point C satisfies: (xx 3 ) 2 + (yy 3 ) 2 + z 2 = l 3 2 . Since x 1 , x 2 , x 3 , y 1 , y 2 , y 3 , l 1 , l 2 , and l 3 are all known in the above formula, the coordinates of the first photographing position O can be calculated. (x, y, z). It can be understood that, in principle, two coordinate values can be obtained by the above formula, and a coordinate with the z-axis coordinate value z being positive can be selected.
步骤S4中,依据所述第一拍摄位置的坐标计算所述第一拍摄位置到所述台球上的距离为lo1+r的第一区间坐标信息,所述第一区间坐标信息包括多个到所述第一拍摄位置的距离为lo1+r的坐标。In step S4, the first interval coordinate information of the distance from the first shooting position to the billiard is l o1 + r is calculated according to the coordinates of the first shooting position, and the first interval coordinate information includes multiple The distance of the first shooting position is the coordinate of l o1 +r.
进一步地,所述步骤S4中,依据步骤S3中获得所述第一拍摄位置O的坐标(x,y,z)计算所述第一拍摄位置O到所述台球101上的距离为lo1+r的第一区间坐标信息,可以理解,所述第一区间坐标信息的多个坐标依次连线形成的第一区域102为圆弧区域或圆形区域(图3所示的实施例主要以所述第一区域102为圆弧区域进行说明),可以理解,由于所述台球101的球心101a至所述第一拍摄位置O的距离也为lo1+r,因此所述第一区间坐标信息包括所述台球101的球心101a的坐标。Further, in the step S4, the distance from the first photographing position O to the billiard 101 is calculated as l o1 + according to the coordinates (x, y, z) of the first photographing position O obtained in step S3. The first interval coordinate information of r, it can be understood that the first region 102 formed by sequentially connecting the plurality of coordinates of the first interval coordinate information is a circular arc region or a circular region (the embodiment shown in FIG. 3 mainly The first area 102 is described as an arc area. It can be understood that since the distance from the center 101a of the billiard 101 to the first photographing position O is also l o1 +r, the first section coordinate information is The coordinates of the center of the ball 101a of the billiards 101 are included.
可见,以上上述第一张照片及所述距离l1、l2、l3及l4还无法确定所述台球101的球心101a的坐标,进一步地,请参阅步骤S5-S9。It can be seen that the above-mentioned first photo and the distances l1, l2, l3, and l4 cannot determine the coordinates of the center 101a of the billiard 101. Further, refer to steps S5-S9.
步骤S5,获取在不同于所述第一拍摄位置的第二拍摄位置拍摄的第二张照片,所述第二张照片上包括所述台球桌面、所述台球、第四固定点、第五固定点及第六固定点,其中,所述第四固定点、第五固定点及第六固定点相较于所述参考坐标系的坐标已知,所述第二张照片与所述第一张照片中的所述台球在所述台球桌面的位置没有变化。Step S5, acquiring a second photo taken at a second shooting position different from the first shooting position, where the second photo includes the billiard tabletop, the billiard, the fourth fixed point, and the fifth fixed a point and a sixth fixed point, wherein the fourth fixed point, the fifth fixed point, and the sixth fixed point are known relative to coordinates of the reference coordinate system, the second photo and the first sheet The billiards in the photo have no change in the position of the billiard table.
具体地,可以使用拍摄装置(如摄像头)在所述第二拍摄位置O’进行所述第二张照片的拍摄,其中所述拍摄装置可以与拍摄第一张照片的拍摄装置为同一拍摄装置,但是可以理解,所述第二张照片的拍摄装置也可以与所述第一张照片的拍摄装置不是同一个拍摄装置(如分别是两个不同的手机的摄像头)。所述第四固定点、第五固定点及第六固定点也可以是所述台球桌面的标识点(如斯诺克台球桌面上的三个标识点)、台球桌上台尼、台球桌面或额外添加的其他位置(如在台球桌外的特定位置)特定的标识点,本实施方式中主要以所述第四固定点、第五固定点及第六固定点是台球桌面100上的固定点且分别与所述第一固定点A、所述第二固定点B及所述第三固定点C是重合的固定点为例进行说明。即,本实施方式中,所述第一固定点A、第二固定点B及第三固定点C可以分别与所述第四固定点、第五固定点及第六固定点相同;但是在变更实施方式中,所述第一固定点A、第二固定点B及第三固定点C可以与所述第四固定点、第五固定点及第六固定点的位置部分相同或各不相同。Specifically, the photographing device (such as a camera) may be used to perform the photographing of the second photograph at the second photographing position O′, wherein the photographing device may be the same photographing device as the photographing device that photographs the first photograph. However, it can be understood that the photographing device of the second photo may not be the same photographing device as the photographing device of the first photo (such as cameras of two different mobile phones respectively). The fourth fixed point, the fifth fixed point and the sixth fixed point may also be the identification points of the billiard tabletop (such as three identification points on the snooker tabletop), billiard table table, billiard tabletop or extra The other fixed position (such as a specific position outside the billiard table) is added, and in the embodiment, the fourth fixed point, the fifth fixed point, and the sixth fixed point are fixed points on the billiard table top 100, and A fixed point that overlaps with the first fixed point A, the second fixed point B, and the third fixed point C will be described as an example. That is, in the present embodiment, the first fixed point A, the second fixed point B, and the third fixed point C may be the same as the fourth fixed point, the fifth fixed point, and the sixth fixed point, respectively; In an embodiment, the first fixed point A, the second fixed point B, and the third fixed point C may be the same as or different from the positional parts of the fourth fixed point, the fifth fixed point, and the sixth fixed point.
所述第二拍摄位置O’为可以拍摄到所述台球桌面100上的第一固定点A、第二固定点B、第三固定点C及位于所述台球桌面100上的所述台球101的位置,因此,所述第二张照片上包括台球桌面100、位于台球桌面100上的所述台球101、及位于台球桌面100上的第一固定点A(即第四固定点)、第二固定点B(即第五固定点)及第三固定点C(即第六固定点)。其中,所述第二张照片与所述第一张照片中的所述台球101在所述台球桌面101的位置没有变化,即所述第一张照片与所述第二张照片是针对同一目标景物(所述台球桌面上的各台球的位置不变)在不同位置拍摄的两张照片。其中,所述步骤S5可以在所述步骤S4完成后执行,也可以在所述步骤S1或S2完成后执行。进一步地,设所述第二拍摄位置O’的坐标可以设为(x’,y’,z’)。The second photographing position O′ is a first fixed point A, a second fixed point B, a third fixed point C, and the billiard 101 located on the billiard table top 100 on the billiard table top 100 . Position, therefore, the second photo includes a billiard tabletop 100, the billiards 101 on the billiard tabletop 100, and a first fixed point A (ie, a fourth fixed point) on the billiard tabletop 100, and a second fixed Point B (ie, the fifth fixed point) and the third fixed point C (ie, the sixth fixed point). Wherein the second photo and the billiard 101 in the first photo have no change in the position of the billiard tabletop 101, that is, the first photo and the second photo are for the same target. Scenery (the position of each billiard on the billiard table is unchanged) Two photos taken at different locations. The step S5 may be performed after the step S4 is completed, or may be performed after the step S1 or S2 is completed. Further, it is assumed that the coordinates of the second photographing position O' can be set to (x', y', z').
步骤S6,获取所述第二拍摄位置分别到所述第四固定点、第五固定点、第六固定点及所述台球球心的距离,其中,所述第二拍摄位置到所述台球的距离设为lo2,所述第二拍摄位置到所述台球球心的距离为lo2+r。Step S6: acquiring a distance from the second shooting position to the fourth fixed point, the fifth fixed point, the sixth fixed point, and the billiard ball center, wherein the second shooting position is to the billiard The distance is set to l o2 , and the distance from the second shooting position to the billiard ball center is l o2 + r.
具体地,所述步骤S6中,可以通过上述步骤S2中涉及的距离感测器侦测所述第二拍摄位置O’分别到所述第一固定点A(即第四固定点)、第二固定点B(即第五固定点)、第三固定点C(即第六固定点)及所述台球101的距离。可以理解,所述第二拍摄位置O’到所述第一固定点A的距离为所述第二拍摄位置O’(如所述拍摄装置所在的第二拍摄位置的取景表面的中心)至所述第一固定点A的中心的距离,设为l4;所述第二拍摄位置O’到所述第二固定点B的距离为所述第二拍摄位置O’至所述第二固定点B的中心的距离,设为l5;所述第二拍摄位置O’到所述第三固定点C的距离为所述第二拍摄位置O’至所述第三固定点C的中心的距离,设为l6;所述第二拍摄位置O’到所述台球101的距离为:所述台球101的表面最接近所述第二拍摄位置O’的点的距离,设为lo2。可以理解,在一种实施方式中,由于所述台球球心可能被遮挡,从而通过距离传感器无法直接侦测到所述台球101的表面最接近所述第二拍摄位置O’的点的距离lo2,此时,可以通过距离传感器侦测到所述台球101的表面最远离所述第二拍摄位置O’的点的距离lo2’,并依据所述lo2’及所述r通过勾股定理计算获得所述第一拍摄位置到所述台球球心的距离为lo2+r。具体地,所述lo2、lo2’符合如下公式:Specifically, in the step S6, the second shooting position O' can be detected by the distance sensor involved in the step S2 to the first fixed point A (ie, the fourth fixed point) and the second The fixed point B (ie, the fifth fixed point), the third fixed point C (ie, the sixth fixed point), and the distance of the billiard 101. It can be understood that the distance from the second photographing position O' to the first fixed point A is the second photographing position O' (such as the center of the framing surface of the second photographing position where the photographing device is located) to the a distance of the center of the first fixed point A is set to 14 ; a distance from the second photographing position O' to the second fixed point B is the second photographing position O' to the second fixed point The distance from the center of B is set to l 5 ; the distance from the second photographing position O' to the third fixed point C is the distance from the second photographing position O' to the center of the third fixed point C , to l 6; a second imaging position O 'distance to the pool of 101: 101 closest to the surface of the pool to the second imaging position O' from the point to l o2. It can be understood that, in an embodiment, since the billiard ball core may be blocked, the distance from the point where the surface of the billiard 101 is closest to the second photographing position O′ cannot be directly detected by the distance sensor. O2 , at this time, the distance l o2 ' of the surface of the billiard 101 that is farthest from the second photographing position O' can be detected by the distance sensor, and the parsing is performed according to the l o2 ' and the r The theorem calculates that the distance from the first photographing position to the billiard ball center is l o2 + r. Specifically, the l o2 and l o2 ' are in accordance with the following formula:
lo2+r=
Figure WO40670-appb-I000002
l o2 +r=
Figure WO40670-appb-I000002
.
其中,所述步骤S6可以在所述步骤S5完成后执行,也可以在所述步骤S1或S2完成后执行,即所述步骤S3、S4可以在所述步骤S1、S2、S5及S6之后执行。The step S6 may be performed after the step S5 is completed, or may be performed after the step S1 or S2 is completed, that is, the steps S3 and S4 may be performed after the steps S1, S2, S5 and S6. .
步骤S7,依据所述第四固定点、第五固定点及第六固定点的坐标与所述第四固定点、第五固定点及第六固定点分别到所述第二拍摄位置的距离计算所述第二拍摄位置的坐标。Step S7, calculating, according to the coordinates of the fourth fixed point, the fifth fixed point, and the sixth fixed point, and the distance between the fourth fixed point, the fifth fixed point, and the sixth fixed point respectively to the second shooting position The coordinates of the second shooting position.
具体地,所述步骤S7中,依据所述参考坐标系中任意两个的距离计算公式可知,所述第二拍摄位置O’至所述第一固定点A(即第四固定点)的距离满足:(x’-x1)2+(y’-y1)2+(z’)2=l4 2;所述第二拍摄位置O’至所述第二固定点B(即第五固定点)的距离满足:(x’-x2)2+(y’-y2)2+(z’)2=l5 2;所述第二拍摄位置O’至所述第三固定点C(即第六固定点)的距离满足:(x’-x3)2+(y-y3)2+(z’)2=l6 2。由于以上公式中,所述x1、x2、x3、y1、y2、y3、l4、l5、l6均已知,因此可以计算获得所述第二拍摄位置O’的坐标(x’,y’,z’)。可以理解,原则上,通过上述公式可以获得两个坐标值,选择z轴坐标值z’为正的一坐标即可。可以理解,所述步骤S7中计算第二拍摄位置O’的坐标的原理与所述步骤S3中计算第一拍摄位置O的坐标的原理基本相同。Specifically, in the step S7, according to the distance calculation formula of any two of the reference coordinate systems, the distance from the second shooting position O' to the first fixed point A (ie, the fourth fixed point) is known. Satisfying: (x'-x 1 ) 2 + (y'-y 1 ) 2 + (z') 2 = l 4 2 ; the second photographing position O' to the second fixed point B (ie, fifth The distance of the fixed point) satisfies: (x'-x 2 ) 2 + (y'-y 2 ) 2 + (z') 2 = l 5 2 ; the second photographing position O' to the third fixed point The distance of C (ie, the sixth fixed point) satisfies: (x'-x 3 ) 2 + (yy 3 ) 2 + (z') 2 = l 6 2 . Since x 1 , x 2 , x 3 , y 1 , y 2 , y 3 , l 4 , l 5 , and l 6 are all known in the above formula, the second photographing position O′ can be calculated. Coordinates (x', y', z'). It can be understood that, in principle, two coordinate values can be obtained by the above formula, and a coordinate in which the z-axis coordinate value z' is positive is selected. It can be understood that the principle of calculating the coordinates of the second shooting position O′ in the step S7 is basically the same as the principle of calculating the coordinates of the first shooting position O in the step S3.
步骤S8,依据所述第二拍摄位置的坐标计算所述第二拍摄位置到所述台球上的距离为lo2+r的第二区间坐标信息,所述第二区间坐标信息包括多个到所述第二拍摄位置的距离为lo2+r的坐标信息。Step S8, the coordinate calculation according to the second imaging position to the second position of the photographing distance to the billiard l o2 + r coordinate information of a second section, said second section comprising a plurality of coordinate information to the The distance of the second shooting position is the coordinate information of l o2 +r.
进一步地,所述步骤S8中,依据步骤S7中获得所述第二拍摄位置O’的坐标(x’,y’,z’)计算所述第二拍摄位置O’到所述台球101上的距离为lo2+r的第二区间坐标信息,可以理解,所述第二区间坐标信息的多个坐标依次连线形成的第二区域103为圆形区域,可以理解,由于所述台球101的球心101a至所述第二拍摄位置O’的距离也为lo2+r,因此所述第二区间坐标信息包括所述台球101的球心101a的坐标。可以理解,所述步骤S8中计算第二区间坐标信息的原理与所述步骤S4中计算第一区间坐标信息的原理也基本相同。Further, in the step S8, the second shooting position O' is calculated on the billiard 101 according to the coordinates (x', y', z') of the second shooting position O' obtained in step S7. l o2 + r is the distance second section coordinate information, can be appreciated, a plurality of coordinates of the second coordinate information section of the second connection region are sequentially formed in a circular area 103, to be understood that, since the pool 101 The distance from the center of the core 101a to the second photographing position O' is also l02 +r, so the second section coordinate information includes the coordinates of the center of the ball 101a of the billiards 101. It can be understood that the principle of calculating the second interval coordinate information in the step S8 is basically the same as the principle of calculating the first interval coordinate information in the step S4.
步骤S9,获取所述台球球心的坐标,其中所述台球球心的坐标位于所述第一区域坐标信息中,也位于所述第二区域坐标信息中。Step S9: Acquire coordinates of the billiard ball center, wherein coordinates of the billiard ball center are located in the first area coordinate information, and are also located in the second area coordinate information.
如图3所示,第一种实施例中,依据所述步骤S4获得所述第一区间坐标信息及所述步骤S8获得的第二区间坐标信息可知,所述第一区间坐标信息与所述第二区间坐标信息包括一个重叠的坐标,所述台球球心的坐标即为所述一个重叠的坐标。因此所述步骤S9可以包括如下步骤:As shown in FIG. 3, in the first embodiment, the first interval coordinate information and the second interval coordinate information obtained in step S8 are obtained according to the step S4, and the first interval coordinate information and the The second interval coordinate information includes an overlapping coordinate, and the coordinates of the billiard ball center are the one overlapping coordinates. Therefore, the step S9 may include the following steps:
获取位于所述第一区域坐标信息中且也位于所述第二区域坐标信息中的重叠坐标;及Obtaining overlapping coordinates located in the first region coordinate information and also in the second region coordinate information; and
若所述重叠坐标的数量为一个,则将所述一个重叠坐标作为所述台球球心的坐标。If the number of the overlapping coordinates is one, the one overlapping coordinate is used as the coordinates of the billiard ball center.
然而,如图4所示,依据所述步骤S4获得所述第一区间坐标信息及所述步骤S8获得的第二区间坐标信息可知,所述第一区间坐标信息与所述第二区间坐标信息包括两个重叠的坐标,所述台球球心的坐标即是所述两个重叠的坐标中的一个,因此需选择所述两个重叠的坐标中的一个坐标所述台球球心的坐标。故,所述步骤S9包括如下步骤:However, as shown in FIG. 4, the first interval coordinate information and the second interval coordinate information obtained in step S8 are obtained according to the step S4, and the first interval coordinate information and the second interval coordinate information are known. Including two overlapping coordinates, the coordinates of the billiard ball center is one of the two overlapping coordinates, so it is necessary to select one of the two overlapping coordinates to coordinate the billiard ball center. Therefore, the step S9 includes the following steps:
获取位于所述第一区域坐标信息中且也位于所述第二区域坐标信息中的重叠坐标;Obtaining overlapping coordinates located in the first region coordinate information and also in the second region coordinate information;
若所述重叠坐标的数量为两个,选择所述两个重叠坐标中的一个重叠坐标作为所述台球球心的坐标。If the number of the overlapping coordinates is two, one of the two overlapping coordinates is selected as the coordinates of the billiard ball center.
以下对所述重叠坐标的数量为两个时,如何选择正确的一个坐标作为所述台球球心的坐标的方法进行说明。Hereinafter, a method of selecting the correct one coordinate as the coordinates of the billiard ball center will be described when the number of the overlapping coordinates is two.
请参阅图5,在第二种实施例中,所述步骤S9可以包括如下步骤S91-S95。Referring to FIG. 5, in the second embodiment, the step S9 may include the following steps S91-S95.
步骤S91,获取在不同于所述第一拍摄位置与第二拍摄位置的第三拍摄位置O’’拍摄的第三张照片,所述第三张照片上包括所述台球桌面、所述台球、第七固定点、所述第八固定点及所述第九固定点,其中,所述第七固定点、第八固定点及第九固定点相较于所述参考坐标系的坐标已知,所述第三张照片与所述第一张照片中的所述台球在所述台球桌面的位置没有变化。Step S91, acquiring a third photo taken at a third shooting position O′′ different from the first shooting position and the second shooting position, where the third photo includes the billiard tabletop, the billiard, a seventh fixed point, the eighth fixed point, and the ninth fixed point, wherein the seventh fixed point, the eighth fixed point, and the ninth fixed point are known relative to coordinates of the reference coordinate system, There is no change in the position of the billiard table in the third photo and the billiard in the first photo.
具体地,可以使用拍摄装置(如摄像头)在所述第三拍摄位置O’’进行所述第三张照片的拍摄,其中所述拍摄装置可以与拍摄第一张、第二张照片的拍摄装置为同一拍摄装置,也可以为不同的拍摄装置(如分别是三个不同的手机的摄像头)。所述第七固定点、第八固定点及第九固定点也可以是所述台球桌面的标识点(如斯诺克台球桌面上的三个标识点)、台球桌上台尼、台球桌面、或者额外添加的其他位置(如在台球桌外的特定位置)上的特定标识点,本实施方式中主要以所述第七固定点、第八固定点及第九固定点是台球桌面100上的固定点且分别与所述第一固定点A、所述第二固定点B及所述第三固定点C是重合的固定点为例进行说明。即,本实施方式中,所述第一固定点A、第二固定点B及第三固定点C可以分别与所述第七固定点、第八固定点及第九固定点相同;但是在变更实施方式中,所述第一固定点A、第二固定点B及第三固定点C可以与所述第七固定点、第八固定点及第九固定点的位置至少部分相同或者各不相同。可以理解,在一种实施方式中,所述第七固定点、第八固定点及第九固定点的位置也可以与所述第四、第五、第六固定点的位置相同、部分相同或者各不相同,均不影响利用所述第七固定点、第八固定点及第九固定点的坐标、所述第三拍摄位置分别到所述第七固定点、第八固定点、第九固定点及所述台球的距离来计算所述第三拍摄位置O’’的坐标。Specifically, the shooting of the third photo may be performed at the third shooting position O′′ using a photographing device (such as a camera), wherein the photographing device may be used with a photographing device that captures the first and second photographs For the same shooting device, it can also be a different camera (such as cameras with three different mobile phones). The seventh fixed point, the eighth fixed point, and the ninth fixed point may also be the identification points of the billiard tabletop (such as three identification points on the snooker tabletop), the billiard table, the billiard tabletop, or The specific identification point on the additional location (such as a specific location outside the billiard table), in the embodiment, the seventh fixed point, the eighth fixed point, and the ninth fixed point are fixed on the billiard table top 100 A fixed point that coincides with the first fixed point A, the second fixed point B, and the third fixed point C will be described as an example. That is, in the present embodiment, the first fixed point A, the second fixed point B, and the third fixed point C may be the same as the seventh fixed point, the eighth fixed point, and the ninth fixed point, respectively; In an embodiment, the first fixed point A, the second fixed point B, and the third fixed point C may be at least partially identical or different from positions of the seventh fixed point, the eighth fixed point, and the ninth fixed point. . It can be understood that, in an embodiment, the positions of the seventh fixed point, the eighth fixed point, and the ninth fixed point may also be the same as the positions of the fourth, fifth, and sixth fixed points, or partially the same or Different from each other, the coordinates of the seventh fixed point, the eighth fixed point, and the ninth fixed point are not affected, and the third shooting position is respectively to the seventh fixed point, the eighth fixed point, and the ninth fixed point The coordinates of the third shooting position O'' are calculated by the distance of the point and the billiard.
所述第三拍摄位置O’’为可以拍摄到所述台球桌面100上的第一固定点A、第二固定点B、第三固定点C及位于所述台球桌面100上的所述台球101的位置,因此,所述第二张照片上包括台球桌面100、位于台球桌面100上的所述台球101、及位于台球桌面100上的第一固定点A(即第七固定点)、第二固定点B(即第八固定点)及第三固定点C(即第九固定点)。其中,所述第三张照片与所述第一张、第二张照片中的所述台球101在所述台球桌面101的位置没有变化,即所述第一张照片、所述第二张照片及第三张照片均是针对同一目标景物(所述台球桌面上的各台球的位置不变)在不同位置拍摄的三张照片。进一步地,设所述第三拍摄位置O’’的坐标可以设为(x’’,y’’,z’’)。可以理解,所述步骤S91中计算第三拍摄位置O’’的坐标的原理与所述步骤S3中计算第一拍摄位置O的坐标的原理基本相同。The third photographing position O′′ is a first fixed point A, a second fixed point B, a third fixed point C, and the billiard 101 located on the billiard table top 100 that can be photographed on the billiard table top 100 . The second photo includes a billiard tabletop 100, the billiards 101 on the billiard tabletop 100, and a first fixed point A (ie, a seventh fixed point) on the billiard tabletop 100, and a second Fixed point B (ie the eighth fixed point) and third fixed point C (ie the ninth fixed point). Wherein the third photo and the billiard 101 in the first and second photos do not change in the position of the billiard tabletop 101, that is, the first photo, the second photo And the third photo is three photos taken at different locations for the same target scene (the position of each billiard on the billiard table is unchanged). Further, it is assumed that the coordinates of the third photographing position O'' can be set to (x'', y'', z''). It can be understood that the principle of calculating the coordinates of the third shooting position O'' in the step S91 is substantially the same as the principle of calculating the coordinates of the first shooting position O in the step S3.
步骤S92,获取所述第三拍摄位置分别到所述第七固定点、第八固定点、第九固定点及所述台球球心的距离,其中,所述第三拍摄位置到所述台球的距离设为lo3,所述第三拍摄位置到所述台球球心的距离为lo3+r。Step S92, acquiring a distance from the third shooting position to the seventh fixed point, the eighth fixed point, the ninth fixed point, and the billiard ball center, wherein the third shooting position is to the billiards The distance is set to l o3 , and the distance from the third shooting position to the billiard ball center is l o3 + r.
具体地,所述步骤S92中,可以通过上述步骤S2及S6中涉及的距离感测器侦测所述第三拍摄位置O’’分别到所述第一固定点A(即第七固定点)、第二固定点B(即第八固定点)、第三固定点C(即第九固定点)及所述台球101的距离。可以理解,所述第三拍摄位置O’’到所述第一固定点A的距离为所述第三拍摄位置O’’(如所述拍摄装置所在的第三拍摄位置的取景表面的中心)至所述第一固定点A的中心的距离,设为l7;所述第三拍摄位置O’’到所述第二固定点B的距离为所述第三拍摄位置O’’至所述第二固定点B的中心的距离,设为l8;所述第三拍摄位置O’’到所述第三固定点C的距离为所述第三拍摄位置O’’至所述第三固定点C的中心的距离,设为l9;所述第三拍摄位置O’’到所述台球101的距离为:所述台球101的表面最接近所述第三拍摄位置O’’的点的距离,设为lo3。可以理解,在一种实施方式中,由于所述台球球心可能被遮挡,从而通过距离传感器无法直接侦测到所述台球101的表面最接近所述第三拍摄位置O’’的点的距离lo3,此时,可以通过距离传感器侦测到所述台球101的表面最远离所述第三拍摄位置O’’的点的距离lo3’,并依据所述lo3’及所述r通过勾股定理计算获得所述第一拍摄位置到所述台球球心的距离为lo3+r。具体地,所述lo3、lo3’符合如下公式:Specifically, in the step S92, the third shooting position O′′ can be detected by the distance sensor involved in the above steps S2 and S6 to the first fixed point A (ie, the seventh fixed point). The second fixed point B (ie, the eighth fixed point), the third fixed point C (ie, the ninth fixed point), and the distance of the billiard 101. It can be understood that the distance from the third photographing position O′′ to the first fixed point A is the third photographing position O′′ (such as the center of the framing surface of the third photographing position where the photographing device is located) a distance to the center of the first fixed point A is set to 17 ; a distance from the third photographing position O'' to the second fixed point B is the third photographing position O'' to the The distance from the center of the second fixed point B is set to 18 ; the distance from the third shooting position O'' to the third fixed point C is the third shooting position O'' to the third fixed from the center point C is set to l 9; the third imaging position O '' distance to the pool 101 as follows: the surface closest to the third pool 101 of the imaging position O 'points' of the Distance is set to l o3 . It can be understood that, in an embodiment, since the billiard ball core may be blocked, the distance from the point where the surface of the billiard 101 is closest to the third photographing position O′′ cannot be directly detected by the distance sensor. l o3 , at this time, the distance l o3 ′ of the surface of the billiard 101 that is farthest from the third shooting position O′′ can be detected by the distance sensor, and passed according to the l o 3 ′ and the r The Pythagorean theorem calculates that the distance from the first photographing position to the billiard ball center is l o3 + r. Specifically, the l o3 and l o3 ' are in accordance with the following formula:
lo3+r=
Figure WO40670-appb-I000003
l o3 +r=
Figure WO40670-appb-I000003
.
步骤S93,依据所述第七固定点、第八固定点及第九固定点的坐标与所述第七固定点、第八固定点及第九固定点分别到所述第三拍摄位置的距离计算所述第三拍摄位置的坐标。Step S93, calculating, according to the coordinates of the seventh fixed point, the eighth fixed point, and the ninth fixed point, and the distance between the seventh fixed point, the eighth fixed point, and the ninth fixed point respectively to the third shooting position The coordinates of the third shooting position.
具体地,所述步骤S93中,依据所述参考坐标系中任意两个的距离计算公式可知,所述第三拍摄位置O’’至所述第一固定点A(即第七固定点)的距离满足:(x’’-x1)2+(y’’-y1)2+(z’’)2=l7 2;所述第三拍摄位置O’’至所述第二固定点B(即第八固定点)的距离满足:(x’’-x2)2+(y’’-y2)2+(z’’)2=l8 2;所述第三拍摄位置O’’至所述第三固定点C(即第九固定点)的距离满足:(x’’-x3)2+(y’’-y3)2+(z’’)2=l9 2。由于以上公式中,所述x1、x2、x3、y1、y2、y3、l7、l8、l9均已知,因此可以计算获得所述第三拍摄位置O’’的坐标(x’’,y’’,z’’)。可以理解,原则上,通过上述公式可以获得两个坐标值,选择z轴坐标值z’’为正的一坐标即可。Specifically, in the step S93, according to the distance calculation formula of any two of the reference coordinate systems, the third shooting position O′′ to the first fixed point A (ie, the seventh fixed point) The distance satisfies: (x''-x 1 ) 2 + (y''-y 1 ) 2 + (z'') 2 = l 7 2 ; the third shooting position O'' to the second fixed point The distance of B (ie, the eighth fixed point) satisfies: (x''-x 2 ) 2 + (y''-y 2 ) 2 + (z'') 2 = l 8 2 ; the third shooting position O ''The distance to the third fixed point C (ie, the ninth fixed point) satisfies: (x''-x 3 ) 2 +(y''-y 3 ) 2 +(z'') 2 =l 9 2 . Since x 1 , x 2 , x 3 , y 1 , y 2 , y 3 , l 7 , l 8 , and l 9 are all known in the above formula, the third photographing position O′′ can be calculated. The coordinates (x'', y'', z''). It can be understood that, in principle, two coordinate values can be obtained by the above formula, and the z-axis coordinate value z'' can be selected as a positive coordinate.
步骤S94,依据所述第三拍摄位置的坐标计算所述第三拍摄位置到所述台球上的距离为lo3+r的第三区间坐标信息,所述第三区间坐标信息包括多个到所述第三拍摄位置的距离为lo3+r的坐标信息。可以理解,所述步骤S94中计算第三区间坐标信息的原理与所述步骤S4中计算第一区间坐标信息的原理也基本相同。Step S94, calculating third section coordinate information of the distance from the third shooting position to the billiards as l o3 +r according to the coordinates of the third shooting position, where the third section coordinate information includes multiple places The distance of the third shooting position is the coordinate information of l o3 +r. It can be understood that the principle of calculating the third section coordinate information in the step S94 is basically the same as the principle of calculating the first section coordinate information in the step S4.
进一步地,所述步骤S94中,依据步骤S93中获得所述第三拍摄位置O’’的坐标(x’’,y’’,z’’)计算所述第三拍摄位置O’’到所述台球101上的距离为lo3+r的第三区间坐标信息,可以理解,所述第三区间坐标信息的多个坐标依次连线形成的第三区域104为圆形区域,可以理解,由于所述台球101的球心101a至所述第三拍摄位置O’’的距离也为lo3+r,因此所述第三区间坐标信息包括所述台球101的球心101a的坐标。Further, in the step S94, the third shooting position O'' is calculated according to the coordinates (x'', y'', z'') of the third shooting position O'' obtained in step S93. The distance information on the billiard 101 is the third interval coordinate information of l o3 + r. It can be understood that the third region 104 formed by sequentially connecting the plurality of coordinates of the third interval coordinate information is a circular region. The distance from the center 101a of the billiard 101 to the third photographing position O'' is also l o3 +r, so the third section coordinate information includes the coordinates of the center 101a of the billiard 101.
步骤S95,依据所述第三区域坐标信息及所述两个重叠坐标来选择所述两个重叠坐标中的一个重叠坐标作为所述台球球心的坐标,其中所述台球球心的坐标还位于所述第三区域坐标信息中。Step S95, selecting one of the two overlapping coordinates as the coordinates of the billiard ball center according to the third area coordinate information and the two overlapping coordinates, wherein the coordinates of the billiard ball center are still located. The third area coordinate information.
具体地,第二种实施例中,所述步骤S95中,依据所述步骤S4获得所述第一区间坐标信息、所述步骤S8获得的第二区间坐标信息及依据步骤S94获得第三区间坐标信息可知,所述第一区间坐标信息、所述第二区间坐标信息及第三区间坐标信息仅包括一个重叠的坐标,所述台球球心101a的坐标即为所述一个重叠的坐标。Specifically, in the second embodiment, in step S95, the first interval coordinate information, the second interval coordinate information obtained in step S8, and the third interval coordinate are obtained according to step S94. It can be seen that the first section coordinate information, the second section coordinate information and the third section coordinate information only include one overlapping coordinate, and the coordinates of the billiard ball core 101a are the one overlapping coordinates.
请参阅图6,图6为图1所示的台球位置的确定方法的第三种实施例的获取所述台球球心的坐标的步骤的原理示意图。与图5所示的第二实施例的步骤S91-S95不同的是,所述第三种实施例中,所述台球桌面还被划分成至少两个固定区域,所述至少两个固定区域相对所述参考坐标系的坐标固定不变,所述步骤S9可以具体包括以下步骤:Please refer to FIG. 6. FIG. 6 is a schematic diagram showing the principle of acquiring the coordinates of the billiard ball center in the third embodiment of the method for determining the billiard position shown in FIG. Different from the steps S91-S95 of the second embodiment shown in FIG. 5, in the third embodiment, the billiard table top is further divided into at least two fixed areas, and the at least two fixed areas are opposite. The coordinates of the reference coordinate system are fixed, and the step S9 may specifically include the following steps:
依据所述第一照片及/所述第二照片判断所述台球位于哪个固定区域,并依据所述固定区域、所述第一区域坐标信息及所述第二区域坐标信息选择所述台球球心的坐标,其中所述台球球心的坐标还位于所述固定区域中。Determining, according to the first photo and/or the second photo, which fixed area the billiard is located, and selecting the billiard ball center according to the fixed area, the first area coordinate information, and the second area coordinate information The coordinates of the billiard ball center are also located in the fixed area.
具体地,所述第三种实施例中,所述依据所述第一照片及/所述第二照片可以获知所述台球101位于所述固定区域100a中,因此依据所述第一照片及/或所述第二照片显示的信息,将所述两个重叠坐标中坐标位于所述固定区域100a的坐标作为所述台球球心101a的坐标即可。Specifically, in the third embodiment, according to the first photo and/or the second photo, the billiard 101 is located in the fixed area 100a, so according to the first photo and/or Or the information displayed by the second photo may be a coordinate of the coordinates of the two overlapping coordinates located in the fixed area 100a as the coordinates of the billiard ball core 101a.
请参阅图7,图7为图1所示的台球位置的确定方法的第四种实施例的获取所述台球球心的坐标的步骤的原理示意图。与图5所示的第二实施例的步骤S91-S95不同的是,所述第四种实施例中,所述台球桌面还包括一特定点,所述特定点相对于所述参考坐标系的坐标已知,所述选择所述两个重叠坐标中的一个重叠坐标作为所述台球球心的坐标的步骤S9可以包括以下步骤S991-S996。Please refer to FIG. 7. FIG. 7 is a schematic diagram showing the principle of acquiring the coordinates of the billiard ball center in the fourth embodiment of the method for determining the billiard position shown in FIG. 1. Different from the steps S91-S95 of the second embodiment shown in FIG. 5, in the fourth embodiment, the billiard table top further includes a specific point, and the specific point is relative to the reference coordinate system. The coordinates are known, and the step S9 of selecting one of the two overlapping coordinates as the coordinates of the billiard ball center may include the following steps S991-S996.
步骤S991,计算所述两个重叠坐标在所述台球桌面上的两个投影点的坐标,所述投影点包括第一投影点与第二投影点。如图7所示,所述特定点为T,所述两个投影点分别为S1与S2。Step S991, calculating coordinates of two projection points of the two overlapping coordinates on the billiard table, the projection points including a first projection point and a second projection point. As shown in FIG. 7, the specific point is T, and the two projection points are S1 and S2, respectively.
步骤S992,获取所述第一投影点与所述特定点定义的一第一直线上的一第一特征点的坐标。所述第一特征点位于所述第一直线与所述台球桌上的一已知直线(如台球桌面库边线、桌面上的开球线或桌面上两特定点的连线等)的相交处。可以理解,所述已知直线相对于所述参考坐标系的坐标已知,如图7所示,所述第一直线与所述库边线相交,所述第一直线与所述库边线分别为105与107,所述第一特征点为S3。Step S992, acquiring coordinates of a first feature point on a first line defined by the first projection point and the specific point. The first feature point is located at a intersection of the first straight line with a known straight line on the billiard table (such as a billiard desktop library edge line, a kick-off line on a desktop, or a connection between two specific points on the desktop). At the office. It can be understood that the known straight line is known with respect to the coordinates of the reference coordinate system, as shown in FIG. 7 , the first straight line intersects the library edge line, the first straight line and the library edge line They are 105 and 107, respectively, and the first feature point is S3.
步骤S993,获取所述第二投影点与所述特定点定义的一第二直线上的一第二特征点的坐标。所述第二特征点位于所述第二直线与所述台球桌上的所述已知直线的相交处。如图7所示,所述第二直线与所述库边线相交,所述第二直线为106,所述第二特征点为S4。Step S993: Acquire coordinates of a second feature point on a second line defined by the second projection point and the specific point. The second feature point is located at an intersection of the second line and the known line on the billiard table. As shown in FIG. 7, the second line intersects the bank edge, the second line is 106, and the second feature point is S4.
步骤S994,依据所述第一特征点S3的坐标计算所述第一特征点到所述第一或所述第二拍摄位置的距离,定义为第一距离。Step S994, calculating a distance of the first feature point to the first or the second shooting position according to the coordinates of the first feature point S3, which is defined as a first distance.
步骤S995,依据所述第二特征点S4的坐标计算所述第二特征点到所述第一或所述第二拍摄位置的距离,定义为第二距离。Step S995, calculating a distance of the second feature point to the first or the second shooting position according to the coordinates of the second feature point S4, which is defined as a second distance.
步骤S996,获取所述第一或第二照片上的所述特定点与所述台球球心在所述台球桌面的投影点定义的第三直线、以及所述第三直线与所述第一或第二照片上的所述已知直线的相交处的像素点,将所述像素点到所述第一或第二拍摄位置距离分别与所述第一距离和所述第二距离对比,若所述像素点到所述第一或第二拍摄位置距离和所述第一距离相等,则所述第一投影点对应的重叠坐标即为所述台球球心的坐标;若所述像素点到第一或第二拍摄位置距离和所述第二距离相等,则所述第二投影点对应的重叠坐标即为所述台球球心的坐标。其中,所述像素点到所述第一或第二拍摄位置距离可以通过距离感测器获得。Step S996, acquiring a third line defined by the specific point on the first or second photo and a projection point of the billiard center on the billiard table, and the third line and the first line a pixel point at the intersection of the known straight lines on the second photo, comparing the distance from the pixel point to the first or second photographing position to the first distance and the second distance, respectively The distance between the pixel point and the first or second photographing position is equal to the first distance, and the overlap coordinate corresponding to the first projection point is the coordinate of the billiard ball center; If the distance between the first and second shooting positions is equal to the second distance, the overlapping coordinates corresponding to the second projection point is the coordinates of the billiard ball center. Wherein, the distance from the pixel point to the first or second shooting position can be obtained by a distance sensor.
可以理解,所述步骤S994、S995及S996中,若步骤S994中选择计算所述第一特征点到所述第一拍摄位置的距离,则步骤S995中也选择计算所述第二特征点到所述第一拍摄位置的距离,步骤S996中则获取所述第一照片上的所述特定点与所述台球球心在所述台球桌面的投影点定义的第三直线,从而将所述像素点到所述第一拍摄位置距离分别与所述第一距离和所述第二距离对比,若所述像素点到所述第一拍摄位置距离和所述第一距离相等,则所述第一投影点对应的重叠坐标即为所述台球球心的坐标;若所述像素点到第一拍摄位置距离和所述第二距离相等,则所述第二投影点对应的重叠坐标即为所述台球球心的坐标。It can be understood that, in the steps S994, S995, and S996, if the distance of the first feature point to the first shooting position is selected in step S994, the second feature point is also selected to be calculated in step S995. Describe the distance of the first shooting position, and in step S996, obtain a third line defined by the specific point on the first photo and the projection point of the billiard ball in the billiard tabletop, thereby the pixel point Comparing the first photographing position distance with the first distance and the second distance, respectively, if the pixel point to the first photographing position distance and the first distance are equal, the first projection The overlap coordinate corresponding to the point is the coordinate of the billiard ball center; if the pixel point to the first photographing position distance and the second distance are equal, the overlapping coordinates corresponding to the second projection point is the billiard The coordinates of the center of the ball.
进一步地,所述步骤S994、S995及S996中,若步骤S994中选择计算所述第一特征点到所述第二拍摄位置的距离,则步骤S995中也选择计算所述第二特征点到所述第二拍摄位置的距离,步骤S996中则获取所述第二照片上的所述特定点与所述台球球心在所述台球桌面的投影点定义的第三直线,从而将所述像素点到所述第二拍摄位置距离分别与所述第一距离和所述第二距离对比,若所述像素点到所述第二拍摄位置距离和所述第一距离相等,则所述第一投影点对应的重叠坐标即为所述台球球心的坐标;若所述像素点到第二拍摄位置距离和所述第二距离相等,则所述第二投影点对应的重叠坐标即为所述台球球心的坐标。Further, in the steps S994, S995 and S996, if the distance from the first feature point to the second photographing position is selected in step S994, the second feature point is also selected to be calculated in step S995. Describe the distance of the second shooting position, and in step S996, obtain a third line defined by the specific point on the second photo and the projection point of the billiard ball center on the billiard tabletop, thereby the pixel point The second shooting position distance is respectively compared with the first distance and the second distance, and if the pixel point to the second shooting position distance is equal to the first distance, the first projection The overlap coordinate corresponding to the point is the coordinate of the billiard ball center; if the pixel point to the second photographing position distance and the second distance are equal, the overlapping coordinates corresponding to the second projection point is the billiard The coordinates of the center of the ball.
请参考图8,图8为使用图1所示的台球位置的确定方法的第一实施方式的电子设备的结构示意图。所述电子设备10可为智能智能手机、平板电脑、智能穿戴式设备等。智能穿戴设备可为虚拟现实头盔设备、增强现实头盔设备(如增强现实眼镜)或者智能手表等。在本实施方式中,所述电子设备10为智能手机。所述电子设备10包括台球位置确定装置20。所述电子设备10还包括非易失性存储介质30、处理器40、摄像头50、及距离感测器60。Please refer to FIG. 8. FIG. 8 is a schematic structural diagram of an electronic device according to a first embodiment of the method for determining a billiard position shown in FIG. 1. The electronic device 10 can be a smart smart phone, a tablet computer, 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. In the embodiment, the electronic device 10 is a smart phone. The electronic device 10 includes a billiard position determining device 20. The electronic device 10 further includes a non-volatile storage medium 30, a processor 40, a camera 50, and a distance sensor 60.
所述台球位置确定装置20可以为装载于所述电子设备10上的计算机程序段,可以执行图1所示的台球位置确定方法。具体地,所述处理器40可以包括一个或者多个微处理器、数字处理器,用于执行至少一个指令以实现台球位置确定方法。The billiard position determining device 20 may be a computer program segment loaded on the electronic device 10, and the billiard position determining method shown in FIG. 1 may be executed. In particular, the processor 40 may include one or more microprocessors, digital processors for executing at least one instruction to implement a billiard position determination method.
所述摄像头50用于摄取照片(如第一张照片、第二张照片及第三张照片)。显然,所述不仅局限于本实施例的包括在电子设备10中,还可为外置拍摄装置。所述可以与电子设备10之间进行通信,从而所述可将拍摄的照片传输至电子设备10上以供电子设备10进行分析。The camera 50 is used to take photos (such as a first photo, a second photo, and a third photo). Obviously, the invention is not limited to the present embodiment and is included in the electronic device 10, and may be an external camera. The communication can be with the electronic device 10 such that the captured photo can be transmitted to the electronic device 10 for analysis by the electronic device 10.
所述距离感测器60可以为设置于电子设备上的距离传感器红外距离传感器、激光距离传感器等,其可以邻近所述拍摄照片的摄像头50设置,用于向所述照片的拍摄范围内发出红外、激光等感测信号,并接收经目标景物反射的所述感测信号以分析目标景物的深度信息(即与所述第一拍摄位置O的距离信息),从而侦测所述摄像头50到所述第一固定点、第二固定点、第三固定点及所述台球的距离。The distance sensor 60 may be a distance sensor infrared distance sensor, a laser distance sensor, or the like disposed on the electronic device, and may be disposed adjacent to the camera 50 for taking a photo for emitting infrared into the shooting range of the photo. And sensing a signal such as a laser, and receiving the sensing signal reflected by the target scene to analyze depth information of the target scene (ie, distance information from the first shooting position O), thereby detecting the camera 50 to the location The first fixed point, the second fixed point, the third fixed point, and the distance of the billiard.
具体的,在本实施例中,台球位置确定装置20包括照片获取模块210、距离获取模块220、第一计算模块230、第二计算模块240及球心坐标获取模块250。本发明所称的模块是指一种能够被处理器所执行并且能够完成固定功能的一系列计算机程序段,其可以存储在非易失性存储介质中。Specifically, in the embodiment, the billiard position determining apparatus 20 includes a photo acquiring module 210, a distance acquiring module 220, a first calculating module 230, a second calculating module 240, and a spherical center coordinate acquiring module 250. 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 can be stored in a non-volatile storage medium.
其中,所述照片获取模块210可以执行所述步骤S1、S5及步骤S91等,所述距离获取模块可以执行所述步骤S2、S6等,所述第一计算模块230可以执行所述步骤S3、S7等,所述第二计算模块240可以执行所述步骤S4、S8等。所述球心坐标获取模块250可以执行所述步骤S9。由于上述步骤S1-S9已在前面做了详细说明,此处就不再赘述各模块的具体执行步骤。The photo obtaining module 210 may perform the steps S1, S5, and S91, etc., the distance acquiring module may perform the steps S2, S6, etc., the first calculating module 230 may perform the step S3, S7, etc., the second calculation module 240 can perform the steps S4, S8, and the like. The spherical center coordinate acquisition module 250 can perform the step S9. Since the above steps S1-S9 have been described in detail above, the specific execution steps of each module will not be described herein.
请参考图9,图9为使用图1所示的台球位置的确定方法的第二实施方式的电子设备的结构示意图。所述第二实施的电子设备10’与第一实施方式的电子设备10基本相同,二者的差别主要在于,所述电子设备10’包括一3D拍摄装置70,所述3D拍摄装置70用于拍摄所述第一张照片、所述第二张照片、所述第三张照片并侦测所述3D拍摄装置70到所述第一固定点、第二固定点、第三固定点及所述台球的距离,如所述3D拍摄装置70可以具有距离感测器,用于侦测所述3D拍摄装置70到所述第一固定点A、第二固定点B、第三固定点C及所述台球101的距离。Please refer to FIG. 9. FIG. 9 is a schematic structural diagram of an electronic device according to a second embodiment of the method for determining a billiard position shown in FIG. 1. The electronic device 10 ′ of the second implementation is substantially the same as the electronic device 10 of the first embodiment, the difference between the two is mainly that the electronic device 10 ′ includes a 3D imaging device 70 , and the 3D imaging device 70 is used for Taking the first photo, the second photo, the third photo, and detecting the 3D imaging device 70 to the first fixed point, the second fixed point, the third fixed point, and the For the distance of the billiards, the 3D camera 70 may have a distance sensor for detecting the 3D camera 70 to the first fixed point A, the second fixed point B, the third fixed point C, and the The distance of the billiards 101.
相较于现有技术,本发明台球位置确定方法S1-S9、台球位置确定装置20及电子设备10、10’可以通过分析照片来确定台球(如台球101)的位置,从而可定位台球的位置,方便计算击球路径及给出击打建议,并且可通过所述电子设备10、10’将击打建议提供给使用者,从而帮助台球运动者提升击球水平。Compared with the prior art, the billiard position determining method S1-S9, the billiard position determining device 20 and the electronic device 10, 10' of the present invention can determine the position of the billiards (such as billiards 101) by analyzing the photos, thereby positioning the billiards. It is convenient to calculate the hitting path and give a hit suggestion, and the hitting suggestion can be provided to the user through the electronic device 10, 10', thereby helping the billiard player to raise the hitting level.
以上实施方式仅用以说明本发明的技术方案而非限制,尽管参照以上较佳实施方式对本发明进行了详细说明,本领域的普通技术人员应当理解,可以对本发明的技术方案进行修改或等同替换都不应脱离本发明技术方案的精神和范围。本领域技术人员还可在本发明精神内做其它变化等用在本发明的设计,只要其不偏离本发明的技术效果均可。这些依据本发明精神所做的变化,都应包含在本发明所要求保护的范围之内。The above embodiments are only used to illustrate the technical solutions of the present invention, and are not intended to be limiting, and the present invention will be described in detail with reference to the preferred embodiments of the present invention. Neither should the spirit and scope of the technical solutions of the present invention be deviated. Those skilled in the art can also make other variations and the like in the spirit of the present invention for use in the design of the present invention as long as it does not deviate from the technical effects of the present invention. All changes made in accordance with the spirit of the invention are intended to be included within the scope of the invention.

Claims (14)

  1. 一种台球位置确定方法,其特征在于,所述方法包括:A method for determining a billiard position, characterized in that the method comprises:
    获取在第一拍摄位置拍摄的第一张照片,所述第一张照片上包括台球桌面、位于台球桌面上的一个台球、第一固定点、第二固定点及第三固定点,其中所述第一固定点、第二固定点及第三固定点相较于一参考坐标系的坐标已知;Obtaining a first photo taken at a first shooting position, the first photo comprising a billiard tabletop, a billiard on the billiard table top, a first fixed point, a second fixed point, and a third fixed point, wherein the The first fixed point, the second fixed point, and the third fixed point are known relative to a coordinate of a reference coordinate system;
    获取所述第一拍摄位置分别到所述第一固定点、第二固定点、第三固定点及所述台球球心的距离,其中,所述第一拍摄位置到所述台球的距离设为lo1,所述台球的半径设为r,所述第一拍摄位置到所述台球球心的距离为lo1+r;Obtaining a distance from the first photographing position to the first fixed point, the second fixed point, the third fixed point, and the billiard ball center, wherein a distance from the first photographing position to the billiard ball is set to l o1 , the radius of the billiard is set to r, the distance from the first shooting position to the billiard ball center is l o1 + r;
    依据所述第一固定点、第二固定点及第三固定点的坐标与所述第一固定点、第二固定点及第三固定点分别到所述第一拍摄位置的距离计算所述第一拍摄位置的坐标;Calculating the first point according to the coordinates of the first fixed point, the second fixed point, and the third fixed point, and the distance from the first fixed point, the second fixed point, and the third fixed point to the first shooting position The coordinates of a shooting position;
    依据所述第一拍摄位置的坐标计算所述第一拍摄位置到所述台球上的距离为lo1+r的第一区间坐标信息,所述第一区间坐标信息包括多个到所述第一拍摄位置的距离为lo1+r的坐标;Coordinate calculation based on the first imaging position to the first position on the photographing distance is billiards l o1 + r coordinate information of a first section, said first section comprising a plurality of coordinate information to the first The distance of the shooting position is the coordinates of l o1 +r;
    获取在不同于所述第一拍摄位置的第二拍摄位置拍摄的第二张照片,所述第二张照片上包括所述台球桌面、所述台球、及位于台球桌上的第四固定点、第五固定点及第六固定点,其中,所述第四固定点、第五固定点及第六固定点相较于所述参考坐标系的坐标已知,所述第二张照片与所述第一张照片中的所述台球在所述台球桌面的位置没有变化;Acquiring a second photo taken at a second shooting position different from the first shooting position, the second photo including the billiard tabletop, the billiards, and a fourth fixed point on the billiard table, a fifth fixed point and a sixth fixed point, wherein the fourth fixed point, the fifth fixed point, and the sixth fixed point are known relative to coordinates of the reference coordinate system, the second photo and the The billiard in the first photo does not change in the position of the billiard tabletop;
    获取所述第二拍摄位置分别到所述第四固定点、第五固定点、第六固定点及所述台球球心的距离,其中,所述第二拍摄位置到所述台球的距离设为lo2,所述第二拍摄位置到所述台球球心的距离为lo2+r;Obtaining, by the second shooting position, a distance from the fourth fixed point, the fifth fixed point, the sixth fixed point, and the billiard ball center, wherein the distance from the second shooting position to the billiard ball is set to l o2 , the distance from the second shooting position to the billiard ball center is l o2 + r;
    依据所述第四固定点、第五固定点及第六固定点的坐标与所述第四固定点、第五固定点及第六固定点分别到所述第二拍摄位置的距离计算所述第二拍摄位置的坐标;Calculating the number according to the coordinates of the fourth fixed point, the fifth fixed point, and the sixth fixed point, and the distance from the fourth fixed point, the fifth fixed point, and the sixth fixed point to the second shooting position respectively Second, the coordinates of the shooting position;
    依据所述第二拍摄位置的坐标计算所述第二拍摄位置到所述台球上的距离为lo2+r的第二区间坐标信息,所述第二区间坐标信息包括多个到所述第二拍摄位置的距离为lo2+r的坐标信息;及Calculating, according to the coordinates of the second photographing position, second interval coordinate information of the distance from the second photographing position to the billiards as l o2 +r, the second interval coordinate information including a plurality of to the second The distance of the shooting position is the coordinate information of l o2 +r; and
    获取所述台球球心的坐标,其中所述台球球心的坐标位于所述第一区域坐标信息中,也位于所述第二区域坐标信息中。Obtaining coordinates of the billiard ball center, wherein coordinates of the billiard ball center are located in the first region coordinate information, and also in the second region coordinate information.
  2. 如权利要求1所述的台球位置确定方法,其特征在于:获取所述第一拍摄位置到所述台球球心的距离的步骤中,The billiard position determining method according to claim 1, wherein in the step of acquiring the distance from the first photographing position to the billiard ball center,
    当所述台球表面最接近所述第一拍摄位置的点到所述第一拍摄位置的距离未被侦测到,并且所述台球表面最远离所述第一拍摄位置的点到所述第一拍摄位置的距离lo1’被侦测到时,依据所述lo1’及所述r计算获得所述第一拍摄位置到所述台球球心的距离为lo1+r。a distance from a point at which the billiard surface is closest to the first photographing position to the first photographing position is not detected, and the billiard surface is farthest from the point of the first photographing position to the first When the distance l o1 ' of the shooting position is detected, the distance from the first shooting position to the billiard ball center is calculated as l o1 +r according to the l o1 ' and the r.
  3. 如权利要求1所述的台球位置确定方法,其特征在于:所述获取所述台球球心的坐标的步骤包括:The method for determining a billiard position according to claim 1, wherein the step of acquiring coordinates of the billiard ball center comprises:
    获取位于所述第一区域坐标信息中且也位于所述第二区域坐标信息中的重叠坐标;Obtaining overlapping coordinates located in the first region coordinate information and also in the second region coordinate information;
    若所述重叠坐标的数量为一个,则将所述一个重叠坐标作为所述台球球心的坐标。If the number of the overlapping coordinates is one, the one overlapping coordinate is used as the coordinates of the billiard ball center.
  4. 如权利要求1所述的台球位置确定方法,其特征在于:所述获取所述台球球心的坐标的步骤包括:The method for determining a billiard position according to claim 1, wherein the step of acquiring coordinates of the billiard ball center comprises:
    获取位于所述第一区域坐标信息中且也位于所述第二区域坐标信息中的重叠坐标;Obtaining overlapping coordinates located in the first region coordinate information and also in the second region coordinate information;
    若所述重叠坐标的数量为两个,选择所述两个重叠坐标中的一个重叠坐标作为所述台球球心的坐标。If the number of the overlapping coordinates is two, one of the two overlapping coordinates is selected as the coordinates of the billiard ball center.
  5. 如权利要求3或4所述的台球位置确定方法,其特征在于:所述第一区域坐标信息包括多个坐标,所述第一区域坐标信息的多个坐标依次连线形成的第一区域为圆弧形区域或圆形区域;所述第二区域坐标信息包括多个坐标,所述第二区域坐标信息的多个坐标依次连线形成的第二区域为圆弧形区域或圆形区域;The billiard position determining method according to claim 3 or 4, wherein the first area coordinate information comprises a plurality of coordinates, and the first area formed by sequentially connecting the plurality of coordinates of the first area coordinate information is a circular arc-shaped region or a circular region; the second region coordinate information includes a plurality of coordinates, and the second region formed by sequentially connecting the plurality of coordinates of the second region coordinate information is a circular arc region or a circular region;
  6. 如权利要求4所述的台球位置确定方法,其特征在于:所述方法还包括:The method for determining a billiard position according to claim 4, wherein the method further comprises:
    获取在不同于所述第一拍摄位置与第二拍摄位置的第三拍摄位置拍摄的第三张照片,所述第三张照片上包括所述台球桌面、所述台球、及位于台球桌上的第七固定点、第八固定点及第九固定点,其中,所述第七固定点、第八固定点及第九固定点相较于所述参考坐标系的坐标已知,所述第三张照片与所述第一张照片中的所述台球在所述台球桌面的位置没有变化;Acquiring a third photo taken at a third shooting position different from the first shooting position and the second shooting position, the third photo including the billiard tabletop, the billiard, and a billiard table a seventh fixed point, an eighth fixed point, and a ninth fixed point, wherein the seventh fixed point, the eighth fixed point, and the ninth fixed point are known compared to coordinates of the reference coordinate system, and the third The photo and the billiard in the first photo have no change in the position of the billiard tabletop;
    获取在所述第三拍摄位置侦测的所述第三拍摄位置分别到所述第七固定点、第八固定点及第九固定点及所述台球的距离,其中,所述第三拍摄位置到所述台球的距离设为lo3Obtaining a distance from the third photographing position detected at the third photographing position to the seventh fixed point, the eighth fixed point, and the ninth fixed point, respectively, and the billiard, wherein the third photographing position The distance to the billiards is set to l o3 ;
    依据所述第七固定点、第八固定点及第九固定点的坐标与所述第七固定点、第八固定点及第九固定点分别到所述第三拍摄位置的距离计算所述第三拍摄位置的坐标;Calculating the number according to the distance between the coordinates of the seventh fixed point, the eighth fixed point, and the ninth fixed point, and the seventh fixed point, the eighth fixed point, and the ninth fixed point respectively to the third shooting position The coordinates of the three shooting positions;
    依据所述第三拍摄位置的坐标计算所述第三拍摄位置到所述台球上的距离为lo3+r的第三区间坐标信息,所述第三区间坐标信息包括多个到所述第三拍摄位置的距离为lo3+r的坐标信息;及Coordinate calculation according to the third imaging position to the third position on the photographing distance is billiards l o3 + r coordinate information of the third section, said third section comprising a plurality of coordinate information to the third The distance of the shooting position is the coordinate information of l o3 +r; and
    依据所述第三区域坐标信息及所述两个重叠坐标来选择所述两个重叠坐标中的一个重叠坐标作为所述台球球心的坐标,其中所述台球球心的坐标还位于所述第三区域坐标信息中。And selecting, according to the third area coordinate information and the two overlapping coordinates, one of the two overlapping coordinates as the coordinates of the billiard ball center, wherein the coordinates of the billiard ball center are further located in the Three-region coordinate information.
  7. 如权利要求6所述的台球位置确定方法,其特征在于:所述第三区域坐标信息包括多个坐标,所述第三区域坐标信息的多个坐标依次连线形成的第三区域为圆弧形区域或圆形区域。The billiard position determining method according to claim 6, wherein the third area coordinate information comprises a plurality of coordinates, and the third area formed by sequentially connecting the plurality of coordinates of the third area coordinate information is an arc Shaped area or circular area.
  8. 如权利要求4所述的台球位置确定方法,其特征在于:所述台球桌面还被划分成至少两个固定区域,所述至少两个固定区域相对所述参考坐标系的坐标固定不变,所述选择所述两个重叠坐标中的一个重叠坐标作为所述台球球心的坐标的步骤包括:The billiard position determining method according to claim 4, wherein the billiard table top is further divided into at least two fixed areas, and the coordinates of the at least two fixed areas are fixed relative to the reference coordinate system. The step of selecting one of the two overlapping coordinates as the coordinates of the billiard ball center includes:
    依据所述第一照片及/所述第二照片判断所述台球位于哪个固定区域,并依据所述固定区域、所述第一区域坐标信息及所述第二区域坐标信息选择所述台球球心的坐标,其中所述台球球心的坐标还位于所述固定区域中。Determining, according to the first photo and/or the second photo, which fixed area the billiard is located, and selecting the billiard ball center according to the fixed area, the first area coordinate information, and the second area coordinate information The coordinates of the billiard ball center are also located in the fixed area.
  9. 如权利要求4所述的台球位置确定方法,其特征在于:所述台球桌面还包括一特定点,所述特定点相对于所述参考坐标系的坐标已知,所述选择所述两个重叠坐标中的一个重叠坐标作为所述台球球心的坐标的步骤包括:The billiard position determining method according to claim 4, wherein the billiard table top further comprises a specific point, the specific point is known relative to a coordinate of the reference coordinate system, and the selecting the two overlaps The step of using an overlapping coordinate in the coordinates as the coordinates of the billiard ball center includes:
    计算所述两个重叠坐标在所述台球桌面上的两个投影点的坐标,所述投影点包括第一投影点与第二投影点;Calculating coordinates of two projection points of the two overlapping coordinates on the billiard table, the projection points including a first projection point and a second projection point;
    获取所述第一投影点与所述特定点定义的一第一直线上的一第一特征点的坐标,所述第一特征点位于所述第一直线与所述台球桌上的一已知直线的相交处;Obtaining, by the first projection point, a coordinate of a first feature point on a first line defined by the specific point, where the first feature point is located on the first straight line and the billiard table Knowing the intersection of straight lines;
    获取所述第二投影点与所述特定点定义的一第二直线上的一第二特征点的坐标,所述第二特征点位于所述第二直线与所述台球桌上的所述已知直线的相交处;Obtaining, by the second projection point, a coordinate of a second feature point on a second line defined by the specific point, where the second feature point is located on the second line and the billiard table Know the intersection of straight lines;
    依据所述第一特征点的坐标计算所述第一特征点到所述第一拍摄位置的距离,定义为第一距离;Calculating a distance from the first feature point to the first photographing position according to coordinates of the first feature point, defined as a first distance;
    依据所述第二特征点的坐标计算所述第二特征点到所述第一拍摄位置的距离,定义为第二距离;及Calculating, according to coordinates of the second feature point, a distance from the second feature point to the first photographing position, defined as a second distance; and
    获取所述第一照片上的所述特定点与所述台球球心在所述台球桌面的投影点定义的第三直线、以及所述第三直线与所述第一照片上的所述已知直线的相交处的像素点,将所述像素点到所述第一拍摄位置距离分别与所述第一距离和所述第二距离对比,若所述像素点到所述第一拍摄位置距离和所述第一距离相等,则所述第一投影点对应的重叠坐标即为所述台球球心的坐标;若所述像素点到第一拍摄位置距离和所述第二距离相等,则所述第二投影点对应的重叠坐标即为所述台球球心的坐标。Obtaining a third line defined by the specific point on the first photo and a projection point of the billiard center on the billiard table, and the known on the third line and the first photo a pixel at a point where the intersection of the lines intersects the first photographing position distance with the first distance and the second distance, respectively, if the pixel point is at a distance from the first photographing position and If the first distance is equal, the overlapping coordinate corresponding to the first projection point is the coordinate of the billiard ball center; if the pixel point to the first shooting position distance and the second distance are equal, the The overlapping coordinates corresponding to the second projection point are the coordinates of the billiard ball center.
  10. 如权利要求4所述的台球位置确定方法,其特征在于:所述台球桌面还包括一特定点,所述特定点相对于所述参考坐标系的坐标已知,所述选择所述两个重叠坐标中的一个重叠坐标作为所述台球球心的坐标的步骤包括:The billiard position determining method according to claim 4, wherein the billiard table top further comprises a specific point, the specific point is known relative to a coordinate of the reference coordinate system, and the selecting the two overlaps The step of using an overlapping coordinate in the coordinates as the coordinates of the billiard ball center includes:
    计算所述两个重叠坐标在所述台球桌面上的两个投影点的坐标,所述投影点包括第一投影点与第二投影点;Calculating coordinates of two projection points of the two overlapping coordinates on the billiard table, the projection points including a first projection point and a second projection point;
    获取所述第一投影点与所述特定点定义的一第一直线上的一第一特征点的坐标,所述第一特征点位于所述第一直线与所述台球桌上的一已知直线的相交处;Obtaining, by the first projection point, a coordinate of a first feature point on a first line defined by the specific point, where the first feature point is located on the first straight line and the billiard table Knowing the intersection of straight lines;
    获取所述第二投影点与所述特定点定义的一第二直线上的一第二特征点的坐标,所述第二特征点位于所述第二直线与所述台球桌上的所述已知直线的相交处;Obtaining, by the second projection point, a coordinate of a second feature point on a second line defined by the specific point, where the second feature point is located on the second line and the billiard table Know the intersection of straight lines;
    依据所述第一特征点的坐标计算所述第一特征点到所述第二拍摄位置的距离,定义为第一距离;Calculating a distance from the first feature point to the second photographing position according to coordinates of the first feature point, defined as a first distance;
    依据所述第二特征点的坐标计算所述第二特征点到所述第二拍摄位置的距离,定义为第二距离;及Calculating a distance from the second feature point to the second photographing position according to coordinates of the second feature point, defined as a second distance; and
    获取所述第二照片上的所述特定点与所述台球球心在所述台球桌面的投影点定义的第三直线、以及所述第三直线与所述第二照片上的所述已知直线的相交处的像素点,将所述像素点到所述第二拍摄位置距离分别与所述第一距离和所述第二距离对比,若所述像素点到所述第二拍摄位置距离和所述第一距离相等,则所述第一投影点对应的重叠坐标即为所述台球球心的坐标;若所述像素点到第二拍摄位置距离和所述第二距离相等,则所述第二投影点对应的重叠坐标即为所述台球球心的坐标。Obtaining a third line defined by the specific point on the second photo and a projection point of the billiard center on the billiard table, and the known on the third line and the second photo a pixel at a point where the intersection of the lines, the distance from the pixel point to the second photographing position is respectively compared with the first distance and the second distance, if the distance from the pixel point to the second photographing position is If the first distance is equal, the overlapping coordinate corresponding to the first projection point is the coordinate of the billiard ball center; if the pixel point to the second shooting position distance is equal to the second distance, the The overlapping coordinates corresponding to the second projection point are the coordinates of the billiard ball center.
  11. 一种台球位置确定装置,其特征在于,所述台球位置确定装置包括:A billiard position determining device, wherein the billiard position determining device comprises:
    照片获取模块,用于获取在第一拍摄位置拍摄的第一张照片及在不同于所述第一拍摄位置的第二拍摄位置拍摄的第二张照片,所述第一张照片上包括台球桌面、位于台球桌面上的一个台球、第一固定点、第二固定点及第三固定点,其中所述第一固定点、第二固定点及第三固定点相较于一参考坐标系的坐标已知,所述第二张照片上包括所述台球桌面、所述台球、第四固定点、第五固定点及第六固定点,其中,所述第四固定点、第五固定点及第六固定点相较于所述参考坐标系的坐标已知,所述第二张照片与所述第一张照片中的所述台球在所述台球桌面的位置没有变化;a photo acquisition module, configured to acquire a first photo taken at the first shooting position and a second photo taken at a second shooting position different from the first shooting position, where the first photo includes a billiard tabletop a billiard, a first fixed point, a second fixed point and a third fixed point on the billiard table, wherein the first fixed point, the second fixed point and the third fixed point are compared with a coordinate of a reference coordinate system It is known that the second photo includes the billiard table top, the billiards, the fourth fixed point, the fifth fixed point, and the sixth fixed point, wherein the fourth fixed point, the fifth fixed point, and the The six fixed points are known relative to the coordinates of the reference coordinate system, and the second photo and the billiard in the first photo have no change in the position of the billiard tabletop;
    距离获取模块,用于获取所述第一拍摄位置分别到所述第一固定点、第二固定点、第三固定点及所述台球球心的距离,以及获取所述第二拍摄位置分别到所述第四固定点、第五固定点、第六固定点及所述台球球心的距离,其中,所述第一拍摄位置到所述台球的距离设为lo1,所述第二拍摄位置到所述台球的距离设为lo2,所述台球的半径设为r,所述第一拍摄位置到所述台球球心的距离为lo1+r,所述第二拍摄位置到所述台球球心的距离为lo2+r;a distance acquiring module, configured to acquire a distance from the first photographing position to the first fixed point, the second fixed point, the third fixed point, and the billiard ball center, and obtain the second photographing position to a distance between the fourth fixed point, the fifth fixed point, the sixth fixed point, and the billiard ball center, wherein a distance from the first shooting position to the billiard is set to l o1 , and the second shooting position The distance to the billiard is set to l o2 , the radius of the billiard is set to r, the distance from the first photographing position to the billiard ball center is l o1 + r, and the second photographing position is to the billiard The distance between the centers of the sphere is l o2 +r;
    第一计算模块,用于依据所述第一固定点、第二固定点及第三固定点的坐标与所述第一固定点、第二固定点及第三固定点分别到所述第一拍摄位置的距离计算所述第一拍摄位置的坐标,以及依据所述第四固定点、第五固定点及第六固定点的坐标与所述第四固定点、第五固定点及第六固定点分别到所述第二拍摄位置的距离计算所述第二拍摄位置的坐标;a first calculating module, configured to respectively perform the first shooting according to the coordinates of the first fixed point, the second fixed point, and the third fixed point, and the first fixed point, the second fixed point, and the third fixed point a distance of the position to calculate coordinates of the first photographing position, and coordinates according to the fourth fixed point, the fifth fixed point, and the sixth fixed point, and the fourth fixed point, the fifth fixed point, and the sixth fixed point Calculating coordinates of the second photographing position by distances respectively from the second photographing position;
    第二计算模块,依据所述第一拍摄位置的坐标计算所述第一拍摄位置到所述台球上的距离为lo1+r的第一区间坐标信息,以及依据所述第二拍摄位置的坐标计算所述第二拍摄位置到所述台球上的距离为lo2+r的第二区间坐标信息,所述第一区间坐标信息包括多个到所述第一拍摄位置的距离为lo1+r的坐标,所述第二区间坐标信息包括多个到所述第二拍摄位置的距离为lo2+r的坐标信息;及A second calculation module, based on coordinates of the photographing position of the first imaging position to calculate the first distance to the pool for the first interval l o1 + r coordinate information, and according to the second imaging position coordinates Calculating second interval coordinate information of the distance from the second shooting position to the billiards as l o2 +r, the first interval coordinate information including a plurality of distances to the first shooting position is l o1 +r Coordinates, the second interval coordinate information includes a plurality of coordinate information of a distance to the second photographing position of l o2 + r;
    球心坐标获取模块,用于获取所述台球球心的坐标,其中所述台球球心的坐标位于所述第一区域坐标信息中,也位于所述第二区域坐标信息中。a spherical core coordinate acquiring module, configured to acquire coordinates of the billiard ball center, wherein coordinates of the billiard ball center are located in the first region coordinate information, and are also located in the second region coordinate information.
  12. 一种电子设备,其特征在于,所述电子设备包括处理器,所述处理器用于执行非易失性存储介质中存储的计算机程序时实现如权利要求1-10中任意一项所述台球位置确定方法的步骤。An electronic device, comprising: a processor for implementing a billiard position according to any one of claims 1-10 when the processor is configured to execute a computer program stored in a non-volatile storage medium Determine the steps of the method.
  13. 如权利要求12所述的电子设备,其特征在于,所述电子设备为智能手机,所述智能手机还包括摄像头与距离感测器,所述摄像头用于拍摄所述第一张照片及所述第二张照片,所述距离感测器用于侦测所述摄像头到所述第一固定点、第二固定点、第三固定点及所述台球的距离。The electronic device according to claim 12, wherein the electronic device is a smart phone, the smart phone further includes a camera and a distance sensor, the camera is configured to capture the first photo and the In a second photo, the distance sensor is configured to detect a distance between the camera to the first fixed point, the second fixed point, the third fixed point, and the billiard.
  14. 如权利要求12所述的电子设备,其特征在于,所述电子设备为智能手机,所述智能手机还包括3D拍摄装置,所述3D拍摄装置用于拍摄所述第一张照片及所述第二张照并侦测所述3D拍摄装置到所述第一固定点、第二固定点、第三固定点及所述台球的距离。The electronic device according to claim 12, wherein the electronic device is a smart phone, the smart phone further includes a 3D imaging device, and the 3D imaging device is configured to capture the first photo and the first Two photos and detecting the distance from the 3D camera to the first fixed point, the second fixed point, the third fixed point, and the billiard.
PCT/CN2017/097487 2017-08-15 2017-08-15 Billiard ball position determining method, billiard ball position determining apparatus and electronic device WO2019033263A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201780007912.3A CN108701364B (en) 2017-08-15 2017-08-15 Billiard position determining method, billiard position determining device and electronic equipment
PCT/CN2017/097487 WO2019033263A1 (en) 2017-08-15 2017-08-15 Billiard ball position determining method, billiard ball position determining apparatus and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/097487 WO2019033263A1 (en) 2017-08-15 2017-08-15 Billiard ball position determining method, billiard ball position determining apparatus and electronic device

Publications (1)

Publication Number Publication Date
WO2019033263A1 true WO2019033263A1 (en) 2019-02-21

Family

ID=63844079

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/097487 WO2019033263A1 (en) 2017-08-15 2017-08-15 Billiard ball position determining method, billiard ball position determining apparatus and electronic device

Country Status (2)

Country Link
CN (1) CN108701364B (en)
WO (1) WO2019033263A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112546607B (en) * 2021-02-18 2021-05-18 深圳市普汇智联科技有限公司 Coordinate matching method of projection type billiard system based on multiple projection devices

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101537251A (en) * 2009-04-17 2009-09-23 刘铮 Billiard repositioning method based on image matching technology
CN102327697A (en) * 2011-10-14 2012-01-25 李姣昂 Projection-type billiard training system and implementation method thereof
US20130208943A1 (en) * 2012-02-13 2013-08-15 National Tsing Hua University Devices and methods for tracking moving objects
CN103871078A (en) * 2013-07-12 2014-06-18 北京瑞盖科技有限公司 Billiard ball hitting key information detection method and system
CN104208870A (en) * 2014-07-02 2014-12-17 乔冰 Coordinate matching method based on projection of projection type billiard system and image collection
CN105107190A (en) * 2015-09-15 2015-12-02 清华大学 Image collecting and processing system applied to Chinese billiards and image processing method

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100528272C (en) * 2001-04-19 2009-08-19 世嘉股份有限公司 Game machine and method of controlling image displaying operation
US7468002B2 (en) * 2006-11-27 2008-12-23 Sourcenterprises, Inc. Game utilizing a non-spherical billiard ball
US8727875B2 (en) * 2009-07-27 2014-05-20 Obscura Digital, Inc. Automated enhancements for billiards and the like
CN103143158B (en) * 2013-03-09 2014-11-05 北京工业大学 Method for improving snooker hit rate
CN103349835A (en) * 2013-08-06 2013-10-16 刘佳林 Billiard aiming method and special billiard aiming device
CN106055518A (en) * 2016-06-07 2016-10-26 北京瑞盖科技股份有限公司 Ball hitting path recommending method and device
CN106267796B (en) * 2016-07-29 2018-06-12 李智 A kind of method aimed at by auxiliary billiard ball of taking pictures

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101537251A (en) * 2009-04-17 2009-09-23 刘铮 Billiard repositioning method based on image matching technology
CN102327697A (en) * 2011-10-14 2012-01-25 李姣昂 Projection-type billiard training system and implementation method thereof
US20130208943A1 (en) * 2012-02-13 2013-08-15 National Tsing Hua University Devices and methods for tracking moving objects
CN103871078A (en) * 2013-07-12 2014-06-18 北京瑞盖科技有限公司 Billiard ball hitting key information detection method and system
CN104208870A (en) * 2014-07-02 2014-12-17 乔冰 Coordinate matching method based on projection of projection type billiard system and image collection
CN105107190A (en) * 2015-09-15 2015-12-02 清华大学 Image collecting and processing system applied to Chinese billiards and image processing method

Also Published As

Publication number Publication date
CN108701364B (en) 2021-09-07
CN108701364A (en) 2018-10-23

Similar Documents

Publication Publication Date Title
WO2013043019A2 (en) System and method for photographing moving subject by means of fixed camera, and acquiring projection image of actual movement trajectory of subject based on photographed image
WO2011074759A1 (en) Method for extracting 3-dimensional object information out of a single image without meta information
WO2017008224A1 (en) Moving object distance detection method, device and aircraft
WO2017124792A1 (en) Method and system for dynamically capturing photograph of face, and mobile terminal
WO2014109545A1 (en) Apparatus and method for sensing ball in motion
WO2020171553A1 (en) An electronic device applying bokeh effect to image and controlling method thereof
WO2012091326A2 (en) Three-dimensional real-time street view system using distinct identification information
WO2018117353A1 (en) Method for detecting borderline between iris and sclera
WO2022039404A1 (en) Stereo camera apparatus having wide field of view, and depth image processing method using same
WO2021158057A1 (en) Electronic device and method for displaying image at the electronic device
WO2019017585A1 (en) Electronic device for controlling focus of lens and method for controlling the same
WO2019035551A1 (en) Apparatus for composing objects using depth map and method for the same
CN109923856A (en) Light supplementing control device, system, method and mobile device
WO2010058927A2 (en) Device for photographing face
WO2018030795A1 (en) Camera device, display device, and method for correcting motion in device
WO2019033263A1 (en) Billiard ball position determining method, billiard ball position determining apparatus and electronic device
JP2559939B2 (en) Three-dimensional information input device
WO2021157904A1 (en) Electronic apparatus and controlling method thereof
WO2021221341A1 (en) Augmented reality device and control method for same
WO2022052409A1 (en) Automatic control method and system for multi-camera filming
WO2019194544A1 (en) Method and system for handling 360 degree image content
WO2022075691A1 (en) Apparatus and method for sensing motion of sphere moving on plane using camera, and apparatus and method for sensing motion of golf ball moving on putting mat
WO2015009112A9 (en) Method and apparatus for displaying images in portable terminal
WO2019017686A1 (en) Method for generating 3d biometric model of body part of user and electronic device thereof
WO2020184890A1 (en) Method and system for supporting object control by using two-dimensional camera, and non-transitory computer-readable recording medium

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: 17921530

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: 17921530

Country of ref document: EP

Kind code of ref document: A1