Courtesy: This is not by work. But I had just "integrated" lot of open source platforms and had tried to take cues from man of wisdom !
This is classic problem in the area of Machine Learning / Deep Learning.
The problem is to identify human faces from a picture which is called Face Detection and Face Recognition is a further step ahead
to identify the faces in the picture after comparing it to a existing database of facial features.
Here I am explaining the step by step process involved in creating a program which will help turn your laptop running Ubuntu Linux
into a facial recognition box. After installing the Ubuntu Linux LTS 16.06 or later follow these steps one by one in the terminal.
sudo apt install git cmake python-opencv python-pip django
sudo apt install libboost-all-dev
git clone https://github.com/opencv/opencv.git
git checkout tags/3.2.0
git clone https://github.com/opencv/opencv_contrib
git checkout tags/3.2.0
cd opencv
mkdir build
cd build
cmake -DOPENCV_EXTRA_MODULES_PATH=../../opencv_contrib/modules ..
make -j5
pip install face_recognition
Once you have these program running , In these case I am using Intel Joule platform to generate a signal on a GPIO pen you can
avoid that part and implement an action based on your project.
Thursday, April 6, 2017
Friday, January 20, 2017
Tuesday, May 3, 2016
Python implementation of a Binary Search Tree
Here is the python implementation of a binary search tree.
Here the binary tree is printed out using preorder.
Monday, April 25, 2016
Singly Linked List Implementation in python
Below is a very simplistic implementation of a singly linked list. The linked list implementation is done using two classes Node and LinkedList. Node is a class representing each node of the linked list and LinkedList is a class representing the whole linked list itself.
Sunday, November 15, 2015
Number of lines of code
I was asked to find out the number of lines of code in our entire module so as to figure out how hard is to maintain it. Here is the source to find out the number of lines in a python project
Wednesday, November 4, 2015
Finding out the system is little endian or big endian system
Here first a value 1 is stored in a int variable. Address of that variable is taken and cast as a char
address which will work only on the first byte of the word. If a value one is available in the char then its
little endian system otherwise its big endian
Sunday, August 23, 2015
Decorator implementation in python
The decorator implementation in python is helpful while implementing add on to a particular class functionality. Here in the below example the html bold and italic properties are added to a string using the decorator implementation.
Subscribe to:
Posts (Atom)