[project-opencv 02] Using Haar cascade object detection with opencv
So last week, I started learning Open Computer Vision Library (opencv) and created some other mini-projects. If you want to read my previous blog post about opencv, you can click right over here!
After a week, I have made a lot of progress and new stuff. I made a project with face recognition using the haarcascade_frontalface_default.xml created by Rainer Lienhart.
And amazingly, it works quite well on some free videos I found online. And I decided to make a deep look on the result and the result is very promising because there is a lot of face detected.
Also, So I also created another project focus on body recognition by using Haar cascade classifiers with full-body, lower-body and upper-body classifiers. I made some rectangle in different colours to show the difference between classifiers. The blue one is the upper-body classifier, the red one is the lower-body one and the green one is the full body version.
As you can see there is some classifiers over-lapping, and it really tells the difference.
I also created an UI for all my Opencv projects using Tkinter, so for those who didn't know about what is tkinter library, you can click here -> tkinter
Tkinter is Python's de-facto standard GUI (Graphical User Interface) package.
The GUI or Graphical User interface is a form of user interface that includes graphical elements, such as windows, icons and buttons. These allow the average user to communicate with an electronic device. The alternative is to use the command line, which is neither user friendly or visually pleasing.Every programming language has it’s own set of unique GUI libraries. In Python, Tkinter is the most common GUI Library used to create Graphical User Interfaces.
And it is very easy to use. I created some buttons with Tkinter, you can check it on Github .
I will try to create more projects using opencv library. See you next week! Stay tuned!
My previous opencv blogpost:
I hope you enjoy my post on Hashnode, feel free to drop me an email about anything related to machine learning or artificial intelligence. My email is firstname.lastname@example.org. You can also check all the codes in my Github or click the following URL: https://github.com/byronwongdev/ . Please follow my twitter for more updates!