Real-time lane detection and tracking is one of the most reliable approaches to prevent road accidents by alarming the driver of the excessive lane changes. This paper addresses the problem of correct lane detection and tracking of the current lane of a vehicle in real-time. We propose a solution that is computationally efficient and performs better than previous approaches. The proposed algorithm is based on detecting straight lines from the captured road image, marking a region of interest, filtering road marks and detecting the current lane by using the information gathered. This information is obtained by analyzing the geometric shape of the lane boundaries and the convergence point of the lane markers. To provide a feasible solution, the only sensing modality on which the algorithm depends on is the camera of an off-the-shelf mobile device. The proposed algorithm has a higher average accuracy of 96.87% when tested on the Caltech Lanes Dataset as opposed to the state-of-the-art technology for lane detection. The algorithm operates on three frames per second on a 2.26 GHz quad-core processor of a mobile device with an image resolution of 640×480 pixels. It is tested and verified under various visibility and road conditions.