Device for sensing golf swing and method for sensing impact position on club head using the same
The present invention is to provide a device for sensing golf swing and a method for sensing an impact position on club head using two cameras operated in a stereoscopic manner with each other in the sensing device to accurately calculate the position where the golf ball is impacted on the head-face of the golf club when hitting the golf ball.
1 . A sensing device for a screen golf system, comprising:
a first camera and a second camera operated in a stereoscopic manner, wherein the first camera is installed at a first location which is on a ceiling of a booth forming a space for screen golf and above a head of a user and configured to acquire a first image of a field of view including a golf ball and a golf club, and the second camera is installed at a second location which is on a wall side of the booth and different from the first location and configured to acquire a second image of a field of view including the golf ball and the golf club, wherein an angle of view of the first camera and an angle of view of the second camera overlap each other; and
a sensing processor configured to analyze the first image acquired by the first camera to calculate information on a first position from a first club trajectory on the first image, and analyze the second image acquired by the second camera to calculate information on a second position from a second club trajectory on the second image,
wherein the sensing processor calculates an impact position where a club head of the golf club hits the golf ball during a golf swing using the first position and the second position,
wherein the sensing processor includes:
an image processor configured to:
analyze the first image to detect a position of a first ball which is a portion corresponding to the golf ball in the first image, perform a Hough Transform on the first image such that a shaft of the golf club in the first image is converted into a first straight line, obtain, from each of a plurality of frames of the first image, a first reference point which is a point where an end point of the first straight line meets an optical axis of the first camera, and analyze movement of the golf club on the first image to calculate the first club trajectory by connecting the first reference points obtained from the plurality of frames of the first image; and
analyze the second image to detect a position of a second ball which is a portion corresponding to the golf ball in the second image, perform a Hough Transform on the second image such that the shaft of the golf club in the second image is converted into a second straight line, obtain, from each of a plurality of frames of the second image, a second reference point which is a point where an end point of the second straight line meets an optical axis of the second camera, and analyze movement of the golf club on the second image to calculate the second club trajectory by connecting the second reference points obtained from the plurality of frames of the second image; and
a position calculator configured to calculate the impact position using the position of the first ball, the first club trajectory, the position of the second ball, and the second club trajectory,
wherein the position calculator is configured to:
calculate a vertical distance from a center point of the first ball to the first club trajectory on the first image as a first ball distance;
calculate a vertical distance from a center point of the second ball to the second club trajectory on the second image as a second ball distance; and
calculate a point, where the first position located at the first ball distance in a direction perpendicular to the optical axis of the first camera and the second position located at the second ball distance in a direction perpendicular to the optical axis of the second camera meet each other, as the impact position,
wherein the first camera and the second camera are further configured to acquire images of the golf ball hit by the golf club and to transmit the acquired images of the golf ball hit by the golf club to a client of the screen golf system,
wherein the sensing processor is further configured to calculate position information on a three-dimensional space for the golf ball hit by the golf club and to transmit sensing data comprising the calculated position information and the calculated impact position to the client,
wherein the client is configured to calculate motion parameters according to movement of the golf ball hit by the golf club based on the calculated position information, and
wherein an image output device of the screen golf system is configured to receive image information from the client and to output, on a screen installed in front of the user in the booth, a simulation image in which a trajectory of the golf ball hit by the golf club based on the calculated motion parameters is implemented on an image of a golf course.
2 . The sensing device according to claim 1 , wherein the image processor is configured to calculate the first club trajectory by calculating a trajectory in which the first reference point which is a point where a toe-side end of the club head detected on the first image meets the optical axis of the first camera moves, and calculate the second club trajectory by calculating a trajectory in which the second reference point which is a point where a toe-side end of the club head detected on the second image meets the optical axis of the second camera moves.
3 . The sensing device according to claim 2 , wherein the position calculator is configured to calculate a point where the first position at the first ball distance in the direction perpendicular to the optical axis of the first camera in contact with the toe-side end of the club head detected on the first image and the second position at the second ball distance in the direction perpendicular to the optical axis of the second camera in contact with the toe-side end of the club head detected on the second image meet each other as the impact position.
4 . The sensing device according to claim 1 , wherein the image processor is configured to calculate the first club trajectory by calculating a trajectory in which the first reference point which is a point corresponding to a hosel of the golf club detected on the first image moves, and calculate the second club trajectory by calculating a trajectory in which the second reference point which is a point corresponding to the hosel of the golf club detected on the second image moves.
5 . The sensing device according to claim 4 , wherein the position calculator is configured to calculate a point where the first position at the first ball distance in the direction perpendicular to the optical axis of the first camera passing through a position of the hosel of the golf club and the second position at the second ball distance in the direction perpendicular to the optical axis of the second camera passing through the position of the hosel of the golf club meet each other as the impact position.
6 . The sensing device according to claim 1 , wherein the first position is a position located the first ball distance away from a reference position on a club face of the golf club, and the second position is a position located the second ball distance away from the reference position on the club face of the golf club.