Posts

Pencil Photo Sketching

Image
In the present time, we are encircled by various sorts of photograph controlling channels in our cell phones, applications… and so on In any case, do you know how they do these pictures controls… ..? In the backend, they are utilizing PC vision strategies. PC vision has a wide assortment of uses not exclusively to lessen the human exertion yet in addition utilized for diversion applications. Numerous photograph-altering applications like FaceApp, Instagram channels… and so on are utilizing PC vision procedures.  In this article, we will attempt to change over an ordinary photograph into a pencil sketch utilizing PC vision in a python programming language. In this article, we will tell the best way to change over a picture into its relating pencil sketch in a couple of steps.. Step-1: Importing required libraries import cv2 Step-2: Loading the image Using the below code snippet, we will read the image that is to be processed. img = cv2.imread('/content/pic.jpeg',  Step-3: Con...

Drowsiness Alert System

Image
Drowsiness detection is a safety technology that can prevent accidents that are caused by drivers who fell asleep while driving. The objective of this Python project is to build a drowsiness detection system that will detect that a person’s eyes are closed for a few seconds. This system will alert the driver when drowsiness is detected. Driver Drowsiness Detection System In this Python project, we will be using OpenCV for gathering the images from webcam and feed them into a Deep Learning model which will classify whether the person’s eyes are ‘Open’ or ‘Closed’. The approach we will be using for this Python project is as follows : Step 1 – Take image as input from a camera. Step 2 – Detect the face in the image and create a Region of Interest (ROI). Step 3 – Detect the eyes from ROI and feed it to the classifier.Step 4 – Classifier will categorize whether eyes are open or closed. Step 5 – Calculate score to check whether the person is drowsy. The Dataset The dataset used for this mod...

Lane Detection

Image
In a nutshell, I’ve taken the following steps to accomplish this: Correct for Camera Distortion Filter Lane Pixels Get the“Sky View” Fit the “Best-Fit” Curve Project the Lane back to the “Vehicle-View” Image 1. CAMERA CALIBRATION Because of the physical properties of a camera lens, the captured two-dimensional image isn’t perfect. There are image distortions that change the apparent size and shape of an object. More importantly it makes some objects appear closer or farther away than they actually are. Fortunately, we can measure this distortions and correct them. We can extract all the distortion information we need by having pictures of objects which we know where the certain points should be theoretically. Commonly used are chessboards on a flat surface because chessboards have regular high contrast patterns. It’s easy to imagine what an undistorted chessboard looks like. 2. PERSPECTIVE TRANSFORMATION After having the image corrected, we’d have an undistorted image of a road from th...

Facial Expression Recogonition AWS

Image
  The project idea was implemented using OpenCV-Python and aws.rekognition The aim was to predict the facial expression features of the image or frame in a video. Requirements:  Python3 library: opencv-python  https://pypi.org/project/opencv-python/ AWS account Step 1:            Sign up an aws account and create iam user service (amazon rekogmition and amazon bucket s3) enabled.          Once created iam user account download credential.csv file and copy the file to your folder location.( Note don't share your credential to anyone ) Step 2:            write a  python program to capture the video using webcam.                        Read the credential file to your program and read  aws_access_key_id  and  aws_secret_access_key. with open ( "new_user_credentials.csv" , 'r' ) as input: next (...

Hand Gesture based Simple Jump unity game

Image
This game was developed using unity and python opencv using simple hand recognition using contour. To learn more on unity visit:                https://learn.unity.com/tutorials You  should know how to use Hand Gesture Recognition in this tutorial, as well as how to communicate and make use of the data generated by the Hand Gesture Recognition in order to control a player in your Unity game. Specifially, you’ll learn: Basics of communication protocols in Networking. What is OpenCV and some of its applications. How to install, set up and run the Python version of OpenCV on your system. How to send data to a specific port via Sockets in Python. How to read data from a Socket with the help of UDP Client in Unity. Setting Up Your Scene Open the  Main  scene inside the  Scenes  folder. You can create your own game my suggestion is watch Brackeys tutorial https://www.youtube.com/channel/UCYbK_tjZ2OrIZFBvU6CCMiA If you click...

Gender Age Facial prediction

Image
Gender Age Facial prediction The project idea was implemented using OpenCV-Python and aws. The aim was to predict the gender,age and other facial features of the image or frame in a video. Requirements:  Python3 library: opencv-python  https://pypi.org/project/opencv-python/ AWS account Step 1:            Sign up an aws account and create iam user service (amazon rekogmition and amazon bucket s3) enabled.          Once created iam user account download credential.csv file and copy the file to your folder location.( Note don't share your credential to anyone ) Step 2:            write a  python program to capture the video using webcam.                        Read the credential file to your program and read  aws_access_key_id  and aws_secret_access_key. with open ( "new_user_credentials.csv" , 'r' ) as in...