Update MergeImageFace.
This commit is contained in:
@@ -39,8 +39,6 @@ set(facebody_public_header_model
|
||||
include/alibabacloud/facebody/model/CompareFaceResult.h
|
||||
include/alibabacloud/facebody/model/CompareFaceWithMaskRequest.h
|
||||
include/alibabacloud/facebody/model/CompareFaceWithMaskResult.h
|
||||
include/alibabacloud/facebody/model/CountCrowdRequest.h
|
||||
include/alibabacloud/facebody/model/CountCrowdResult.h
|
||||
include/alibabacloud/facebody/model/CreateFaceDbRequest.h
|
||||
include/alibabacloud/facebody/model/CreateFaceDbResult.h
|
||||
include/alibabacloud/facebody/model/DeleteFaceRequest.h
|
||||
@@ -59,8 +57,6 @@ set(facebody_public_header_model
|
||||
include/alibabacloud/facebody/model/DetectChefCapResult.h
|
||||
include/alibabacloud/facebody/model/DetectFaceRequest.h
|
||||
include/alibabacloud/facebody/model/DetectFaceResult.h
|
||||
include/alibabacloud/facebody/model/DetectIPCPedestrianRequest.h
|
||||
include/alibabacloud/facebody/model/DetectIPCPedestrianResult.h
|
||||
include/alibabacloud/facebody/model/DetectInfraredLivingFaceRequest.h
|
||||
include/alibabacloud/facebody/model/DetectInfraredLivingFaceResult.h
|
||||
include/alibabacloud/facebody/model/DetectLivingFaceRequest.h
|
||||
@@ -127,8 +123,6 @@ set(facebody_public_header_model
|
||||
include/alibabacloud/facebody/model/RetouchSkinResult.h
|
||||
include/alibabacloud/facebody/model/SearchFaceRequest.h
|
||||
include/alibabacloud/facebody/model/SearchFaceResult.h
|
||||
include/alibabacloud/facebody/model/SwapFacialFeaturesRequest.h
|
||||
include/alibabacloud/facebody/model/SwapFacialFeaturesResult.h
|
||||
include/alibabacloud/facebody/model/UpdateFaceEntityRequest.h
|
||||
include/alibabacloud/facebody/model/UpdateFaceEntityResult.h
|
||||
include/alibabacloud/facebody/model/VerifyFaceMaskRequest.h
|
||||
@@ -154,8 +148,6 @@ set(facebody_src
|
||||
src/model/CompareFaceResult.cc
|
||||
src/model/CompareFaceWithMaskRequest.cc
|
||||
src/model/CompareFaceWithMaskResult.cc
|
||||
src/model/CountCrowdRequest.cc
|
||||
src/model/CountCrowdResult.cc
|
||||
src/model/CreateFaceDbRequest.cc
|
||||
src/model/CreateFaceDbResult.cc
|
||||
src/model/DeleteFaceRequest.cc
|
||||
@@ -174,8 +166,6 @@ set(facebody_src
|
||||
src/model/DetectChefCapResult.cc
|
||||
src/model/DetectFaceRequest.cc
|
||||
src/model/DetectFaceResult.cc
|
||||
src/model/DetectIPCPedestrianRequest.cc
|
||||
src/model/DetectIPCPedestrianResult.cc
|
||||
src/model/DetectInfraredLivingFaceRequest.cc
|
||||
src/model/DetectInfraredLivingFaceResult.cc
|
||||
src/model/DetectLivingFaceRequest.cc
|
||||
@@ -242,8 +232,6 @@ set(facebody_src
|
||||
src/model/RetouchSkinResult.cc
|
||||
src/model/SearchFaceRequest.cc
|
||||
src/model/SearchFaceResult.cc
|
||||
src/model/SwapFacialFeaturesRequest.cc
|
||||
src/model/SwapFacialFeaturesResult.cc
|
||||
src/model/UpdateFaceEntityRequest.cc
|
||||
src/model/UpdateFaceEntityResult.cc
|
||||
src/model/VerifyFaceMaskRequest.cc
|
||||
|
||||
@@ -40,8 +40,6 @@
|
||||
#include "model/CompareFaceResult.h"
|
||||
#include "model/CompareFaceWithMaskRequest.h"
|
||||
#include "model/CompareFaceWithMaskResult.h"
|
||||
#include "model/CountCrowdRequest.h"
|
||||
#include "model/CountCrowdResult.h"
|
||||
#include "model/CreateFaceDbRequest.h"
|
||||
#include "model/CreateFaceDbResult.h"
|
||||
#include "model/DeleteFaceRequest.h"
|
||||
@@ -60,8 +58,6 @@
|
||||
#include "model/DetectChefCapResult.h"
|
||||
#include "model/DetectFaceRequest.h"
|
||||
#include "model/DetectFaceResult.h"
|
||||
#include "model/DetectIPCPedestrianRequest.h"
|
||||
#include "model/DetectIPCPedestrianResult.h"
|
||||
#include "model/DetectInfraredLivingFaceRequest.h"
|
||||
#include "model/DetectInfraredLivingFaceResult.h"
|
||||
#include "model/DetectLivingFaceRequest.h"
|
||||
@@ -128,8 +124,6 @@
|
||||
#include "model/RetouchSkinResult.h"
|
||||
#include "model/SearchFaceRequest.h"
|
||||
#include "model/SearchFaceResult.h"
|
||||
#include "model/SwapFacialFeaturesRequest.h"
|
||||
#include "model/SwapFacialFeaturesResult.h"
|
||||
#include "model/UpdateFaceEntityRequest.h"
|
||||
#include "model/UpdateFaceEntityResult.h"
|
||||
#include "model/VerifyFaceMaskRequest.h"
|
||||
@@ -170,9 +164,6 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::CompareFaceWithMaskResult> CompareFaceWithMaskOutcome;
|
||||
typedef std::future<CompareFaceWithMaskOutcome> CompareFaceWithMaskOutcomeCallable;
|
||||
typedef std::function<void(const FacebodyClient*, const Model::CompareFaceWithMaskRequest&, const CompareFaceWithMaskOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CompareFaceWithMaskAsyncHandler;
|
||||
typedef Outcome<Error, Model::CountCrowdResult> CountCrowdOutcome;
|
||||
typedef std::future<CountCrowdOutcome> CountCrowdOutcomeCallable;
|
||||
typedef std::function<void(const FacebodyClient*, const Model::CountCrowdRequest&, const CountCrowdOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CountCrowdAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateFaceDbResult> CreateFaceDbOutcome;
|
||||
typedef std::future<CreateFaceDbOutcome> CreateFaceDbOutcomeCallable;
|
||||
typedef std::function<void(const FacebodyClient*, const Model::CreateFaceDbRequest&, const CreateFaceDbOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateFaceDbAsyncHandler;
|
||||
@@ -200,9 +191,6 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DetectFaceResult> DetectFaceOutcome;
|
||||
typedef std::future<DetectFaceOutcome> DetectFaceOutcomeCallable;
|
||||
typedef std::function<void(const FacebodyClient*, const Model::DetectFaceRequest&, const DetectFaceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DetectFaceAsyncHandler;
|
||||
typedef Outcome<Error, Model::DetectIPCPedestrianResult> DetectIPCPedestrianOutcome;
|
||||
typedef std::future<DetectIPCPedestrianOutcome> DetectIPCPedestrianOutcomeCallable;
|
||||
typedef std::function<void(const FacebodyClient*, const Model::DetectIPCPedestrianRequest&, const DetectIPCPedestrianOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DetectIPCPedestrianAsyncHandler;
|
||||
typedef Outcome<Error, Model::DetectInfraredLivingFaceResult> DetectInfraredLivingFaceOutcome;
|
||||
typedef std::future<DetectInfraredLivingFaceOutcome> DetectInfraredLivingFaceOutcomeCallable;
|
||||
typedef std::function<void(const FacebodyClient*, const Model::DetectInfraredLivingFaceRequest&, const DetectInfraredLivingFaceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DetectInfraredLivingFaceAsyncHandler;
|
||||
@@ -302,9 +290,6 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::SearchFaceResult> SearchFaceOutcome;
|
||||
typedef std::future<SearchFaceOutcome> SearchFaceOutcomeCallable;
|
||||
typedef std::function<void(const FacebodyClient*, const Model::SearchFaceRequest&, const SearchFaceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SearchFaceAsyncHandler;
|
||||
typedef Outcome<Error, Model::SwapFacialFeaturesResult> SwapFacialFeaturesOutcome;
|
||||
typedef std::future<SwapFacialFeaturesOutcome> SwapFacialFeaturesOutcomeCallable;
|
||||
typedef std::function<void(const FacebodyClient*, const Model::SwapFacialFeaturesRequest&, const SwapFacialFeaturesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SwapFacialFeaturesAsyncHandler;
|
||||
typedef Outcome<Error, Model::UpdateFaceEntityResult> UpdateFaceEntityOutcome;
|
||||
typedef std::future<UpdateFaceEntityOutcome> UpdateFaceEntityOutcomeCallable;
|
||||
typedef std::function<void(const FacebodyClient*, const Model::UpdateFaceEntityRequest&, const UpdateFaceEntityOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateFaceEntityAsyncHandler;
|
||||
@@ -343,9 +328,6 @@ namespace AlibabaCloud
|
||||
CompareFaceWithMaskOutcome compareFaceWithMask(const Model::CompareFaceWithMaskRequest &request)const;
|
||||
void compareFaceWithMaskAsync(const Model::CompareFaceWithMaskRequest& request, const CompareFaceWithMaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CompareFaceWithMaskOutcomeCallable compareFaceWithMaskCallable(const Model::CompareFaceWithMaskRequest& request) const;
|
||||
CountCrowdOutcome countCrowd(const Model::CountCrowdRequest &request)const;
|
||||
void countCrowdAsync(const Model::CountCrowdRequest& request, const CountCrowdAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CountCrowdOutcomeCallable countCrowdCallable(const Model::CountCrowdRequest& request) const;
|
||||
CreateFaceDbOutcome createFaceDb(const Model::CreateFaceDbRequest &request)const;
|
||||
void createFaceDbAsync(const Model::CreateFaceDbRequest& request, const CreateFaceDbAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateFaceDbOutcomeCallable createFaceDbCallable(const Model::CreateFaceDbRequest& request) const;
|
||||
@@ -373,9 +355,6 @@ namespace AlibabaCloud
|
||||
DetectFaceOutcome detectFace(const Model::DetectFaceRequest &request)const;
|
||||
void detectFaceAsync(const Model::DetectFaceRequest& request, const DetectFaceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DetectFaceOutcomeCallable detectFaceCallable(const Model::DetectFaceRequest& request) const;
|
||||
DetectIPCPedestrianOutcome detectIPCPedestrian(const Model::DetectIPCPedestrianRequest &request)const;
|
||||
void detectIPCPedestrianAsync(const Model::DetectIPCPedestrianRequest& request, const DetectIPCPedestrianAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DetectIPCPedestrianOutcomeCallable detectIPCPedestrianCallable(const Model::DetectIPCPedestrianRequest& request) const;
|
||||
DetectInfraredLivingFaceOutcome detectInfraredLivingFace(const Model::DetectInfraredLivingFaceRequest &request)const;
|
||||
void detectInfraredLivingFaceAsync(const Model::DetectInfraredLivingFaceRequest& request, const DetectInfraredLivingFaceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DetectInfraredLivingFaceOutcomeCallable detectInfraredLivingFaceCallable(const Model::DetectInfraredLivingFaceRequest& request) const;
|
||||
@@ -475,9 +454,6 @@ namespace AlibabaCloud
|
||||
SearchFaceOutcome searchFace(const Model::SearchFaceRequest &request)const;
|
||||
void searchFaceAsync(const Model::SearchFaceRequest& request, const SearchFaceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SearchFaceOutcomeCallable searchFaceCallable(const Model::SearchFaceRequest& request) const;
|
||||
SwapFacialFeaturesOutcome swapFacialFeatures(const Model::SwapFacialFeaturesRequest &request)const;
|
||||
void swapFacialFeaturesAsync(const Model::SwapFacialFeaturesRequest& request, const SwapFacialFeaturesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SwapFacialFeaturesOutcomeCallable swapFacialFeaturesCallable(const Model::SwapFacialFeaturesRequest& request) const;
|
||||
UpdateFaceEntityOutcome updateFaceEntity(const Model::UpdateFaceEntityRequest &request)const;
|
||||
void updateFaceEntityAsync(const Model::UpdateFaceEntityRequest& request, const UpdateFaceEntityAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdateFaceEntityOutcomeCallable updateFaceEntityCallable(const Model::UpdateFaceEntityRequest& request) const;
|
||||
|
||||
@@ -35,6 +35,7 @@ namespace AlibabaCloud
|
||||
struct Data
|
||||
{
|
||||
std::string imageURL;
|
||||
std::string maskURL;
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -1,54 +0,0 @@
|
||||
/*
|
||||
* 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_FACEBODY_MODEL_COUNTCROWDREQUEST_H_
|
||||
#define ALIBABACLOUD_FACEBODY_MODEL_COUNTCROWDREQUEST_H_
|
||||
|
||||
#include <alibabacloud/facebody/FacebodyExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Facebody {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_FACEBODY_EXPORT CountCrowdRequest : public RpcServiceRequest {
|
||||
public:
|
||||
CountCrowdRequest();
|
||||
~CountCrowdRequest();
|
||||
bool getFormatResultToJson() const;
|
||||
void setFormatResultToJson(bool formatResultToJson);
|
||||
bool getIsShow() const;
|
||||
void setIsShow(bool isShow);
|
||||
std::string getOssFile() const;
|
||||
void setOssFile(const std::string &ossFile);
|
||||
std::string getRequestProxyBy() const;
|
||||
void setRequestProxyBy(const std::string &requestProxyBy);
|
||||
std::string getImageURL() const;
|
||||
void setImageURL(const std::string &imageURL);
|
||||
|
||||
private:
|
||||
bool formatResultToJson_;
|
||||
bool isShow_;
|
||||
std::string ossFile_;
|
||||
std::string requestProxyBy_;
|
||||
std::string imageURL_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Facebody
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_FACEBODY_MODEL_COUNTCROWDREQUEST_H_
|
||||
@@ -1,56 +0,0 @@
|
||||
/*
|
||||
* 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_FACEBODY_MODEL_COUNTCROWDRESULT_H_
|
||||
#define ALIBABACLOUD_FACEBODY_MODEL_COUNTCROWDRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/facebody/FacebodyExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Facebody
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_FACEBODY_EXPORT CountCrowdResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
int peopleNumber;
|
||||
std::string hotMap;
|
||||
};
|
||||
|
||||
|
||||
CountCrowdResult();
|
||||
explicit CountCrowdResult(const std::string &payload);
|
||||
~CountCrowdResult();
|
||||
Data getData()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
Data data_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_FACEBODY_MODEL_COUNTCROWDRESULT_H_
|
||||
@@ -1,66 +0,0 @@
|
||||
/*
|
||||
* 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_FACEBODY_MODEL_DETECTIPCPEDESTRIANREQUEST_H_
|
||||
#define ALIBABACLOUD_FACEBODY_MODEL_DETECTIPCPEDESTRIANREQUEST_H_
|
||||
|
||||
#include <alibabacloud/facebody/FacebodyExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Facebody {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_FACEBODY_EXPORT DetectIPCPedestrianRequest : public RpcServiceRequest {
|
||||
public:
|
||||
DetectIPCPedestrianRequest();
|
||||
~DetectIPCPedestrianRequest();
|
||||
bool getFormatResultToJson() const;
|
||||
void setFormatResultToJson(bool formatResultToJson);
|
||||
bool getContinueOnError() const;
|
||||
void setContinueOnError(bool continueOnError);
|
||||
std::string getOssFile() const;
|
||||
void setOssFile(const std::string &ossFile);
|
||||
int getHeight() const;
|
||||
void setHeight(int height);
|
||||
std::string getImageData() const;
|
||||
void setImageData(const std::string &imageData);
|
||||
std::string getRequestProxyBy() const;
|
||||
void setRequestProxyBy(const std::string &requestProxyBy);
|
||||
std::string getDataId() const;
|
||||
void setDataId(const std::string &dataId);
|
||||
std::string getImageURL() const;
|
||||
void setImageURL(const std::string &imageURL);
|
||||
int getWidth() const;
|
||||
void setWidth(int width);
|
||||
|
||||
private:
|
||||
bool formatResultToJson_;
|
||||
bool continueOnError_;
|
||||
std::string ossFile_;
|
||||
int height_;
|
||||
std::string imageData_;
|
||||
std::string requestProxyBy_;
|
||||
std::string dataId_;
|
||||
std::string imageURL_;
|
||||
int width_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Facebody
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_FACEBODY_MODEL_DETECTIPCPEDESTRIANREQUEST_H_
|
||||
@@ -1,67 +0,0 @@
|
||||
/*
|
||||
* 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_FACEBODY_MODEL_DETECTIPCPEDESTRIANRESULT_H_
|
||||
#define ALIBABACLOUD_FACEBODY_MODEL_DETECTIPCPEDESTRIANRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/facebody/FacebodyExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Facebody
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_FACEBODY_EXPORT DetectIPCPedestrianResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
struct ImageInfoListItem
|
||||
{
|
||||
struct Element
|
||||
{
|
||||
float score;
|
||||
std::vector<std::string> boxes;
|
||||
};
|
||||
std::string dataId;
|
||||
std::string errorCode;
|
||||
std::vector<ImageInfoListItem::Element> elements;
|
||||
std::string errorMessage;
|
||||
};
|
||||
std::vector<ImageInfoListItem> imageInfoList;
|
||||
};
|
||||
|
||||
|
||||
DetectIPCPedestrianResult();
|
||||
explicit DetectIPCPedestrianResult(const std::string &payload);
|
||||
~DetectIPCPedestrianResult();
|
||||
Data getData()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
Data data_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_FACEBODY_MODEL_DETECTIPCPEDESTRIANRESULT_H_
|
||||
@@ -40,6 +40,8 @@ public:
|
||||
void setMergeInfos(const std::vector<MergeInfos> &mergeInfos);
|
||||
std::string getUserId() const;
|
||||
void setUserId(const std::string &userId);
|
||||
std::string getWatermarkType() const;
|
||||
void setWatermarkType(const std::string &watermarkType);
|
||||
std::string getOssFile() const;
|
||||
void setOssFile(const std::string &ossFile);
|
||||
std::string getTemplateId() const;
|
||||
@@ -57,6 +59,7 @@ private:
|
||||
bool formatResultToJson_;
|
||||
std::vector<MergeInfos> mergeInfos_;
|
||||
std::string userId_;
|
||||
std::string watermarkType_;
|
||||
std::string ossFile_;
|
||||
std::string templateId_;
|
||||
std::string requestProxyBy_;
|
||||
|
||||
@@ -1,63 +0,0 @@
|
||||
/*
|
||||
* 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_FACEBODY_MODEL_SWAPFACIALFEATURESREQUEST_H_
|
||||
#define ALIBABACLOUD_FACEBODY_MODEL_SWAPFACIALFEATURESREQUEST_H_
|
||||
|
||||
#include <alibabacloud/facebody/FacebodyExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Facebody {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_FACEBODY_EXPORT SwapFacialFeaturesRequest : public RpcServiceRequest {
|
||||
public:
|
||||
SwapFacialFeaturesRequest();
|
||||
~SwapFacialFeaturesRequest();
|
||||
std::string getTargetImageURL() const;
|
||||
void setTargetImageURL(const std::string &targetImageURL);
|
||||
bool getFormatResultToJson() const;
|
||||
void setFormatResultToJson(bool formatResultToJson);
|
||||
std::string getSourceImageData() const;
|
||||
void setSourceImageData(const std::string &sourceImageData);
|
||||
std::string getOssFile() const;
|
||||
void setOssFile(const std::string &ossFile);
|
||||
std::string getSourceImageURL() const;
|
||||
void setSourceImageURL(const std::string &sourceImageURL);
|
||||
std::string getTargetImageData() const;
|
||||
void setTargetImageData(const std::string &targetImageData);
|
||||
std::string getRequestProxyBy() const;
|
||||
void setRequestProxyBy(const std::string &requestProxyBy);
|
||||
std::string getEditPart() const;
|
||||
void setEditPart(const std::string &editPart);
|
||||
|
||||
private:
|
||||
std::string targetImageURL_;
|
||||
bool formatResultToJson_;
|
||||
std::string sourceImageData_;
|
||||
std::string ossFile_;
|
||||
std::string sourceImageURL_;
|
||||
std::string targetImageData_;
|
||||
std::string requestProxyBy_;
|
||||
std::string editPart_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Facebody
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_FACEBODY_MODEL_SWAPFACIALFEATURESREQUEST_H_
|
||||
@@ -1,55 +0,0 @@
|
||||
/*
|
||||
* 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_FACEBODY_MODEL_SWAPFACIALFEATURESRESULT_H_
|
||||
#define ALIBABACLOUD_FACEBODY_MODEL_SWAPFACIALFEATURESRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/facebody/FacebodyExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Facebody
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_FACEBODY_EXPORT SwapFacialFeaturesResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
std::string imageURL;
|
||||
};
|
||||
|
||||
|
||||
SwapFacialFeaturesResult();
|
||||
explicit SwapFacialFeaturesResult(const std::string &payload);
|
||||
~SwapFacialFeaturesResult();
|
||||
Data getData()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
Data data_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_FACEBODY_MODEL_SWAPFACIALFEATURESRESULT_H_
|
||||
@@ -375,42 +375,6 @@ FacebodyClient::CompareFaceWithMaskOutcomeCallable FacebodyClient::compareFaceWi
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
FacebodyClient::CountCrowdOutcome FacebodyClient::countCrowd(const CountCrowdRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CountCrowdOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CountCrowdOutcome(CountCrowdResult(outcome.result()));
|
||||
else
|
||||
return CountCrowdOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void FacebodyClient::countCrowdAsync(const CountCrowdRequest& request, const CountCrowdAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, countCrowd(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
FacebodyClient::CountCrowdOutcomeCallable FacebodyClient::countCrowdCallable(const CountCrowdRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CountCrowdOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->countCrowd(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
FacebodyClient::CreateFaceDbOutcome FacebodyClient::createFaceDb(const CreateFaceDbRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -735,42 +699,6 @@ FacebodyClient::DetectFaceOutcomeCallable FacebodyClient::detectFaceCallable(con
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
FacebodyClient::DetectIPCPedestrianOutcome FacebodyClient::detectIPCPedestrian(const DetectIPCPedestrianRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DetectIPCPedestrianOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DetectIPCPedestrianOutcome(DetectIPCPedestrianResult(outcome.result()));
|
||||
else
|
||||
return DetectIPCPedestrianOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void FacebodyClient::detectIPCPedestrianAsync(const DetectIPCPedestrianRequest& request, const DetectIPCPedestrianAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, detectIPCPedestrian(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
FacebodyClient::DetectIPCPedestrianOutcomeCallable FacebodyClient::detectIPCPedestrianCallable(const DetectIPCPedestrianRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DetectIPCPedestrianOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->detectIPCPedestrian(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
FacebodyClient::DetectInfraredLivingFaceOutcome FacebodyClient::detectInfraredLivingFace(const DetectInfraredLivingFaceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1959,42 +1887,6 @@ FacebodyClient::SearchFaceOutcomeCallable FacebodyClient::searchFaceCallable(con
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
FacebodyClient::SwapFacialFeaturesOutcome FacebodyClient::swapFacialFeatures(const SwapFacialFeaturesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return SwapFacialFeaturesOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return SwapFacialFeaturesOutcome(SwapFacialFeaturesResult(outcome.result()));
|
||||
else
|
||||
return SwapFacialFeaturesOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void FacebodyClient::swapFacialFeaturesAsync(const SwapFacialFeaturesRequest& request, const SwapFacialFeaturesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, swapFacialFeatures(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
FacebodyClient::SwapFacialFeaturesOutcomeCallable FacebodyClient::swapFacialFeaturesCallable(const SwapFacialFeaturesRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<SwapFacialFeaturesOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->swapFacialFeatures(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
FacebodyClient::UpdateFaceEntityOutcome FacebodyClient::updateFaceEntity(const UpdateFaceEntityRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
@@ -42,6 +42,8 @@ void BlurFaceResult::parse(const std::string &payload)
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["ImageURL"].isNull())
|
||||
data_.imageURL = dataNode["ImageURL"].asString();
|
||||
if(!dataNode["MaskURL"].isNull())
|
||||
data_.maskURL = dataNode["MaskURL"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,72 +0,0 @@
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/facebody/model/CountCrowdRequest.h>
|
||||
|
||||
using AlibabaCloud::Facebody::Model::CountCrowdRequest;
|
||||
|
||||
CountCrowdRequest::CountCrowdRequest()
|
||||
: RpcServiceRequest("facebody", "2019-12-30", "CountCrowd") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CountCrowdRequest::~CountCrowdRequest() {}
|
||||
|
||||
bool CountCrowdRequest::getFormatResultToJson() const {
|
||||
return formatResultToJson_;
|
||||
}
|
||||
|
||||
void CountCrowdRequest::setFormatResultToJson(bool formatResultToJson) {
|
||||
formatResultToJson_ = formatResultToJson;
|
||||
setParameter(std::string("FormatResultToJson"), formatResultToJson ? "true" : "false");
|
||||
}
|
||||
|
||||
bool CountCrowdRequest::getIsShow() const {
|
||||
return isShow_;
|
||||
}
|
||||
|
||||
void CountCrowdRequest::setIsShow(bool isShow) {
|
||||
isShow_ = isShow;
|
||||
setBodyParameter(std::string("IsShow"), isShow ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CountCrowdRequest::getOssFile() const {
|
||||
return ossFile_;
|
||||
}
|
||||
|
||||
void CountCrowdRequest::setOssFile(const std::string &ossFile) {
|
||||
ossFile_ = ossFile;
|
||||
setParameter(std::string("OssFile"), ossFile);
|
||||
}
|
||||
|
||||
std::string CountCrowdRequest::getRequestProxyBy() const {
|
||||
return requestProxyBy_;
|
||||
}
|
||||
|
||||
void CountCrowdRequest::setRequestProxyBy(const std::string &requestProxyBy) {
|
||||
requestProxyBy_ = requestProxyBy;
|
||||
setParameter(std::string("RequestProxyBy"), requestProxyBy);
|
||||
}
|
||||
|
||||
std::string CountCrowdRequest::getImageURL() const {
|
||||
return imageURL_;
|
||||
}
|
||||
|
||||
void CountCrowdRequest::setImageURL(const std::string &imageURL) {
|
||||
imageURL_ = imageURL;
|
||||
setBodyParameter(std::string("ImageURL"), imageURL);
|
||||
}
|
||||
|
||||
@@ -1,54 +0,0 @@
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/facebody/model/CountCrowdResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Facebody;
|
||||
using namespace AlibabaCloud::Facebody::Model;
|
||||
|
||||
CountCrowdResult::CountCrowdResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CountCrowdResult::CountCrowdResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CountCrowdResult::~CountCrowdResult()
|
||||
{}
|
||||
|
||||
void CountCrowdResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["PeopleNumber"].isNull())
|
||||
data_.peopleNumber = std::stoi(dataNode["PeopleNumber"].asString());
|
||||
if(!dataNode["HotMap"].isNull())
|
||||
data_.hotMap = dataNode["HotMap"].asString();
|
||||
|
||||
}
|
||||
|
||||
CountCrowdResult::Data CountCrowdResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
@@ -1,108 +0,0 @@
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/facebody/model/DetectIPCPedestrianRequest.h>
|
||||
|
||||
using AlibabaCloud::Facebody::Model::DetectIPCPedestrianRequest;
|
||||
|
||||
DetectIPCPedestrianRequest::DetectIPCPedestrianRequest()
|
||||
: RpcServiceRequest("facebody", "2019-12-30", "DetectIPCPedestrian") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DetectIPCPedestrianRequest::~DetectIPCPedestrianRequest() {}
|
||||
|
||||
bool DetectIPCPedestrianRequest::getFormatResultToJson() const {
|
||||
return formatResultToJson_;
|
||||
}
|
||||
|
||||
void DetectIPCPedestrianRequest::setFormatResultToJson(bool formatResultToJson) {
|
||||
formatResultToJson_ = formatResultToJson;
|
||||
setParameter(std::string("FormatResultToJson"), formatResultToJson ? "true" : "false");
|
||||
}
|
||||
|
||||
bool DetectIPCPedestrianRequest::getContinueOnError() const {
|
||||
return continueOnError_;
|
||||
}
|
||||
|
||||
void DetectIPCPedestrianRequest::setContinueOnError(bool continueOnError) {
|
||||
continueOnError_ = continueOnError;
|
||||
setBodyParameter(std::string("ContinueOnError"), continueOnError ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DetectIPCPedestrianRequest::getOssFile() const {
|
||||
return ossFile_;
|
||||
}
|
||||
|
||||
void DetectIPCPedestrianRequest::setOssFile(const std::string &ossFile) {
|
||||
ossFile_ = ossFile;
|
||||
setParameter(std::string("OssFile"), ossFile);
|
||||
}
|
||||
|
||||
int DetectIPCPedestrianRequest::getHeight() const {
|
||||
return height_;
|
||||
}
|
||||
|
||||
void DetectIPCPedestrianRequest::setHeight(int height) {
|
||||
height_ = height;
|
||||
setBodyParameter(std::string("Height"), std::to_string(height));
|
||||
}
|
||||
|
||||
std::string DetectIPCPedestrianRequest::getImageData() const {
|
||||
return imageData_;
|
||||
}
|
||||
|
||||
void DetectIPCPedestrianRequest::setImageData(const std::string &imageData) {
|
||||
imageData_ = imageData;
|
||||
setBodyParameter(std::string("ImageData"), imageData);
|
||||
}
|
||||
|
||||
std::string DetectIPCPedestrianRequest::getRequestProxyBy() const {
|
||||
return requestProxyBy_;
|
||||
}
|
||||
|
||||
void DetectIPCPedestrianRequest::setRequestProxyBy(const std::string &requestProxyBy) {
|
||||
requestProxyBy_ = requestProxyBy;
|
||||
setParameter(std::string("RequestProxyBy"), requestProxyBy);
|
||||
}
|
||||
|
||||
std::string DetectIPCPedestrianRequest::getDataId() const {
|
||||
return dataId_;
|
||||
}
|
||||
|
||||
void DetectIPCPedestrianRequest::setDataId(const std::string &dataId) {
|
||||
dataId_ = dataId;
|
||||
setBodyParameter(std::string("DataId"), dataId);
|
||||
}
|
||||
|
||||
std::string DetectIPCPedestrianRequest::getImageURL() const {
|
||||
return imageURL_;
|
||||
}
|
||||
|
||||
void DetectIPCPedestrianRequest::setImageURL(const std::string &imageURL) {
|
||||
imageURL_ = imageURL;
|
||||
setBodyParameter(std::string("ImageURL"), imageURL);
|
||||
}
|
||||
|
||||
int DetectIPCPedestrianRequest::getWidth() const {
|
||||
return width_;
|
||||
}
|
||||
|
||||
void DetectIPCPedestrianRequest::setWidth(int width) {
|
||||
width_ = width;
|
||||
setBodyParameter(std::string("Width"), std::to_string(width));
|
||||
}
|
||||
|
||||
@@ -1,73 +0,0 @@
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/facebody/model/DetectIPCPedestrianResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Facebody;
|
||||
using namespace AlibabaCloud::Facebody::Model;
|
||||
|
||||
DetectIPCPedestrianResult::DetectIPCPedestrianResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DetectIPCPedestrianResult::DetectIPCPedestrianResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DetectIPCPedestrianResult::~DetectIPCPedestrianResult()
|
||||
{}
|
||||
|
||||
void DetectIPCPedestrianResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
auto allImageInfoListNode = dataNode["ImageInfoList"]["ImageInfoListItem"];
|
||||
for (auto dataNodeImageInfoListImageInfoListItem : allImageInfoListNode)
|
||||
{
|
||||
Data::ImageInfoListItem imageInfoListItemObject;
|
||||
if(!dataNodeImageInfoListImageInfoListItem["ErrorMessage"].isNull())
|
||||
imageInfoListItemObject.errorMessage = dataNodeImageInfoListImageInfoListItem["ErrorMessage"].asString();
|
||||
if(!dataNodeImageInfoListImageInfoListItem["ErrorCode"].isNull())
|
||||
imageInfoListItemObject.errorCode = dataNodeImageInfoListImageInfoListItem["ErrorCode"].asString();
|
||||
if(!dataNodeImageInfoListImageInfoListItem["DataId"].isNull())
|
||||
imageInfoListItemObject.dataId = dataNodeImageInfoListImageInfoListItem["DataId"].asString();
|
||||
auto allElementsNode = dataNodeImageInfoListImageInfoListItem["Elements"]["Element"];
|
||||
for (auto dataNodeImageInfoListImageInfoListItemElementsElement : allElementsNode)
|
||||
{
|
||||
Data::ImageInfoListItem::Element elementsObject;
|
||||
if(!dataNodeImageInfoListImageInfoListItemElementsElement["Score"].isNull())
|
||||
elementsObject.score = std::stof(dataNodeImageInfoListImageInfoListItemElementsElement["Score"].asString());
|
||||
auto allBoxes = value["Boxes"]["Box"];
|
||||
for (auto value : allBoxes)
|
||||
elementsObject.boxes.push_back(value.asString());
|
||||
imageInfoListItemObject.elements.push_back(elementsObject);
|
||||
}
|
||||
data_.imageInfoList.push_back(imageInfoListItemObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
DetectIPCPedestrianResult::Data DetectIPCPedestrianResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
@@ -57,6 +57,15 @@ void MergeImageFaceRequest::setUserId(const std::string &userId) {
|
||||
setBodyParameter(std::string("UserId"), userId);
|
||||
}
|
||||
|
||||
std::string MergeImageFaceRequest::getWatermarkType() const {
|
||||
return watermarkType_;
|
||||
}
|
||||
|
||||
void MergeImageFaceRequest::setWatermarkType(const std::string &watermarkType) {
|
||||
watermarkType_ = watermarkType;
|
||||
setBodyParameter(std::string("WatermarkType"), watermarkType);
|
||||
}
|
||||
|
||||
std::string MergeImageFaceRequest::getOssFile() const {
|
||||
return ossFile_;
|
||||
}
|
||||
|
||||
@@ -1,99 +0,0 @@
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/facebody/model/SwapFacialFeaturesRequest.h>
|
||||
|
||||
using AlibabaCloud::Facebody::Model::SwapFacialFeaturesRequest;
|
||||
|
||||
SwapFacialFeaturesRequest::SwapFacialFeaturesRequest()
|
||||
: RpcServiceRequest("facebody", "2019-12-30", "SwapFacialFeatures") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
SwapFacialFeaturesRequest::~SwapFacialFeaturesRequest() {}
|
||||
|
||||
std::string SwapFacialFeaturesRequest::getTargetImageURL() const {
|
||||
return targetImageURL_;
|
||||
}
|
||||
|
||||
void SwapFacialFeaturesRequest::setTargetImageURL(const std::string &targetImageURL) {
|
||||
targetImageURL_ = targetImageURL;
|
||||
setBodyParameter(std::string("TargetImageURL"), targetImageURL);
|
||||
}
|
||||
|
||||
bool SwapFacialFeaturesRequest::getFormatResultToJson() const {
|
||||
return formatResultToJson_;
|
||||
}
|
||||
|
||||
void SwapFacialFeaturesRequest::setFormatResultToJson(bool formatResultToJson) {
|
||||
formatResultToJson_ = formatResultToJson;
|
||||
setParameter(std::string("FormatResultToJson"), formatResultToJson ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string SwapFacialFeaturesRequest::getSourceImageData() const {
|
||||
return sourceImageData_;
|
||||
}
|
||||
|
||||
void SwapFacialFeaturesRequest::setSourceImageData(const std::string &sourceImageData) {
|
||||
sourceImageData_ = sourceImageData;
|
||||
setBodyParameter(std::string("SourceImageData"), sourceImageData);
|
||||
}
|
||||
|
||||
std::string SwapFacialFeaturesRequest::getOssFile() const {
|
||||
return ossFile_;
|
||||
}
|
||||
|
||||
void SwapFacialFeaturesRequest::setOssFile(const std::string &ossFile) {
|
||||
ossFile_ = ossFile;
|
||||
setParameter(std::string("OssFile"), ossFile);
|
||||
}
|
||||
|
||||
std::string SwapFacialFeaturesRequest::getSourceImageURL() const {
|
||||
return sourceImageURL_;
|
||||
}
|
||||
|
||||
void SwapFacialFeaturesRequest::setSourceImageURL(const std::string &sourceImageURL) {
|
||||
sourceImageURL_ = sourceImageURL;
|
||||
setBodyParameter(std::string("SourceImageURL"), sourceImageURL);
|
||||
}
|
||||
|
||||
std::string SwapFacialFeaturesRequest::getTargetImageData() const {
|
||||
return targetImageData_;
|
||||
}
|
||||
|
||||
void SwapFacialFeaturesRequest::setTargetImageData(const std::string &targetImageData) {
|
||||
targetImageData_ = targetImageData;
|
||||
setBodyParameter(std::string("TargetImageData"), targetImageData);
|
||||
}
|
||||
|
||||
std::string SwapFacialFeaturesRequest::getRequestProxyBy() const {
|
||||
return requestProxyBy_;
|
||||
}
|
||||
|
||||
void SwapFacialFeaturesRequest::setRequestProxyBy(const std::string &requestProxyBy) {
|
||||
requestProxyBy_ = requestProxyBy;
|
||||
setParameter(std::string("RequestProxyBy"), requestProxyBy);
|
||||
}
|
||||
|
||||
std::string SwapFacialFeaturesRequest::getEditPart() const {
|
||||
return editPart_;
|
||||
}
|
||||
|
||||
void SwapFacialFeaturesRequest::setEditPart(const std::string &editPart) {
|
||||
editPart_ = editPart;
|
||||
setBodyParameter(std::string("EditPart"), editPart);
|
||||
}
|
||||
|
||||
@@ -1,52 +0,0 @@
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/facebody/model/SwapFacialFeaturesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Facebody;
|
||||
using namespace AlibabaCloud::Facebody::Model;
|
||||
|
||||
SwapFacialFeaturesResult::SwapFacialFeaturesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
SwapFacialFeaturesResult::SwapFacialFeaturesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
SwapFacialFeaturesResult::~SwapFacialFeaturesResult()
|
||||
{}
|
||||
|
||||
void SwapFacialFeaturesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["ImageURL"].isNull())
|
||||
data_.imageURL = dataNode["ImageURL"].asString();
|
||||
|
||||
}
|
||||
|
||||
SwapFacialFeaturesResult::Data SwapFacialFeaturesResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user