Skip to main content

8 posts tagged with "tutorial"

tutorial tag description

View All Tags

Generating Stylized QR Art with Stable Diffusion & ControlNet

· 8 min read
Serhii Hrekov
software engineer, creator, artist, programmer, projects founder

Gone are the days of boring black-and-white squares! With the advent of advanced AI image generation models like Stable Diffusion, we can now create QR codes that are not only scannable but are also stunning works of art. This guide will walk you through the process of generating stylized QR codes that seamlessly blend into captivating images.

Building a URL Redirector in Python for Dynamic QR Codes

· 4 min read
Serhii Hrekov
software engineer, creator, artist, programmer, projects founder

If you print 1,000 posters with a QR code and the website URL changes next week, a "Static" QR code becomes a pile of wasted paper. The solution is a Dynamic QR code.

Instead of encoding your final destination (like myshop.com/promo-january), you encode a "Short URL" that you control (like myqr.link/offer). When a user scans it, your server looks up where offer should go today and redirects them instantly.

Exporting Python Barcode Scan Data to CSV and Excel

· 4 min read
Serhii Hrekov
software engineer, creator, artist, programmer, projects founder

Exporting your scan data is the final piece of the puzzle. While a database is great for storage, most team members prefer to see results in a spreadsheet.

In Python, the pandas library is the gold standard for this. It can read directly from your SQLite database and convert that data into a professional-looking Excel or CSV file in just a few lines of code.

Integrating Python Barcode Scanners with a Database

· 5 min read
Serhii Hrekov
software engineer, creator, artist, programmer, projects founder

Connecting your scanner to a database transforms a simple visual tool into a functional Inventory Management or Attendance System. In this walkthrough, we will use SQLite because it is built into Python, requires no external server setup, and is perfect for edge devices like a Raspberry Pi or a local laptop.

How to Decode Barcodes and Industrial 2D Codes with Python

· 6 min read
Serhii Hrekov
software engineer, creator, artist, programmer, projects founder

Building a code generator is only half the battle. In this walkthrough, we will build a high-performance scanning system capable of identifying and decoding multiple barcodes and 2D codes (QR, Data Matrix, etc.) from both static images and real-time video streams.

Generating Data Matrix and PDF417 in Python

· 5 min read
Serhii Hrekov
software engineer, creator, artist, programmer, projects founder

While QR codes are great for marketing and consumers, industrial and government applications often require formats that are either more compact or hold significantly more data. This article covers how to generate Data Matrix (popular in healthcare and aerospace) and PDF417 (the standard for ID cards and shipping) using Python.

Generating Barcodes in Python: A Step-by-Step Guide

· 5 min read
Serhii Hrekov
software engineer, creator, artist, programmer, projects founder

Generating barcodes is a surprisingly simple task in Python thanks to a few highly specialized libraries. Whether you're building an inventory system, a ticketing app, or a simple tracking tool, Python can generate industry-standard barcodes in just a few lines of code.

The most popular and robust library for this task is python-barcode.

Dataclass AttributeError Solutions

· 9 min read
Serhii Hrekov
software engineer, creator, artist, programmer, projects founder

The AttributeError is one of the most common exceptions in Python, indicating an attempt to access or set a class attribute that simply doesn't exist. When it occurs within the context of a @dataclass, it often points to a misunderstanding of how the decorator automatically generates methods like __init__ and __setattr__.

Here is a breakdown of the most frequent AttributeError scenarios involving dataclasses and the high-level solutions to resolve them.