Optical camera communications (OCC) is a pragmatic version of visible light communication (VLC), based on a smart device camera that allows more straightforward implementation of various services in smart devices. OCC provides unique opportunities for establishing short-range VLC links by using a camera as the optical receiver. Camera/image sensor-based optical wireless communication technologies are being widely used in areas like Internet-of-things, indoor localization, motion capture and intelligent transportation systems. In recent times, cameras usage in vehicles has been increased to monitor speed, collision avoidance, object recognition, and traffic signs. This paper presents simulation-based results of lane cross detection using OCC, and it investigates the theoretical and practical aspects of OCC-based road-to-vehicle communications. A geometrical model to estimate the minimum distance at which there is a chance to cross the lane and the distance at which the driver receives an alert signal to avoid accidents, along with the simulation results, is presented in this paper.