Tire & Automotive

Tire Size

Preset Config

// init the Anyline SDK with a preset config
anyline = window.anylinejs.init({
    preset: 'tire_size',
    license: demoLicense,
    element: root,
    anylinePath: '../anylinejs',
});

Example Config

config: {
  module: 'tire',
  tirePlugin: {
    "tireSizeConfig":{
      upsideDownMode: 'auto',
    }
  }
}

Config Parameters

  • minConfidence

Results with lower confidence than minConfidence get rejected automatically. This value is a number between 0 and 100. The default is 60.

Tire Size Result

With release 42 the result format for tire size changed from an array to a dictionary. To access the "text" element of the result you can use result.text instead of result[1].text. Now you can also get other tire properties individually by key, for example result.width or result.speedRating.

Tire ID

Preset Config

// init the Anyline SDK with a preset config
anyline = window.anylinejs.init({
    preset: 'tire_id',
    license: demoLicense,
    element: root,
    anylinePath: '../anylinejs',
});

Example Config

config: {
  module: 'tire',
  tirePlugin: {
    commercialTireIdConfig: {
      upsideDownMode: 'auto',
    }
  }
}

Config Parameters

  • minConfidence

Results with lower confidence than minConfidence get rejected automatically. This value is a number between 0 and 100. The default is 60.

Tire ID Result

[{
"confidence": {
  "confidence": 82,
  "identifier": "text",
  "text": "196022173"
}]

Tire Identification Number

Preset Config

// init the Anyline SDK with a preset config
anyline = window.anylinejs.init({
    preset: 'tin',
    license: demoLicense,
    element: root,
    anylinePath: '../anylinejs',
});

Example Config

config: {
  module: 'tire',
  tirePlugin: {
    tinConfig: {
      upsideDownMode: 'auto',
      scanMode: 'universal',
    },
  },
},

Config Parameters

  • validationRegex

Sets a regular expression which the TIN text needs to match in order to trigger a scan result. Note that this option is ignored if validateProductionDate is true.

  • validateProductionDate

Sets wether the production date validation is enabled. If it is set to false the scan result is also returned for invalid and missing dates. Defaults to true.

  • minConfidence

Results with lower confidence than minConfidence get rejected automatically. This value is a number between 0 and 100. The default is 60.

  • upsideDownMode

  • auto

    Will automatically detect if the tire is upside down or not.

  • enabled

    Will always scan the tire upside down.

  • disabled

    Will always scan the tire right side up.

  • scanMode

Tire Identification Number Result

[{
"confidence": {
  "confidence": 99,
  "identifier": "text",
  "text": "DOTY9RYFPUFJP2618
}]

VIN

Example Config

config: {
  module: 'ocr',
  vinConfig: {
  }
}

Config Parameters

  • validationRegex

    We internally check if the scan result conforms to the VIN specifications, but if you would like to use your custom check you can set here a regex. An alphanumeric string that has to conform to ECMAScript regex.

  • charWhitelist

    We internally set the character whitelist according to VIN specifications, but if needed you can customize it here as an alphanumeric string.

License Plate

Preset Config

// init the Anyline SDK with a preset config
anyline = window.anylinejs.init({
    preset: 'lpt',
    license: demoLicense,
    element: root,
    anylinePath: '../anylinejs',
});

Example Config

config: {
    module: 'lpt',
    licensePlateConfig: {
      scanMode: 'auto',
      minConfidence: 50,
    }
}

Example Config for US License Plates

config: {
    module: 'lpt',
    licensePlateConfig: {
      scanMode: "unitedstates"
    },
}

Config Parameters

  • scanMode

  • auto

    Will automatically detect the European country

  • (individual country)
    • austria

    • unitedkingdom

    • ireland

    • poland

    • norway

    • norwayspecial

    • germany

    • czech

    • finland

    • france

    • croatia

    • slovakia

    • slovenia

    • albania

    • andorra

    • armenia

    • azerbaijan

    • belarus

    • belgium

    • bosniaandherzegovina

    • bulgaria

    • cyprus

    • denmark

    • estonia

    • georgia

    • greece

    • hungary

    • iceland

    • italy

    • latvia

    • liechtenstein

    • lithuania

    • luxembourg

    • malta

    • moldova

    • monaco

    • montenegro

    • netherlands

    • northmacedonia

    • portugal

    • romania

    • russia

    • serbia

    • spain

    • sweden

    • switzerland

    • turkey

    • ukraine

    • unitedstates

  • minConfidence

Results with lower confidence than minConfidence get rejected automatically. This value is a number between 0 and 100. The default is 60.