Interface IYoloDetectionPreprocessor

Namespace
NT2I.ONNX.Abstractions.Interfaces.Yolo
Assembly
NT2I.ONNX.Abstractions.dll

Définit le contrat pour un pré-processeur spécifique aux modèles de détection YOLO.

public interface IYoloDetectionPreprocessor : IPreprocessor, IDisposable
Inherited Members

Methods

BatchProcessBGR(byte[][], int[], int[], int, int, int)

Prétraite un batch d'images au format BGR.

IDataHandlingResult BatchProcessBGR(byte[][] PackedBGRBatchBuffer, int[] widthsPerImage, int[] heightsPerImage, int batchSize, int targetWidth, int targetHeight)

Parameters

PackedBGRBatchBuffer byte[][]
widthsPerImage int[]
heightsPerImage int[]
batchSize int
targetWidth int
targetHeight int

Returns

IDataHandlingResult

Un résultat de traitement contenant les données du batch prêtes pour l'inférence.

BatchProcessPlanar(byte[][], byte[][], byte[][], int[], int[], int, int, int)

Prétraite un batch d'images au format planaire.

IDataHandlingResult BatchProcessPlanar(byte[][] PlanarBatchBuffer_R, byte[][] PlanarBatchBuffer_G, byte[][] PlanarBatchBuffer_B, int[] widthsPerImage, int[] heightsPerImage, int batchSize, int targetWidth, int targetHeight)

Parameters

PlanarBatchBuffer_R byte[][]
PlanarBatchBuffer_G byte[][]
PlanarBatchBuffer_B byte[][]
widthsPerImage int[]
heightsPerImage int[]
batchSize int
targetWidth int
targetHeight int

Returns

IDataHandlingResult

Un résultat de traitement contenant les données du batch prêtes pour l'inférence.

ProcessBGR(byte[], int, int, int, int)

Prétraite une seule image au format BGR.

IDataHandlingResult ProcessBGR(byte[] PackedBGRBuffer, int imageWidth, int imageHeight, int targetWidth, int targetHeight)

Parameters

PackedBGRBuffer byte[]
imageWidth int
imageHeight int
targetWidth int
targetHeight int

Returns

IDataHandlingResult

Un résultat de traitement contenant les données prêtes pour l'inférence.

ProcessPlanar(byte[], byte[], byte[], int, int, int, int)

Prétraite une seule image au format planaire.

IDataHandlingResult ProcessPlanar(byte[] PlanarBuffer_R, byte[] PlanarBuffer_G, byte[] PlanarBuffer_B, int imageWidth, int imageHeight, int targetWidth, int targetHeight)

Parameters

PlanarBuffer_R byte[]
PlanarBuffer_G byte[]
PlanarBuffer_B byte[]
imageWidth int
imageHeight int
targetWidth int
targetHeight int

Returns

IDataHandlingResult

Un résultat de traitement contenant les données prêtes pour l'inférence.