I had built opencv and opencv_contrib using this pyimagesearch guide and was getting an attribute error :
AttributeError: 'module' object has no attribute 'createLBPHFaceRecognizer'
On trying to checkout opencv_contrib which seemed to be the problem, this is what my terminal shows :
git checkout 3.2.0
Note: checking out '3.2.0'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:
git checkout -b <new-branch-name>
HEAD is now at 86342522... Merge pull request #701 from LaurentBerger:DericheFilter
Considering the fact that I have zero knowledge of git and scarce knowledge of opencv, what should I do to fix the detached head if that could be the problem for the attribute error?