A method for automatic digital inspection of a railway environment, the method comprising: - receiving at least a first video captured by at least one camera mounted at least on a rail vehicle, wherein the first video comprises video frames representing the railway environment; - generating point clouds using the video frames, wherein a given point cloud correspond to a given set of video frames; - attributing labels to each pixel of the video frames for generating annotated video frames; - evaluating the annotated video frames and their corresponding point clouds using a set of predefined rules to at least determine whether or not at least one violation is present in the railway environment; - generating inspection information related to the at least one violation, when it is determined that the at least one violation is present in the railway environment; - sending the inspection information to a user device, - generating a second video comprising a plurality of annotated video frames that depict the at least one violation, based on the inspection information; - sending the second video to the user device; - adding one or more video frames of the first video in the second video; characterised by: - merging detections in the second video that depict the same violation into a single detection, based on the location of the at least one violation and its bounding box and on a temporal adjacency between the detections in the second video, to obtain a third video, wherein the third video comprises a lesser number of detections as compared to the second video; and - sending the third video to the user device for display thereat. - receiving at least a first video captured by at least one camera mounted at least on a rail vehicle, wherein the first video comprises video frames representing the railway environment; - generating point clouds using the video frames, wherein a given point cloud correspond to a given set of video frames; - attributing labels to each pixel of the video frames for generating annotated video frames; - evaluating the annotated video frames and their corresponding point clouds using a set of predefined rules to at least determine whether or not at least one violation is present in the railway environment; - generating inspection information related to the at least one violation, when it is determined that the at least one violation is present in the railway environment; - sending the inspection information to a user device, - generating a second video comprising a plurality of annotated video frames that depict the at least one violation, based on the inspection information; - sending the second video to the user device; - adding one or more video frames of the first video in the second video; characterised by: - merging detections in the second video that depict the same violation into a single detection, based on the location of the at least one violation and its bounding box and on a temporal adjacency between the detections in the second video, to obtain a third video, wherein the third video comprises a lesser number of detections as compared to the second video; and - sending the third video to the user device for display thereat. - merging detections in the second video that depict the same violation into a single detection, based on the location of the at least one violation and its bounding box and on a temporal adjacency between the detections in the second video, to obtain a third video, wherein the third video comprises a lesser number of detections as compared to the second video; and - sending the third video to the user device for display thereat.