Skip to main content

Overview of Experimental Features

This chapter explains how to use the models and APIs that the EdgeOCR SDK provides as experimental.

About experimental features

Experimental models may have unstable accuracy or performance. Experimental APIs may change or be removed in future versions. If you use them in production, verify them thoroughly first.

Guides​

Getting experimental models​

Experimental models are not included in availableModels(). Use availableModelsWithExperimental() to get a list that includes experimental models. You load the model with useModel, the same as any other model.

// Find a model by UID in the list that includes experimental models
guard let model = edgeOCR.availableModelsWithExperimental()
.first(where: { $0.getUID() == "barcode_next" }) else {
fatalError("Model not found")
}
let modelInfo = try await edgeOCR.useModel(model, settings: ModelSettings())

Compiler warnings​

On some platforms, using experimental APIs produces a warning. The warning does not affect behavior, so you can keep using the API once you understand what it means.

  • iOS (Swift): Calling availableModelsWithExperimental() on a variable of the EdgeVisionAPI protocol type shows a deprecation warning. Calling it on a variable of type EdgeOCR does not.
  • Android (Java): Experimental APIs carry the @ExperimentalEdgeVisionAPI annotation, and Android Lint shows a warning (UnsafeOptInUsageWarning).

Experimental models​

The following models are available only through availableModelsWithExperimental().

Model UIDDescriptionRelated page
barcode_nextHigh-accuracy barcode recognitionExperimental Barcode Recognition
barcode_dpmDPM code recognition with AIReading DPM Codes with AI
note

A model that contains an experimental model as one of its parts is also experimental. For example, a model you define yourself that includes barcode_dpm must also be retrieved through availableModelsWithExperimental().

Experimental APIs​

APIDescriptionRelated page
availableModelsWithExperimental()Get the model list including experimental modelsThis page
NextBarcodeRecognizerSettingsSettings for high-accuracy barcode recognitionExperimental Barcode Recognition
Barcode.getRawData() / Barcode.getEncodingRanges()Get the binary data and encodings of a barcodeExperimental Barcode Recognition
YotsukaDDetectorSettingsConfidence threshold of the barcode detectorDetector Settings
postProcessing in DBTextDetectorSettingsPost-processing of text detection resultsDetector Settings