Today, I'm here before you with a very interesting Python project and this will be a kick-off for all those who are looking forward to apply their programming knowledge into real-world problems. We are going to build a python program that will generate ID Cards in bulk.
The basic functionalities and features of this project are:
1. It will read the details of candidates from an Excel sheet (Data must be entered in the specified format as shown [Download]).
2. Write details of each candidate into images of size 500 x 700.
3. Paste the image of the candidate into the card (Images of the candidates must be saved with the same name as those in the Excel sheet).
4. Generate a QR code with the details of the candidate and fix it at the bottom of the card.
5. Save the generated ID Cards in the specified folder in '.png' format.
![]() |
| ID Card Generated |
- Pillow
manipulating, and saving many different image file formats. You can install it using pip, with the following command: pip install pillow
- QRcode
Installation: pip install QRcode
- xlrd
Installation: pip install xlrd
- Make sure you have the font 'arial.ttf' installed on your system.
So let's dive straight into the code.
Id_Card Generator.py
For example, you can use an image of the organization as the background, instead of using a plane image as we have done here. You can even add a logo of the organization, change the positions of various information, use different colors, give every employee an automatically generated Employee ID Number and lot more.
That's it, we are finished. Let's run the code and check the results.
This code is easily understandable and customizable. You can modify it in a lot more fantastic ways, all based on our creativity.
For example, you can use an image of the organization as the background, instead of using a plane image as we have done here. You can even add a logo of the organization, change the positions of various information, use different colors, give every employee an automatically generated Employee ID Number and lot more.
That's it, we are finished. Let's run the code and check the results.
| Output |
Wow..! it worked like a charm. I was able to generate five ID Cards, just within a second.
Hope you found this useful. If you have any trouble implementing this or if you need any help, feel free to comment below.
Thank You.
Hope you found this useful. If you have any trouble implementing this or if you need any help, feel free to comment below.
Thank You.
Python Project: Bulk ID Card Generator
Reviewed by Cyril Tom Mathew
on
July 15, 2019
Rating:
Reviewed by Cyril Tom Mathew
on
July 15, 2019
Rating:

No comments: