5#ifndef WX_HUMAN_MATTING_C_API_H_
6#define WX_HUMAN_MATTING_C_API_H_
21 JNIEnv *jniEnv, jobject applicationContext,
23 const char *licenseFilePath);
25 JNIEnv *jniEnv, jobject applicationContext,
27 uint8_t *licData,
size_t licSize);
45 const char* licenseFilePath);
63 uint8_t *licData,
size_t licSize);
128 const uint8_t *inRGB,
WXDeviceType
Definition: wx_api.h:21
WX_API const char * WXSDK_Version()
获取sdk版本号
WX_API int WXSDKLicense_ExpiredAt(uint64_t *expiredAt)
获取当前license文件的有效期过期时间戳,单位为秒
WX_API int WXHumanMatting_RemoveBackground(WXHumanMatting_t *matting, const WXImage_t *inImage, const WXImage_t *bkImage, WXImage_t **resultImg_p)
图片去背景或换背景
WX_API const char * WXSDKLicense_LicenseId()
获取当前license文件的licenseId
WX_API int WXSDKLicense_ValidFrom(uint64_t *validFrom)
获取当前license文件的有效期起始时间戳,单位为秒
WX_API int WXHumanMatting_Create(WXDeviceType deviceType, WXHumanMatting_t **matting_p)
WX_API void WXHumanMatting_Release(WXHumanMatting_t *matting)
WX_API int WXSDKInitWithLicenseData(const char *appKey, uint8_t *licData, size_t licSize)
初始化SDK,并且通过内存数据的方式,为SDK设置license,
WX_API int WXSDKInitWithLicenseFile(const char *appKey, const char *licenseFilePath)
初始化SDK,并且通过文件方式,为SDK设置license,
WX_API void WXSDK_Terminate()
程序退出前,调用本函数释放资源
WX_API const char * WXSDK_GetLastErrorMsg()
struct WXHumanMatting_t WXHumanMatting_t
Definition: wx_human_matting_c_api.h:92
WX_API int WXHumanMatting_Matting(WXHumanMatting_t *matting, const uint8_t *inRGB, int width, int height, float *outAlpha)
matting函数,输入rgb像素图,输出alpha图
struct WXImage_t WXImage_t
Definition: wx_image_c_api.h:38