Posts

Showing posts from June, 2021

Youtube Downloader Using Python

  First of all the things you need to have to Run this Program : 1. Anaconda Navigator or any python Interpreter, Download Anaconda Navigator From Here: Anaconda Navigator 2. You need to install tkinter and pytube for your Anaconda Navigator, So simple Type Anaconda Prompt and Paste the following lines For tkinter:  conda install -c anaconda tk For pytube:  conda install pytube3 Now, From Here The Code Begins: # Importing necessary packages import tkinter as tk from tkinter import * from pytube import YouTube from tkinter import messagebox, filedialog     # Defining CreateWidgets() function # to create necessary tkinter widgets def Widgets():     link_label = Label(root,                        text="YouTube link  :",                    ...

Live Webcam Face Recognition Using Python

Image
First of all the things you need to have to Run this Program : 1. Anaconda Navigator or any python Interpreter, Download Anaconda Navigator From Here: Anaconda Navigator 2. You need to install numpy and OpenCV for your Anaconda Navigator, So simple Type Anaconda Prompt and Paste the following lines For numpy:   conda install -c anaconda numpy For OpenCV: conda install -c anaconda opencv 3. You need a Special File to Scan the face which is Haarcascade file the link is below you can find it: cascade file   Now, From Here The Code Begins: # OpenCV program to detect face in real time # import libraries of python OpenCV import cv2   # load the required trained XML classifiers face_cascade = cv2.CascadeClassifier('haarcascade_frontalface_default.xml')   # capture frames from a camera cap = cv2.VideoCapture(0)   # loop runs if capturing has been initialized. while 1:       # reads frames from a camera     ret, img = cap.read() ...