MLKitSegmentationCommon 框架参考
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
MLKSegmentationMask
@interface MLKSegmentationMask : NSObject
分割器操作的结果。
-
掩码的分段缓冲区。
缓冲区的格式类型为 kCVPixelFormatType_OneComponent32Float
。蒙版中的每个像素都具有一个在 [0.0f, 1.0f] 范围内的值,其中 1 表示像素位于分割区域内,0 表示像素位于分割区域之外。调用方可以查询掩码以获取每像素区域值估算值,但要负责定义自己的中间值阈值。该缓冲区由 SegmentationMask
拥有,将在容器取消分配时释放,除非调用方通过 CVPixelBufferRetain()
明确保留对其的引用。
声明
Objective-C
@property (nonatomic, readonly) CVPixelBufferRef _Nonnull buffer;
-
声明
Objective-C
- (nonnull instancetype)init;
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2023-12-01。
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"没有我需要的信息"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"太复杂/步骤太多"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"内容需要更新"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"翻译问题"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"示例/代码问题"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"其他"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"易于理解"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"解决了我的问题"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"其他"
}]