Added if condition, whether faces are detected or not, will help to keep program running for some images.
If imwrite used along with imshow, it may produce error for : No faces found.Aborting.. in function 'fit' (Bad Argument).
pull/1645/head
Kushashwa Ravi Shrimali7 years agocommitted byAlexander Alekhin