I have implemented an auto face unlock technique using OpenCV and face recognition library.

Image for post
Image for post
Ubuntu Face

Before playing with the code, let us see the libraries that need to be installed on your Ubuntu machine.


  1. python 3.7
  2. OpenCV 4.1.0
  3. NumPy
  4. face-recognition
  5. sudo apt-get install gnome-screensaver
  6. sudo apt-get install xdotool

Below are the three python files that are just enough to achieve this!!!

1. face_generate.py

2. face_train.py

3. face_unlock.py

Demo video

1. face_generate.py

Image for post
Image for post
Generate face

As a first step, we have to generate training images to train the models. …

5 simple steps to auto rotate the image to get the right angle in the human photos using computer vision

Image for post
Image for post

The above image showed the input (left) and output (right). Let’s see how to auto rotate the image without manual rotation. These days, computer vision has evolved so much all over the world. I just played and implemented a small technique to auto rotate images using computer vision.

Steps to auto rotate the images:

  1. Read the input image.
  2. Detect Face by Caffe model.
  3. If the face is not detected then rotate the image.
  4. Again detect face with rotated images.
  5. Rotate the image with three angles until face detect.

Before going to implement this technique we will see what are the dependency library and model needed. …

Roadmap to become a data scientist from a software developer in my experience.

Image for post
Image for post
Image source:- https://www.suprevida.com.br/fotos/blog-de-mike---pt-08377449-1580222777051.jpg

Why do You want to become a data scientist?

Why? Why? This is a very important question to ask yourself before changing the direction of your career. …


Bala Venkatesh

I have a passion for understanding technology at a fundamental level and Sharing ideas and code. * Aspire to Inspire before I expire* https://balavenkatesh.com

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store