If you have any questions regarding this project please checkout this project on imaginghub.com!
This is a simple example of running face detection with OpenCV on images acquired from a Basler camera. Please ensure you have pylon, PyPylon and OpenCV installed. Here is a guide for this.