where is opencv python located in windows?

10.5k Views Asked by At

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

There are 1 best solutions below

0
furas On BEST ANSWER

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)