An apparatus, comprising: at least one processing unit; at least one memory; and at least one camera; wherein the at least one memory stores program instructions that, when executed by the at least one processing unit, cause the apparatus to: segment objects appearing in video frames recorded by the camera, wherein the recorded video frames by the camera comprise rolling shutter artefacts causing distortion to object geometries due to a temporal distribution of a readout of individual pixels; model movement of the camera recording the video frames by modeling three-dimensional position of the camera in space using three-dimensional pose estimation; and individually compensate motion artefacts in the video frames for at least one segmented object based on the relative movement of the camera and at least one segmented object, wherein the compensating comprises shifting parts of lines that the at least one segmented object has according to a detected movement of the at least one segmented object, wherein after the compensating the at least one segmented object, the at least one segmented object represents its real shape instead of a twisted or tilted view, wherein a shifting or twisting of the at least segmented object back to its original shape leaves holes (310, 314) in the view, wherein the left holes (310, 314) in the view are compensated with a background filling algorithm, and wherein the filling the left holes (310, 314) is based on data from a previous or an upcoming video frame. at least one processing unit; at least one memory; and at least one camera; wherein the at least one memory stores program instructions that, when executed by the at least one processing unit, cause the apparatus to: segment objects appearing in video frames recorded by the camera, wherein the recorded video frames by the camera comprise rolling shutter artefacts causing distortion to object geometries due to a temporal distribution of a readout of individual pixels; model movement of the camera recording the video frames by modeling three-dimensional position of the camera in space using three-dimensional pose estimation; and individually compensate motion artefacts in the video frames for at least one segmented object based on the relative movement of the camera and at least one segmented object, segment objects appearing in video frames recorded by the camera, wherein the recorded video frames by the camera comprise rolling shutter artefacts causing distortion to object geometries due to a temporal distribution of a readout of individual pixels; model movement of the camera recording the video frames by modeling three-dimensional position of the camera in space using three-dimensional pose estimation; and individually compensate motion artefacts in the video frames for at least one segmented object based on the relative movement of the camera and at least one segmented object, wherein the compensating comprises shifting parts of lines that the at least one segmented object has according to a detected movement of the at least one segmented object, wherein after the compensating the at least one segmented object, the at least one segmented object represents its real shape instead of a twisted or tilted view, wherein a shifting or twisting of the at least segmented object back to its original shape leaves holes (310, 314) in the view, wherein the left holes (310, 314) in the view are compensated with a background filling algorithm, and wherein the filling the left holes (310, 314) is based on data from a previous or an upcoming video frame.