Skip to main content

Posts

Make a Virtual Pen and Eraser Using Python || Virtual Pen and Eraser Using OpenCV || Draw Using a Virtual Pen || Creation Code

 Introduction The project aims to create a virtual pen and eraser using OpenCV and python. This project is very simple and easy to implement. The code is given in this article which you can easily copy and paste into a file and run it on your machine. In this article, we will be using OpenCV for detection of the mouse movements, PyQt5 for GUI creation, Numpy for storing data as well as NumPy array manipulation functions such as slicing and indexing along with Pandas Dataframes which are very helpful while working with Numpy arrays. Virtual Pen and Eraser Using OpenCV In this section, you will learn how to create a virtual pen and eraser by using OpenCV. The first step is importing the required Python libraries. We need to import the cv2 module from opencv library import cv2 import numpy as np This project aims to create a virtual pen and eraser using OpenCV and Python The project aims to create a virtual pen and eraser using opencv and python. This is a very interesting topic for th

How to Make Gesture Controlled Snake Game in Python || Python code for snake game - Creation Code

 How to make a snake game in python? History of Snake Game: Snake is a video game genre where the player maneuvers a growing line that becomes a primary obstacle to itself. The concept originated in the 1975 two-player arcade game Blockade from Gremlin Industries, and the ease of implementation has led to hundreds of versions (some of which have the word snake or worm in the title) for many segments. After a variant was preloaded on Nokia mobile phones in 1998, there was a resurgence of interest in snake games as it found a larger audience. There are several hundred snake games for iOS alone. Modules: cv2 cvzone matplotlib scipy sklearn Roadmap: Problems Our first work will be to againcognising the hand Then find the point of the finger Now we will going to create a point with the finger We need to create a logic where the point will increase as we move the finger Next step is to stop the snake game when the coordinate of the points clash with each other Create random foods for the sna

How to Make a Page Loading Animation Using CSS || Horizontal spinner effect using CSS - Creation Code

  Page Loader Using CSS: In this post, we will create a spinner loading effect using CSS. A loader can create an excellent user experience in your app or website. This loader animation will be a horizontal effect and you can use it before loading your page. Explanation: 1. First, create an HTML file and make a span section with class loader < span class =" loader "></ span > 2. Now give the loader class a suitable height and width with some adjustment . loader {     margin: 600 px ;     width: 100 px ;     height: 100 px ;     position: relative ; } 3. Create the before and after effect  . loader :: before , . loader :: after {     content: '';     position: absolute ;     width: inherit ;     height: inherit ;     border-radius: 50 % ;     mix-blend-mode: multiply ;     animation: rotate 1 s infinite     cubic-bezier ( 0.77 , 0 , 0.175 , 1 ); } 4. Give it your favourite colour . loader :: before {     background-color: #fc3f9e; } . loader :: after

Live IPL Score Using Python || Python Code for Live Cricket Score || IPL Match Detail Program in Python || Live Cricket Score - Creation Code

  Live IPL Score Using Python Hello coders, we are going to learn how we can create a GUI application to build a live score updater using python. We are going to use web scraping using BeautifulSoup class from bs4. We will use the crickbuzz for scraping Module to Be used: tkinter - Preinstalled module request - For requesting the webserver bs4 - It is used for web scraping Installation: pip install request pip install beautifulsoup4 Code: from tkinter import * import requests from bs4 import BeautifulSoup # create instance for window root = Tk () # set title for window root. title (" Indian Premier League ") # screen color configure root. config ( background = " skyblue ") # cricbuzz url to get score updates url = " https://www.cricbuzz.com/ " def get_score ():     # request data from cricbuzz     page = requests. get ( url )     soup = BeautifulSoup ( page . text ,' html.parser ')     # name of first team     team_1 = soup. find_all ( cl

Build a Ship Using Only CSS || CSS Animation Project || CSS Design Code || Modern CSS Design - Creation Code

Build a Ship Using Only CSS CSS is a tool for web designers to be unique by creating unique designs and patterns in a website. You can master CSS by creating unique projects and practicing a lot. In this post, we will build a ship using only CSS. #img1 Explanation: This is our project, we are going to build this project. Now you can create it very easily. If you look at the img1 then you can find that the hole design is based on squares and lines. #img2 The top part(ship) and the body(body1 and body2) of the ship is basically boxes so our idea is to build this using the border property of CSS.  Using border and giving these it some height and width we can create these boxes very easily. But if we create these boxes then we need to minus the bottom part of the boxes it can be done by  border-bottom-color:black border-bottom:none You can choose any of the above   div . ship {     border-width: 10 px ;     height: 44 px ;     width: 80 px ;     margin-left: 150 px ;     margin-top: 100 px