README.md 2.89 KB
Newer Older
Yasaswini Chandolu's avatar
Yasaswini Chandolu committed
1
2
3
4
5
6
7
8
9
10
11
                                                          EVENT ATTENDANCE MANAGEMENT
**Operating System Type:** LINUX

QR code, or quick response code, is a trademark for a type of 2 dimensional barcode. 2 dimensional barcodes are similar to one dimensional barcodes, but can store more information per unit area.

**Specific QR Generator:**
	To generate a QR code to a particular input a simple code is written in python. The inbuilt used in this application is qrtools.

*QR Tools:* A suite of tools for handling QR codes.

-->qrtools contains a class QR, for which we must initially create an object. The object takes the following arguments
Madineni Aaslesha's avatar
Madineni Aaslesha committed
12
13
14
15
16
17
18
1. data      
2. pixel_size      
3. level
4. margin_size
5. data_type


Yasaswini Chandolu's avatar
Yasaswini Chandolu committed
19
20
21

**Required Installation modules:**

Madineni Aaslesha's avatar
Madineni Aaslesha committed
22
23
24
-->Python:<br>
       `sudo apt-get update` 	<br>    
       `sudo apt-get install python`<br>
Madineni Aaslesha's avatar
Madineni Aaslesha committed
25

Madineni Aaslesha's avatar
Madineni Aaslesha committed
26
27
28
-->QR tools:<br>
       `sudo apt-get update`<br>
 	   `sudo apt-get install python-qrtools`<br>
Madineni Aaslesha's avatar
Madineni Aaslesha committed
29

Madineni Aaslesha's avatar
Madineni Aaslesha committed
30
31
32
33
-->Dependency Installations: <br>
       `[sudo] pip install pypng`<br>
       `[sudo] pip install zbar`<br>
       `[sudo] pip install pillow`<br>
Madineni Aaslesha's avatar
Madineni Aaslesha committed
34

Yasaswini Chandolu's avatar
Yasaswini Chandolu committed
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56

**Code for generating QR code:**    klem/QR.py

**Batch QR Generation:**

For generating bulk amount of QR codes google spread sheets are used. Proceed with the steps to generate:

    1)Go to: drive.google.com
    2)Create a new spreadsheet.
    3)Label Column A “Text or URL.”
    4)Label Column B “QR Code.”
    5)Resize the columns and rows so they look like the screenshot below.
    6)Enter some text or URLs in column A.
    7)In Cell B2, enter this formula "=image("https://chart.googleapis.com/chart?chs=150x150&cht=qr&chl="&A2)"
    8)Press the Enter key on your keyboard.
    
    A QR code will appear.
    Click once on cell B2 to select the cell.
    Click the tiny square in the bottom-right corner of the cell and drag down to fill down the formula.
    Resize the rows and columns to make the QR codes larger or smaller.

**Webpage creation:**
Madineni Aaslesha's avatar
Madineni Aaslesha committed
57
58
59
60

1. 		 Framework: Flask
2. 		 languages: Html,CSS,Js,Python

Yasaswini Chandolu's avatar
Yasaswini Chandolu committed
61

Madineni Aaslesha's avatar
Madineni Aaslesha committed
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
Flask is considered more Pythonic than the Django web framework because in common situations the equivalent Flask web application is more explicit.
Flask is also easy to get started with as a beginner because there is little boilerplate code for getting a simple app up and running.

**Installation of Flask:**<br>
    `pip install Flask`<br>
*To work with the latest Flask code before it’s released, install or update the code from the master branch:*<br>
`pip install -U https://github.com/pallets/flask/archive/master.tar.gz`<br>
*To install virtualenv:* <br>
`sudo apt-get install python-virtualenv`<br>

**References:**<br>
QR:-https://www.geeksforgeeks.org/reading-generating-qr-codes-python-using-qrtools/<br>
Batch-QR:- http://tammyworcester.com/batch-create-qr-codes-in-google-spreadsheet/ <br>
Flask:- http://flask.pocoo.org/docs/1.0/installation/ <br>
Git:- https://github.com/pallets/flask/archive/master.tar.gz