Engee documentation
Notebook

QR Code Generator

In this example, let's look at generating QR codes in Engee using the Julia library. QRCoders.jl

Introduction

QR code (Quick Response) is a two—dimensional barcode that is read by image processing devices. It provides instant access to a large amount of information and is used in various
industries, from industry and retail to the advertising industry. Its generation is carried out according to well-defined rules that can be implemented on the Engee platform using the Julia language.

Getting started

Download and install the necessary libraries for this example:

In [ ]:
import Pkg; Pkg.add(["QRCoders", "Images", "ImageShow"]);

Connecting the installed libraries:

In [ ]:
using QRCoders, ImageShow, Images;

Generating the QR code of the link

We will generate the following link as a QR code.:

In [ ]:
текст = "https://start.engee.com/"

Next, we will generate and output the generated QR code to the results of the completed cell.

In [ ]:
cd("$(@__DIR__)")
exportqrcode(текст);
load("$(@__DIR__)/qrcode.png")
Out[0]:
No description has been provided for this image

You can check the correctness of the code execution using your smartphone.

QR code generation for vCard format

vCard (or VCF, Virtual Contact File) is a standard file format for storing and exchanging contact information. It is used to transfer contact data between devices, applications, and platforms. The vCard format is supported by most modern devices and programs,
including smartphones, email clients, and CRM systems.

For the convenience of transferring a vCard, it is also convenient to generate it as a QR code.
Let's define the contact information for the vCard:

In [ ]:
Фамилия = "Сидоров"
Имя = "Максим"
Отчество = "Никитич"
Пол = "M"
День_рождения = ""

Организация = "ООО ЦИТМ Экспонента"
Отдел = "Департамент маркетинга"
Должность = ""
Страна = "Россия"
Почтовый_индекс = ""
Субъект = ""
Город = "Virtual"
Округ = ""
Улица = ""
Дом = ""
Офис = ""
Телефон = "+7 (495) 009-65-85"
Сайт = "https://julia.org/"
Почта = "info@engee.com"

Creating a variable formatted as vCard:

In [ ]:
Карточка = 
"""
BEGIN:VCARD
VERSION:3.0
FN:$Фамилия $Имя $Отчество
N:$Фамилия;$Имя;$Отчество
GENDER:$Пол
BDAY:$День_рождения
ORG:$Организация;$Отдел;$Должность
ADR;TYPE=home:;$Офис;$Дом $Улица;$Округ;$Город;$Субъект;$Почтовый_индекс;$Страна
TEL;TYPE=cell:$Телефон
URL:$Сайт
EMAIL;TYPE=INTERNET:$Почта
END:VCARD
"""

Generate a QR code with a vCard:

In [ ]:
cd("$(@__DIR__)")
exportqrcode(Карточка);
load("$(@__DIR__)/qrcode.png")
Out[0]:
No description has been provided for this image

You can also check the correctness of the generation using your smartphone.
If the vCard is generated correctly, the QR code decryptor on the smartphone should suggest adding the contact data from the vCard to the contacts in the phone book.

Conclusion

In this example, we got acquainted with the capabilities of Engee and the library. QRCoders.jl for QR code generation tasks.