VideoCapture from opencv not working as expected, It is unable to read a video file

I have a lane-detection project, I have video as input in my current working directory, but it appears to me that it is unable to either read the file or it is not able to read the frames out of it, here is my code.

def DetectOnData(self):
        vid_dis = cv2.VideoCapture("DataSets\test2.mp4")
            v,frame =
            canny_img = self.CannyFilter(frame)
            cropped_img = self.ReigonOfIntrest(canny_img)
            lines = cv2.HoughLinesP(cropped_img, 2, np.pi / 180, 100,np.array([]), minLineLength = 40, maxLineGap = 5)
            avrg_lines = self.AverageSlopeIntercpt(frame,lines)
            line_img = self.DisplayLines(frame,avrg_lines)
            com_img = cv2.addWeighted(frame,0.8,line_img,1,1)
            cv2.imshow("Lane detection ",com_img)
            if cv2.waitKey(1) & 0xFF==ord('q'):

My DataSets directory does have the video file,

Mode                LastWriteTime         Length Name
----                -------------         ------ ----
-a----        4/21/2021   3:58 PM       33466715 test2.mp4

As I call the function I realize that the program doesn't enter into the while loop while(vid_dis.isOpened()): what is wrong with this? and it also doesn't give any errors.