Skip to content

CLI Application

The CLI trainer application allows you to train QR codes via the terminal.

Train QR codes

  1. Starting the trainer application with no argument, or -h, or -help displays usage instructions.

  2. Single QR code training requires 2 arguments:

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

    defaultQRCodeTargetTrainingConfig.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.

  3. Batch QR code training requires 3 arguments:

    • -B
    • Output directory
    • Input batch configuration (e.g. defaultBatchQRCodeTargetTrainingConfig.json)

    defaultBatchQRCodeTargetTrainingConfig.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