Skip to main content

Posts

Showing posts with the label python project

Volume Control With Hand Using Python || How do you controll gestures in Python - Creation Code

Introduction: Gesture recognition helps computers to understand human body language. This helps to build a more potent link between humans and machines, rather than just the basic text user interface or graphical user interfaces(GUIs). In this project for gesture recognition, the human body's motions are read by a computer camera. The computer then makes use of this data as input to handle applications. The objective of this project is to develop an interface that will capture human hand gestures dynamically and will control the volume level Code: import cv2 import mediapipe as mp from math import hypot from ctypes import cast , POINTER from comtypes import CLSCTX_ALL from pycaw . pycaw import AudioUtilities , IAudioEndpointVolume import numpy as np cap = cv2 . VideoCapture ( 0 ) mpHands = mp . solutions .hands hands = mpHands .Hands() mpDraw = mp . solutions .drawing_utils devices = AudioUtilities . GetSpeakers () interface = devices .Activate( IAudioEnd

How to Make DNA in Python || Program to print DNA Pattern in Python - Creation Code

 This will be a short program but it will be enjoyable for you so let's enjoy the coding  Code: c=input() if len(c)>1:    c=c[0] if len(c)<1:    c="#" Turns=4 s=" " def bids(a,b,c="",d=""):     return(a+b+c+d) def strand():     print(bids(s*19,c))     print(bids(s*17,c*4))     print(bids(s*16,c*6))     print(bids(s*14,c*2,s*6,c*2))     print(bids(s*12,c*14))     print(bids(s*11,c*2,s*12,c*2))     print(bids(s*11,c*16))     print(bids(s*12,c*2,s*10,c*2))     print(bids(s*14,c*10))     print(bids(s*16,c*2,s*2,c*2))     print(bids(s*17,c*4))     print(bids(s*18,c*2)) for i in range(Turns):          strand() Follow my socials: Youtube: https://www.youtube.com/channel/UCU1qNFntn7dCi9uqyvrGKOg Instagram:  https://www.instagram.com/python.math/ Twitter: https://twitter.com/Pritish369 For any question or coding discussion, you can join my discord or telegram: Discord: https://discord.gg/be7MmSuV Telegram: https://t.me/Python_Math_Community

Print Your Name Using Python || write a program to print your name in pattern - Creation Code

 Printing Your Name Using a Python Programm In this post, we will write a program where we will take the user's name as input and in output, we will show them the pattern of their name. It will be really fun so let's jump into the code without wasting any time from random import randrange #Function print_text_in_symbol def print_text_in_symbol(text_input, symbol_char = 'X', symbol_bg = '-', inline = False):          #Lists for the formation of the letters     a = ['000000000000',          '000111111000',          '011000000110',          '011000000110',          '011111111110',          '011000000110',          '011000000110',          '011000000110']          b = ['000000000000',          '011111111000',          '011000000110',          '011000000110',          '011111111000',          '011000000110',          '011000000110',          '01

How to Make a Social Distancing Detector || social distancing detector using python || social distancing-detection using python github - Creation Code

Social Distancing: In public health, social distancing, also called physical distancing, is a set of non-pharmaceutical interventions or measures intended to prevent the spread of a contagious disease by maintaining a physical distance between people and reducing the number of times people come into close contact with each other. It usually involves keeping a certain distance from others(the distance specified differs from country to country and can change with time) and avoiding gathering together in large groups. Now let's build this system in python Approach: First we will create utils for the project Second we will plot the points also known as birds view Now we will create the main program utills.py import cv2 import numpy as np # Function to calculate bottom center for all bounding boxes and transform prespective for all points. def get_transformed_points ( boxes , prespective_transform ):         bottom_points = []     for box in boxes :         pnts = np . array