Avadhoot Khedekar
Avadhoot Khedekar

Reputation: 45

where is opencv python located in windows?

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.

Upvotes: 2

Views: 11824

Answers (1)

furas
furas

Reputation: 142631

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)

Upvotes: 7

Related Questions