Add face quality detection API.
This commit is contained in:
@@ -30,6 +30,8 @@
|
||||
#include "model/CreateCorpResult.h"
|
||||
#include "model/DeleteDeviceRequest.h"
|
||||
#include "model/DeleteDeviceResult.h"
|
||||
#include "model/DeleteRecordsRequest.h"
|
||||
#include "model/DeleteRecordsResult.h"
|
||||
#include "model/GetBodyOptionsRequest.h"
|
||||
#include "model/GetBodyOptionsResult.h"
|
||||
#include "model/GetDeviceLiveUrlRequest.h"
|
||||
@@ -50,6 +52,8 @@
|
||||
#include "model/ListDevicesResult.h"
|
||||
#include "model/ListPersonsRequest.h"
|
||||
#include "model/ListPersonsResult.h"
|
||||
#include "model/RecognizeFaceQualityRequest.h"
|
||||
#include "model/RecognizeFaceQualityResult.h"
|
||||
#include "model/RecognizeImageRequest.h"
|
||||
#include "model/RecognizeImageResult.h"
|
||||
#include "model/SearchBodyRequest.h"
|
||||
@@ -85,6 +89,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DeleteDeviceResult> DeleteDeviceOutcome;
|
||||
typedef std::future<DeleteDeviceOutcome> DeleteDeviceOutcomeCallable;
|
||||
typedef std::function<void(const VcsClient*, const Model::DeleteDeviceRequest&, const DeleteDeviceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteDeviceAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteRecordsResult> DeleteRecordsOutcome;
|
||||
typedef std::future<DeleteRecordsOutcome> DeleteRecordsOutcomeCallable;
|
||||
typedef std::function<void(const VcsClient*, const Model::DeleteRecordsRequest&, const DeleteRecordsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteRecordsAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetBodyOptionsResult> GetBodyOptionsOutcome;
|
||||
typedef std::future<GetBodyOptionsOutcome> GetBodyOptionsOutcomeCallable;
|
||||
typedef std::function<void(const VcsClient*, const Model::GetBodyOptionsRequest&, const GetBodyOptionsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetBodyOptionsAsyncHandler;
|
||||
@@ -115,6 +122,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::ListPersonsResult> ListPersonsOutcome;
|
||||
typedef std::future<ListPersonsOutcome> ListPersonsOutcomeCallable;
|
||||
typedef std::function<void(const VcsClient*, const Model::ListPersonsRequest&, const ListPersonsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListPersonsAsyncHandler;
|
||||
typedef Outcome<Error, Model::RecognizeFaceQualityResult> RecognizeFaceQualityOutcome;
|
||||
typedef std::future<RecognizeFaceQualityOutcome> RecognizeFaceQualityOutcomeCallable;
|
||||
typedef std::function<void(const VcsClient*, const Model::RecognizeFaceQualityRequest&, const RecognizeFaceQualityOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RecognizeFaceQualityAsyncHandler;
|
||||
typedef Outcome<Error, Model::RecognizeImageResult> RecognizeImageOutcome;
|
||||
typedef std::future<RecognizeImageOutcome> RecognizeImageOutcomeCallable;
|
||||
typedef std::function<void(const VcsClient*, const Model::RecognizeImageRequest&, const RecognizeImageOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RecognizeImageAsyncHandler;
|
||||
@@ -153,6 +163,9 @@ namespace AlibabaCloud
|
||||
DeleteDeviceOutcome deleteDevice(const Model::DeleteDeviceRequest &request)const;
|
||||
void deleteDeviceAsync(const Model::DeleteDeviceRequest& request, const DeleteDeviceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteDeviceOutcomeCallable deleteDeviceCallable(const Model::DeleteDeviceRequest& request) const;
|
||||
DeleteRecordsOutcome deleteRecords(const Model::DeleteRecordsRequest &request)const;
|
||||
void deleteRecordsAsync(const Model::DeleteRecordsRequest& request, const DeleteRecordsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteRecordsOutcomeCallable deleteRecordsCallable(const Model::DeleteRecordsRequest& request) const;
|
||||
GetBodyOptionsOutcome getBodyOptions(const Model::GetBodyOptionsRequest &request)const;
|
||||
void getBodyOptionsAsync(const Model::GetBodyOptionsRequest& request, const GetBodyOptionsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetBodyOptionsOutcomeCallable getBodyOptionsCallable(const Model::GetBodyOptionsRequest& request) const;
|
||||
@@ -183,6 +196,9 @@ namespace AlibabaCloud
|
||||
ListPersonsOutcome listPersons(const Model::ListPersonsRequest &request)const;
|
||||
void listPersonsAsync(const Model::ListPersonsRequest& request, const ListPersonsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListPersonsOutcomeCallable listPersonsCallable(const Model::ListPersonsRequest& request) const;
|
||||
RecognizeFaceQualityOutcome recognizeFaceQuality(const Model::RecognizeFaceQualityRequest &request)const;
|
||||
void recognizeFaceQualityAsync(const Model::RecognizeFaceQualityRequest& request, const RecognizeFaceQualityAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
RecognizeFaceQualityOutcomeCallable recognizeFaceQualityCallable(const Model::RecognizeFaceQualityRequest& request) const;
|
||||
RecognizeImageOutcome recognizeImage(const Model::RecognizeImageRequest &request)const;
|
||||
void recognizeImageAsync(const Model::RecognizeImageRequest& request, const RecognizeImageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
RecognizeImageOutcomeCallable recognizeImageCallable(const Model::RecognizeImageRequest& request) const;
|
||||
|
||||
60
vcs/include/alibabacloud/vcs/model/DeleteRecordsRequest.h
Normal file
60
vcs/include/alibabacloud/vcs/model/DeleteRecordsRequest.h
Normal file
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_VCS_MODEL_DELETERECORDSREQUEST_H_
|
||||
#define ALIBABACLOUD_VCS_MODEL_DELETERECORDSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/vcs/VcsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Vcs
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_VCS_EXPORT DeleteRecordsRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DeleteRecordsRequest();
|
||||
~DeleteRecordsRequest();
|
||||
|
||||
std::string getAlgorithmType()const;
|
||||
void setAlgorithmType(const std::string& algorithmType);
|
||||
std::string getCorpId()const;
|
||||
void setCorpId(const std::string& corpId);
|
||||
std::string getAttributeName()const;
|
||||
void setAttributeName(const std::string& attributeName);
|
||||
std::string getOperatorType()const;
|
||||
void setOperatorType(const std::string& operatorType);
|
||||
std::string getValue()const;
|
||||
void setValue(const std::string& value);
|
||||
|
||||
private:
|
||||
std::string algorithmType_;
|
||||
std::string corpId_;
|
||||
std::string attributeName_;
|
||||
std::string operatorType_;
|
||||
std::string value_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_VCS_MODEL_DELETERECORDSREQUEST_H_
|
||||
55
vcs/include/alibabacloud/vcs/model/DeleteRecordsResult.h
Normal file
55
vcs/include/alibabacloud/vcs/model/DeleteRecordsResult.h
Normal file
@@ -0,0 +1,55 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_VCS_MODEL_DELETERECORDSRESULT_H_
|
||||
#define ALIBABACLOUD_VCS_MODEL_DELETERECORDSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/vcs/VcsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Vcs
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_VCS_EXPORT DeleteRecordsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DeleteRecordsResult();
|
||||
explicit DeleteRecordsResult(const std::string &payload);
|
||||
~DeleteRecordsResult();
|
||||
std::string getMessage()const;
|
||||
std::string getData()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
std::string data_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_VCS_MODEL_DELETERECORDSRESULT_H_
|
||||
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_VCS_MODEL_RECOGNIZEFACEQUALITYREQUEST_H_
|
||||
#define ALIBABACLOUD_VCS_MODEL_RECOGNIZEFACEQUALITYREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/vcs/VcsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Vcs
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_VCS_EXPORT RecognizeFaceQualityRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
RecognizeFaceQualityRequest();
|
||||
~RecognizeFaceQualityRequest();
|
||||
|
||||
std::string getCorpId()const;
|
||||
void setCorpId(const std::string& corpId);
|
||||
std::string getPicContent()const;
|
||||
void setPicContent(const std::string& picContent);
|
||||
std::string getPicFormat()const;
|
||||
void setPicFormat(const std::string& picFormat);
|
||||
|
||||
private:
|
||||
std::string corpId_;
|
||||
std::string picContent_;
|
||||
std::string picFormat_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_VCS_MODEL_RECOGNIZEFACEQUALITYREQUEST_H_
|
||||
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_VCS_MODEL_RECOGNIZEFACEQUALITYRESULT_H_
|
||||
#define ALIBABACLOUD_VCS_MODEL_RECOGNIZEFACEQUALITYRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/vcs/VcsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Vcs
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_VCS_EXPORT RecognizeFaceQualityResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
std::string description;
|
||||
std::string qualityScore;
|
||||
};
|
||||
|
||||
|
||||
RecognizeFaceQualityResult();
|
||||
explicit RecognizeFaceQualityResult(const std::string &payload);
|
||||
~RecognizeFaceQualityResult();
|
||||
std::string getMessage()const;
|
||||
Data getData()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
Data data_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_VCS_MODEL_RECOGNIZEFACEQUALITYRESULT_H_
|
||||
Reference in New Issue
Block a user