1
votes

Previously, I find the path of haar cascade using

import cv2

print(cv2.file)

/home/mohan/.local/lib/python3.7/site-packages/cv2/cv2.cpython-37m-x86_64-linux-gnu.

Recently, I installed ubuntu 19. Now the path showing is

/usr/lib/python3/dist-packages/cv2.cpython-37m-x86_64-linux-gnu.so

where I didn't find any data folder. can anyone pls help me on this

1
What do you mean by ``any data folder```?Lukashou-AGH
data is the name of the folder in which haarcascades availableMohan Goud

1 Answers

0
votes

Have you built opencv from source?, if yes then you can access your haar cascades from path_to_your_downloaded_opencv_folder/data/haarcascades/. If you have done a pip install, then you will have to download it. Here is your link : https://github.com/opencv/opencv/tree/master/data/haarcascades