Detecting faces in images with complex background is a difficult task. To solve this problem we decided to use modified gradient method with oval object detection. This method is very fast and our improvements give better accuracy than it was in original gradient methods. Our system was tested using pictures delivered from digital cameras, camcorders and television. On those various sources, differences in head size, lighting and background are considerable. During experiments we achieved very good results