Modern vehicles are very dependent on sensors and especially cameras to analyze different objects and conditions. Single camera systems are frequently used for lane detection and identifying objects in the distance. These systems depend on good conditions to work properly and are easily disrupted by environmental interferences. This project is targeted in developing an image processing algorithm that can detect disturbances applied upon the camera lens. Several focus measure operators are evaluated and compared by expected outcome while still maintaining a satisfying computational time, low resource usage and accuracy with an ERR between 0% - 1%.