Updated: Jan 11, 2021

- by Subham Das

January 11, 2021



12 views0 comments

OpenCV is the most popular library for computer vision. Originally written in C/C++, it now provides bindings for Python.

OpenCV uses machine learning algorithms to search for faces within a picture. Because faces are so complicated, there isn’t one simple test that will tell you if it found a face or not. Instead, there are thousands of small patterns and features that must be matched. The algorithms break the task of identifying the face into thousands of smaller, bite-sized tasks, each of which is easy to solve. These tasks are also called classifiers.

Like a series of waterfalls, the OpenCV cascade breaks the problem of detecting faces into multiple stages. For each block, it does a very rough and quick test. If that passes, it does a slightly more detailed test, and so on. The algorithm may have 30 to 50 of these stages or cascades, and it will only detect a face if all stages pass.

The advantage is that the majority of the picture will return a negative during the first few stages, which means the algorithm won’t waste time testing all 6,000 features on it. Instead of taking hours, face detection can now be done in real-time.

Though the theory may sound complicated, in practice it is quite easy. The cascades themselves are just a bunch of XML files that contain OpenCV data used to detect objects. You initialize your code with the cascade you want, and then it does the work for you.




Simple Facial Detection
.zip
Download ZIP • 368KB

28 views0 comments

Updated: Jan 10, 2021


This project is a very efficient for the applications embedded into Voting Machine. It is fully written python 3.6.x with python's in build GUI (Graphical User Interface) module 'tkinter'. The application can be controlled graphically. People and leaders both can use the application for voting as well for participating in the contest. At first, the application asked any user that they are Voters or a leader of any group. After that it takes respective operation. If the user is a leader, then the application asked the user to store their name and group name, so that voters can nominate their leaders. But if the user is voter, then the application asked for Voter Id, if the Identification Number (Id) matches with Id's stored in the database of MySQL the it allow user to vote otherwise it redirect to home page. The error handling is also perfect, in every wrong step, the application will show respective message, which makes the application more friendly.

At the end you can also save the result of the election in your system by clicking on the respective buttons. It also shoes the number of votes received by every individual. Please read the Read Me text file and watch the video inside zip before running the script.


This project can be re-edited and we can also use it in your real world.



Electronic Voting Machine (EVM)
.zip
Download ZIP • 15.33MB

832 views1 comment
logo12.PNG