100 static std::shared_ptr<WXIDPhotoSettings>
create();
111 virtual void setValue(
const std::string &key,
int value) = 0;
114 virtual void setValue(
const std::string &key,
float value) = 0;
117 virtual void setValue(
const std::string &key,
bool value) = 0;
120 virtual void setValue(
const std::string &key,
const std::string &data) = 0;
123 virtual void setValue(
const std::string &key,
const std::vector<int> &arr) = 0;
126 virtual void setValue(
const std::string &key,
const std::vector<float> &arr) = 0;
134 virtual int getIntValue(
const std::string &key,
int defValue=0) = 0;
150 virtual bool getBoolValue(
const std::string &key,
bool defValue=
false) = 0;
166 virtual const std::vector<int> &
getIntArray(
const std::string &key) = 0;
174 virtual const std::vector<float> &
getFloatArray(
const std::string &key) = 0;
179 virtual bool hasKey(
const std::string &key) = 0;
307 const std::shared_ptr<WXImage>
332 const std::shared_ptr<WXImage>
335 const std::shared_ptr<WXIDPhotoPreDetectResult> &preResult);
352 std::shared_ptr<WXIDPhotoPreDetectResult>
367 void setSettings(
const std::shared_ptr<WXIDPhotoSettings> &settings);
377 std::unique_ptr<WXIDPhotoImpl> _impl;
Definition: wx_idphoto.h:24
int height
Definition: wx_idphoto.h:34
unsigned short dpi
Definition: wx_idphoto.h:67
float faceRatio
Definition: wx_idphoto.h:41
int width
Definition: wx_idphoto.h:29
WXIDPhotoConfig()
Definition: wx_idphoto.h:87
std::shared_ptr< WXImage > bgImage
Definition: wx_idphoto.h:62
float eyesTop
Definition: wx_idphoto.h:48
WXIDPhotoConfig(int w, int h)
Definition: wx_idphoto.h:73
Definition: wx_idphoto.h:288
void setSettings(const std::shared_ptr< WXIDPhotoSettings > &settings)
证件照制作或者环境检测配置设置
WXImage * makeIDPhoto(const WXImage *inImg, const WXIDPhotoConfig &config, const WXIDPhotoPreDetectResult *preResult)
WXImage * makeIDPhoto(const WXImage *inImg, const WXIDPhotoConfig &config)
证件照制作接口
const std::shared_ptr< WXImage > makeIDPhoto(const std::shared_ptr< WXImage > &inImg, const WXIDPhotoConfig &config, const std::shared_ptr< WXIDPhotoPreDetectResult > &preResult)
证件照制作接口
const std::shared_ptr< WXImage > makeIDPhoto(const std::shared_ptr< WXImage > &inImg, const WXIDPhotoConfig &config)
证件照制作接口
std::shared_ptr< WXIDPhotoPreDetectResult > preDetect(const std::shared_ptr< WXImage > &inImg)
证件照环境检测接口
WXIDPhoto(WXDeviceType deviceType=kDeviceCPU)
WXIDPhoto构造函数
WXIDPhotoPreDetectResult * preDetect(const WXImage *inImg)
证件照环境检测接口
void setSettings(const WXIDPhotoSettings *settings)
证件照制作或者环境检测配置设置
Definition: wx_idphoto.h:197
virtual int sizeScore()=0
virtual const float * headPose()=0
virtual GlassesType glasses()=0
virtual int darkillum()=0
virtual int faceUnbalance()=0
virtual int eyesClose()=0
virtual int leftEmpty()=0
virtual int mouthClose()=0
virtual int rightEmpty()=0
virtual int faceOcclusion()=0
virtual int bottomEmpty()=0
virtual int faceCount()=0
Definition: wx_idphoto.h:95
virtual bool getBoolValue(const std::string &key, bool defValue=false)=0
virtual void setValue(const std::string &key, const std::vector< float > &arr)=0
virtual void setValue(const std::string &key, const std::vector< int > &arr)=0
static std::shared_ptr< WXIDPhotoSettings > create()
virtual void setValue(const std::string &key, const std::string &data)=0
static WXIDPhotoSettings * create2()
virtual const std::vector< float > & getFloatArray(const std::string &key)=0
virtual float getFloatValue(const std::string &key, float defValue=0)=0
virtual bool hasKey(const std::string &key)=0
virtual const std::vector< int > & getIntArray(const std::string &key)=0
virtual void setValue(const std::string &key, bool value)=0
virtual void setValue(const std::string &key, int value)=0
virtual void setValue(const std::string &key, float value)=0
virtual const std::string & getStringValue(const std::string &key)=0
virtual int getIntValue(const std::string &key, int defValue=0)=0
Definition: wx_image.h:15
WXDeviceType
Definition: wx_api.h:21
@ kDeviceCPU
Definition: wx_api.h:23
WXGlassesType
Definition: wx_idphoto.h:185
@ NoGlasses
Definition: wx_idphoto_c_api.h:135
@ DarkGlasses
Definition: wx_idphoto_c_api.h:139
@ NormalGlasses
Definition: wx_idphoto_c_api.h:137