Creating a face detection component with image capture functionality