Posts

Showing posts with the label Face Detection

Python – Colour Detection using Pandas & OpenCV

Image
  Python – Colour Detection using Pandas & OpenCV What is Colour Detection? Colour detection is the process of detecting the name of any color. Simple isn’t it? Well, for humans this is an extremely easy task but for computers, it is not straightforward. Human eyes and brains work together to translate light into color. Light receptors that are present in our eyes transmit the signal to the brain. Our brain then recognizes the color. Since childhood, we have mapped certain lights with their color names. We will be using the somewhat same strategy to detect color names. Prerequisites Before starting with this Python project with source code, you should be familiar with the computer vision library of Python that is  OpenCV  and  Pandas . OpenCV, Pandas, and numpy are the Python packages that are necessary for this project in Python. To install them, simply run this pip command in your terminal: pip install opencv-python numpy pandas Run Python File The beginner Python project is now

Python – Face detection and sending notification

Image
  Python – Face detection and sending notification A simple method is implemented using python how to detect human face and after detecting sends notifications to the user. If face is not recognised it does not send notifications to the owner. WE WILL USE: OpenCV:  OpenCV is a huge open-source library for computer vision, machine learning, and image processing. OpenCV supports a wide variety of programming languages like Python, C++, Java, etc. It can process images and videos to identify objects, faces, or even the handwriting of a human. When it is integrated with various libraries, such as Numpy which is a highly optimized library for numerical operations, then the number of weapons increases in your Arsenal i.e whatever operations one can do in Numpy can be combined with OpenCV.This OpenCV tutorial will help you learn the Image-processing from Basics to Advance, like operations on Images, Videos using a huge set of Opencv-programs and projects. Sinch  :  Sinch  is used to send mess

Face Detection using Python and OpenCV with webcam

Image
  Face Detection using Python and OpenCV with webcam How to use : Create a directory in your pc and name it (say project) Create two python files named create_data.py and face_recognize.py, copy the first source code and second source code in it respectively. Copy haarcascade_frontalface_default.xml to the project directory, you can get it in opencv or from here . You are ready to now run the following codes. create_data.py # Creating database # It captures images and stores them in datasets # folder under the folder name of sub_data import cv2, sys, numpy, os haar_file = 'haarcascade_frontalface_default.xml' # All the faces data will be # present this folder datasets = 'G:\PARAS\datasets' //make datasets as new folder like i did in this path then sub # These are sub data sets of folder, # for my faces I've used my name you can # change the label here akhi is a sub folder insde datasets where web image will store by webcamera sub_data = 'akhi' path = os.pat