Class OneDConfirmationModeConverter
- Namespace
- ScanbotSDK.MAUI.Core.Barcode
- Assembly
- ScanbotSDK.Shared.dll
Allows to select the balance between result accuracy (precision) and missed barcodes (recall) for linear barcodes. Some barcode types are naturally prone to false positives (e.g. MSI Plessey). For those barcode types false positives can be drastically reduced (precision can be increased) by requiring that multiple scan-lines in the input scan to the same result. However, this stronger condition can lead to missed barcodes (lower recall). Confirmation is avoided for barcode types, which are by design resistant to false positives, (e.g. Code128) to maximize recall.
public class OneDConfirmationModeConverter : JsonConverter<OneDConfirmationMode>
- Inheritance
-
OneDConfirmationModeConverter
- Inherited Members
Methods
Read(ref Utf8JsonReader, Type, JsonSerializerOptions)
Reads and converts the JSON to type OneDConfirmationMode.
public override OneDConfirmationMode Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
Parameters
readerUtf8JsonReaderThe reader.
typeToConvertTypeThe type to convert.
optionsJsonSerializerOptionsAn object that specifies serialization options to use.
Returns
- OneDConfirmationMode
The converted value.
Write(Utf8JsonWriter, OneDConfirmationMode, JsonSerializerOptions)
Writes a specified value as JSON.
public override void Write(Utf8JsonWriter writer, OneDConfirmationMode color, JsonSerializerOptions options)
Parameters
writerUtf8JsonWriterThe writer to write to.
colorOneDConfirmationModeoptionsJsonSerializerOptionsAn object that specifies serialization options to use.