0

I have installed opencv on windows machine and need to have opencv folder in C drive separately(not inside any other folder) but can't find folder in which it is installed. please help me.

1 Answers1

6

Probably with all modules you can use __file__ to find it on disk

import cv2 

print(cv2.__file__)

cv2 has also special variabel with path to .xml files used to recognize faces - it can be also useful.

print(cv2.data.haarcascades)
furas
  • 134,197
  • 12
  • 106
  • 148