Launch monitor
A launch monitor having a camera can be used to measure a trajectory parameter of a ball. In one example, a method can include changing a mode of the camera from a low-speed mode to a high-speed mode. The camera can include an image sensor array having a plurality of pixels. The camera can generate a video frame using more pixels in the low-speed mode than in the high-speed mode. A first video frame can be received, the video frame comprising values captured during the high-speed mode from a first subset of the plurality of pixels. A second video frame can be received, the video frame comprising values captured during the high-speed mode from a second subset of the plurality of pixels. The trajectory parameter of the ball can be calculated using the first video frame and the second video frame.
1. A method for determining a trajectory parameter of a golf ball, comprising:
using an accelerometer to detect that an image sensor is stationary;
in response to detecting that the image sensor is stationary, changing a mode of the image sensor to a high-speed mode, wherein the image sensor in high-speed mode has a frame rate that is faster than when the image sensor is not in high-speed mode;
when in the high-speed mode, capturing a first video frame of the golf ball and a second video frame of the golf ball; and
calculating the trajectory parameter of the golf ball using the first video frame and the second video frame.
2. The method of claim 1 , wherein the accelerometer and the image sensor are incorporated within a computing device, and the method further comprises:
wirelessly transmitting the trajectory parameter from the computing device to at least one external device.
3. The method of claim 2 , wherein the at least one external device includes a wearable device.
4. The method of claim 2 , wherein the at least one external device is connected to a display.
5. The method of claim 4 , further comprising:
visually presenting the trajectory parameter on the display connected to the at least one external device.
6. The method of claim 1 , wherein the first video frame is captured using a first subset of pixels from even rows of the image sensor and the second video frame is captured using a second subset of pixels from odd rows of the image sensor.
7. The method of claim 1 , wherein the first video frame and the second video frame are captured using a same set of pixels of the image sensor.
8. The method of claim 1 , wherein the mode of the image sensor is changed to the high-speed mode in response to detecting both that the image sensor is stationary and the golf ball is detected in a third video frame captured from the image sensor.
9. A non-transient computer-readable storage medium having instructions thereon for executing a method of calculating a trajectory parameter of a ball, the method comprising:
detecting that a camera is stationary;
after detecting that the camera is stationary, changing a mode of the camera from a low-speed mode to a high-speed mode, the camera using a higher frame rate to capture video in the high-speed mode than when capturing video in the low-speed mode;
receiving a first video frame of the ball in motion and captured during the high-speed mode;
receiving a second video frame of the ball in motion and captured during the high-speed mode;
calculating the trajectory parameter of the ball using at least one of the first video frame and the second video frame.
10. The computer-readable storage medium of claim 9 , wherein the camera is integrated within a computing device, and the method further comprises:
transmitting the trajectory parameter of the ball to an external device in communication with the computing device.
11. The computer-readable storage medium of claim 10 , wherein the trajectory parameter of the ball is encoded as an audio signal before being transmitted to the external device.
12. The computer-readable storage medium of claim 10 , wherein the trajectory parameter of the ball is transmitted wirelessly to the external device.
13. The computer-readable storage medium of claim 9 , wherein the camera comprises an image sensor array having a plurality of pixels, and the camera captures a sub-array of the plurality of pixels during the high-speed mode.
14. The computer-readable storage medium of claim 9 , wherein the camera uses interlaced scanning of an image sensor array of the camera during the high-speed mode and progressive scanning of the image sensor array during the low-speed mode.
15. The computer-readable storage medium of claim 9 , wherein the camera comprises an image sensor array having a plurality of pixels, and the camera captures a sub-array of the plurality of pixels using interlaced scanning of the image sensor array during the high-speed mode.
16. A mobile device for monitoring a golf ball, comprising:
a processor;
an accelerometer;
a camera comprising an image sensor including a plurality of pixels and a plurality of scan patterns for capturing a video frame, the plurality of scan patterns including a high-speed scan pattern and a low-speed scan pattern; and
a computer-readable storage medium including instructions that upon execution cause the processor to:
use an output of the accelerometer to detect whether the mobile device is stationary;
after the mobile device is detected to be stationary, use the high-speed scan pattern of the camera to capture video of the golf ball; and
calculate a motion parameter of the golf ball using one or more video frames captured by the image sensor.
17. The mobile device of claim 16 , wherein the computer-readable storage medium further includes instructions that upon execution cause the processor to:
transmit the motion parameter from the mobile device to an external device.
18. The mobile device of claim 17 , wherein the external device is a wearable device.
19. The mobile device of claim 17 , wherein the external device is a computing device connected to a display.
20. The mobile device of claim 16 , wherein the high-speed scan pattern scans a sub-array of the plurality of pixels and the low-speed scan pattern scans all of the plurality of pixels.