Posts

Showing posts from August, 2021

Eyes Tracking Mediapipe, part1

Image
In this Video Series, we will how to estimate the position of Eyes, in this particticular post, we will detect the landmarks of different part, of face mesh of Mediapipe. The following topics will be covered in this Tutorial. Detect Landmarks of face mesh. To draw landmarks, different parts like eyes, an oval face, eyebrows, and mouth. To draw transparent overlay using OpenCV Download Source Code Installation  You need to install mediapipe python module, others modules like OpenCV, NumPy, are requirement for mediapipe so the comes, with  that, no need to install them sepreatly here. # Windows pip install medidapipe # Linux or Mac pip3 install mediapipe Landmarks detection landmarks detection function which really simple which takes the normalized landmark, forms mediapipe, converts it image coordinate, each (x,y) point in the image, representing the pixel, corresponds to the image. This function takes, three arguments img (mat) which is nothing but image/frame(ma

Draw Transparent shape, and Text with background Opencv python

Image
 Draw text with background, and shapes with transparency OpenCV-python, it really simples, let's have a walkthrough of each function and its uses case it, every function is built upon the top of OpenCV function just I have added few extra functionalities, in case you need a source code then here is GitHub repository   utlis , just clone and import.  These functions will allow drawing, text in OpenCV in an elegant way, have you notice that when you write text on a webcam, it's tough to maintain the readability of text cause the background continuously change, the simple solution one comes up the is simply to put a background behind text, for that you to write some piece of code, to address this issue I have written these function so you can control the transparency of background, so you can add the feel of background as well, in your the project, it will surely enhance the representation of you OpenCV projects, in addition to that you have the transparent shapes, li