【问题标题】:[iOS CoreImage]Does Photo Segmentation Mattes support for macOS?[iOS CoreImage]照片分割遮罩是否支持macOS?
【发布时间】:2023-03-08 02:53:01
【问题描述】:

我观看了关于“介绍照片分割遮罩”的 WWDC 2019 会议 https://developer.apple.com/videos/play/wwdc2019/260/

我查看了“AVSemanticSegmentationMatte”的 Apple 文档。 该 api 显示它适用于 macOS 10.15+ 和 Mac Catalyst 13.0+ 的 macOS。 https://developer.apple.com/documentation/avfoundation/avsemanticsegmentationmatte?language=objc

我尝试在 macOS 中实现分段遮罩。 “AVCapturePhotoOutput”类在 iOS 中有一个“enabledSemanticSegmentationMatteTypes”。 但是 'enabledSemanticSegmentationMatteTypes' 在 macOS 中不可用。

你知道如何在 macOS 中使用 AVSemanticSegmentationMatte 吗?

【问题讨论】:

    标签: ios objective-c swift macos core-image


    【解决方案1】:

    很多功能在 macOS 上拍摄时不可用,因为 MacBook 中的相机根本不提供相同的功能。但是,您可以加载在 macOS 上使用 iPhone 或 iPad 拍摄的图像中烘焙的分段遮罩(这就是该类型在那里也可用的原因)。

    【讨论】:

      猜你喜欢
      • 2021-07-20
      • 1970-01-01
      • 2014-08-09
      • 2015-03-23
      • 2014-12-07
      • 1970-01-01
      • 1970-01-01
      • 2014-02-09
      • 1970-01-01
      相关资源
      最近更新 更多