[Spec]: Helper functions for pre and post processing
@amruthasrini y travaille déjà.
Depuis le 19/10/2021.
Évaluation
Cette issue n'a pas encore été évaluée.
Description
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
- Langage dominant
- C#
- Étoiles
- 21
- Forks
- 0
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Préparer son environnement
Ce projet ne fournit ni conteneur de développement, ni Dockerfile, ni guide de contribution : l'installation est à votre charge. Commencez par son README, et consultez notre guide de la première contribution pour les étapes générales.
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de CommunityToolkit/Labs-IntelligentAPIs
-
Batch Processing InterfaceOuverte
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 25/100
-
Publish WinUI packagesPeut-être à nouveau libre @amruthasrini l’a pris il y a 1862 jours, et aucune pull request n’est ouverte. Ouverte
CommunityToolkit/Labs-IntelligentAPIs#13 · 1 personne assignée ·
-
Porting to WinUI3 Desktop?Peut-être à nouveau libre @amruthasrini l’a pris il y a 1932 jours, et aucune pull request n’est ouverte. Ouverte
CommunityToolkit/Labs-IntelligentAPIs#7 · 1 réaction · 1 personne assignée ·
-
Difficulté 4/5 3-5 jours Accessibilité débutants 25/100
CommunityToolkit/Labs-IntelligentAPIs#3 · 3 commentaires ·
Toutes les issues de CommunityToolkit/Labs-IntelligentAPIs
Issues similaires
-
[Core] IPlatformServices.PrefersDarkTheme: the desktop's theme as the signed-in user sees itOuvertearea: core bug help wanted ready
Difficulté 2/5 1-3 heures Accessibilité débutants 62/100
ZaidX88/sluice#265 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
area: remote bug
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
Les mainteneurs répondent en général sous 1 jour
-
Install a C# EnvironmentOuverte📅 Sprint 4 Module-Tools Setup Submit:None 🦔 Size Tiny
Difficulté 2/5 1-3 heures Accessibilité débutants 70/100
CodeYourFuture/Module-Tools#712 ·
-
:watch: Not Triaged dotnet-fundamentals/svc
Difficulté 1/5 Moins d'une heure Accessibilité débutants 88/100
Les mainteneurs répondent en général sous 1 jour
-
A: Mapping P3: Standard T: New Feature
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
space-wizards/space-station-14#46878 · 2 commentaires ·
Les mainteneurs répondent en général sous 1 jour