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.
            Asked
            
        
        
            Active
            
        
            Viewed 9,064 times
        
    0
            
            
        - 
                    1show this [post](https://stackoverflow.com/questions/5030362/how-to-use-opencv-in-python) – Suman Dec 22 '19 at 12:05
 - 
                    1Use the search feature your OS comes with. – Dan Mašek Dec 22 '19 at 12:50
 - 
                    `import cv2` `print(cv2.__file__)` – furas Dec 22 '19 at 14:03
 
1 Answers
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