Nowadays python has become one of the most popular languages as well as favourite programming language among developers. The simplified syntax and pattern of this language make the presence of this language in the trending list.
The biggest strength of Python is a huge collection of standard library which can be used for the following:
- Machine Learning
- GUI Applications (like Kivy, Tkinter, PyQt etc. )
- Web frameworks like Django (used by YouTube, Instagram, Dropbox)
- Image processing (like OpenCV, Pillow)
- Web scraping (like Scrapy, BeautifulSoup, Selenium)
- Test frameworks
- Scientific computing
- Text processing and many more..
For Machine learning and AI python language is the first priority for the developers because pre-built libraries of python language (like NumPy, Pandas, Pybrain, and SciPy) help expedite AI development.
In this article , 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.
- 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 messages to the user whenever the camera will detect any face. The user will have to make an account on sinch then he/she can get the ‘service_plan_id’ and ‘token’ from them. After which the user can input the latter in the code. The sender and recipients number also needs to be changed accordingly.
Steps to SMS Token:
- Create a new account on Sinch (Refer this link)
2. Click on messaging and conversations Panel :
3. Click on SMS option on the Home window:
4.You will get your code from there.
We are using Harcascade Classifier front face file download that file and specify the path.
Clx-sdk-xms 1.0.0 : It is a Python SDK for the CLX Communications REST API (also called XMS) for sending and receiving single or batch SMS messages. It also supports scheduled sends, organizing your frequent recipients into groups, and customizing your message for each recipient using parametrization. Sinch uses clx-sdk-xms to create API’S.