[Spec]: Helper functions for pre and post processing
@amruthasrini ya está trabajando en esto.
Desde el 19/10/2021.
Evaluación
Este issue todavía no se ha evaluado.
Descripción
WinML Helper functions Specification document
The HelperFunctions project is a set of APIs that are designed to help developers using WinML with some of the common pre-processing and post-processing tasks.
Image helpers
public static async Task<VideoFrame> ConvertBitmapToVideoFrame(SoftwareBitmap softwareBitmap)
Converts Bitmap to VideoFrame, which is accepted as a binding object
Arguments: softwareBitmap : The SoftwareBitmap object
public static async Task<TensorFloat> ConvertVideoFrameToTensor(VideoFrame videoFrame, long[] size)
Converts VideoFrame to Tensor. Useful in scenarios where Tensor manipulation is required, for example if image needs to be resized, transposed from NCHW to NWHC.
Arguments : videoframe : The VideoFrame object to be converted
Size : A long[] array containing the sizes of the each dimension of the tensor
public static async Task<SoftwareBitmap> ConvertStorageFileToSoftwareBitmap(StorageFile selectedStorageFile)
Converts StorageFile to SoftwareBitmap
public static async Task ConvertStorageFileToSoftwareBitmap(StorageFile selectedStorageFile)
Arguments : selectedStorageFile : The StorageFile object that needs to be converted
public static async Task<SoftwareBitmap> ResizeImage(SoftwareBitmap bitmap, uint height, uint width)
Resizes image based on given dimensions
public static async Task ResizeImage(SoftwareBitmap softwareBitmap, uint height, uint width)
Arguments : softwareBitmap: The SoftwareBitmap object that needs to be resized
height: Height of the image
width: Width of the image
public static async Task<SoftwareBitmap> Crop(SoftwareBitmap softwareBitmap, Rect bounds)
Crops images based on bounds provided
Arguments : softwareBitmap: The SoftwareBitmap image to be cropped
bounds: The bounds of the cropped image
ConvertNCHWToNWHC
Transposes an image from NCHW to NWHC. Used depending on what the model is looking for in the input.
public static async Task ConvertNCHWToNWHC(SoftwareBitmap softwareBitmap)
Arguments: softwareBitmap: The SoftwareBitmap object to be transposed
- Lenguaje dominante
- C#
- Estrellas
- 21
- Forks
- 0
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de CommunityToolkit/Labs-IntelligentAPIs
-
Batch Processing InterfaceAbierto
Dificultad 5/5 Más de una semana Aptitud para principiantes 25/100
-
Publish WinUI packagesQuizá libre de nuevo @amruthasrini la tomó hace 1862 días y no hay ningún pull request abierto. Abierto
CommunityToolkit/Labs-IntelligentAPIs#13 · 1 asignado ·
-
Porting to WinUI3 Desktop?Quizá libre de nuevo @amruthasrini la tomó hace 1932 días y no hay ningún pull request abierto. Abierto
CommunityToolkit/Labs-IntelligentAPIs#7 · 1 reacción · 1 asignado ·
-
Dificultad 4/5 3-5 días Aptitud para principiantes 25/100
CommunityToolkit/Labs-IntelligentAPIs#3 · 3 comentarios ·
Todos los issues de CommunityToolkit/Labs-IntelligentAPIs
Issues similares
-
[Core] IPlatformServices.PrefersDarkTheme: the desktop's theme as the signed-in user sees itAbiertoarea: core bug help wanted ready
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
ZaidX88/sluice#265 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
area: remote bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Los mantenedores suelen responder en 1 día
-
Install a C# EnvironmentAbierto📅 Sprint 4 Module-Tools Setup Submit:None 🦔 Size Tiny
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
CodeYourFuture/Module-Tools#712 ·
-
A: Mapping P3: Standard T: New Feature
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
space-wizards/space-station-14#46878 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 Medio día Aptitud para principiantes 60/100
CommunityToolkit/Windows#896 · 2 comentarios ·