Skip to content

taskschd1145/Barcode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Barcode

中文

License

This project is licensed under the MIT License. See the LICENSE file for details.

Overview

This project is a tool written in Python designed to help users quickly generate barcode images in bulk. It utilizes the python-barcode library to generate barcodes and the Pillow library for image output processing.

Installation and Setup

Ensure you have Python installed. If not, visit python.org to download and install the latest version.

Run the following command in the terminal to install the necessary Python packages:

pip install python-barcode
pip install Pillow

Usage

Step 1: Get the Source Code

Download the source code of this repository

Step 2: Edit the Barcode List

Open the main.barcode file and replace its contents with the barcode data you need to generate, with each data entry on a new line.

Step 3: Run the Main Script

In the project directory, run the main.py script via the terminal:

python main.py

This will generate barcode images based on the data in main.barcode.

When the terminal prompts "Done.", the generation is complete

Step 4: View the Generated Images

The generated barcode images will be saved in the images folder. You can find and use the images from there.

Step 5: Cleanup

To avoid duplicates, it is recommended to delete all images in the images folder before running the program again.

Notes

By default, the barcode images are sized at 600x400 pixels. You can adjust this setting in the main.py file.

Note:If there is any infringement, please contact me by email or raise an issue, and it will be dealt with in time.

About

Generate barcodes in batches using Python

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages