Author: Ranveer Kumar

Python 3 Pygame Script to Simulate Ternary Search (Insertion Sort) Technique Animation GUI Desktop App # Python implementation of the # Sorting visualiser: Insertion Sort import pygame import random import time pygame.font.init() startTime = time.time() # Total window screen = pygame.display.set_mode( (900, 650) ) # Title and Icon pygame.display.set_caption( “TERNARY SEARCH VISUALISER” ) # Uncomment below lines for setting # up the icon for the visuliser # img = pygame.image.load(‘sorticon.png’) # pygame.display.set_icon(img) # Boolean variable to run # the program in while loop run = True # Window size and some initials width = 900 length = 600 array =…

Read More

Python 3 Pygame Script to Simulate Binary Search (Insertion Sort) Technique Animation GUI Desktop App # Python implementation of the # Sorting visualiser: Insertion Sort # Imports import pygame import random import time pygame.font.init() startTime = time.time() # Total window screen = pygame.display.set_mode( (900, 650) ) # Title and Icon pygame.display.set_caption( “BINARY SEARCH VISUALISER” ) # Uncomment below lines for setting # up the icon for the visuliser # img = pygame.image.load(‘sorticon.png’) # pygame.display.set_icon(img) # Boolean variable to run # the program in while loop run = True # Window size and some initials width = 900 length = 600…

Read More

Python 3 Pygame Script to Simulate Monty Hall Problem’s Animation GUI Desktop App import pygame import random pygame.init() white = (255, 255, 255) X = 1200 Y = 650 doors = random.sample(range(1, 4), 3) goat1 = doors[0] goat2 = doors[1] goats = [goat1, goat2] car = doors[2] display_surface = pygame.display.set_mode((X, Y)) pygame.display.set_caption(‘Simulation’) image = pygame.image.load(‘all_doors.jpg’) change = False msg_disp = False def music(): file = ‘click.mp3’ pygame.mixer.init() pygame.mixer.music.load(file) pygame.mixer.music.play() def show_car(car, state): my_font = pygame.font.SysFont(“latoblack”, 26) display_surface = pygame.display.set_mode((X, Y)) car1 = pygame.image.load(‘car_1.jpg’) car2 = pygame.image.load(‘car_2.jpg’) car3 = pygame.image.load(‘car_3.jpg’) if car == 1: display_surface.blit(car1, (0, 0)) pygame.display.update() elif car ==…

Read More

Python 3 OpenCV Script to Process MP4 Video Images and Perform Smoothing, Edge Detection & Bitwise Operations # importing the necessary libraries import cv2 import numpy as np # Creating a VideoCapture object to read the video cap = cv2.VideoCapture(‘sample.mp4’) # Loop until the end of the video while (cap.isOpened()): # Capture frame-by-frame ret, frame = cap.read() frame = cv2.resize(frame, (540, 380), fx = 0, fy = 0, interpolation = cv2.INTER_CUBIC) # Display the resulting frame cv2.imshow(‘Frame’, frame) # conversion of BGR to grayscale is necessary to apply this operation gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY) # adaptive thresholding to use different…

Read More

I, first of all, might want to say thanks to them for looking through my article. The justification for that is such countless articles however many thanks for perusing my article. Python 3 Content to Get Work area operating system Screen Goal (Width and Level) in Order Line We will find out about this obviously through the article. Python 3 Script to Get Desktop OS Monitor Screen Resolution (Width and Height) in Command Line from win32api import GetSystemMetrics print(“Width =”, GetSystemMetrics(0)) print(“Height =”, GetSystemMetrics(1)) Final Words Python 3 Content to Get Work area operating system Screen Goal (Width and Level)…

Read More

Hi, Python 3 Tkinter Content to Fabricate Guitar Tuner Music Instrument GUI Work area Application Utilizing Numpy Library We will know the liveliness. There are many intriguing realities with regards to this article. We should continue on toward the articles Python 3 Tkinter Script to Build Guitar Tuner Music Instrument GUI Desktop App Using Numpy Library import tkinter import tkinter.messagebox import os import sys import json import requests import webbrowser import time import numpy as np import random from distutils.version import StrictVersion as Version from tuner_audio.audio_analyzer import AudioAnalyzer from tuner_audio.threading_helper import ProtectedList from tuner_audio.sound_thread import SoundThread from tuner_appearance_manager.color_manager import ColorManager…

Read More

According to an international study, Peru is one of the countries where the search for “ sugar daddy ” and “sugar baby” is reported in Latin America. The figures say it. One of the most popular applications to find “sugar daddies” and ” sugar babies ” worldwide, has presented the most recent results of its study. In this sense, Peru has qualified as one of the countries in search of these particular couples, with more than 95,000 people interested in finding them. Here we tell you the details. Peru and its search for “sugar daddies” and “sugar babies” According to…

Read More

Construct a Sound or Sound Recorder Android Application in Android Studio Utilizing Java Article has numerous implications. We will know this subject plainly through this article. We want to believe that you like this article. Build an Audio or Sound Recorder Android App in Android Studio Using Java package com.example.myaudiorecorder.myaudiorecorder; import android.Manifest; import android.content.pm.PackageManager; import android.media.MediaRecorder; import android.os.Environment; import android.support.v4.app.ActivityCompat; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import java.io.File; public class MainActivity extends AppCompatActivity { MediaRecorder mediaRecorder; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); ActivityCompat.requestPermissions(this, new String[]{Manifest.permission.WRITE_EXTERNAL_STORAGE}, PackageManager.PERMISSION_GRANTED); ActivityCompat.requestPermissions(this, new String[]{Manifest.permission.RECORD_AUDIO}, PackageManager.PERMISSION_GRANTED); mediaRecorder = new MediaRecorder(); } public void startRecording(View…

Read More

Hello peruser! Do you know a certain something? Utilizing this article, you can undoubtedly Panik Codes – New Codes. The robot initially seems typical, however after some time he goes into alarm mode and starts searching for you. You can take part in an assortment of extra in-game exercises. Make cautious to utilize all Panik Codes so you can get valuable money and different merchandise that you can utilize anyway you pick. Engineers will set a termination date for each Panik Code they produce. This demonstrates that they will ultimately terminate. You will not have the option to utilize them…

Read More

You might have perused many articles however I trust the Python 3 Tkinter PyPDF2 Content to Part or Join PDF Record into Numerous Pages GUI Work area Application article will fulfill every one of your questions. The justification for that will be that I have composed this article so as to fulfill every one of your questions. Python 3 Tkinter PyPDF2 Script to Split or Splice PDF Document into Multiple Pages GUI Desktop App import tkinter as tk from tkinter.filedialog import askopenfilename from tkinter import messagebox import os from math import ceil, floor from PyPDF2 import PdfFileReader, PdfFileWriter output_folder_path =…

Read More