wx_human_seg 3.0.0
|
#include <wx_idphoto.h>
Public Member Functions | |
WXIDPhoto (WXDeviceType deviceType=kDeviceCPU) | |
WXIDPhoto构造函数 More... | |
const std::shared_ptr< WXImage > | makeIDPhoto (const std::shared_ptr< WXImage > &inImg, const WXIDPhotoConfig &config) |
证件照制作接口 More... | |
WXImage * | makeIDPhoto (const WXImage *inImg, const WXIDPhotoConfig &config) |
证件照制作接口 More... | |
const std::shared_ptr< WXImage > | makeIDPhoto (const std::shared_ptr< WXImage > &inImg, const WXIDPhotoConfig &config, const std::shared_ptr< WXIDPhotoPreDetectResult > &preResult) |
证件照制作接口 More... | |
WXImage * | makeIDPhoto (const WXImage *inImg, const WXIDPhotoConfig &config, const WXIDPhotoPreDetectResult *preResult) |
std::shared_ptr< WXIDPhotoPreDetectResult > | preDetect (const std::shared_ptr< WXImage > &inImg) |
证件照环境检测接口 More... | |
WXIDPhotoPreDetectResult * | preDetect (const WXImage *inImg) |
证件照环境检测接口 More... | |
void | setSettings (const std::shared_ptr< WXIDPhotoSettings > &settings) |
证件照制作或者环境检测配置设置 More... | |
void | setSettings (const WXIDPhotoSettings *settings) |
证件照制作或者环境检测配置设置 More... | |
class WXIDPhoto
wonxai::WXIDPhoto::WXIDPhoto | ( | WXDeviceType | deviceType = kDeviceCPU | ) |
WXIDPhoto构造函数
[in] | deviceType | 使用GPU还是CPU来创建推理引擎 |
WXException |
const std::shared_ptr< WXImage > wonxai::WXIDPhoto::makeIDPhoto | ( | const std::shared_ptr< WXImage > & | inImg, |
const WXIDPhotoConfig & | config | ||
) |
证件照制作接口
[in] | inImg | - 待制作证件照的原图 WXImage |
[in] | config | - 证件照相关配置 WXIDPhotoConfig |
WXException |
const std::shared_ptr< WXImage > wonxai::WXIDPhoto::makeIDPhoto | ( | const std::shared_ptr< WXImage > & | inImg, |
const WXIDPhotoConfig & | config, | ||
const std::shared_ptr< WXIDPhotoPreDetectResult > & | preResult | ||
) |
证件照制作接口
[in] | inImg | 待制作证件照的原图 WXImage |
[in] | config | 证件照相关配置 WXIDPhotoConfig |
[in] | preResult | 预检测接口"preDetect"的返回值 WXIDPhotoPreDetectResult 可以为nullptr, 调用本接口前,如果已经对本图片调用了preDetect预检测接口, 并且获取了检测结果preResult,传入这个参数, 可以一定程度提升makeIDPhoto的效率, 如果没有进行预检测,本参数也可以直接传入nullptr; |
WXException |
WXImage * wonxai::WXIDPhoto::makeIDPhoto | ( | const WXImage * | inImg, |
const WXIDPhotoConfig & | config | ||
) |
证件照制作接口
WXImage * wonxai::WXIDPhoto::makeIDPhoto | ( | const WXImage * | inImg, |
const WXIDPhotoConfig & | config, | ||
const WXIDPhotoPreDetectResult * | preResult | ||
) |
证件照制作接口
std::shared_ptr< WXIDPhotoPreDetectResult > wonxai::WXIDPhoto::preDetect | ( | const std::shared_ptr< WXImage > & | inImg | ) |
WXIDPhotoPreDetectResult * wonxai::WXIDPhoto::preDetect | ( | const WXImage * | inImg | ) |
证件照环境检测接口
void wonxai::WXIDPhoto::setSettings | ( | const std::shared_ptr< WXIDPhotoSettings > & | settings | ) |
void wonxai::WXIDPhoto::setSettings | ( | const WXIDPhotoSettings * | settings | ) |