MLKitImageLabelingCommon 架構參考資料

類型定義

下列類型定義適用於全球。

  • 包含標籤結果陣列的區塊,如果發生錯誤,則傳回 nil

    聲明

    Swift

    typealias ImageLabelingCallback = ([MLKImageLabel]?, Error?) -> Void

    參數

    labels

    標籤陣列會產生圖片;如果發生錯誤,則會產生 nil

    error

    錯誤或 nil