...
In this function the ‘scaleFactor’ and ‘minNeighbors’ variables are hidden within the function, meaning the only way to change them is to rewrite themthe function. However, rather than rewriting the whole entire FaceDetectionComponent, we can simply create a new component where we inherit from the FaceDetectionComponent, and change just the detect function.
...