Face shape detect in camera preview

How can i detect face shapes in ionic angular camera or in image.