Translate

03 December 2022

Generate a QRCode using PYTHON QRCode Module | PYTHON PYQRCODE.

HOW TO GENERATE OR CREATE A QRCODE USING PYTHON  

              =

                                              

What is Qrcode ? 

- Qrcode is nothing but an image containing an some information embedded in it and after scanning it the persons who scans it can get the information embedded in it as in the form of link url or some text .

So this is what the Qrcode is all about.


To create or make a qrcode with the help of python is more easy as because as it a vast an powerful programming language it has some library or packages available to make the work easy and possible with few lines of code.

Requirements :

  • Python latest version
  • Pycharm IDE
  • QRcode library installed
  • Pillow library installed  


The steps to make or create qrcode using python are as follows:


step 1 : Open you pycharm IDE and create one project named the qrcode .

step 2 : Goto the terminal of pycharm IDE or open command prompt and type the below given command. 

  • pip install qrcode
  • pip install pillow

step 3 : After this write the code given below.

#code for qrcode is this and it was written with all details of each line in comment
import qrcode
from PIL import Image
# Press the green button in the gutter to run the script.
boxsize = input("enter the qrsize : ")
qr = qrcode.QRCode(
version=3, # this version indicates the complexity of qr as it increases in number
error_correction=qrcode.constants.ERROR_CORRECT_L,
box_size=boxsize, # size of the qrcode
border=2, # indicates the border given to qrcode
)
# url input from user
url = input("enter the link that you want to embed in qr : ")
# adding data to the url
qr.add_data(url)
qr.make(fit=True)
# taking the qrcode pattern fill color from user
fcolor = input("enter the fcolor : ")
# making qrcode using make_image method
img = qr.make_image(fill_color=fcolor, back_color="white")
qr.make(fit=True)
# saving image to the the directory by user given name
imgname = input("enter the name to save the image : ")
name = imgname+".png"
img.save(name)
print("qrcode created and saved successfully....")
print("wait now opening the image...")
print("loading...")
# opening the image using the pillow library and the path was the folder name
img1 = Image.open(r"C:\Users\thakk\PycharmProjects\opencvimgprocessing"+"\\"+name)
# img1 = Image.open(r"here give path of your folder where the project is saved"+"\\"+name)
img1.show()

step 4 : Now make some changes to the second last line i.e. add the path of the folder where the project is saved.

then run the code by clicking the run button on top right 


step 5 : Now give the input as needed 


C:\Users\thakk\PycharmProjects\opencvimgprocessing\venv\Scripts\python.exe C:/Users/thakk/PycharmProjects/opencvimgprocessing/main.py

enter the qrsize : 10

enter the link that you want to embed in qr : https://www.youtube.com/@crazytechHT

enter the fcolor : red

enter the name to save the image : qrcode1

qrcode created and saved successfully....

wait now opening the image...

loading...


Process finished with exit code 0


Note : Wait for some time and let the image to opens from folder.  as sometime it take bit time to load and as it totally depends on the processor you are running on .

step 6 : Output as image opens an qrcode generated as :





Thanks for reading

visit Again











27 March 2022

MOVING BUS ANIMATION COMPUTER GRAPHICS PROGRAM IN C++ || #COMPUTERGRAPHICSANIMATIONSOURCECODE #animation #computergraphics #animationinc++ #animationusingc++

 

MOVING BUS ANIMATION COMPUTER GRAPHICS PROGRAM IN C++




SOURCE CODE :-


 /*Moving a bus*/


#include<iostream.h>

#include<conio.h>

#include<graphics.h>

#include<dos.h>


void main()

{

clrscr();

int gd=DETECT,gm,x,y;

initgraph(&gd,&gm,"C:\\tc\\bgi");

for (int i=0;i<600;i++)

{

/***bus structure ******/

line(50+i,370,120+i,370);

arc(140+i,370,0,180,20);

line(160+i,370,250+i,370);

arc(270+i,370,0,180,20);

line(290+i,370,330+i,370);


line(50+i,300,300+i,300); //top layer

line(50+i,330,330+i,330); // middle horizontal

line(290+i,370,290+i,300); //door

line(300+i,300,330+i,330);   //front slant line

circle(335+i,355,5);

line(330+i,370,330+i,330); //front straight

line(50+i,300,50+i,370);  //back straight


/***bus bindows***/

line(240+i,330,240+i,300); 

line(190+i,330,190+i,300); 

line(140+i,330,140+i,300);

line(90+i,330,90+i,300);

line(50+i,330,50+i,300);


/**outer Wheels**/

circle(140+i,370,17);

circle(140+i,370,11);

circle(140+i,370,2);

circle(270+i,370,17);

circle(270+i,370,11);

circle(270+i,370,2);


/**moon star**/

circle(190-i,170,6);

circle(320-i,200,3);

circle(320-i,150,30);

delay(15);

cleardevice();


setcolor(YELLOW);

setfillstyle(2,LIGHTRED);


line(0,390,639,390); //ROAD

 line(0,410,639,410);

}


getch();

}


VIDEO LINK



thanks for visiting

VISIT AGAIN.

16 November 2021

How to take screenshot in windows 11 if PRINT SCREENSHOT BUTTON IS NOT WORKING.



HOW TO TAKE SCREENSHOT IN WINDOWS 11



Windows 11 is a major version of the Windows NT operating system developed by Microsoft that was announced on June 24, 2021, and is the successor to Windows 10, which was released in 2015. Windows 11 was released to the public on October 5, 2021, as a free upgrade via Windows Update and Windows 11 Installation Assistant on eligible devices running Windows 10.

Windows 11 features major changes to the Windows\shell influenced by the canceled Windows 10X, including a redesigned Start menu the replacement of its "live tiles" with a separate "Widgets" panel on the taskbar, the ability to create tiled sets of windows that can be minimized and restored from the taskbar as a group, and new gaming technologies inherited from Xbox Series X and Series S such as Auto HDR and DirectStorage on compatible hardware. Internet Explorer (IE) has been replaced by the Blink engine-based Microsoft Edge as the default web browser, and Microsoft Teams is integrated into the Windows shell.


Steps to take screenshot are as follows:-


In this windows11 OS you cannot take screenshot PRINT SCREENSHOT BUTTON .So to take a screenshot you have to press "WINDOWS+SHIFT+S" in your keyboard to take a screenshot
After pressing keys "WINDOWS+SHIFT+S" you will see the popup upside like this as shown in below image.


You will see four option for taking different types of screenshot.
  • FIRST is for rectangular shape screenshot means if you dont want to take whole screenshot then you can use this option rectangular screenshot.(see image 1)
  • SECOND random screenshot here you can randomly select the portion of the screen that you have to take tyhe screenshot.(see image 2)
  • THIRD and FOURTH option is used for taking the full screen screenshot.(see image 2)


image 1


image 3



image 3


--------------------------------------------------------------------------------------------------------------------------
thank you visit again

11 November 2021

HOW TO RUN HTML, CSS AND JAVASCRIPT PROGRAMS ON ANDROID PHONE IN 2021

HOW TO RUN HTML,CSS AND JAVASCRIPT PROGRAMS ON ANDROID PHONE IN 2021


HTML ,CSS AND JAVASCRIPT ON YOUR MOBILE


WHAT IS HTML ,CSS, AND JAVASCRIPT ??

HTML means HYPERTEXT MARKUP LANGUAGE is data, CSS means CASCADING STYLESHEET is presentation, and JS means JAVASCRIPT is code. These are web technologies. These are usually brought together by a browser . and with the help of this we can make beautiful website for our work.

STEPS TO RUN HTML, CSS JAVASCRIPT IN MOBILE PHONE AS FOLLOWS:-

STEP1:-

Go to google play store and type Acode and download the app shown below.




STEP2:-

After installing open the app and click on right side 3 dots hamburger menu and click on new file



enter the file name and click on ok.

now write your code
 and to save the file click on the above shown symbol. 

Select folder to save file

Click on '+' symbol above👆 as shown in the image. 
And
Add path as shown on the below👇 image. 



Now select path by clicking on it and give name as per your choice after doing all this write your code and execute by clicking on play button on right up side. 

You can also watch our video below for all this process. 👇
to watch video 
click here

thank you visit again

10 November 2021

HOW TO RUN PYTHON PROGRAMS IN ANDROID MOBILE PHONES IN 2021

HOW TO RUN PYTHON PROGRAMS IN ANDROID MOBILE PHONES IN 2021

image

WHAT IS PYTHON ?

Python is a general-purpose interpreted, interactive, object-oriented, and high-level 
programming language. It was created by Guido van Rossum during 1985- 1990.

STEPS TO RUN PYTHON PROGRAMS IN ANDROID ARE AS FOLLOWS :-

  STEP 1:-

Go to google play store and and type pydroid 3 press enter and after pressing enter you will see the list of app and from  that list install the app shown below in the given image.

 

  STEP 2:-

After installing open the app and start coding as shown in below image.

 

CLICK ON PLAY BUTTON BELOW TO RUN THE ABOVE PROGRAM 


OUTPUT OF PYTHON PROGRAM


-----------------------------------------------------------------------------------------------------------------------

 THANK YOU 

VISIT AGAIN