Enum BarcodeDetectorMode
- Namespace
- VisioForge.Core.Types.X
- Assembly
- VisioForge.Core.dll
Specifies the operational mode for a barcode detector within the VisioForge X engine. This enumeration defines how the barcode detector interacts with the video processing pipeline.
public enum BarcodeDetectorModeFields
InputOnly = 0-
In this mode, the barcode detector processes the input video stream but does not pass the video frames to its output. The output pad is effectively closed, meaning no video will be rendered or further processed after detection. This is useful when only the barcode detection results are needed, and the video stream itself is not required downstream.
InputOutput = 1-
In this mode, the barcode detector processes the input video stream and then passes the original video frames to its output. This allows the video to be rendered or further processed by other components in the pipeline after barcode detection.
Examples
// Configure a barcode detector to only process the input and not pass the video through.
// barcodeDetector.Mode = BarcodeDetectorMode.InputOnly;
// Configure a barcode detector to process the input and output the original video stream.
// barcodeDetector.Mode = BarcodeDetectorMode.InputOutput;
Remarks
The choice of mode depends on whether the original video stream needs to be passed through the detector or if only the detection results are required.