8#ifndef WX_IDPHOTO_DETECT_H_
9#define WX_IDPHOTO_DETECT_H_
21class WXIDPhotoDetectorImpl;
75 virtual int getInt(
const std::string &key) = 0;
85 virtual float getFloat(
const std::string &key) = 0;
95 virtual bool getBool(
const std::string &key) = 0;
105 virtual const std::string&
getString(
const std::string &key) = 0;
115 virtual const std::vector<int> &
getIntArray(
const std::string &key) = 0;
125 virtual const std::vector<float> &
getFloatArray(
const std::string &key) = 0;
130 virtual bool exists(
const std::string &key) = 0;
135 virtual std::vector<std::string>
keys() = 0;
166 const std::shared_ptr<WXIDPhotoDetectResult>
180 void setSettings(
const std::shared_ptr<WXIDPhotoSettings> &settings);
189 std::unique_ptr<WXIDPhotoDetectorImpl> _impl;
Definition: wx_idphoto_detect.h:62
virtual const std::vector< int > & getIntArray(const std::string &key)=0
virtual const std::string & getString(const std::string &key)=0
virtual bool exists(const std::string &key)=0
virtual const std::vector< float > & getFloatArray(const std::string &key)=0
virtual std::vector< std::string > keys()=0
virtual int getInt(const std::string &key)=0
virtual std::string dumps()=0
virtual bool getBool(const std::string &key)=0
virtual float getFloat(const std::string &key)=0
Definition: wx_idphoto_detect.h:149
WXIDPhotoDetectResult * detect(const WXImage *inImg)
证件照检测接口
WXIDPhotoDetector(WXDeviceType deviceType=kDeviceCPU)
WXIDPhotoDetector构造函数
void setSettings(const WXIDPhotoSettings *settings)
void setSettings(const std::shared_ptr< WXIDPhotoSettings > &settings)
const std::shared_ptr< WXIDPhotoDetectResult > detect(std::shared_ptr< WXImage >inImg)
证件照检测接口
Definition: wx_idphoto.h:95
Definition: wx_image.h:15
WXDeviceType
Definition: wx_api.h:21
@ kDeviceCPU
Definition: wx_api.h:23