[Spec]: Helper functions for pre and post processing
@amruthasrini 已經在處理了。
開始於 2021年10月19日。
評估
這個 Issue 還沒有評估資料。
描述
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
- 主要語言
- C#
- 星號
- 21
- 分支
- 0
- PR 合併指標
- 30 天內沒有已合併 PR
環境準備
這個專案沒有提供開發容器、Dockerfile 或貢獻指南,環境需要你自己搭建:先看它的 README,通用步驟見我們的新手貢獻指南。
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
CommunityToolkit/Labs-IntelligentAPIs 的其他 Issue
-
難度 5/5 一週以上 新手友好度 25/100
-
Publish WinUI packages可能重新可做 @amruthasrini 於 1862 天前認領,目前沒有進行中的 PR。 未關閉
CommunityToolkit/Labs-IntelligentAPIs#13 · 已指派 1 人 ·
-
Porting to WinUI3 Desktop?可能重新可做 @amruthasrini 於 1932 天前認領,目前沒有進行中的 PR。 未關閉
CommunityToolkit/Labs-IntelligentAPIs#7 · 1 個 reaction · 已指派 1 人 ·
-
難度 4/5 3-5 天 新手友好度 25/100
CommunityToolkit/Labs-IntelligentAPIs#3 · 3 則留言 ·
查看 CommunityToolkit/Labs-IntelligentAPIs 的全部 Issue
相似的 Issue
-
area: core bug help wanted ready
難度 2/5 1-3 小時 新手友好度 62/100
維護者通常 1 天內回覆
-
area: remote bug
難度 2/5 1-3 小時 新手友好度 68/100
維護者通常 1 天內回覆
-
📅 Sprint 4 Module-Tools Setup Submit:None 🦔 Size Tiny
難度 2/5 1-3 小時 新手友好度 70/100
CodeYourFuture/Module-Tools#712 ·
-
:watch: Not Triaged dotnet-fundamentals/svc
難度 1/5 1 小時以內 新手友好度 88/100
維護者通常 1 天內回覆
-
A: Mapping P3: Standard T: New Feature
難度 2/5 1-3 小時 新手友好度 68/100
space-wizards/space-station-14#46878 · 2 則留言 ·
維護者通常 1 天內回覆