Enable OCR VIN support

How to enable #

OCR support currently only makes sense when scanning for VIN codes. barKoder SDK is mainly for scanning barcodes so we've focused our efforts on those cases (VIN).

OCR currently does not work as a document scanner

To enable OCR VIN for barKoder SDK

  1. Ensure you're using a license key that has OCR enabled.
  2. Enable OCR in the decoder configuration:
                guard let decoderConfig = barkoderView.config?.decoderConfig else { return } // Enable OCR functionality 
decoderConfig.setcustomOption("enable_ocr_functionality", value: 1) // Enable OCRText symbology 
decoderConfig.ocrText.enabled = true // Optional: enable other barcode types alongside OCR 
decoderConfig.code39.enabled = true // enableVINRestrictions (only decode VIN-compliant barcodes / strings)
decoderConfig.enableVINRestrictions = true 
            

Release Information #

OCR VIN has been added in version 1.6.7

Page Contents