Rich's Wordpress

又一个WordPress站点

OpenCV

OpenCV 16: Face Recognition

I used OpenCV’s built-in face recognizer and trained it using all of the images I downloaded from Google in these two folders. There are three modules we need to import – os, cv2 and numpy. In the Function: Now that we are inside each folder, we are going to loop through all the images in […]

OpenCV 15: Face Detection

Face Detection VS Face Recognition Face detection only detects the presence of a face in an image while fact recognition involves identifying whose face it is. Face detection is performed using a classifier, it is essentially an algorithm that decides whether a given image is positive or negative meaning whether a face is present or […]

OpenCV 13: Thresholding

Simple Thresholding Thresholding is the binarization of an image, it is useful when we want to convert a normal image to a binary image, that is an image where pixels are either 0 (black) or 255 (white). We would provide the computer a thresholding value, and compare each pixel of the image to this thresholded […]

OpenCV 11: Masking

Select an image to mask on, and create a blank image to create the shape of the mask. Create a circle and rectangle mask respectively. Use bit operation to combine the mask and the image.

Scroll to top