A device capable of localizing ball impacts on a surface of an environment, the device comprising: - a video input module that is adapted to obtain, from a video source, video data of a ball in a ball game; and - a location analysis module that is adapted to be connected to the video input module; where the video data comprises video frames, and where the location analysis module is adapted to detect one or more moving blurs in the video, based on differences between any two consecutive video frames of the video; to compare parameters of the ball with parameters of the detected one or more moving blurs; wherein the parameters of the ball comprise a selection of brightness, colour and size of the ball and the parameters of the blur comprises a selection of brightness, colour and size of the blur, to associate one of the detected moving blurs with the ball, when the parameters of the ball match the parameters of said one of the detected moving blurs; to determine the dimensions of the moving blur being associated with the ball; to determine an extension of the associated moving blur and direction of said extension of the associated moving blur, wherein the extension of the moving blur is determined by determining extreme points of the associated moving blur, wherein direction of said extension of the associated moving blur is determined by considering the two farthest extreme points along the largest measure and determining a straight line going through said two farthest extreme points as the direction of the associated moving blur, to detect a ball impact, based on a change in dimensions of the moving blur being associated with the ball, in the video and based on a change in the extension of the moving blur being associated with the ball; and to localize the ball impact on the surface, based on the change in dimensions of the moving blur being associated with the ball, based on the change in the extension of the moving blur associated with the ball and parameters of the environment, wherein the parameters of the environment comprises physical coordinates of the surface. - a video input module that is adapted to obtain, from a video source, video data of a ball in a ball game; and - a location analysis module that is adapted to be connected to the video input module; where the video data comprises video frames, and where the location analysis module is adapted to detect one or more moving blurs in the video, based on differences between any two consecutive video frames of the video; to compare parameters of the ball with parameters of the detected one or more moving blurs; wherein the parameters of the ball comprise a selection of brightness, colour and size of the ball and the parameters of the blur comprises a selection of brightness, colour and size of the blur, to associate one of the detected moving blurs with the ball, when the parameters of the ball match the parameters of said one of the detected moving blurs; to determine the dimensions of the moving blur being associated with the ball; to determine an extension of the associated moving blur and direction of said extension of the associated moving blur, wherein the extension of the moving blur is determined by determining extreme points of the associated moving blur, wherein direction of said extension of the associated moving blur is determined by considering the two farthest extreme points along the largest measure and determining a straight line going through said two farthest extreme points as the direction of the associated moving blur, to detect a ball impact, based on a change in dimensions of the moving blur being associated with the ball, in the video and based on a change in the extension of the moving blur being associated with the ball; and to localize the ball impact on the surface, based on the change in dimensions of the moving blur being associated with the ball, based on the change in the extension of the moving blur associated with the ball and parameters of the environment, wherein the parameters of the environment comprises physical coordinates of the surface.