wx_human_seg 3.0.0
Public Member Functions | List of all members
wonxai::WXIDPhotoDetector Class Referencefinal

#include <wx_idphoto_detect.h>

Public Member Functions

 WXIDPhotoDetector (WXDeviceType deviceType=kDeviceCPU)
 WXIDPhotoDetector构造函数 More...
 
const std::shared_ptr< WXIDPhotoDetectResultdetect (std::shared_ptr< WXImage >inImg)
 证件照检测接口 More...
 
WXIDPhotoDetectResultdetect (const WXImage *inImg)
 证件照检测接口 More...
 
void setSettings (const std::shared_ptr< WXIDPhotoSettings > &settings)
 
void setSettings (const WXIDPhotoSettings *settings)
 

Detailed Description

WXIDPhotoDetector

class WXIDPhotoDetector

Constructor & Destructor Documentation

◆ WXIDPhotoDetector()

wonxai::WXIDPhotoDetector::WXIDPhotoDetector ( WXDeviceType  deviceType = kDeviceCPU)

WXIDPhotoDetector构造函数

Parameters
[in]deviceType使用GPU还是CPU来创建推理引擎
Note
只有证件照服务端版本的SDK才支持GPU版本的推理引擎,其他版本SDK只能使用CPU版本引擎
Exceptions
WXException

Member Function Documentation

◆ detect() [1/2]

WXIDPhotoDetectResult * wonxai::WXIDPhotoDetector::detect ( const WXImage inImg)

证件照检测接口

See also
detect

◆ detect() [2/2]

const std::shared_ptr< WXIDPhotoDetectResult > wonxai::WXIDPhotoDetector::detect ( std::shared_ptr< WXImage inImg)

证件照检测接口

Parameters
inImg待检测证件照图片
Returns
检测结果指标 WXIDPhotoDetectResult

◆ setSettings() [1/2]

void wonxai::WXIDPhotoDetector::setSettings ( const std::shared_ptr< WXIDPhotoSettings > &  settings)

检测接口参数设置, 保留,暂不使用

◆ setSettings() [2/2]

void wonxai::WXIDPhotoDetector::setSettings ( const WXIDPhotoSettings settings)

检测接口参数设置, 保留,暂不使用


The documentation for this class was generated from the following file: