Posts

Reaction Tester

About Reaction Tester: The user has to click the squares as fast as he/she can. The square can appear in random sizes, directions, and colors.  This project calculates the reaction time of a person in seconds by storing the start time when the square appeared on the screen and also the end time when the user clicks the square. Finally, the user's reaction time is given as an output. Deployed  Reaction Tester  Link:   Click Here Source Code- HTML: <head>     <title> Reaction Tester </title>     <link rel = "stylesheet" href = "rxn.css" > </head> <body>     <div id = "header" >         <h1> Reaction Tester </h1>         <p> Click the boxes as soon as you can... </p>     </div>     <div id = "box" ></div>     <script src = "rxn.js" >     </script> </body> C...

Suspect Detection System using Template Matching in OpenCV.

Image
 Problem statement:  To detect the suspect from a photograph of a group of people. The pic of that suspect is already stored in the form of a template/patch. The project uses the concept of template matching(in OpenCV) and object detection.  Here the source image is a photograph of a group of people and the template is an image of the suspect. It compares the source and the template by finding the matching probability and encircles the portion in the source image with the maximum matching probability. Source image: Template (Suspect Image): Output: Result:  We found the suspect in the group photograph.  Code: import cv2 import numpy as np   GroupPhotograph=cv2.imread("group.png",cv2.IMREAD_UNCHANGED)   cv2.imshow("Image",GroupPhotograph) cv2.waitKey() cv2.destroyAllWindows()   Man=cv2.imread("man.png",cv2.IMREAD_UNCHANGED)   cv2.imshow("Image",Man) cv2.waitKey() cv2.destroyAllWindows()   result=cv2.matchTemplate(GroupPhotograph,Man,cv2.T...

My Project 3: (under progress)

Image
 Lifestyle Store: An online shopping website with a login page, and sign-up page using HTML, CSS, and bootstrap. index.html code: <!DOCTYPE html> <html>     <head>         <title>Lifestyle Store</title>         <meta charset="UTF-8">         <meta name="viewport" content="width=device-width, initial-scale=1.0">         <link rel="stylesheet" type="text/css" href="index.css">     </head>     <body>         <div class="header">             <div class="innerheader">                                 <div class="logo">                     <a href=" ">Lifestyle Store</a>             ...

My Project 2:

  Minor C project: Vehicle   Parking Revenue Calculator This project tells us the number of 2-wheelers (eg bikes, cycles), 3-wheelers (eg auto rickshaws), and 4-wheelers (eg cars) that got parked on that day. It also tells us the total number of vehicles present in the parking area. Finally, this project calculates parking revenue generated by various vehicles. Code: #include <stdio.h> #include<conio.h> #include<stdlib.h> int menu(); void remove(); void showdetail(); void bus(); void cycle(); void rickshaw(); int nob=0,nor=0,noc=0,count=0,amount=0; void main() {     while(1)     {         clrscr();         switch(menu())         {         case 1:bus();         break;         case 2:cy...

My Project 1:

Image
 Freedom Fighter Recognition System using OpenCV: This project uses the concept of template matching (in OpenCV) and object detection.  The project takes a source image and a template/patch. Here the source image is a collage of freedom fighters and a template (eg Bhagat Singh). It compares both source and the template by finding the matching probability and encircles the portion in the source image with maximum matching probability. Source Image: Template: Final Output: Code: import cv2 import numpy as np FreedomFighters=cv2.imread("freedomfighters.jpg",cv2.IMREAD_UNCHANGED) cv2.imshow("Image",FreedomFighters) cv2.waitKey() cv2.destroyAllWindows() BhagatSingh=cv2.imread("bhagatSinghpic.jpg",cv2.IMREAD_UNCHANGED) cv2.imshow("Image",BhagatSingh) cv2.waitKey() cv2.destroyAllWindows() result=cv2.matchTemplate(FreedomFighters,BhagatSingh,cv2.TM_CCOEFF_NORMED) min_val,max_val,min_loc,max_loc=cv2.minMaxLoc(result) h=BhagatSingh.shape[0] w=BhagatSingh.s...