cvopen (1)
cvopen (1)
cvopen (1)
2023209
Mech b1
Open CV
Collecting opencv-python
Using cached opencv_python-4.10.0.84-cp37-abi3-win_amd64.whl.metadata (2
0 kB)
Requirement already satisfied: numpy>=1.21.2 in c:\users\harsh\appdata\loc
al\programs\python\python312\lib\site-packages (from opencv-python) (2.1.
2)
Using cached opencv_python-4.10.0.84-cp37-abi3-win_amd64.whl (38.8 MB)
Installing collected packages: opencv-python
Successfully installed opencv-python-4.10.0.84
[notice] A new release of pip is available: 24.0 -> 24.3.1
[notice] To update, run: python.exe -m pip install --upgrade pip
#task 1
face = cv2.CascadeClassifier(cv2.data.haarcascades + 'haarcascade_frontal
# Importing libraries
import cv2
import matplotlib.pyplot as plt
# Detecting faces
f = face.detectMultiScale(gray, scaleFactor=1.1, minNeighbors=5, minS
plt.figure(figsize=(4,4))
plt.imshow(rgb)
plt.title('Detected Face')
plt.axis('off')
plt.show()
In [ ]: