Teaching Machines to See
Computer Vision is a field of AI that enables computers to understand and process images and videos.
- Image Classification - Object Detection - Face Recognition - Image Segmentation
- OpenCV - NumPy - TensorFlow / PyTorch
pip install opencv-python
import cv2
img = cv2.imread("image.jpg")
cv2.imshow("Image", img)
cv2.waitKey(0)
gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)
face = cv2.CascadeClassifier('haarcascade_frontalface.xml')
faces = face.detectMultiScale(gray, 1.3, 5)
CNN → Convolutional Neural Networks Used for image recognition