Subscribe:

Ads 468x60px

Sunday, May 26, 2026

Eye blink detection using OpenCV in Ubuntu

Hi all

This is a simple project that i did recently. The purpose of this project is to detect the blinking of eyes. The application of this project is to detect whether the driver inside the car is sleeping or not.

Using this program, we can detect the eyes of the user and can track their eyes.  Using template matching technique, we will check whether the eyes are closed or not .. If the eyes are closed, it will print a message in terminal also execute a python script to pass control the event into external devices such as arduino or anyother boards

 Opencv code :blink_detection.cpp


Code Download




Saturday, March 16, 2026

MPI Send and Recieve | MPI Tutorials

Hi all

 I  wrote  a code which can sent 10 numbers from first process to another  process, then the other process will  resent the same data to first process.

It is an example code for understanding MPI Send and MPI Recieve functions


Sunday, March 3, 2026

How to easily install OpenCV on Raspberry Pi

Hi all

      Building opencv source code in Raspberry Pi will take about 6-7 hours.
Here is the link to install opencv from source

Easy method to install opencv

1)Connect to Raspberry Pi using ssh. Fig shows an example of connecting Rpi using ssh



Saturday, March 2, 2026

How to install Raspbian on Raspberry Pi

Hi all

    Recently i purchased a raspberry pi from Kits and spares. I am giving the link here
    http://shopping.kitsnspares.com/bon1/productdescription.asp?id=482662

    Installation instruction.

1)Select a memory card with  4 GB. Select 8GB or 16GB or  32GB will be good if you plan to do some heavy work on Raspberry Pi. Me selected the following sd card from sandisk. Here is the link

Its a 32GB ,class 10 memory card from SanDisk

2)Select a good powersupply:  Raspberry Pi requires a charger with a rating 5V 500ma-1A adapter for  normal operation. But if you want to interface more device into Rpi, either select a good charger with 5V,2A or puchase a powered usb hub.


How to install Raspbian on sdcard from Ubuntu Linux


Wednesday, January 16, 2026

How to send data to a bluetooth module from a Linux machine

Hi Guys

    This is a quick tutorial for sending data from a linux pc to a bluetooth module.

I purchased a bluetooth module from sunrom. 

Connect this bluetooth module to an arduino or any interfacing board.

Wednesday, November 21, 2025

How to open and close a process from a python script

Hi guys

     I am giving some idea about  how we can start and stop a process using a python script. This will be useful when we need to start a process that is outside the script

I am running two python scripts. One is master script, this script will start the slave script. Slave script will execute continuously upto 5 sec and it will terminated by the master script

Master script

 #!/usr/bin/python  
 import time  
 import subprocess  
 #starting process python while.py  
 proc = subprocess.Popen(["python","while.py"],shell=False)  
 #5 sec delay  
 time.sleep(5)  
 #killing process  
 subprocess.call(["kill","-9","%d" % proc.pid])  
 #waiting for killing  
 proc.wait()  
 print 'poll = ',proc.poll()  


Slave script


 #!/usr/bin/python  
 while 1:  
      print "hello"  


Output
--------

It will print hello upto 5 seconds after that it will stop and show this message







Sunday, November 4, 2025

Controlling Android Phones using Python and Linux

Hi all

  I am giving a brief tutorial on how to control android phone using python over wifi using PC.

Prerequisites on android phone

1)Wifi ADB Application: It is a tool for doing android debugging over wifi. Here is my previous tutorial about Wifi ADB


Prerequisites on PC

1)Ubuntu 12.04 


Procedure

1)Start wifi adb using above tutorial
2)Start a private server using SL4A.


Thursday, November 1, 2025

New Arduino DUE

Hi all

   There is a newcomer in the arduino board series. It's arduino due. The main feature of this board is, it comes with an ARM based controller.


Technical Specification


Microcontroller                                           AT91SAM3X8E
Operating Voltage                                           3.3V
Input Voltage (recommended)                           7-12V
Input Voltage (limits)                                   6-20V
Digital I/O Pins                                           54 (of which 12 provide PWM output)
Analog Input Pins                                           12
Analog Outputs Pins                                   2 (DAC)
Total DC Output Current on all I/O lines           130 mA
DC Current for 3.3V Pin                                   800 mA
DC Current for 5V Pin                                   800 mA
Flash Memory                                                   512 KB 
SRAM                                                           96 KB (two banks: 64KB and 32KB)
Clock Speed                                                   84 MHz