Eye Ball Detection in MATLAB

Buy This Project Hello friends, I hope you all are doing great. In today's tutorial, I am going to share Eye Ball Detection in MATLAB. I have designed this simulation in MATLAB and I have designed a GUI in which I am detection the Eye Balls from Images. Our team has worked quite hard in designing this project so we haven't shared the code for free. Instead we have placed a very small amount and you can buy it from our shop via PayPal. Click the above button in order to buy the project. If you are having any difficulty in buying this project then you can also ask in comments and we will surely help you out. Moreover, this algorithm has a small restriction that the person's eyes must be open in the image and his/her eye balls must be clearly visible otherwise this algo won't work on it. I have added 10 images in the database which will help you in understanding the main algorithm of this project. So, let's get started with Eye Ball Detection in MATLAB:

Eye Ball Detection in MATLAB

  • So, first of all, click the below button in order to buy this Eye Ball Detection Project in MATLAB.

Buy This Simulation

  • Once you download the files, then open the files named as MainGUI.m.
  • Note, you must have MATLAB 2015 or higher in order to run this program correctly.
  • It will open up a window which will look something as shown in below figure:
  • One thing you should remember that MATLAB is not much good with graphics so you may have to change your axes' sizes.
  • Anyways now click the button which says Browse and open any of the images present in the folder and then click Load Image button.
  • I have opened the below image:
  • If everything goes fine then you will get results something as shown in below figure:
  • So, you can see in the above figure that I have labelled all the images of Eye Ball Detection in MATLAB.
  • These labels are actually the steps in which we are doing our Eye Ball Detection.
  • So, first of all I cropped the Pair of eyes and shown it in the Figure 2.
  • After that I gray scaled the image and it is shown in Figure3.
  • Next thing we need to do is to crop single eye from the pair of eyes which is done in Figure 4.
  • In Figure 5, I have simply converted my gray scale image into binary image.
  • In Figure 6, I have applied some filters to make it more smooth and to ignore noises.
  • In Figure 7, I have taken the inverse of image in Figure 6. That's why now Eye Ball is showing in white color and rest of the background is in black.
  • In Figure 8 and 9, I have applied filters, filters are always used to remove noise and to make figure more visible.
  • In figure 10, I have taken the edges of the previous image.
  • Finally in Figure 11, I have detected the circular region and then plotted a circle around it and I have done the same thing in Figure 12.
  • Here's the results of another image for Eye Ball Detection in MATLAB:
  • As, I have told earlier that our team has done a lot of effort in designing this project that's why we haven't shared its code but you can buy it quite easily from our shop by clicking the above button.
  • Moreover, I have designed this video which will help you better in understanding this project.
  • So, please must watch this video before buying this simulation so that you are sure what you are buying. you can also contact us if you are having any problems in buying it.
  • Here's the video for EyeBall Detection in Matlab:
So, that's all about Eye Ball Detection in MATLAB. I hope you guys have enjoyed today's post. Will meet you guys in the next tutorial. Till then take care and have fun !!! :)

Interfacing of Keypad with PIC Microcontroller

Hello everyone, I hope you all are doing great. Today, I am going to share a very basic tutorial on PIC Microcontroller, which is Interfacing of Keypad with PIC Microcontroller. I have designed this simulation of Keypad with PIC Microcontroller in Proteus ISIS and the simulation along with code is given below for download. But I would suggest you to read it first and then design it on your own so that you learn most out of it. In today's tutorial, I am not gonna discuss the details of How keypad works because I have discussed it in detail in my old tutorial Interfacing of Keypad with Arduino so if you don't have much idea about working of keypad then I would recommend you to read that tutorial first, before proceeding with today's tutorial. I have also interface this Keypad with 8051 Microcontroller, so today we are gonna interface this keypad with PIC Microcontroller. I have written programming code for this project in MikroC Pro For PIC. So, let's get started with Interfacing of Keypad with PIC Microcontroller:

Interfacing of Keypad with PIC Microcontroller

  • First of all, you can download the Simulation for this project along with programming code by clicking the below button:

Download Code & Simulation

  • Now, let's design it step by step.
  • I have used LCD Library for Proteus so download it first and then run this simulation.
  • First of all, design a simple simulation in Proteus software as shown in below figure:
  • Now paste the below programming code in MikroC Pro For PIC.
  • In this Programming code, the key pressed on keypad will be displayed on the LCD.
  • So, when you press any button on the keypad, it will appear on the LCD.
  • Here's the code which you need to use in MikroC Pro For PIC:
unsigned short kp, cnt, oldstate = 0;
char txt[6];

char  keypadPort at PORTD;

sbit LCD_RS at RB0_bit;
sbit LCD_EN at RB1_bit;
sbit LCD_D4 at RB2_bit;
sbit LCD_D5 at RB3_bit;
sbit LCD_D6 at RB4_bit;
sbit LCD_D7 at RB5_bit;

sbit LCD_RS_Direction at TRISB0_bit;
sbit LCD_EN_Direction at TRISB1_bit;
sbit LCD_D4_Direction at TRISB2_bit;
sbit LCD_D5_Direction at TRISB3_bit;
sbit LCD_D6_Direction at TRISB4_bit;
sbit LCD_D7_Direction at TRISB5_bit;


void main() {
  cnt = 0;
  Keypad_Init();
  Lcd_Init();
  Lcd_Cmd(_LCD_CLEAR);
  Lcd_Cmd(_LCD_CURSOR_OFF);
  Lcd_Out(3, 2, "The Engineering");
  Lcd_Out(4, 5, "Projects");
   Lcd_Out(1, 1, "Key Pressed:");

  do {
    kp = 0;
    do
      kp = Keypad_Key_Click();
    while (!kp);
    
    switch (kp) {
      case 10: kp = 42; break;  // '*'
      case 11: kp = 48; break;  // '0'
      case 12: kp = 35; break;  // '#'
      case  1: kp = 49; break; // 1
      case  2: kp = 50; break; // 2
      case  3: kp = 51; break; // 3
      case  4: kp = 65; break; // A
      case  5: kp = 52; break; // 4
      case  6: kp = 53; break; // 5
      case  7: kp = 54; break; // 6
      case  8: kp = 66; break; // B
      case  9: kp = 55; break; // 7
      case 10: kp = 56; break; // 8
      case 11: kp = 57; break; // 9
      case 12: kp = 67; break; // C
      case 13: kp = 42; break; // *
      case 14: kp = 48; break; // 0
      case 15: kp = 35; break; // #
      case 16: kp = 68; break; // D

    }

    Lcd_Chr(1, 14, kp);
  } while (1);
}
  • Now get your hex file and upload it in your Proteus Simulation.
  • Run your simulation and if everything goes fine then you will get results as shown in below figure:
  • So, in the above figure, I have pressed button 5 on the keypad and it is shown on the LCD.
  • Here's the video demonstration which will help you better in understanding this project:
So, that's how we can interface our Keypad with PIC Microcontroller. If you got into any trouble following this tutorial then ask your problems in the comments and I will help you out. That's all for today, I hope you guys can now interface keypad with PIC Microcontroller easily. :)
Syed Zain Nasir

I am Syed Zain Nasir, the founder of <a href=https://www.TheEngineeringProjects.com/>The Engineering Projects</a> (TEP). I am a programmer since 2009 before that I just search things, make small projects and now I am sharing my knowledge through this platform.I also work as a freelancer and did many projects related to programming and electrical circuitry. <a href=https://plus.google.com/+SyedZainNasir/>My Google Profile+</a>

Share
Published by
Syed Zain Nasir