This paper compares the efficiency of state-of-the-art machine learning algorithms used to detect an object in an image. A comparison between a deep learning algorithm such as the VGG-16 and a well-tuned random forest algorithm using classical image analysis parameters is presented. To estimate the efficiency, the classification performances like AUC, precision, recall and computation time of the algorithm retraining process are used. The experimental set-up shows that a well-tuned random forest algorithm is equal to, or better than, the deep learning approach and increases the speed of the retraining process by a factor of around 400.