Skip to content

CLI Application

Preparation

Unlike Image Targets, QR Code Target training does not require input images.

Encoding Information

The content of the QR Code equals the Target name. If you wish to encode a specific string in the QR Code Target, ensure that this string only contains the following characters:

  • a-z
  • A-Z
  • 0-9
  • _

Single QR Code target training

Single QR code training requires 2 arguments:

  • Output directory
  • Input configuration (e.g. QRCodeTargetTrainingConfig.json)

QRCodeTargetTrainingConfig.json

{
  "Config.Target.Name": "VARQR_000",
  "Config.Target.Type": "QRCode",
  "QRCode.PhysicalSize": 0.22
}
The physical size of the QR code needs to be defined in meters.

Batch QR code training

Batch QR code training requires 3 arguments:

  • -B to enable batch training
  • Output directory
  • Input batch configuration (e.g. BatchQRCodeTargetTrainingConfig.json)

BatchQRCodeTargetTrainingConfig.json

{
  "Batch.Target.Type" : "QRCode",
  "Batch.Target.Name" : "BatchQRCode",
  "Batch.Config.File" : "../QRCodeTrainingConfig.json",
  "Batch.QRCodeTarget.Num" : 9
}
This sample configuration will generate 9 QR code targets with the names BatchQRCode_00000, BatchQRCode_00001, ... , BatchQRCode_00008.

QRTrainingConfig.json

{
  "QRCode.PhysicalSize": 0.22
}
The physical size of the QR codes needs to be defined in meters.

Back to top