智能客服
你问我答,随时在线为你解决问题

























Class Info |
|---|
com.huawei.hiai.vision.image.segmentation.ImageSegmentation 本接口可以对输入图像中包含人像的部分进行人像分割检测,分割结果表现为人像和背景区分呈现。
|
Constructor Name |
|---|
ImageSegmentation(Context context) 构造ImageSegmentation对象。 |
Qualifier and Type |
Method Name |
|---|---|
HwHiAIResultCode |
doSegmentation(VisionImage image, ImageResult segResult, IVisionCallback cb) 图片人像分割结果,返回分割结果码。 图像语义分割结果,返回分割结果码。 视频人像分割结果,返回分割功能返回码。 |
void |
setConfiguration(SegConfiguration sc) 选择人像分割或语义分割。 |
Constructor |
|---|
public ImageSegmentation (Context context) 构造对象实例。 |
Name |
Description |
|---|---|
context |
传入应用上下文。 |
Method |
|---|
public HwHiAIResultCode doSegmentation (VisionImage image, ImageResult segResult) 图片人像分割结果,返回分割结果码。 图像语义分割结果,返回分割结果码。 视频人像分割结果,返回分割功能返回码。 |
Name |
Description |
|---|---|
image |
Bitmap类型图片数据。 |
segResult |
结果类,用于获取分割结果。 |
cb |
回调函数接口对象。
|
Type |
Description |
|---|---|
int |
执行结果返回码。 |
Method |
|---|
public void setConfiguration (SegConfiguration sc) 选择图片人像分割或图像语义分割 。 |
Name |
Description |
|---|---|
sc |
|
智能客服
你问我答,随时在线为你解决问题
合作咨询
我们的专家服务团队将竭诚为您提供专业的合作咨询服务
解决方案
精准高效的一站式服务支持,助力开发者商业成功