[Spec]: Helper functions for pre and post processing
@amruthasrini já está trabalhando nisso.
Desde 19/10/2021.
Avaliação
Esta issue ainda não foi avaliada.
Descrição
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
- Linguagem predominante
- C#
- Estrelas
- 21
- Forks
- 0
- Métricas de merge de PRs
- Nenhum PR com merge em 30d
Preparar o ambiente
Este projeto não oferece contêiner de desenvolvimento, Dockerfile nem guia de contribuição, então a configuração fica por sua conta: comece pelo README e veja nosso guia da primeira contribuição para os passos gerais.
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de CommunityToolkit/Labs-IntelligentAPIs
-
Batch Processing InterfaceAberta
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 25/100
-
Publish WinUI packagesTalvez livre de novo @amruthasrini assumiu há 1862 dias e não há nenhum pull request aberto. Aberta
CommunityToolkit/Labs-IntelligentAPIs#13 · 1 responsável ·
-
Porting to WinUI3 Desktop?Talvez livre de novo @amruthasrini assumiu há 1932 dias e não há nenhum pull request aberto. Aberta
CommunityToolkit/Labs-IntelligentAPIs#7 · 1 reação · 1 responsável ·
-
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 25/100
CommunityToolkit/Labs-IntelligentAPIs#3 · 3 comentários ·
Todas as issues de CommunityToolkit/Labs-IntelligentAPIs
Issues semelhantes
-
area: core bug help wanted ready
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 62/100
ZaidX88/sluice#265 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
area: remote bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
Mantenedores costumam responder em até 1 dia
-
Install a C# EnvironmentAberta📅 Sprint 4 Module-Tools Setup Submit:None 🦔 Size Tiny
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 70/100
CodeYourFuture/Module-Tools#712 ·
-
:watch: Not Triaged dotnet-fundamentals/svc
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 88/100
Mantenedores costumam responder em até 1 dia
-
A: Mapping P3: Standard T: New Feature
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
space-wizards/space-station-14#46878 · 2 comentários ·
Mantenedores costumam responder em até 1 dia