Video Demo: click here to watch youtube video
This program generates QR code images. You can create a single QR code or process a CSV file, specifying the column to generate QR codes in batch.
- generates single qr code with specified background and qr block colours.
- can generate qr codes in large batch.
- exports batch qr codes in a user named directory, to increase manageability.
when the user runs the project.py script, a command-line menu appears. It shows flags for different modes (i.e. -b for batch processing and -s for single qr code) and shows command structure for each mode and the program ends prompting the user to run the program again.
python project.pyThe single qr code mode is selected by running following command,
python project.py -sAfter that it prompts the user for any link or text to generate into qr code, colours, and size and saves the the qr code image by a default name "qrcode.png"
Batch qr mode command structure is as follows;
python project.py -b<csv_column_no> csv_filewhere,
- -b flag indicates batch mode.
- (csv_column_no) is a placeholder, user has to specify the column no of the csv file that is intended to be generated into multiple qr codes.
- csv_file to be replaced with the name of the csv file.
- the program only supports one csv file at a time
python project.py -b3 employees.csvlet's say, employees.csv contains record of employees of some company, and on column three is thier id number which is to be generated into qr codes for id cards.
when the preceeding command is executed, the user is prompted to provide colours, size , and folder name. The program stores all the qr code images in jpg format in the user specified folder, which is created if it doesn't exists. The image files are named "qr_'n'.jpg", where n starts from 0 and goes on upto the total number of qr codes.