【发布时间】: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