From 8296e363143248a88b5c568a03a9a492b6757f3e Mon Sep 17 00:00:00 2001 From: sdk-team Date: Mon, 1 Feb 2021 03:14:50 +0000 Subject: [PATCH] Release GenerateHumanSketchStyle MergeImageFace AddFaceImageTemplate QueryFaceImageTemplate DeleteFaceImageTemplate. --- CHANGELOG | 3 + facebody/CMakeLists.txt | 216 +- .../alibabacloud/facebody/FacebodyClient.h | 436 +--- .../facebody/model/AddBodyTraceRequest.h | 57 - .../facebody/model/AddBodyTraceResult.h | 59 - .../facebody/model/AddFaceEntityRequest.h | 54 - .../facebody/model/AddFaceEntityResult.h | 49 - .../facebody/model/AddFaceRequest.h | 57 - .../facebody/model/AddFaceResult.h | 55 - .../facebody/model/BlurFaceRequest.h | 48 - .../facebody/model/BlurFaceResult.h | 55 - .../facebody/model/BodyPostureRequest.h | 48 - .../facebody/model/BodyPostureResult.h | 80 - .../facebody/model/CompareFaceRequest.h | 54 - .../facebody/model/CompareFaceResult.h | 58 - .../facebody/model/CountCrowdRequest.h | 51 - .../facebody/model/CountCrowdResult.h | 56 - .../facebody/model/CreateBodyDbRequest.h | 48 - .../facebody/model/CreateBodyPersonRequest.h | 51 - .../facebody/model/CreateBodyPersonResult.h | 59 - .../facebody/model/CreateFaceDbRequest.h | 48 - .../facebody/model/CreateFaceDbResult.h | 49 - .../facebody/model/DeleteBodyDbRequest.h | 48 - .../facebody/model/DeleteBodyDbResult.h | 53 - .../facebody/model/DeleteBodyPersonRequest.h | 51 - .../facebody/model/DeleteBodyPersonResult.h | 53 - .../facebody/model/DeleteFaceDbRequest.h | 48 - .../facebody/model/DeleteFaceDbResult.h | 49 - .../facebody/model/DeleteFaceEntityRequest.h | 51 - .../facebody/model/DeleteFaceEntityResult.h | 49 - .../facebody/model/DeleteFaceRequest.h | 51 - .../facebody/model/DeleteFaceResult.h | 49 - .../facebody/model/DetectBodyCountRequest.h | 48 - .../facebody/model/DetectBodyCountResult.h | 55 - .../facebody/model/DetectCelebrityRequest.h | 48 - .../facebody/model/DetectCelebrityResult.h | 62 - .../facebody/model/DetectChefCapRequest.h | 48 - .../facebody/model/DetectChefCapResult.h | 61 - .../facebody/model/DetectFaceRequest.h | 51 - .../facebody/model/DetectFaceResult.h | 73 - ... => DetectIPCPedestrianOptimizedRequest.h} | 29 +- ...h => DetectIPCPedestrianOptimizedResult.h} | 17 +- .../model/DetectIPCPedestrianRequest.h | 66 - .../facebody/model/DetectLivingFaceRequest.h | 53 - .../facebody/model/DetectLivingFaceResult.h | 73 - .../facebody/model/DetectMaskRequest.h | 48 - .../facebody/model/DetectMaskResult.h | 56 - .../model/DetectPedestrianIntrusionRequest.h | 54 - .../model/DetectPedestrianIntrusionResult.h | 76 - .../facebody/model/DetectPedestrianRequest.h | 48 - .../facebody/model/DetectPedestrianResult.h | 63 - .../model/DetectVideoLivingFaceRequest.h | 48 - .../model/DetectVideoLivingFaceResult.h | 61 - .../facebody/model/EnhanceFaceRequest.h | 48 - .../facebody/model/EnhanceFaceResult.h | 55 - ...=> ExecuteServerSideVerificationRequest.h} | 26 +- ... => ExecuteServerSideVerificationResult.h} | 18 +- .../ExtractPedestrianFeatureAttrResult.h | 72 - ...ExtractPedestrianFeatureAttributeRequest.h | 59 - .../ExtractPedestrianFeatureAttributeResult.h | 94 - .../facebody/model/FaceBeautyRequest.h | 57 - .../facebody/model/FaceBeautyResult.h | 55 - .../facebody/model/FaceFilterRequest.h | 54 - .../facebody/model/FaceFilterResult.h | 55 - .../facebody/model/FaceMakeupRequest.h | 57 - .../facebody/model/FaceMakeupResult.h | 55 - .../facebody/model/FaceTidyupRequest.h | 54 - .../facebody/model/FaceTidyupResult.h | 55 - .../GenRealPersonVerificationTokenResult.h | 61 - .../model/GenerateHumanAnimeStyleRequest.h | 51 - .../model/GenerateHumanAnimeStyleResult.h | 55 - .../facebody/model/GetBodyPersonRequest.h | 51 - .../facebody/model/GetBodyPersonResult.h | 69 - .../facebody/model/GetFaceEntityRequest.h | 51 - .../facebody/model/GetFaceEntityResult.h | 62 - .../GetRealPersonVerificationResultRequest.h | 51 - .../GetRealPersonVerificationResultResult.h | 63 - .../facebody/model/HandPostureRequest.h | 48 - .../facebody/model/HandPostureResult.h | 94 - .../facebody/model/ListBodyDbsRequest.h | 51 - .../facebody/model/ListBodyDbsResult.h | 65 - .../facebody/model/ListBodyPersonRequest.h | 54 - .../facebody/model/ListBodyPersonResult.h | 68 - .../facebody/model/ListFaceDbsRequest.h | 45 - .../facebody/model/ListFaceDbsResult.h | 59 - .../facebody/model/ListFaceEntitiesRequest.h | 66 - .../facebody/model/ListFaceEntitiesResult.h | 66 - .../model/PedestrianDetectAttributeRequest.h | 48 - .../model/PedestrianDetectAttributeResult.h | 140 -- .../facebody/model/RecognizeActionRequest.h | 59 - .../facebody/model/RecognizeActionResult.h | 66 - .../model/RecognizeExpressionRequest.h | 48 - .../model/RecognizeExpressionResult.h | 68 - .../facebody/model/RecognizeFaceRequest.h | 51 - .../facebody/model/RecognizeFaceResult.h | 81 - .../model/RecognizePublicFaceRequest.h | 53 - .../model/RecognizePublicFaceResult.h | 82 - .../facebody/model/SearchBodyTraceRequest.h | 57 - .../facebody/model/SearchBodyTraceResult.h | 67 - .../facebody/model/SearchFaceRequest.h | 57 - .../facebody/model/SearchFaceResult.h | 75 - .../model/SwapFacialFeaturesRequest.h | 54 - .../facebody/model/SwapFacialFeaturesResult.h | 55 - .../facebody/model/UpdateFaceEntityRequest.h | 54 - .../facebody/model/UpdateFaceEntityResult.h | 49 - .../facebody/model/VerifyFaceMaskRequest.h | 51 - .../facebody/model/VerifyFaceMaskResult.h | 60 - facebody/src/FacebodyClient.cc | 1842 +---------------- facebody/src/model/AddBodyTraceRequest.cc | 73 - facebody/src/model/AddBodyTraceResult.cc | 66 - facebody/src/model/AddFaceEntityRequest.cc | 62 - facebody/src/model/AddFaceEntityResult.cc | 44 - facebody/src/model/AddFaceRequest.cc | 73 - facebody/src/model/AddFaceResult.cc | 52 - facebody/src/model/BlurFaceRequest.cc | 40 - facebody/src/model/BlurFaceResult.cc | 52 - facebody/src/model/BodyPostureRequest.cc | 40 - facebody/src/model/BodyPostureResult.cc | 88 - facebody/src/model/CompareFaceRequest.cc | 62 - facebody/src/model/CompareFaceResult.cc | 61 - facebody/src/model/CountCrowdRequest.cc | 51 - facebody/src/model/CountCrowdResult.cc | 54 - facebody/src/model/CreateBodyDbRequest.cc | 40 - facebody/src/model/CreateBodyDbResult.cc | 66 - facebody/src/model/CreateBodyPersonRequest.cc | 51 - facebody/src/model/CreateBodyPersonResult.cc | 66 - facebody/src/model/CreateFaceDbRequest.cc | 40 - facebody/src/model/CreateFaceDbResult.cc | 44 - facebody/src/model/DeleteBodyDbRequest.cc | 40 - facebody/src/model/DeleteBodyDbResult.cc | 58 - facebody/src/model/DeleteBodyPersonRequest.cc | 51 - facebody/src/model/DeleteBodyPersonResult.cc | 58 - facebody/src/model/DeleteFaceDbRequest.cc | 40 - facebody/src/model/DeleteFaceDbResult.cc | 44 - facebody/src/model/DeleteFaceEntityRequest.cc | 51 - facebody/src/model/DeleteFaceEntityResult.cc | 44 - facebody/src/model/DeleteFaceRequest.cc | 51 - facebody/src/model/DeleteFaceResult.cc | 44 - facebody/src/model/DetectBodyCountRequest.cc | 40 - facebody/src/model/DetectBodyCountResult.cc | 52 - facebody/src/model/DetectCelebrityRequest.cc | 40 - facebody/src/model/DetectCelebrityResult.cc | 65 - facebody/src/model/DetectChefCapRequest.cc | 40 - facebody/src/model/DetectChefCapResult.cc | 63 - facebody/src/model/DetectFaceRequest.cc | 51 - facebody/src/model/DetectFaceResult.cc | 94 - .../DetectIPCPedestrianOptimizedRequest.cc | 63 + ... => DetectIPCPedestrianOptimizedResult.cc} | 30 +- .../src/model/DetectIPCPedestrianRequest.cc | 89 - facebody/src/model/DetectLivingFaceRequest.cc | 44 - facebody/src/model/DetectLivingFaceResult.cc | 82 - facebody/src/model/DetectMaskRequest.cc | 40 - facebody/src/model/DetectMaskResult.cc | 54 - .../model/DetectPedestrianIntrusionRequest.cc | 62 - .../model/DetectPedestrianIntrusionResult.cc | 91 - facebody/src/model/DetectPedestrianRequest.cc | 40 - facebody/src/model/DetectPedestrianResult.cc | 67 - .../src/model/DetectVideoLivingFaceRequest.cc | 40 - .../src/model/DetectVideoLivingFaceResult.cc | 63 - facebody/src/model/EnhanceFaceRequest.cc | 40 - facebody/src/model/EnhanceFaceResult.cc | 52 - .../ExecuteServerSideVerificationRequest.cc | 85 + ...=> ExecuteServerSideVerificationResult.cc} | 39 +- .../ExtractPedestrianFeatureAttrRequest.cc | 51 - .../ExtractPedestrianFeatureAttrResult.cc | 86 - ...xtractPedestrianFeatureAttributeRequest.cc | 66 - ...ExtractPedestrianFeatureAttributeResult.cc | 128 -- facebody/src/model/FaceBeautyRequest.cc | 73 - facebody/src/model/FaceBeautyResult.cc | 52 - facebody/src/model/FaceFilterRequest.cc | 62 - facebody/src/model/FaceFilterResult.cc | 52 - facebody/src/model/FaceMakeupRequest.cc | 73 - facebody/src/model/FaceMakeupResult.cc | 52 - facebody/src/model/FaceTidyupRequest.cc | 62 - facebody/src/model/FaceTidyupResult.cc | 52 - .../GenRealPersonVerificationTokenRequest.cc | 62 - .../model/GenerateHumanAnimeStyleRequest.cc | 51 - .../model/GenerateHumanAnimeStyleResult.cc | 52 - facebody/src/model/GetBodyPersonRequest.cc | 51 - facebody/src/model/GetBodyPersonResult.cc | 84 - facebody/src/model/GetFaceEntityRequest.cc | 51 - facebody/src/model/GetFaceEntityResult.cc | 64 - .../GetRealPersonVerificationResultRequest.cc | 51 - .../GetRealPersonVerificationResultResult.cc | 77 - facebody/src/model/HandPostureRequest.cc | 40 - facebody/src/model/HandPostureResult.cc | 101 - facebody/src/model/ListBodyDbsRequest.cc | 51 - facebody/src/model/ListBodyDbsResult.cc | 76 - facebody/src/model/ListBodyPersonRequest.cc | 62 - facebody/src/model/ListBodyPersonResult.cc | 82 - facebody/src/model/ListFaceDbsRequest.cc | 29 - facebody/src/model/ListFaceDbsResult.cc | 58 - facebody/src/model/ListFaceEntitiesRequest.cc | 106 - facebody/src/model/ListFaceEntitiesResult.cc | 72 - .../model/PedestrianDetectAttributeRequest.cc | 40 - .../model/PedestrianDetectAttributeResult.cc | 134 -- facebody/src/model/RecognizeActionRequest.cc | 66 - facebody/src/model/RecognizeActionResult.cc | 73 - .../src/model/RecognizeExpressionRequest.cc | 40 - .../src/model/RecognizeExpressionResult.cc | 69 - facebody/src/model/RecognizeFaceRequest.cc | 51 - facebody/src/model/RecognizeFaceResult.cc | 117 -- .../src/model/RecognizePublicFaceRequest.cc | 44 - .../src/model/RecognizePublicFaceResult.cc | 98 - facebody/src/model/SearchBodyTraceRequest.cc | 73 - facebody/src/model/SearchBodyTraceResult.cc | 80 - facebody/src/model/SearchFaceRequest.cc | 73 - facebody/src/model/SearchFaceResult.cc | 81 - .../src/model/SwapFacialFeaturesRequest.cc | 62 - .../src/model/SwapFacialFeaturesResult.cc | 52 - facebody/src/model/UpdateFaceEntityRequest.cc | 62 - facebody/src/model/UpdateFaceEntityResult.cc | 44 - facebody/src/model/VerifyFaceMaskRequest.cc | 51 - facebody/src/model/VerifyFaceMaskResult.cc | 65 - 214 files changed, 277 insertions(+), 14551 deletions(-) delete mode 100644 facebody/include/alibabacloud/facebody/model/AddBodyTraceRequest.h delete mode 100644 facebody/include/alibabacloud/facebody/model/AddBodyTraceResult.h delete mode 100644 facebody/include/alibabacloud/facebody/model/AddFaceEntityRequest.h delete mode 100644 facebody/include/alibabacloud/facebody/model/AddFaceEntityResult.h delete mode 100644 facebody/include/alibabacloud/facebody/model/AddFaceRequest.h delete mode 100644 facebody/include/alibabacloud/facebody/model/AddFaceResult.h delete mode 100644 facebody/include/alibabacloud/facebody/model/BlurFaceRequest.h delete mode 100644 facebody/include/alibabacloud/facebody/model/BlurFaceResult.h delete mode 100644 facebody/include/alibabacloud/facebody/model/BodyPostureRequest.h delete mode 100644 facebody/include/alibabacloud/facebody/model/BodyPostureResult.h delete mode 100644 facebody/include/alibabacloud/facebody/model/CompareFaceRequest.h delete mode 100644 facebody/include/alibabacloud/facebody/model/CompareFaceResult.h delete mode 100644 facebody/include/alibabacloud/facebody/model/CountCrowdRequest.h delete mode 100644 facebody/include/alibabacloud/facebody/model/CountCrowdResult.h delete mode 100644 facebody/include/alibabacloud/facebody/model/CreateBodyDbRequest.h delete mode 100644 facebody/include/alibabacloud/facebody/model/CreateBodyPersonRequest.h delete mode 100644 facebody/include/alibabacloud/facebody/model/CreateBodyPersonResult.h delete mode 100644 facebody/include/alibabacloud/facebody/model/CreateFaceDbRequest.h delete mode 100644 facebody/include/alibabacloud/facebody/model/CreateFaceDbResult.h delete mode 100644 facebody/include/alibabacloud/facebody/model/DeleteBodyDbRequest.h delete mode 100644 facebody/include/alibabacloud/facebody/model/DeleteBodyDbResult.h delete mode 100644 facebody/include/alibabacloud/facebody/model/DeleteBodyPersonRequest.h delete mode 100644 facebody/include/alibabacloud/facebody/model/DeleteBodyPersonResult.h delete mode 100644 facebody/include/alibabacloud/facebody/model/DeleteFaceDbRequest.h delete mode 100644 facebody/include/alibabacloud/facebody/model/DeleteFaceDbResult.h delete mode 100644 facebody/include/alibabacloud/facebody/model/DeleteFaceEntityRequest.h delete mode 100644 facebody/include/alibabacloud/facebody/model/DeleteFaceEntityResult.h delete mode 100644 facebody/include/alibabacloud/facebody/model/DeleteFaceRequest.h delete mode 100644 facebody/include/alibabacloud/facebody/model/DeleteFaceResult.h delete mode 100644 facebody/include/alibabacloud/facebody/model/DetectBodyCountRequest.h delete mode 100644 facebody/include/alibabacloud/facebody/model/DetectBodyCountResult.h delete mode 100644 facebody/include/alibabacloud/facebody/model/DetectCelebrityRequest.h delete mode 100644 facebody/include/alibabacloud/facebody/model/DetectCelebrityResult.h delete mode 100644 facebody/include/alibabacloud/facebody/model/DetectChefCapRequest.h delete mode 100644 facebody/include/alibabacloud/facebody/model/DetectChefCapResult.h delete mode 100644 facebody/include/alibabacloud/facebody/model/DetectFaceRequest.h delete mode 100644 facebody/include/alibabacloud/facebody/model/DetectFaceResult.h rename facebody/include/alibabacloud/facebody/model/{ExtractPedestrianFeatureAttrRequest.h => DetectIPCPedestrianOptimizedRequest.h} (54%) rename facebody/include/alibabacloud/facebody/model/{DetectIPCPedestrianResult.h => DetectIPCPedestrianOptimizedResult.h} (71%) delete mode 100644 facebody/include/alibabacloud/facebody/model/DetectIPCPedestrianRequest.h delete mode 100644 facebody/include/alibabacloud/facebody/model/DetectLivingFaceRequest.h delete mode 100644 facebody/include/alibabacloud/facebody/model/DetectLivingFaceResult.h delete mode 100644 facebody/include/alibabacloud/facebody/model/DetectMaskRequest.h delete mode 100644 facebody/include/alibabacloud/facebody/model/DetectMaskResult.h delete mode 100644 facebody/include/alibabacloud/facebody/model/DetectPedestrianIntrusionRequest.h delete mode 100644 facebody/include/alibabacloud/facebody/model/DetectPedestrianIntrusionResult.h delete mode 100644 facebody/include/alibabacloud/facebody/model/DetectPedestrianRequest.h delete mode 100644 facebody/include/alibabacloud/facebody/model/DetectPedestrianResult.h delete mode 100644 facebody/include/alibabacloud/facebody/model/DetectVideoLivingFaceRequest.h delete mode 100644 facebody/include/alibabacloud/facebody/model/DetectVideoLivingFaceResult.h delete mode 100644 facebody/include/alibabacloud/facebody/model/EnhanceFaceRequest.h delete mode 100644 facebody/include/alibabacloud/facebody/model/EnhanceFaceResult.h rename facebody/include/alibabacloud/facebody/model/{GenRealPersonVerificationTokenRequest.h => ExecuteServerSideVerificationRequest.h} (55%) rename facebody/include/alibabacloud/facebody/model/{CreateBodyDbResult.h => ExecuteServerSideVerificationResult.h} (66%) delete mode 100644 facebody/include/alibabacloud/facebody/model/ExtractPedestrianFeatureAttrResult.h delete mode 100644 facebody/include/alibabacloud/facebody/model/ExtractPedestrianFeatureAttributeRequest.h delete mode 100644 facebody/include/alibabacloud/facebody/model/ExtractPedestrianFeatureAttributeResult.h delete mode 100644 facebody/include/alibabacloud/facebody/model/FaceBeautyRequest.h delete mode 100644 facebody/include/alibabacloud/facebody/model/FaceBeautyResult.h delete mode 100644 facebody/include/alibabacloud/facebody/model/FaceFilterRequest.h delete mode 100644 facebody/include/alibabacloud/facebody/model/FaceFilterResult.h delete mode 100644 facebody/include/alibabacloud/facebody/model/FaceMakeupRequest.h delete mode 100644 facebody/include/alibabacloud/facebody/model/FaceMakeupResult.h delete mode 100644 facebody/include/alibabacloud/facebody/model/FaceTidyupRequest.h delete mode 100644 facebody/include/alibabacloud/facebody/model/FaceTidyupResult.h delete mode 100644 facebody/include/alibabacloud/facebody/model/GenRealPersonVerificationTokenResult.h delete mode 100644 facebody/include/alibabacloud/facebody/model/GenerateHumanAnimeStyleRequest.h delete mode 100644 facebody/include/alibabacloud/facebody/model/GenerateHumanAnimeStyleResult.h delete mode 100644 facebody/include/alibabacloud/facebody/model/GetBodyPersonRequest.h delete mode 100644 facebody/include/alibabacloud/facebody/model/GetBodyPersonResult.h delete mode 100644 facebody/include/alibabacloud/facebody/model/GetFaceEntityRequest.h delete mode 100644 facebody/include/alibabacloud/facebody/model/GetFaceEntityResult.h delete mode 100644 facebody/include/alibabacloud/facebody/model/GetRealPersonVerificationResultRequest.h delete mode 100644 facebody/include/alibabacloud/facebody/model/GetRealPersonVerificationResultResult.h delete mode 100644 facebody/include/alibabacloud/facebody/model/HandPostureRequest.h delete mode 100644 facebody/include/alibabacloud/facebody/model/HandPostureResult.h delete mode 100644 facebody/include/alibabacloud/facebody/model/ListBodyDbsRequest.h delete mode 100644 facebody/include/alibabacloud/facebody/model/ListBodyDbsResult.h delete mode 100644 facebody/include/alibabacloud/facebody/model/ListBodyPersonRequest.h delete mode 100644 facebody/include/alibabacloud/facebody/model/ListBodyPersonResult.h delete mode 100644 facebody/include/alibabacloud/facebody/model/ListFaceDbsRequest.h delete mode 100644 facebody/include/alibabacloud/facebody/model/ListFaceDbsResult.h delete mode 100644 facebody/include/alibabacloud/facebody/model/ListFaceEntitiesRequest.h delete mode 100644 facebody/include/alibabacloud/facebody/model/ListFaceEntitiesResult.h delete mode 100644 facebody/include/alibabacloud/facebody/model/PedestrianDetectAttributeRequest.h delete mode 100644 facebody/include/alibabacloud/facebody/model/PedestrianDetectAttributeResult.h delete mode 100644 facebody/include/alibabacloud/facebody/model/RecognizeActionRequest.h delete mode 100644 facebody/include/alibabacloud/facebody/model/RecognizeActionResult.h delete mode 100644 facebody/include/alibabacloud/facebody/model/RecognizeExpressionRequest.h delete mode 100644 facebody/include/alibabacloud/facebody/model/RecognizeExpressionResult.h delete mode 100644 facebody/include/alibabacloud/facebody/model/RecognizeFaceRequest.h delete mode 100644 facebody/include/alibabacloud/facebody/model/RecognizeFaceResult.h delete mode 100644 facebody/include/alibabacloud/facebody/model/RecognizePublicFaceRequest.h delete mode 100644 facebody/include/alibabacloud/facebody/model/RecognizePublicFaceResult.h delete mode 100644 facebody/include/alibabacloud/facebody/model/SearchBodyTraceRequest.h delete mode 100644 facebody/include/alibabacloud/facebody/model/SearchBodyTraceResult.h delete mode 100644 facebody/include/alibabacloud/facebody/model/SearchFaceRequest.h delete mode 100644 facebody/include/alibabacloud/facebody/model/SearchFaceResult.h delete mode 100644 facebody/include/alibabacloud/facebody/model/SwapFacialFeaturesRequest.h delete mode 100644 facebody/include/alibabacloud/facebody/model/SwapFacialFeaturesResult.h delete mode 100644 facebody/include/alibabacloud/facebody/model/UpdateFaceEntityRequest.h delete mode 100644 facebody/include/alibabacloud/facebody/model/UpdateFaceEntityResult.h delete mode 100644 facebody/include/alibabacloud/facebody/model/VerifyFaceMaskRequest.h delete mode 100644 facebody/include/alibabacloud/facebody/model/VerifyFaceMaskResult.h delete mode 100644 facebody/src/model/AddBodyTraceRequest.cc delete mode 100644 facebody/src/model/AddBodyTraceResult.cc delete mode 100644 facebody/src/model/AddFaceEntityRequest.cc delete mode 100644 facebody/src/model/AddFaceEntityResult.cc delete mode 100644 facebody/src/model/AddFaceRequest.cc delete mode 100644 facebody/src/model/AddFaceResult.cc delete mode 100644 facebody/src/model/BlurFaceRequest.cc delete mode 100644 facebody/src/model/BlurFaceResult.cc delete mode 100644 facebody/src/model/BodyPostureRequest.cc delete mode 100644 facebody/src/model/BodyPostureResult.cc delete mode 100644 facebody/src/model/CompareFaceRequest.cc delete mode 100644 facebody/src/model/CompareFaceResult.cc delete mode 100644 facebody/src/model/CountCrowdRequest.cc delete mode 100644 facebody/src/model/CountCrowdResult.cc delete mode 100644 facebody/src/model/CreateBodyDbRequest.cc delete mode 100644 facebody/src/model/CreateBodyDbResult.cc delete mode 100644 facebody/src/model/CreateBodyPersonRequest.cc delete mode 100644 facebody/src/model/CreateBodyPersonResult.cc delete mode 100644 facebody/src/model/CreateFaceDbRequest.cc delete mode 100644 facebody/src/model/CreateFaceDbResult.cc delete mode 100644 facebody/src/model/DeleteBodyDbRequest.cc delete mode 100644 facebody/src/model/DeleteBodyDbResult.cc delete mode 100644 facebody/src/model/DeleteBodyPersonRequest.cc delete mode 100644 facebody/src/model/DeleteBodyPersonResult.cc delete mode 100644 facebody/src/model/DeleteFaceDbRequest.cc delete mode 100644 facebody/src/model/DeleteFaceDbResult.cc delete mode 100644 facebody/src/model/DeleteFaceEntityRequest.cc delete mode 100644 facebody/src/model/DeleteFaceEntityResult.cc delete mode 100644 facebody/src/model/DeleteFaceRequest.cc delete mode 100644 facebody/src/model/DeleteFaceResult.cc delete mode 100644 facebody/src/model/DetectBodyCountRequest.cc delete mode 100644 facebody/src/model/DetectBodyCountResult.cc delete mode 100644 facebody/src/model/DetectCelebrityRequest.cc delete mode 100644 facebody/src/model/DetectCelebrityResult.cc delete mode 100644 facebody/src/model/DetectChefCapRequest.cc delete mode 100644 facebody/src/model/DetectChefCapResult.cc delete mode 100644 facebody/src/model/DetectFaceRequest.cc delete mode 100644 facebody/src/model/DetectFaceResult.cc create mode 100644 facebody/src/model/DetectIPCPedestrianOptimizedRequest.cc rename facebody/src/model/{DetectIPCPedestrianResult.cc => DetectIPCPedestrianOptimizedResult.cc} (53%) delete mode 100644 facebody/src/model/DetectIPCPedestrianRequest.cc delete mode 100644 facebody/src/model/DetectLivingFaceRequest.cc delete mode 100644 facebody/src/model/DetectLivingFaceResult.cc delete mode 100644 facebody/src/model/DetectMaskRequest.cc delete mode 100644 facebody/src/model/DetectMaskResult.cc delete mode 100644 facebody/src/model/DetectPedestrianIntrusionRequest.cc delete mode 100644 facebody/src/model/DetectPedestrianIntrusionResult.cc delete mode 100644 facebody/src/model/DetectPedestrianRequest.cc delete mode 100644 facebody/src/model/DetectPedestrianResult.cc delete mode 100644 facebody/src/model/DetectVideoLivingFaceRequest.cc delete mode 100644 facebody/src/model/DetectVideoLivingFaceResult.cc delete mode 100644 facebody/src/model/EnhanceFaceRequest.cc delete mode 100644 facebody/src/model/EnhanceFaceResult.cc create mode 100644 facebody/src/model/ExecuteServerSideVerificationRequest.cc rename facebody/src/model/{GenRealPersonVerificationTokenResult.cc => ExecuteServerSideVerificationResult.cc} (56%) delete mode 100644 facebody/src/model/ExtractPedestrianFeatureAttrRequest.cc delete mode 100644 facebody/src/model/ExtractPedestrianFeatureAttrResult.cc delete mode 100644 facebody/src/model/ExtractPedestrianFeatureAttributeRequest.cc delete mode 100644 facebody/src/model/ExtractPedestrianFeatureAttributeResult.cc delete mode 100644 facebody/src/model/FaceBeautyRequest.cc delete mode 100644 facebody/src/model/FaceBeautyResult.cc delete mode 100644 facebody/src/model/FaceFilterRequest.cc delete mode 100644 facebody/src/model/FaceFilterResult.cc delete mode 100644 facebody/src/model/FaceMakeupRequest.cc delete mode 100644 facebody/src/model/FaceMakeupResult.cc delete mode 100644 facebody/src/model/FaceTidyupRequest.cc delete mode 100644 facebody/src/model/FaceTidyupResult.cc delete mode 100644 facebody/src/model/GenRealPersonVerificationTokenRequest.cc delete mode 100644 facebody/src/model/GenerateHumanAnimeStyleRequest.cc delete mode 100644 facebody/src/model/GenerateHumanAnimeStyleResult.cc delete mode 100644 facebody/src/model/GetBodyPersonRequest.cc delete mode 100644 facebody/src/model/GetBodyPersonResult.cc delete mode 100644 facebody/src/model/GetFaceEntityRequest.cc delete mode 100644 facebody/src/model/GetFaceEntityResult.cc delete mode 100644 facebody/src/model/GetRealPersonVerificationResultRequest.cc delete mode 100644 facebody/src/model/GetRealPersonVerificationResultResult.cc delete mode 100644 facebody/src/model/HandPostureRequest.cc delete mode 100644 facebody/src/model/HandPostureResult.cc delete mode 100644 facebody/src/model/ListBodyDbsRequest.cc delete mode 100644 facebody/src/model/ListBodyDbsResult.cc delete mode 100644 facebody/src/model/ListBodyPersonRequest.cc delete mode 100644 facebody/src/model/ListBodyPersonResult.cc delete mode 100644 facebody/src/model/ListFaceDbsRequest.cc delete mode 100644 facebody/src/model/ListFaceDbsResult.cc delete mode 100644 facebody/src/model/ListFaceEntitiesRequest.cc delete mode 100644 facebody/src/model/ListFaceEntitiesResult.cc delete mode 100644 facebody/src/model/PedestrianDetectAttributeRequest.cc delete mode 100644 facebody/src/model/PedestrianDetectAttributeResult.cc delete mode 100644 facebody/src/model/RecognizeActionRequest.cc delete mode 100644 facebody/src/model/RecognizeActionResult.cc delete mode 100644 facebody/src/model/RecognizeExpressionRequest.cc delete mode 100644 facebody/src/model/RecognizeExpressionResult.cc delete mode 100644 facebody/src/model/RecognizeFaceRequest.cc delete mode 100644 facebody/src/model/RecognizeFaceResult.cc delete mode 100644 facebody/src/model/RecognizePublicFaceRequest.cc delete mode 100644 facebody/src/model/RecognizePublicFaceResult.cc delete mode 100644 facebody/src/model/SearchBodyTraceRequest.cc delete mode 100644 facebody/src/model/SearchBodyTraceResult.cc delete mode 100644 facebody/src/model/SearchFaceRequest.cc delete mode 100644 facebody/src/model/SearchFaceResult.cc delete mode 100644 facebody/src/model/SwapFacialFeaturesRequest.cc delete mode 100644 facebody/src/model/SwapFacialFeaturesResult.cc delete mode 100644 facebody/src/model/UpdateFaceEntityRequest.cc delete mode 100644 facebody/src/model/UpdateFaceEntityResult.cc delete mode 100644 facebody/src/model/VerifyFaceMaskRequest.cc delete mode 100644 facebody/src/model/VerifyFaceMaskResult.cc diff --git a/CHANGELOG b/CHANGELOG index 4ac79bce5..0d452fcda 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,6 @@ +2021-02-01 Version: patch +- Release GenerateHumanSketchStyle MergeImageFace AddFaceImageTemplate QueryFaceImageTemplate DeleteFaceImageTemplate. + 2021-02-01 Version: patch - Release RecognizeFood. diff --git a/facebody/CMakeLists.txt b/facebody/CMakeLists.txt index 45ca6b29c..cc1ba6b50 100644 --- a/facebody/CMakeLists.txt +++ b/facebody/CMakeLists.txt @@ -21,217 +21,17 @@ set(facebody_public_header include/alibabacloud/facebody/FacebodyExport.h ) set(facebody_public_header_model - include/alibabacloud/facebody/model/AddBodyTraceRequest.h - include/alibabacloud/facebody/model/AddBodyTraceResult.h - include/alibabacloud/facebody/model/AddFaceRequest.h - include/alibabacloud/facebody/model/AddFaceResult.h - include/alibabacloud/facebody/model/AddFaceEntityRequest.h - include/alibabacloud/facebody/model/AddFaceEntityResult.h - include/alibabacloud/facebody/model/BlurFaceRequest.h - include/alibabacloud/facebody/model/BlurFaceResult.h - include/alibabacloud/facebody/model/BodyPostureRequest.h - include/alibabacloud/facebody/model/BodyPostureResult.h - include/alibabacloud/facebody/model/CompareFaceRequest.h - include/alibabacloud/facebody/model/CompareFaceResult.h - include/alibabacloud/facebody/model/CountCrowdRequest.h - include/alibabacloud/facebody/model/CountCrowdResult.h - include/alibabacloud/facebody/model/CreateBodyDbRequest.h - include/alibabacloud/facebody/model/CreateBodyDbResult.h - include/alibabacloud/facebody/model/CreateBodyPersonRequest.h - include/alibabacloud/facebody/model/CreateBodyPersonResult.h - include/alibabacloud/facebody/model/CreateFaceDbRequest.h - include/alibabacloud/facebody/model/CreateFaceDbResult.h - include/alibabacloud/facebody/model/DeleteBodyDbRequest.h - include/alibabacloud/facebody/model/DeleteBodyDbResult.h - include/alibabacloud/facebody/model/DeleteBodyPersonRequest.h - include/alibabacloud/facebody/model/DeleteBodyPersonResult.h - include/alibabacloud/facebody/model/DeleteFaceRequest.h - include/alibabacloud/facebody/model/DeleteFaceResult.h - include/alibabacloud/facebody/model/DeleteFaceDbRequest.h - include/alibabacloud/facebody/model/DeleteFaceDbResult.h - include/alibabacloud/facebody/model/DeleteFaceEntityRequest.h - include/alibabacloud/facebody/model/DeleteFaceEntityResult.h - include/alibabacloud/facebody/model/DetectBodyCountRequest.h - include/alibabacloud/facebody/model/DetectBodyCountResult.h - include/alibabacloud/facebody/model/DetectCelebrityRequest.h - include/alibabacloud/facebody/model/DetectCelebrityResult.h - include/alibabacloud/facebody/model/DetectChefCapRequest.h - 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/DetectLivingFaceRequest.h - include/alibabacloud/facebody/model/DetectLivingFaceResult.h - include/alibabacloud/facebody/model/DetectMaskRequest.h - include/alibabacloud/facebody/model/DetectMaskResult.h - include/alibabacloud/facebody/model/DetectPedestrianRequest.h - include/alibabacloud/facebody/model/DetectPedestrianResult.h - include/alibabacloud/facebody/model/DetectPedestrianIntrusionRequest.h - include/alibabacloud/facebody/model/DetectPedestrianIntrusionResult.h - include/alibabacloud/facebody/model/DetectVideoLivingFaceRequest.h - include/alibabacloud/facebody/model/DetectVideoLivingFaceResult.h - include/alibabacloud/facebody/model/EnhanceFaceRequest.h - include/alibabacloud/facebody/model/EnhanceFaceResult.h - include/alibabacloud/facebody/model/ExtractPedestrianFeatureAttrRequest.h - include/alibabacloud/facebody/model/ExtractPedestrianFeatureAttrResult.h - include/alibabacloud/facebody/model/ExtractPedestrianFeatureAttributeRequest.h - include/alibabacloud/facebody/model/ExtractPedestrianFeatureAttributeResult.h - include/alibabacloud/facebody/model/FaceBeautyRequest.h - include/alibabacloud/facebody/model/FaceBeautyResult.h - include/alibabacloud/facebody/model/FaceFilterRequest.h - include/alibabacloud/facebody/model/FaceFilterResult.h - include/alibabacloud/facebody/model/FaceMakeupRequest.h - include/alibabacloud/facebody/model/FaceMakeupResult.h - include/alibabacloud/facebody/model/FaceTidyupRequest.h - include/alibabacloud/facebody/model/FaceTidyupResult.h - include/alibabacloud/facebody/model/GenRealPersonVerificationTokenRequest.h - include/alibabacloud/facebody/model/GenRealPersonVerificationTokenResult.h - include/alibabacloud/facebody/model/GenerateHumanAnimeStyleRequest.h - include/alibabacloud/facebody/model/GenerateHumanAnimeStyleResult.h - include/alibabacloud/facebody/model/GetBodyPersonRequest.h - include/alibabacloud/facebody/model/GetBodyPersonResult.h - include/alibabacloud/facebody/model/GetFaceEntityRequest.h - include/alibabacloud/facebody/model/GetFaceEntityResult.h - include/alibabacloud/facebody/model/GetRealPersonVerificationResultRequest.h - include/alibabacloud/facebody/model/GetRealPersonVerificationResultResult.h - include/alibabacloud/facebody/model/HandPostureRequest.h - include/alibabacloud/facebody/model/HandPostureResult.h - include/alibabacloud/facebody/model/ListBodyDbsRequest.h - include/alibabacloud/facebody/model/ListBodyDbsResult.h - include/alibabacloud/facebody/model/ListBodyPersonRequest.h - include/alibabacloud/facebody/model/ListBodyPersonResult.h - include/alibabacloud/facebody/model/ListFaceDbsRequest.h - include/alibabacloud/facebody/model/ListFaceDbsResult.h - include/alibabacloud/facebody/model/ListFaceEntitiesRequest.h - include/alibabacloud/facebody/model/ListFaceEntitiesResult.h - include/alibabacloud/facebody/model/PedestrianDetectAttributeRequest.h - include/alibabacloud/facebody/model/PedestrianDetectAttributeResult.h - include/alibabacloud/facebody/model/RecognizeActionRequest.h - include/alibabacloud/facebody/model/RecognizeActionResult.h - include/alibabacloud/facebody/model/RecognizeExpressionRequest.h - include/alibabacloud/facebody/model/RecognizeExpressionResult.h - include/alibabacloud/facebody/model/RecognizeFaceRequest.h - include/alibabacloud/facebody/model/RecognizeFaceResult.h - include/alibabacloud/facebody/model/RecognizePublicFaceRequest.h - include/alibabacloud/facebody/model/RecognizePublicFaceResult.h - include/alibabacloud/facebody/model/SearchBodyTraceRequest.h - include/alibabacloud/facebody/model/SearchBodyTraceResult.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 - include/alibabacloud/facebody/model/VerifyFaceMaskResult.h ) + include/alibabacloud/facebody/model/DetectIPCPedestrianOptimizedRequest.h + include/alibabacloud/facebody/model/DetectIPCPedestrianOptimizedResult.h + include/alibabacloud/facebody/model/ExecuteServerSideVerificationRequest.h + include/alibabacloud/facebody/model/ExecuteServerSideVerificationResult.h ) set(facebody_src src/FacebodyClient.cc - src/model/AddBodyTraceRequest.cc - src/model/AddBodyTraceResult.cc - src/model/AddFaceRequest.cc - src/model/AddFaceResult.cc - src/model/AddFaceEntityRequest.cc - src/model/AddFaceEntityResult.cc - src/model/BlurFaceRequest.cc - src/model/BlurFaceResult.cc - src/model/BodyPostureRequest.cc - src/model/BodyPostureResult.cc - src/model/CompareFaceRequest.cc - src/model/CompareFaceResult.cc - src/model/CountCrowdRequest.cc - src/model/CountCrowdResult.cc - src/model/CreateBodyDbRequest.cc - src/model/CreateBodyDbResult.cc - src/model/CreateBodyPersonRequest.cc - src/model/CreateBodyPersonResult.cc - src/model/CreateFaceDbRequest.cc - src/model/CreateFaceDbResult.cc - src/model/DeleteBodyDbRequest.cc - src/model/DeleteBodyDbResult.cc - src/model/DeleteBodyPersonRequest.cc - src/model/DeleteBodyPersonResult.cc - src/model/DeleteFaceRequest.cc - src/model/DeleteFaceResult.cc - src/model/DeleteFaceDbRequest.cc - src/model/DeleteFaceDbResult.cc - src/model/DeleteFaceEntityRequest.cc - src/model/DeleteFaceEntityResult.cc - src/model/DetectBodyCountRequest.cc - src/model/DetectBodyCountResult.cc - src/model/DetectCelebrityRequest.cc - src/model/DetectCelebrityResult.cc - src/model/DetectChefCapRequest.cc - src/model/DetectChefCapResult.cc - src/model/DetectFaceRequest.cc - src/model/DetectFaceResult.cc - src/model/DetectIPCPedestrianRequest.cc - src/model/DetectIPCPedestrianResult.cc - src/model/DetectLivingFaceRequest.cc - src/model/DetectLivingFaceResult.cc - src/model/DetectMaskRequest.cc - src/model/DetectMaskResult.cc - src/model/DetectPedestrianRequest.cc - src/model/DetectPedestrianResult.cc - src/model/DetectPedestrianIntrusionRequest.cc - src/model/DetectPedestrianIntrusionResult.cc - src/model/DetectVideoLivingFaceRequest.cc - src/model/DetectVideoLivingFaceResult.cc - src/model/EnhanceFaceRequest.cc - src/model/EnhanceFaceResult.cc - src/model/ExtractPedestrianFeatureAttrRequest.cc - src/model/ExtractPedestrianFeatureAttrResult.cc - src/model/ExtractPedestrianFeatureAttributeRequest.cc - src/model/ExtractPedestrianFeatureAttributeResult.cc - src/model/FaceBeautyRequest.cc - src/model/FaceBeautyResult.cc - src/model/FaceFilterRequest.cc - src/model/FaceFilterResult.cc - src/model/FaceMakeupRequest.cc - src/model/FaceMakeupResult.cc - src/model/FaceTidyupRequest.cc - src/model/FaceTidyupResult.cc - src/model/GenRealPersonVerificationTokenRequest.cc - src/model/GenRealPersonVerificationTokenResult.cc - src/model/GenerateHumanAnimeStyleRequest.cc - src/model/GenerateHumanAnimeStyleResult.cc - src/model/GetBodyPersonRequest.cc - src/model/GetBodyPersonResult.cc - src/model/GetFaceEntityRequest.cc - src/model/GetFaceEntityResult.cc - src/model/GetRealPersonVerificationResultRequest.cc - src/model/GetRealPersonVerificationResultResult.cc - src/model/HandPostureRequest.cc - src/model/HandPostureResult.cc - src/model/ListBodyDbsRequest.cc - src/model/ListBodyDbsResult.cc - src/model/ListBodyPersonRequest.cc - src/model/ListBodyPersonResult.cc - src/model/ListFaceDbsRequest.cc - src/model/ListFaceDbsResult.cc - src/model/ListFaceEntitiesRequest.cc - src/model/ListFaceEntitiesResult.cc - src/model/PedestrianDetectAttributeRequest.cc - src/model/PedestrianDetectAttributeResult.cc - src/model/RecognizeActionRequest.cc - src/model/RecognizeActionResult.cc - src/model/RecognizeExpressionRequest.cc - src/model/RecognizeExpressionResult.cc - src/model/RecognizeFaceRequest.cc - src/model/RecognizeFaceResult.cc - src/model/RecognizePublicFaceRequest.cc - src/model/RecognizePublicFaceResult.cc - src/model/SearchBodyTraceRequest.cc - src/model/SearchBodyTraceResult.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 - src/model/VerifyFaceMaskResult.cc ) + src/model/DetectIPCPedestrianOptimizedRequest.cc + src/model/DetectIPCPedestrianOptimizedResult.cc + src/model/ExecuteServerSideVerificationRequest.cc + src/model/ExecuteServerSideVerificationResult.cc ) add_library(facebody ${LIB_TYPE} ${facebody_public_header} diff --git a/facebody/include/alibabacloud/facebody/FacebodyClient.h b/facebody/include/alibabacloud/facebody/FacebodyClient.h index 49f440684..d2917548d 100644 --- a/facebody/include/alibabacloud/facebody/FacebodyClient.h +++ b/facebody/include/alibabacloud/facebody/FacebodyClient.h @@ -20,438 +20,38 @@ #include #include #include -#include +#include #include "FacebodyExport.h" -#include "model/AddBodyTraceRequest.h" -#include "model/AddBodyTraceResult.h" -#include "model/AddFaceRequest.h" -#include "model/AddFaceResult.h" -#include "model/AddFaceEntityRequest.h" -#include "model/AddFaceEntityResult.h" -#include "model/BlurFaceRequest.h" -#include "model/BlurFaceResult.h" -#include "model/BodyPostureRequest.h" -#include "model/BodyPostureResult.h" -#include "model/CompareFaceRequest.h" -#include "model/CompareFaceResult.h" -#include "model/CountCrowdRequest.h" -#include "model/CountCrowdResult.h" -#include "model/CreateBodyDbRequest.h" -#include "model/CreateBodyDbResult.h" -#include "model/CreateBodyPersonRequest.h" -#include "model/CreateBodyPersonResult.h" -#include "model/CreateFaceDbRequest.h" -#include "model/CreateFaceDbResult.h" -#include "model/DeleteBodyDbRequest.h" -#include "model/DeleteBodyDbResult.h" -#include "model/DeleteBodyPersonRequest.h" -#include "model/DeleteBodyPersonResult.h" -#include "model/DeleteFaceRequest.h" -#include "model/DeleteFaceResult.h" -#include "model/DeleteFaceDbRequest.h" -#include "model/DeleteFaceDbResult.h" -#include "model/DeleteFaceEntityRequest.h" -#include "model/DeleteFaceEntityResult.h" -#include "model/DetectBodyCountRequest.h" -#include "model/DetectBodyCountResult.h" -#include "model/DetectCelebrityRequest.h" -#include "model/DetectCelebrityResult.h" -#include "model/DetectChefCapRequest.h" -#include "model/DetectChefCapResult.h" -#include "model/DetectFaceRequest.h" -#include "model/DetectFaceResult.h" -#include "model/DetectIPCPedestrianRequest.h" -#include "model/DetectIPCPedestrianResult.h" -#include "model/DetectLivingFaceRequest.h" -#include "model/DetectLivingFaceResult.h" -#include "model/DetectMaskRequest.h" -#include "model/DetectMaskResult.h" -#include "model/DetectPedestrianRequest.h" -#include "model/DetectPedestrianResult.h" -#include "model/DetectPedestrianIntrusionRequest.h" -#include "model/DetectPedestrianIntrusionResult.h" -#include "model/DetectVideoLivingFaceRequest.h" -#include "model/DetectVideoLivingFaceResult.h" -#include "model/EnhanceFaceRequest.h" -#include "model/EnhanceFaceResult.h" -#include "model/ExtractPedestrianFeatureAttrRequest.h" -#include "model/ExtractPedestrianFeatureAttrResult.h" -#include "model/ExtractPedestrianFeatureAttributeRequest.h" -#include "model/ExtractPedestrianFeatureAttributeResult.h" -#include "model/FaceBeautyRequest.h" -#include "model/FaceBeautyResult.h" -#include "model/FaceFilterRequest.h" -#include "model/FaceFilterResult.h" -#include "model/FaceMakeupRequest.h" -#include "model/FaceMakeupResult.h" -#include "model/FaceTidyupRequest.h" -#include "model/FaceTidyupResult.h" -#include "model/GenRealPersonVerificationTokenRequest.h" -#include "model/GenRealPersonVerificationTokenResult.h" -#include "model/GenerateHumanAnimeStyleRequest.h" -#include "model/GenerateHumanAnimeStyleResult.h" -#include "model/GetBodyPersonRequest.h" -#include "model/GetBodyPersonResult.h" -#include "model/GetFaceEntityRequest.h" -#include "model/GetFaceEntityResult.h" -#include "model/GetRealPersonVerificationResultRequest.h" -#include "model/GetRealPersonVerificationResultResult.h" -#include "model/HandPostureRequest.h" -#include "model/HandPostureResult.h" -#include "model/ListBodyDbsRequest.h" -#include "model/ListBodyDbsResult.h" -#include "model/ListBodyPersonRequest.h" -#include "model/ListBodyPersonResult.h" -#include "model/ListFaceDbsRequest.h" -#include "model/ListFaceDbsResult.h" -#include "model/ListFaceEntitiesRequest.h" -#include "model/ListFaceEntitiesResult.h" -#include "model/PedestrianDetectAttributeRequest.h" -#include "model/PedestrianDetectAttributeResult.h" -#include "model/RecognizeActionRequest.h" -#include "model/RecognizeActionResult.h" -#include "model/RecognizeExpressionRequest.h" -#include "model/RecognizeExpressionResult.h" -#include "model/RecognizeFaceRequest.h" -#include "model/RecognizeFaceResult.h" -#include "model/RecognizePublicFaceRequest.h" -#include "model/RecognizePublicFaceResult.h" -#include "model/SearchBodyTraceRequest.h" -#include "model/SearchBodyTraceResult.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" -#include "model/VerifyFaceMaskResult.h" +#include "model/DetectIPCPedestrianOptimizedRequest.h" +#include "model/DetectIPCPedestrianOptimizedResult.h" +#include "model/ExecuteServerSideVerificationRequest.h" +#include "model/ExecuteServerSideVerificationResult.h" namespace AlibabaCloud { namespace Facebody { - class ALIBABACLOUD_FACEBODY_EXPORT FacebodyClient : public RpcServiceClient + class ALIBABACLOUD_FACEBODY_EXPORT FacebodyClient : public RoaServiceClient { public: - typedef Outcome AddBodyTraceOutcome; - typedef std::future AddBodyTraceOutcomeCallable; - typedef std::function&)> AddBodyTraceAsyncHandler; - typedef Outcome AddFaceOutcome; - typedef std::future AddFaceOutcomeCallable; - typedef std::function&)> AddFaceAsyncHandler; - typedef Outcome AddFaceEntityOutcome; - typedef std::future AddFaceEntityOutcomeCallable; - typedef std::function&)> AddFaceEntityAsyncHandler; - typedef Outcome BlurFaceOutcome; - typedef std::future BlurFaceOutcomeCallable; - typedef std::function&)> BlurFaceAsyncHandler; - typedef Outcome BodyPostureOutcome; - typedef std::future BodyPostureOutcomeCallable; - typedef std::function&)> BodyPostureAsyncHandler; - typedef Outcome CompareFaceOutcome; - typedef std::future CompareFaceOutcomeCallable; - typedef std::function&)> CompareFaceAsyncHandler; - typedef Outcome CountCrowdOutcome; - typedef std::future CountCrowdOutcomeCallable; - typedef std::function&)> CountCrowdAsyncHandler; - typedef Outcome CreateBodyDbOutcome; - typedef std::future CreateBodyDbOutcomeCallable; - typedef std::function&)> CreateBodyDbAsyncHandler; - typedef Outcome CreateBodyPersonOutcome; - typedef std::future CreateBodyPersonOutcomeCallable; - typedef std::function&)> CreateBodyPersonAsyncHandler; - typedef Outcome CreateFaceDbOutcome; - typedef std::future CreateFaceDbOutcomeCallable; - typedef std::function&)> CreateFaceDbAsyncHandler; - typedef Outcome DeleteBodyDbOutcome; - typedef std::future DeleteBodyDbOutcomeCallable; - typedef std::function&)> DeleteBodyDbAsyncHandler; - typedef Outcome DeleteBodyPersonOutcome; - typedef std::future DeleteBodyPersonOutcomeCallable; - typedef std::function&)> DeleteBodyPersonAsyncHandler; - typedef Outcome DeleteFaceOutcome; - typedef std::future DeleteFaceOutcomeCallable; - typedef std::function&)> DeleteFaceAsyncHandler; - typedef Outcome DeleteFaceDbOutcome; - typedef std::future DeleteFaceDbOutcomeCallable; - typedef std::function&)> DeleteFaceDbAsyncHandler; - typedef Outcome DeleteFaceEntityOutcome; - typedef std::future DeleteFaceEntityOutcomeCallable; - typedef std::function&)> DeleteFaceEntityAsyncHandler; - typedef Outcome DetectBodyCountOutcome; - typedef std::future DetectBodyCountOutcomeCallable; - typedef std::function&)> DetectBodyCountAsyncHandler; - typedef Outcome DetectCelebrityOutcome; - typedef std::future DetectCelebrityOutcomeCallable; - typedef std::function&)> DetectCelebrityAsyncHandler; - typedef Outcome DetectChefCapOutcome; - typedef std::future DetectChefCapOutcomeCallable; - typedef std::function&)> DetectChefCapAsyncHandler; - typedef Outcome DetectFaceOutcome; - typedef std::future DetectFaceOutcomeCallable; - typedef std::function&)> DetectFaceAsyncHandler; - typedef Outcome DetectIPCPedestrianOutcome; - typedef std::future DetectIPCPedestrianOutcomeCallable; - typedef std::function&)> DetectIPCPedestrianAsyncHandler; - typedef Outcome DetectLivingFaceOutcome; - typedef std::future DetectLivingFaceOutcomeCallable; - typedef std::function&)> DetectLivingFaceAsyncHandler; - typedef Outcome DetectMaskOutcome; - typedef std::future DetectMaskOutcomeCallable; - typedef std::function&)> DetectMaskAsyncHandler; - typedef Outcome DetectPedestrianOutcome; - typedef std::future DetectPedestrianOutcomeCallable; - typedef std::function&)> DetectPedestrianAsyncHandler; - typedef Outcome DetectPedestrianIntrusionOutcome; - typedef std::future DetectPedestrianIntrusionOutcomeCallable; - typedef std::function&)> DetectPedestrianIntrusionAsyncHandler; - typedef Outcome DetectVideoLivingFaceOutcome; - typedef std::future DetectVideoLivingFaceOutcomeCallable; - typedef std::function&)> DetectVideoLivingFaceAsyncHandler; - typedef Outcome EnhanceFaceOutcome; - typedef std::future EnhanceFaceOutcomeCallable; - typedef std::function&)> EnhanceFaceAsyncHandler; - typedef Outcome ExtractPedestrianFeatureAttrOutcome; - typedef std::future ExtractPedestrianFeatureAttrOutcomeCallable; - typedef std::function&)> ExtractPedestrianFeatureAttrAsyncHandler; - typedef Outcome ExtractPedestrianFeatureAttributeOutcome; - typedef std::future ExtractPedestrianFeatureAttributeOutcomeCallable; - typedef std::function&)> ExtractPedestrianFeatureAttributeAsyncHandler; - typedef Outcome FaceBeautyOutcome; - typedef std::future FaceBeautyOutcomeCallable; - typedef std::function&)> FaceBeautyAsyncHandler; - typedef Outcome FaceFilterOutcome; - typedef std::future FaceFilterOutcomeCallable; - typedef std::function&)> FaceFilterAsyncHandler; - typedef Outcome FaceMakeupOutcome; - typedef std::future FaceMakeupOutcomeCallable; - typedef std::function&)> FaceMakeupAsyncHandler; - typedef Outcome FaceTidyupOutcome; - typedef std::future FaceTidyupOutcomeCallable; - typedef std::function&)> FaceTidyupAsyncHandler; - typedef Outcome GenRealPersonVerificationTokenOutcome; - typedef std::future GenRealPersonVerificationTokenOutcomeCallable; - typedef std::function&)> GenRealPersonVerificationTokenAsyncHandler; - typedef Outcome GenerateHumanAnimeStyleOutcome; - typedef std::future GenerateHumanAnimeStyleOutcomeCallable; - typedef std::function&)> GenerateHumanAnimeStyleAsyncHandler; - typedef Outcome GetBodyPersonOutcome; - typedef std::future GetBodyPersonOutcomeCallable; - typedef std::function&)> GetBodyPersonAsyncHandler; - typedef Outcome GetFaceEntityOutcome; - typedef std::future GetFaceEntityOutcomeCallable; - typedef std::function&)> GetFaceEntityAsyncHandler; - typedef Outcome GetRealPersonVerificationResultOutcome; - typedef std::future GetRealPersonVerificationResultOutcomeCallable; - typedef std::function&)> GetRealPersonVerificationResultAsyncHandler; - typedef Outcome HandPostureOutcome; - typedef std::future HandPostureOutcomeCallable; - typedef std::function&)> HandPostureAsyncHandler; - typedef Outcome ListBodyDbsOutcome; - typedef std::future ListBodyDbsOutcomeCallable; - typedef std::function&)> ListBodyDbsAsyncHandler; - typedef Outcome ListBodyPersonOutcome; - typedef std::future ListBodyPersonOutcomeCallable; - typedef std::function&)> ListBodyPersonAsyncHandler; - typedef Outcome ListFaceDbsOutcome; - typedef std::future ListFaceDbsOutcomeCallable; - typedef std::function&)> ListFaceDbsAsyncHandler; - typedef Outcome ListFaceEntitiesOutcome; - typedef std::future ListFaceEntitiesOutcomeCallable; - typedef std::function&)> ListFaceEntitiesAsyncHandler; - typedef Outcome PedestrianDetectAttributeOutcome; - typedef std::future PedestrianDetectAttributeOutcomeCallable; - typedef std::function&)> PedestrianDetectAttributeAsyncHandler; - typedef Outcome RecognizeActionOutcome; - typedef std::future RecognizeActionOutcomeCallable; - typedef std::function&)> RecognizeActionAsyncHandler; - typedef Outcome RecognizeExpressionOutcome; - typedef std::future RecognizeExpressionOutcomeCallable; - typedef std::function&)> RecognizeExpressionAsyncHandler; - typedef Outcome RecognizeFaceOutcome; - typedef std::future RecognizeFaceOutcomeCallable; - typedef std::function&)> RecognizeFaceAsyncHandler; - typedef Outcome RecognizePublicFaceOutcome; - typedef std::future RecognizePublicFaceOutcomeCallable; - typedef std::function&)> RecognizePublicFaceAsyncHandler; - typedef Outcome SearchBodyTraceOutcome; - typedef std::future SearchBodyTraceOutcomeCallable; - typedef std::function&)> SearchBodyTraceAsyncHandler; - typedef Outcome SearchFaceOutcome; - typedef std::future SearchFaceOutcomeCallable; - typedef std::function&)> SearchFaceAsyncHandler; - typedef Outcome SwapFacialFeaturesOutcome; - typedef std::future SwapFacialFeaturesOutcomeCallable; - typedef std::function&)> SwapFacialFeaturesAsyncHandler; - typedef Outcome UpdateFaceEntityOutcome; - typedef std::future UpdateFaceEntityOutcomeCallable; - typedef std::function&)> UpdateFaceEntityAsyncHandler; - typedef Outcome VerifyFaceMaskOutcome; - typedef std::future VerifyFaceMaskOutcomeCallable; - typedef std::function&)> VerifyFaceMaskAsyncHandler; + typedef Outcome DetectIPCPedestrianOptimizedOutcome; + typedef std::future DetectIPCPedestrianOptimizedOutcomeCallable; + typedef std::function&)> DetectIPCPedestrianOptimizedAsyncHandler; + typedef Outcome ExecuteServerSideVerificationOutcome; + typedef std::future ExecuteServerSideVerificationOutcomeCallable; + typedef std::function&)> ExecuteServerSideVerificationAsyncHandler; FacebodyClient(const Credentials &credentials, const ClientConfiguration &configuration); FacebodyClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); FacebodyClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration); ~FacebodyClient(); - AddBodyTraceOutcome addBodyTrace(const Model::AddBodyTraceRequest &request)const; - void addBodyTraceAsync(const Model::AddBodyTraceRequest& request, const AddBodyTraceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - AddBodyTraceOutcomeCallable addBodyTraceCallable(const Model::AddBodyTraceRequest& request) const; - AddFaceOutcome addFace(const Model::AddFaceRequest &request)const; - void addFaceAsync(const Model::AddFaceRequest& request, const AddFaceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - AddFaceOutcomeCallable addFaceCallable(const Model::AddFaceRequest& request) const; - AddFaceEntityOutcome addFaceEntity(const Model::AddFaceEntityRequest &request)const; - void addFaceEntityAsync(const Model::AddFaceEntityRequest& request, const AddFaceEntityAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - AddFaceEntityOutcomeCallable addFaceEntityCallable(const Model::AddFaceEntityRequest& request) const; - BlurFaceOutcome blurFace(const Model::BlurFaceRequest &request)const; - void blurFaceAsync(const Model::BlurFaceRequest& request, const BlurFaceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - BlurFaceOutcomeCallable blurFaceCallable(const Model::BlurFaceRequest& request) const; - BodyPostureOutcome bodyPosture(const Model::BodyPostureRequest &request)const; - void bodyPostureAsync(const Model::BodyPostureRequest& request, const BodyPostureAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - BodyPostureOutcomeCallable bodyPostureCallable(const Model::BodyPostureRequest& request) const; - CompareFaceOutcome compareFace(const Model::CompareFaceRequest &request)const; - void compareFaceAsync(const Model::CompareFaceRequest& request, const CompareFaceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CompareFaceOutcomeCallable compareFaceCallable(const Model::CompareFaceRequest& request) const; - CountCrowdOutcome countCrowd(const Model::CountCrowdRequest &request)const; - void countCrowdAsync(const Model::CountCrowdRequest& request, const CountCrowdAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CountCrowdOutcomeCallable countCrowdCallable(const Model::CountCrowdRequest& request) const; - CreateBodyDbOutcome createBodyDb(const Model::CreateBodyDbRequest &request)const; - void createBodyDbAsync(const Model::CreateBodyDbRequest& request, const CreateBodyDbAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CreateBodyDbOutcomeCallable createBodyDbCallable(const Model::CreateBodyDbRequest& request) const; - CreateBodyPersonOutcome createBodyPerson(const Model::CreateBodyPersonRequest &request)const; - void createBodyPersonAsync(const Model::CreateBodyPersonRequest& request, const CreateBodyPersonAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CreateBodyPersonOutcomeCallable createBodyPersonCallable(const Model::CreateBodyPersonRequest& request) const; - CreateFaceDbOutcome createFaceDb(const Model::CreateFaceDbRequest &request)const; - void createFaceDbAsync(const Model::CreateFaceDbRequest& request, const CreateFaceDbAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CreateFaceDbOutcomeCallable createFaceDbCallable(const Model::CreateFaceDbRequest& request) const; - DeleteBodyDbOutcome deleteBodyDb(const Model::DeleteBodyDbRequest &request)const; - void deleteBodyDbAsync(const Model::DeleteBodyDbRequest& request, const DeleteBodyDbAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DeleteBodyDbOutcomeCallable deleteBodyDbCallable(const Model::DeleteBodyDbRequest& request) const; - DeleteBodyPersonOutcome deleteBodyPerson(const Model::DeleteBodyPersonRequest &request)const; - void deleteBodyPersonAsync(const Model::DeleteBodyPersonRequest& request, const DeleteBodyPersonAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DeleteBodyPersonOutcomeCallable deleteBodyPersonCallable(const Model::DeleteBodyPersonRequest& request) const; - DeleteFaceOutcome deleteFace(const Model::DeleteFaceRequest &request)const; - void deleteFaceAsync(const Model::DeleteFaceRequest& request, const DeleteFaceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DeleteFaceOutcomeCallable deleteFaceCallable(const Model::DeleteFaceRequest& request) const; - DeleteFaceDbOutcome deleteFaceDb(const Model::DeleteFaceDbRequest &request)const; - void deleteFaceDbAsync(const Model::DeleteFaceDbRequest& request, const DeleteFaceDbAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DeleteFaceDbOutcomeCallable deleteFaceDbCallable(const Model::DeleteFaceDbRequest& request) const; - DeleteFaceEntityOutcome deleteFaceEntity(const Model::DeleteFaceEntityRequest &request)const; - void deleteFaceEntityAsync(const Model::DeleteFaceEntityRequest& request, const DeleteFaceEntityAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DeleteFaceEntityOutcomeCallable deleteFaceEntityCallable(const Model::DeleteFaceEntityRequest& request) const; - DetectBodyCountOutcome detectBodyCount(const Model::DetectBodyCountRequest &request)const; - void detectBodyCountAsync(const Model::DetectBodyCountRequest& request, const DetectBodyCountAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DetectBodyCountOutcomeCallable detectBodyCountCallable(const Model::DetectBodyCountRequest& request) const; - DetectCelebrityOutcome detectCelebrity(const Model::DetectCelebrityRequest &request)const; - void detectCelebrityAsync(const Model::DetectCelebrityRequest& request, const DetectCelebrityAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DetectCelebrityOutcomeCallable detectCelebrityCallable(const Model::DetectCelebrityRequest& request) const; - DetectChefCapOutcome detectChefCap(const Model::DetectChefCapRequest &request)const; - void detectChefCapAsync(const Model::DetectChefCapRequest& request, const DetectChefCapAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DetectChefCapOutcomeCallable detectChefCapCallable(const Model::DetectChefCapRequest& request) const; - DetectFaceOutcome detectFace(const Model::DetectFaceRequest &request)const; - void detectFaceAsync(const Model::DetectFaceRequest& request, const DetectFaceAsyncHandler& handler, const std::shared_ptr& 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& context = nullptr) const; - DetectIPCPedestrianOutcomeCallable detectIPCPedestrianCallable(const Model::DetectIPCPedestrianRequest& request) const; - DetectLivingFaceOutcome detectLivingFace(const Model::DetectLivingFaceRequest &request)const; - void detectLivingFaceAsync(const Model::DetectLivingFaceRequest& request, const DetectLivingFaceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DetectLivingFaceOutcomeCallable detectLivingFaceCallable(const Model::DetectLivingFaceRequest& request) const; - DetectMaskOutcome detectMask(const Model::DetectMaskRequest &request)const; - void detectMaskAsync(const Model::DetectMaskRequest& request, const DetectMaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DetectMaskOutcomeCallable detectMaskCallable(const Model::DetectMaskRequest& request) const; - DetectPedestrianOutcome detectPedestrian(const Model::DetectPedestrianRequest &request)const; - void detectPedestrianAsync(const Model::DetectPedestrianRequest& request, const DetectPedestrianAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DetectPedestrianOutcomeCallable detectPedestrianCallable(const Model::DetectPedestrianRequest& request) const; - DetectPedestrianIntrusionOutcome detectPedestrianIntrusion(const Model::DetectPedestrianIntrusionRequest &request)const; - void detectPedestrianIntrusionAsync(const Model::DetectPedestrianIntrusionRequest& request, const DetectPedestrianIntrusionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DetectPedestrianIntrusionOutcomeCallable detectPedestrianIntrusionCallable(const Model::DetectPedestrianIntrusionRequest& request) const; - DetectVideoLivingFaceOutcome detectVideoLivingFace(const Model::DetectVideoLivingFaceRequest &request)const; - void detectVideoLivingFaceAsync(const Model::DetectVideoLivingFaceRequest& request, const DetectVideoLivingFaceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DetectVideoLivingFaceOutcomeCallable detectVideoLivingFaceCallable(const Model::DetectVideoLivingFaceRequest& request) const; - EnhanceFaceOutcome enhanceFace(const Model::EnhanceFaceRequest &request)const; - void enhanceFaceAsync(const Model::EnhanceFaceRequest& request, const EnhanceFaceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - EnhanceFaceOutcomeCallable enhanceFaceCallable(const Model::EnhanceFaceRequest& request) const; - ExtractPedestrianFeatureAttrOutcome extractPedestrianFeatureAttr(const Model::ExtractPedestrianFeatureAttrRequest &request)const; - void extractPedestrianFeatureAttrAsync(const Model::ExtractPedestrianFeatureAttrRequest& request, const ExtractPedestrianFeatureAttrAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ExtractPedestrianFeatureAttrOutcomeCallable extractPedestrianFeatureAttrCallable(const Model::ExtractPedestrianFeatureAttrRequest& request) const; - ExtractPedestrianFeatureAttributeOutcome extractPedestrianFeatureAttribute(const Model::ExtractPedestrianFeatureAttributeRequest &request)const; - void extractPedestrianFeatureAttributeAsync(const Model::ExtractPedestrianFeatureAttributeRequest& request, const ExtractPedestrianFeatureAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ExtractPedestrianFeatureAttributeOutcomeCallable extractPedestrianFeatureAttributeCallable(const Model::ExtractPedestrianFeatureAttributeRequest& request) const; - FaceBeautyOutcome faceBeauty(const Model::FaceBeautyRequest &request)const; - void faceBeautyAsync(const Model::FaceBeautyRequest& request, const FaceBeautyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - FaceBeautyOutcomeCallable faceBeautyCallable(const Model::FaceBeautyRequest& request) const; - FaceFilterOutcome faceFilter(const Model::FaceFilterRequest &request)const; - void faceFilterAsync(const Model::FaceFilterRequest& request, const FaceFilterAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - FaceFilterOutcomeCallable faceFilterCallable(const Model::FaceFilterRequest& request) const; - FaceMakeupOutcome faceMakeup(const Model::FaceMakeupRequest &request)const; - void faceMakeupAsync(const Model::FaceMakeupRequest& request, const FaceMakeupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - FaceMakeupOutcomeCallable faceMakeupCallable(const Model::FaceMakeupRequest& request) const; - FaceTidyupOutcome faceTidyup(const Model::FaceTidyupRequest &request)const; - void faceTidyupAsync(const Model::FaceTidyupRequest& request, const FaceTidyupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - FaceTidyupOutcomeCallable faceTidyupCallable(const Model::FaceTidyupRequest& request) const; - GenRealPersonVerificationTokenOutcome genRealPersonVerificationToken(const Model::GenRealPersonVerificationTokenRequest &request)const; - void genRealPersonVerificationTokenAsync(const Model::GenRealPersonVerificationTokenRequest& request, const GenRealPersonVerificationTokenAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GenRealPersonVerificationTokenOutcomeCallable genRealPersonVerificationTokenCallable(const Model::GenRealPersonVerificationTokenRequest& request) const; - GenerateHumanAnimeStyleOutcome generateHumanAnimeStyle(const Model::GenerateHumanAnimeStyleRequest &request)const; - void generateHumanAnimeStyleAsync(const Model::GenerateHumanAnimeStyleRequest& request, const GenerateHumanAnimeStyleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GenerateHumanAnimeStyleOutcomeCallable generateHumanAnimeStyleCallable(const Model::GenerateHumanAnimeStyleRequest& request) const; - GetBodyPersonOutcome getBodyPerson(const Model::GetBodyPersonRequest &request)const; - void getBodyPersonAsync(const Model::GetBodyPersonRequest& request, const GetBodyPersonAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetBodyPersonOutcomeCallable getBodyPersonCallable(const Model::GetBodyPersonRequest& request) const; - GetFaceEntityOutcome getFaceEntity(const Model::GetFaceEntityRequest &request)const; - void getFaceEntityAsync(const Model::GetFaceEntityRequest& request, const GetFaceEntityAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetFaceEntityOutcomeCallable getFaceEntityCallable(const Model::GetFaceEntityRequest& request) const; - GetRealPersonVerificationResultOutcome getRealPersonVerificationResult(const Model::GetRealPersonVerificationResultRequest &request)const; - void getRealPersonVerificationResultAsync(const Model::GetRealPersonVerificationResultRequest& request, const GetRealPersonVerificationResultAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetRealPersonVerificationResultOutcomeCallable getRealPersonVerificationResultCallable(const Model::GetRealPersonVerificationResultRequest& request) const; - HandPostureOutcome handPosture(const Model::HandPostureRequest &request)const; - void handPostureAsync(const Model::HandPostureRequest& request, const HandPostureAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - HandPostureOutcomeCallable handPostureCallable(const Model::HandPostureRequest& request) const; - ListBodyDbsOutcome listBodyDbs(const Model::ListBodyDbsRequest &request)const; - void listBodyDbsAsync(const Model::ListBodyDbsRequest& request, const ListBodyDbsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListBodyDbsOutcomeCallable listBodyDbsCallable(const Model::ListBodyDbsRequest& request) const; - ListBodyPersonOutcome listBodyPerson(const Model::ListBodyPersonRequest &request)const; - void listBodyPersonAsync(const Model::ListBodyPersonRequest& request, const ListBodyPersonAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListBodyPersonOutcomeCallable listBodyPersonCallable(const Model::ListBodyPersonRequest& request) const; - ListFaceDbsOutcome listFaceDbs(const Model::ListFaceDbsRequest &request)const; - void listFaceDbsAsync(const Model::ListFaceDbsRequest& request, const ListFaceDbsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListFaceDbsOutcomeCallable listFaceDbsCallable(const Model::ListFaceDbsRequest& request) const; - ListFaceEntitiesOutcome listFaceEntities(const Model::ListFaceEntitiesRequest &request)const; - void listFaceEntitiesAsync(const Model::ListFaceEntitiesRequest& request, const ListFaceEntitiesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListFaceEntitiesOutcomeCallable listFaceEntitiesCallable(const Model::ListFaceEntitiesRequest& request) const; - PedestrianDetectAttributeOutcome pedestrianDetectAttribute(const Model::PedestrianDetectAttributeRequest &request)const; - void pedestrianDetectAttributeAsync(const Model::PedestrianDetectAttributeRequest& request, const PedestrianDetectAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - PedestrianDetectAttributeOutcomeCallable pedestrianDetectAttributeCallable(const Model::PedestrianDetectAttributeRequest& request) const; - RecognizeActionOutcome recognizeAction(const Model::RecognizeActionRequest &request)const; - void recognizeActionAsync(const Model::RecognizeActionRequest& request, const RecognizeActionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - RecognizeActionOutcomeCallable recognizeActionCallable(const Model::RecognizeActionRequest& request) const; - RecognizeExpressionOutcome recognizeExpression(const Model::RecognizeExpressionRequest &request)const; - void recognizeExpressionAsync(const Model::RecognizeExpressionRequest& request, const RecognizeExpressionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - RecognizeExpressionOutcomeCallable recognizeExpressionCallable(const Model::RecognizeExpressionRequest& request) const; - RecognizeFaceOutcome recognizeFace(const Model::RecognizeFaceRequest &request)const; - void recognizeFaceAsync(const Model::RecognizeFaceRequest& request, const RecognizeFaceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - RecognizeFaceOutcomeCallable recognizeFaceCallable(const Model::RecognizeFaceRequest& request) const; - RecognizePublicFaceOutcome recognizePublicFace(const Model::RecognizePublicFaceRequest &request)const; - void recognizePublicFaceAsync(const Model::RecognizePublicFaceRequest& request, const RecognizePublicFaceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - RecognizePublicFaceOutcomeCallable recognizePublicFaceCallable(const Model::RecognizePublicFaceRequest& request) const; - SearchBodyTraceOutcome searchBodyTrace(const Model::SearchBodyTraceRequest &request)const; - void searchBodyTraceAsync(const Model::SearchBodyTraceRequest& request, const SearchBodyTraceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - SearchBodyTraceOutcomeCallable searchBodyTraceCallable(const Model::SearchBodyTraceRequest& request) const; - SearchFaceOutcome searchFace(const Model::SearchFaceRequest &request)const; - void searchFaceAsync(const Model::SearchFaceRequest& request, const SearchFaceAsyncHandler& handler, const std::shared_ptr& 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& 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& context = nullptr) const; - UpdateFaceEntityOutcomeCallable updateFaceEntityCallable(const Model::UpdateFaceEntityRequest& request) const; - VerifyFaceMaskOutcome verifyFaceMask(const Model::VerifyFaceMaskRequest &request)const; - void verifyFaceMaskAsync(const Model::VerifyFaceMaskRequest& request, const VerifyFaceMaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - VerifyFaceMaskOutcomeCallable verifyFaceMaskCallable(const Model::VerifyFaceMaskRequest& request) const; + DetectIPCPedestrianOptimizedOutcome detectIPCPedestrianOptimized(const Model::DetectIPCPedestrianOptimizedRequest &request)const; + void detectIPCPedestrianOptimizedAsync(const Model::DetectIPCPedestrianOptimizedRequest& request, const DetectIPCPedestrianOptimizedAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DetectIPCPedestrianOptimizedOutcomeCallable detectIPCPedestrianOptimizedCallable(const Model::DetectIPCPedestrianOptimizedRequest& request) const; + ExecuteServerSideVerificationOutcome executeServerSideVerification(const Model::ExecuteServerSideVerificationRequest &request)const; + void executeServerSideVerificationAsync(const Model::ExecuteServerSideVerificationRequest& request, const ExecuteServerSideVerificationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ExecuteServerSideVerificationOutcomeCallable executeServerSideVerificationCallable(const Model::ExecuteServerSideVerificationRequest& request) const; private: std::shared_ptr endpointProvider_; diff --git a/facebody/include/alibabacloud/facebody/model/AddBodyTraceRequest.h b/facebody/include/alibabacloud/facebody/model/AddBodyTraceRequest.h deleted file mode 100644 index 984c524ea..000000000 --- a/facebody/include/alibabacloud/facebody/model/AddBodyTraceRequest.h +++ /dev/null @@ -1,57 +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_ADDBODYTRACEREQUEST_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_ADDBODYTRACEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT AddBodyTraceRequest : public RpcServiceRequest - { - - public: - AddBodyTraceRequest(); - ~AddBodyTraceRequest(); - - std::string getExtraData()const; - void setExtraData(const std::string& extraData); - long getPersonId()const; - void setPersonId(long personId); - Array getImages()const; - void setImages(const Array& images); - long getDbId()const; - void setDbId(long dbId); - - private: - std::string extraData_; - long personId_; - Array images_; - long dbId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_ADDBODYTRACEREQUEST_H_ \ No newline at end of file diff --git a/facebody/include/alibabacloud/facebody/model/AddBodyTraceResult.h b/facebody/include/alibabacloud/facebody/model/AddBodyTraceResult.h deleted file mode 100644 index 379b45cc2..000000000 --- a/facebody/include/alibabacloud/facebody/model/AddBodyTraceResult.h +++ /dev/null @@ -1,59 +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_ADDBODYTRACERESULT_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_ADDBODYTRACERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT AddBodyTraceResult : public ServiceResult - { - public: - struct Data - { - long id; - }; - - - AddBodyTraceResult(); - explicit AddBodyTraceResult(const std::string &payload); - ~AddBodyTraceResult(); - 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_FACEBODY_MODEL_ADDBODYTRACERESULT_H_ \ No newline at end of file diff --git a/facebody/include/alibabacloud/facebody/model/AddFaceEntityRequest.h b/facebody/include/alibabacloud/facebody/model/AddFaceEntityRequest.h deleted file mode 100644 index dc7145b16..000000000 --- a/facebody/include/alibabacloud/facebody/model/AddFaceEntityRequest.h +++ /dev/null @@ -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_ADDFACEENTITYREQUEST_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_ADDFACEENTITYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT AddFaceEntityRequest : public RpcServiceRequest - { - - public: - AddFaceEntityRequest(); - ~AddFaceEntityRequest(); - - std::string getEntityId()const; - void setEntityId(const std::string& entityId); - std::string getLabels()const; - void setLabels(const std::string& labels); - std::string getDbName()const; - void setDbName(const std::string& dbName); - - private: - std::string entityId_; - std::string labels_; - std::string dbName_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_ADDFACEENTITYREQUEST_H_ \ No newline at end of file diff --git a/facebody/include/alibabacloud/facebody/model/AddFaceEntityResult.h b/facebody/include/alibabacloud/facebody/model/AddFaceEntityResult.h deleted file mode 100644 index 2de7041af..000000000 --- a/facebody/include/alibabacloud/facebody/model/AddFaceEntityResult.h +++ /dev/null @@ -1,49 +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_ADDFACEENTITYRESULT_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_ADDFACEENTITYRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT AddFaceEntityResult : public ServiceResult - { - public: - - - AddFaceEntityResult(); - explicit AddFaceEntityResult(const std::string &payload); - ~AddFaceEntityResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_ADDFACEENTITYRESULT_H_ \ No newline at end of file diff --git a/facebody/include/alibabacloud/facebody/model/AddFaceRequest.h b/facebody/include/alibabacloud/facebody/model/AddFaceRequest.h deleted file mode 100644 index 912cd48f2..000000000 --- a/facebody/include/alibabacloud/facebody/model/AddFaceRequest.h +++ /dev/null @@ -1,57 +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_ADDFACEREQUEST_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_ADDFACEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT AddFaceRequest : public RpcServiceRequest - { - - public: - AddFaceRequest(); - ~AddFaceRequest(); - - std::string getEntityId()const; - void setEntityId(const std::string& entityId); - std::string getDbName()const; - void setDbName(const std::string& dbName); - std::string getImageUrl()const; - void setImageUrl(const std::string& imageUrl); - std::string getExtraData()const; - void setExtraData(const std::string& extraData); - - private: - std::string entityId_; - std::string dbName_; - std::string imageUrl_; - std::string extraData_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_ADDFACEREQUEST_H_ \ No newline at end of file diff --git a/facebody/include/alibabacloud/facebody/model/AddFaceResult.h b/facebody/include/alibabacloud/facebody/model/AddFaceResult.h deleted file mode 100644 index f225d899c..000000000 --- a/facebody/include/alibabacloud/facebody/model/AddFaceResult.h +++ /dev/null @@ -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_ADDFACERESULT_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_ADDFACERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT AddFaceResult : public ServiceResult - { - public: - struct Data - { - std::string faceId; - }; - - - AddFaceResult(); - explicit AddFaceResult(const std::string &payload); - ~AddFaceResult(); - Data getData()const; - - protected: - void parse(const std::string &payload); - private: - Data data_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_ADDFACERESULT_H_ \ No newline at end of file diff --git a/facebody/include/alibabacloud/facebody/model/BlurFaceRequest.h b/facebody/include/alibabacloud/facebody/model/BlurFaceRequest.h deleted file mode 100644 index 17aad411b..000000000 --- a/facebody/include/alibabacloud/facebody/model/BlurFaceRequest.h +++ /dev/null @@ -1,48 +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_BLURFACEREQUEST_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_BLURFACEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT BlurFaceRequest : public RpcServiceRequest - { - - public: - BlurFaceRequest(); - ~BlurFaceRequest(); - - std::string getImageURL()const; - void setImageURL(const std::string& imageURL); - - private: - std::string imageURL_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_BLURFACEREQUEST_H_ \ No newline at end of file diff --git a/facebody/include/alibabacloud/facebody/model/BlurFaceResult.h b/facebody/include/alibabacloud/facebody/model/BlurFaceResult.h deleted file mode 100644 index 2811079b2..000000000 --- a/facebody/include/alibabacloud/facebody/model/BlurFaceResult.h +++ /dev/null @@ -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_BLURFACERESULT_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_BLURFACERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT BlurFaceResult : public ServiceResult - { - public: - struct Data - { - std::string imageURL; - }; - - - BlurFaceResult(); - explicit BlurFaceResult(const std::string &payload); - ~BlurFaceResult(); - Data getData()const; - - protected: - void parse(const std::string &payload); - private: - Data data_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_BLURFACERESULT_H_ \ No newline at end of file diff --git a/facebody/include/alibabacloud/facebody/model/BodyPostureRequest.h b/facebody/include/alibabacloud/facebody/model/BodyPostureRequest.h deleted file mode 100644 index acedecd6a..000000000 --- a/facebody/include/alibabacloud/facebody/model/BodyPostureRequest.h +++ /dev/null @@ -1,48 +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_BODYPOSTUREREQUEST_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_BODYPOSTUREREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT BodyPostureRequest : public RpcServiceRequest - { - - public: - BodyPostureRequest(); - ~BodyPostureRequest(); - - std::string getImageURL()const; - void setImageURL(const std::string& imageURL); - - private: - std::string imageURL_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_BODYPOSTUREREQUEST_H_ \ No newline at end of file diff --git a/facebody/include/alibabacloud/facebody/model/BodyPostureResult.h b/facebody/include/alibabacloud/facebody/model/BodyPostureResult.h deleted file mode 100644 index 4a542b346..000000000 --- a/facebody/include/alibabacloud/facebody/model/BodyPostureResult.h +++ /dev/null @@ -1,80 +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_BODYPOSTURERESULT_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_BODYPOSTURERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT BodyPostureResult : public ServiceResult - { - public: - struct Data - { - struct MetaObject - { - int height; - int width; - }; - struct Output - { - struct Result - { - struct Body - { - struct Position - { - std::vector points; - }; - float confident; - std::vector positions; - std::string label; - }; - std::vector bodies; - }; - std::vector results; - int humanCount; - }; - MetaObject metaObject; - std::vector outputs; - }; - - - BodyPostureResult(); - explicit BodyPostureResult(const std::string &payload); - ~BodyPostureResult(); - Data getData()const; - - protected: - void parse(const std::string &payload); - private: - Data data_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_BODYPOSTURERESULT_H_ \ No newline at end of file diff --git a/facebody/include/alibabacloud/facebody/model/CompareFaceRequest.h b/facebody/include/alibabacloud/facebody/model/CompareFaceRequest.h deleted file mode 100644 index c2504ea3c..000000000 --- a/facebody/include/alibabacloud/facebody/model/CompareFaceRequest.h +++ /dev/null @@ -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_COMPAREFACEREQUEST_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_COMPAREFACEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT CompareFaceRequest : public RpcServiceRequest - { - - public: - CompareFaceRequest(); - ~CompareFaceRequest(); - - int getImageType()const; - void setImageType(int imageType); - std::string getImageURLB()const; - void setImageURLB(const std::string& imageURLB); - std::string getImageURLA()const; - void setImageURLA(const std::string& imageURLA); - - private: - int imageType_; - std::string imageURLB_; - std::string imageURLA_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_COMPAREFACEREQUEST_H_ \ No newline at end of file diff --git a/facebody/include/alibabacloud/facebody/model/CompareFaceResult.h b/facebody/include/alibabacloud/facebody/model/CompareFaceResult.h deleted file mode 100644 index 3d5c5b599..000000000 --- a/facebody/include/alibabacloud/facebody/model/CompareFaceResult.h +++ /dev/null @@ -1,58 +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_COMPAREFACERESULT_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_COMPAREFACERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT CompareFaceResult : public ServiceResult - { - public: - struct Data - { - std::vector thresholds; - float confidence; - std::vector rectAList; - std::vector rectBList; - }; - - - CompareFaceResult(); - explicit CompareFaceResult(const std::string &payload); - ~CompareFaceResult(); - Data getData()const; - - protected: - void parse(const std::string &payload); - private: - Data data_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_COMPAREFACERESULT_H_ \ No newline at end of file diff --git a/facebody/include/alibabacloud/facebody/model/CountCrowdRequest.h b/facebody/include/alibabacloud/facebody/model/CountCrowdRequest.h deleted file mode 100644 index 4f8bec434..000000000 --- a/facebody/include/alibabacloud/facebody/model/CountCrowdRequest.h +++ /dev/null @@ -1,51 +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 -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT CountCrowdRequest : public RpcServiceRequest - { - - public: - CountCrowdRequest(); - ~CountCrowdRequest(); - - bool getIsShow()const; - void setIsShow(bool isShow); - std::string getImageURL()const; - void setImageURL(const std::string& imageURL); - - private: - bool isShow_; - std::string imageURL_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_COUNTCROWDREQUEST_H_ \ No newline at end of file diff --git a/facebody/include/alibabacloud/facebody/model/CountCrowdResult.h b/facebody/include/alibabacloud/facebody/model/CountCrowdResult.h deleted file mode 100644 index 3969a893b..000000000 --- a/facebody/include/alibabacloud/facebody/model/CountCrowdResult.h +++ /dev/null @@ -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 -#include -#include -#include -#include - -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_ \ No newline at end of file diff --git a/facebody/include/alibabacloud/facebody/model/CreateBodyDbRequest.h b/facebody/include/alibabacloud/facebody/model/CreateBodyDbRequest.h deleted file mode 100644 index 7f13c0470..000000000 --- a/facebody/include/alibabacloud/facebody/model/CreateBodyDbRequest.h +++ /dev/null @@ -1,48 +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_CREATEBODYDBREQUEST_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_CREATEBODYDBREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT CreateBodyDbRequest : public RpcServiceRequest - { - - public: - CreateBodyDbRequest(); - ~CreateBodyDbRequest(); - - std::string getName()const; - void setName(const std::string& name); - - private: - std::string name_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_CREATEBODYDBREQUEST_H_ \ No newline at end of file diff --git a/facebody/include/alibabacloud/facebody/model/CreateBodyPersonRequest.h b/facebody/include/alibabacloud/facebody/model/CreateBodyPersonRequest.h deleted file mode 100644 index 1393af362..000000000 --- a/facebody/include/alibabacloud/facebody/model/CreateBodyPersonRequest.h +++ /dev/null @@ -1,51 +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_CREATEBODYPERSONREQUEST_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_CREATEBODYPERSONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT CreateBodyPersonRequest : public RpcServiceRequest - { - - public: - CreateBodyPersonRequest(); - ~CreateBodyPersonRequest(); - - long getDbId()const; - void setDbId(long dbId); - std::string getName()const; - void setName(const std::string& name); - - private: - long dbId_; - std::string name_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_CREATEBODYPERSONREQUEST_H_ \ No newline at end of file diff --git a/facebody/include/alibabacloud/facebody/model/CreateBodyPersonResult.h b/facebody/include/alibabacloud/facebody/model/CreateBodyPersonResult.h deleted file mode 100644 index 0e396fff0..000000000 --- a/facebody/include/alibabacloud/facebody/model/CreateBodyPersonResult.h +++ /dev/null @@ -1,59 +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_CREATEBODYPERSONRESULT_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_CREATEBODYPERSONRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT CreateBodyPersonResult : public ServiceResult - { - public: - struct Data - { - long id; - }; - - - CreateBodyPersonResult(); - explicit CreateBodyPersonResult(const std::string &payload); - ~CreateBodyPersonResult(); - 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_FACEBODY_MODEL_CREATEBODYPERSONRESULT_H_ \ No newline at end of file diff --git a/facebody/include/alibabacloud/facebody/model/CreateFaceDbRequest.h b/facebody/include/alibabacloud/facebody/model/CreateFaceDbRequest.h deleted file mode 100644 index 386b64e85..000000000 --- a/facebody/include/alibabacloud/facebody/model/CreateFaceDbRequest.h +++ /dev/null @@ -1,48 +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_CREATEFACEDBREQUEST_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_CREATEFACEDBREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT CreateFaceDbRequest : public RpcServiceRequest - { - - public: - CreateFaceDbRequest(); - ~CreateFaceDbRequest(); - - std::string getName()const; - void setName(const std::string& name); - - private: - std::string name_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_CREATEFACEDBREQUEST_H_ \ No newline at end of file diff --git a/facebody/include/alibabacloud/facebody/model/CreateFaceDbResult.h b/facebody/include/alibabacloud/facebody/model/CreateFaceDbResult.h deleted file mode 100644 index 21ede79a8..000000000 --- a/facebody/include/alibabacloud/facebody/model/CreateFaceDbResult.h +++ /dev/null @@ -1,49 +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_CREATEFACEDBRESULT_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_CREATEFACEDBRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT CreateFaceDbResult : public ServiceResult - { - public: - - - CreateFaceDbResult(); - explicit CreateFaceDbResult(const std::string &payload); - ~CreateFaceDbResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_CREATEFACEDBRESULT_H_ \ No newline at end of file diff --git a/facebody/include/alibabacloud/facebody/model/DeleteBodyDbRequest.h b/facebody/include/alibabacloud/facebody/model/DeleteBodyDbRequest.h deleted file mode 100644 index a2cf9830e..000000000 --- a/facebody/include/alibabacloud/facebody/model/DeleteBodyDbRequest.h +++ /dev/null @@ -1,48 +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_DELETEBODYDBREQUEST_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_DELETEBODYDBREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT DeleteBodyDbRequest : public RpcServiceRequest - { - - public: - DeleteBodyDbRequest(); - ~DeleteBodyDbRequest(); - - long getId()const; - void setId(long id); - - private: - long id_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_DELETEBODYDBREQUEST_H_ \ No newline at end of file diff --git a/facebody/include/alibabacloud/facebody/model/DeleteBodyDbResult.h b/facebody/include/alibabacloud/facebody/model/DeleteBodyDbResult.h deleted file mode 100644 index 8816f81fb..000000000 --- a/facebody/include/alibabacloud/facebody/model/DeleteBodyDbResult.h +++ /dev/null @@ -1,53 +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_DELETEBODYDBRESULT_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_DELETEBODYDBRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT DeleteBodyDbResult : public ServiceResult - { - public: - - - DeleteBodyDbResult(); - explicit DeleteBodyDbResult(const std::string &payload); - ~DeleteBodyDbResult(); - std::string getMessage()const; - std::string getCode()const; - - protected: - void parse(const std::string &payload); - private: - std::string message_; - std::string code_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_DELETEBODYDBRESULT_H_ \ No newline at end of file diff --git a/facebody/include/alibabacloud/facebody/model/DeleteBodyPersonRequest.h b/facebody/include/alibabacloud/facebody/model/DeleteBodyPersonRequest.h deleted file mode 100644 index ec6e444e3..000000000 --- a/facebody/include/alibabacloud/facebody/model/DeleteBodyPersonRequest.h +++ /dev/null @@ -1,51 +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_DELETEBODYPERSONREQUEST_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_DELETEBODYPERSONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT DeleteBodyPersonRequest : public RpcServiceRequest - { - - public: - DeleteBodyPersonRequest(); - ~DeleteBodyPersonRequest(); - - long getPersonId()const; - void setPersonId(long personId); - long getDbId()const; - void setDbId(long dbId); - - private: - long personId_; - long dbId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_DELETEBODYPERSONREQUEST_H_ \ No newline at end of file diff --git a/facebody/include/alibabacloud/facebody/model/DeleteBodyPersonResult.h b/facebody/include/alibabacloud/facebody/model/DeleteBodyPersonResult.h deleted file mode 100644 index 1cb38afd5..000000000 --- a/facebody/include/alibabacloud/facebody/model/DeleteBodyPersonResult.h +++ /dev/null @@ -1,53 +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_DELETEBODYPERSONRESULT_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_DELETEBODYPERSONRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT DeleteBodyPersonResult : public ServiceResult - { - public: - - - DeleteBodyPersonResult(); - explicit DeleteBodyPersonResult(const std::string &payload); - ~DeleteBodyPersonResult(); - std::string getMessage()const; - std::string getCode()const; - - protected: - void parse(const std::string &payload); - private: - std::string message_; - std::string code_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_DELETEBODYPERSONRESULT_H_ \ No newline at end of file diff --git a/facebody/include/alibabacloud/facebody/model/DeleteFaceDbRequest.h b/facebody/include/alibabacloud/facebody/model/DeleteFaceDbRequest.h deleted file mode 100644 index 150abfafd..000000000 --- a/facebody/include/alibabacloud/facebody/model/DeleteFaceDbRequest.h +++ /dev/null @@ -1,48 +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_DELETEFACEDBREQUEST_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_DELETEFACEDBREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT DeleteFaceDbRequest : public RpcServiceRequest - { - - public: - DeleteFaceDbRequest(); - ~DeleteFaceDbRequest(); - - std::string getName()const; - void setName(const std::string& name); - - private: - std::string name_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_DELETEFACEDBREQUEST_H_ \ No newline at end of file diff --git a/facebody/include/alibabacloud/facebody/model/DeleteFaceDbResult.h b/facebody/include/alibabacloud/facebody/model/DeleteFaceDbResult.h deleted file mode 100644 index 913e6a3e2..000000000 --- a/facebody/include/alibabacloud/facebody/model/DeleteFaceDbResult.h +++ /dev/null @@ -1,49 +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_DELETEFACEDBRESULT_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_DELETEFACEDBRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT DeleteFaceDbResult : public ServiceResult - { - public: - - - DeleteFaceDbResult(); - explicit DeleteFaceDbResult(const std::string &payload); - ~DeleteFaceDbResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_DELETEFACEDBRESULT_H_ \ No newline at end of file diff --git a/facebody/include/alibabacloud/facebody/model/DeleteFaceEntityRequest.h b/facebody/include/alibabacloud/facebody/model/DeleteFaceEntityRequest.h deleted file mode 100644 index 95ccb61bd..000000000 --- a/facebody/include/alibabacloud/facebody/model/DeleteFaceEntityRequest.h +++ /dev/null @@ -1,51 +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_DELETEFACEENTITYREQUEST_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_DELETEFACEENTITYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT DeleteFaceEntityRequest : public RpcServiceRequest - { - - public: - DeleteFaceEntityRequest(); - ~DeleteFaceEntityRequest(); - - std::string getEntityId()const; - void setEntityId(const std::string& entityId); - std::string getDbName()const; - void setDbName(const std::string& dbName); - - private: - std::string entityId_; - std::string dbName_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_DELETEFACEENTITYREQUEST_H_ \ No newline at end of file diff --git a/facebody/include/alibabacloud/facebody/model/DeleteFaceEntityResult.h b/facebody/include/alibabacloud/facebody/model/DeleteFaceEntityResult.h deleted file mode 100644 index d1b1a7f94..000000000 --- a/facebody/include/alibabacloud/facebody/model/DeleteFaceEntityResult.h +++ /dev/null @@ -1,49 +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_DELETEFACEENTITYRESULT_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_DELETEFACEENTITYRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT DeleteFaceEntityResult : public ServiceResult - { - public: - - - DeleteFaceEntityResult(); - explicit DeleteFaceEntityResult(const std::string &payload); - ~DeleteFaceEntityResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_DELETEFACEENTITYRESULT_H_ \ No newline at end of file diff --git a/facebody/include/alibabacloud/facebody/model/DeleteFaceRequest.h b/facebody/include/alibabacloud/facebody/model/DeleteFaceRequest.h deleted file mode 100644 index 669706c59..000000000 --- a/facebody/include/alibabacloud/facebody/model/DeleteFaceRequest.h +++ /dev/null @@ -1,51 +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_DELETEFACEREQUEST_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_DELETEFACEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT DeleteFaceRequest : public RpcServiceRequest - { - - public: - DeleteFaceRequest(); - ~DeleteFaceRequest(); - - std::string getFaceId()const; - void setFaceId(const std::string& faceId); - std::string getDbName()const; - void setDbName(const std::string& dbName); - - private: - std::string faceId_; - std::string dbName_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_DELETEFACEREQUEST_H_ \ No newline at end of file diff --git a/facebody/include/alibabacloud/facebody/model/DeleteFaceResult.h b/facebody/include/alibabacloud/facebody/model/DeleteFaceResult.h deleted file mode 100644 index d55265618..000000000 --- a/facebody/include/alibabacloud/facebody/model/DeleteFaceResult.h +++ /dev/null @@ -1,49 +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_DELETEFACERESULT_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_DELETEFACERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT DeleteFaceResult : public ServiceResult - { - public: - - - DeleteFaceResult(); - explicit DeleteFaceResult(const std::string &payload); - ~DeleteFaceResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_DELETEFACERESULT_H_ \ No newline at end of file diff --git a/facebody/include/alibabacloud/facebody/model/DetectBodyCountRequest.h b/facebody/include/alibabacloud/facebody/model/DetectBodyCountRequest.h deleted file mode 100644 index 7a7f97ff7..000000000 --- a/facebody/include/alibabacloud/facebody/model/DetectBodyCountRequest.h +++ /dev/null @@ -1,48 +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_DETECTBODYCOUNTREQUEST_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_DETECTBODYCOUNTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT DetectBodyCountRequest : public RpcServiceRequest - { - - public: - DetectBodyCountRequest(); - ~DetectBodyCountRequest(); - - std::string getImageURL()const; - void setImageURL(const std::string& imageURL); - - private: - std::string imageURL_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_DETECTBODYCOUNTREQUEST_H_ \ No newline at end of file diff --git a/facebody/include/alibabacloud/facebody/model/DetectBodyCountResult.h b/facebody/include/alibabacloud/facebody/model/DetectBodyCountResult.h deleted file mode 100644 index 9fd3d0607..000000000 --- a/facebody/include/alibabacloud/facebody/model/DetectBodyCountResult.h +++ /dev/null @@ -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_DETECTBODYCOUNTRESULT_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_DETECTBODYCOUNTRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT DetectBodyCountResult : public ServiceResult - { - public: - struct Data - { - int personNumber; - }; - - - DetectBodyCountResult(); - explicit DetectBodyCountResult(const std::string &payload); - ~DetectBodyCountResult(); - Data getData()const; - - protected: - void parse(const std::string &payload); - private: - Data data_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_DETECTBODYCOUNTRESULT_H_ \ No newline at end of file diff --git a/facebody/include/alibabacloud/facebody/model/DetectCelebrityRequest.h b/facebody/include/alibabacloud/facebody/model/DetectCelebrityRequest.h deleted file mode 100644 index 5b6ba4759..000000000 --- a/facebody/include/alibabacloud/facebody/model/DetectCelebrityRequest.h +++ /dev/null @@ -1,48 +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_DETECTCELEBRITYREQUEST_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_DETECTCELEBRITYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT DetectCelebrityRequest : public RpcServiceRequest - { - - public: - DetectCelebrityRequest(); - ~DetectCelebrityRequest(); - - std::string getImageURL()const; - void setImageURL(const std::string& imageURL); - - private: - std::string imageURL_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_DETECTCELEBRITYREQUEST_H_ \ No newline at end of file diff --git a/facebody/include/alibabacloud/facebody/model/DetectCelebrityResult.h b/facebody/include/alibabacloud/facebody/model/DetectCelebrityResult.h deleted file mode 100644 index 93ba3fabe..000000000 --- a/facebody/include/alibabacloud/facebody/model/DetectCelebrityResult.h +++ /dev/null @@ -1,62 +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_DETECTCELEBRITYRESULT_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_DETECTCELEBRITYRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT DetectCelebrityResult : public ServiceResult - { - public: - struct Data - { - struct FaceRecognizeResult - { - std::vector faceBoxes; - std::string name; - }; - std::vector faceRecognizeResults; - int height; - int width; - }; - - - DetectCelebrityResult(); - explicit DetectCelebrityResult(const std::string &payload); - ~DetectCelebrityResult(); - Data getData()const; - - protected: - void parse(const std::string &payload); - private: - Data data_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_DETECTCELEBRITYRESULT_H_ \ No newline at end of file diff --git a/facebody/include/alibabacloud/facebody/model/DetectChefCapRequest.h b/facebody/include/alibabacloud/facebody/model/DetectChefCapRequest.h deleted file mode 100644 index 4653ed6ba..000000000 --- a/facebody/include/alibabacloud/facebody/model/DetectChefCapRequest.h +++ /dev/null @@ -1,48 +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_DETECTCHEFCAPREQUEST_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_DETECTCHEFCAPREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT DetectChefCapRequest : public RpcServiceRequest - { - - public: - DetectChefCapRequest(); - ~DetectChefCapRequest(); - - std::string getImageURL()const; - void setImageURL(const std::string& imageURL); - - private: - std::string imageURL_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_DETECTCHEFCAPREQUEST_H_ \ No newline at end of file diff --git a/facebody/include/alibabacloud/facebody/model/DetectChefCapResult.h b/facebody/include/alibabacloud/facebody/model/DetectChefCapResult.h deleted file mode 100644 index f6cf8b047..000000000 --- a/facebody/include/alibabacloud/facebody/model/DetectChefCapResult.h +++ /dev/null @@ -1,61 +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_DETECTCHEFCAPRESULT_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_DETECTCHEFCAPRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT DetectChefCapResult : public ServiceResult - { - public: - struct Data - { - struct ElementsItem - { - std::string category; - float confidence; - std::vector box; - }; - std::vector elements; - }; - - - DetectChefCapResult(); - explicit DetectChefCapResult(const std::string &payload); - ~DetectChefCapResult(); - Data getData()const; - - protected: - void parse(const std::string &payload); - private: - Data data_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_DETECTCHEFCAPRESULT_H_ \ No newline at end of file diff --git a/facebody/include/alibabacloud/facebody/model/DetectFaceRequest.h b/facebody/include/alibabacloud/facebody/model/DetectFaceRequest.h deleted file mode 100644 index 0dabeda78..000000000 --- a/facebody/include/alibabacloud/facebody/model/DetectFaceRequest.h +++ /dev/null @@ -1,51 +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_DETECTFACEREQUEST_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_DETECTFACEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT DetectFaceRequest : public RpcServiceRequest - { - - public: - DetectFaceRequest(); - ~DetectFaceRequest(); - - int getImageType()const; - void setImageType(int imageType); - std::string getImageURL()const; - void setImageURL(const std::string& imageURL); - - private: - int imageType_; - std::string imageURL_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_DETECTFACEREQUEST_H_ \ No newline at end of file diff --git a/facebody/include/alibabacloud/facebody/model/DetectFaceResult.h b/facebody/include/alibabacloud/facebody/model/DetectFaceResult.h deleted file mode 100644 index ab119f681..000000000 --- a/facebody/include/alibabacloud/facebody/model/DetectFaceResult.h +++ /dev/null @@ -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. - */ - -#ifndef ALIBABACLOUD_FACEBODY_MODEL_DETECTFACERESULT_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_DETECTFACERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT DetectFaceResult : public ServiceResult - { - public: - struct Data - { - struct Qualities - { - std::vector noiseList; - std::vector scoreList; - std::vector blurList; - std::vector maskList; - std::vector glassList; - std::vector fnfList; - std::vector poseList1; - std::vector illuList; - }; - std::vector faceProbabilityList; - int landmarkCount; - std::vector faceRectangles; - std::vector landmarks; - Qualities qualities; - int faceCount; - std::vector poseList; - std::vector pupils; - }; - - - DetectFaceResult(); - explicit DetectFaceResult(const std::string &payload); - ~DetectFaceResult(); - Data getData()const; - - protected: - void parse(const std::string &payload); - private: - Data data_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_DETECTFACERESULT_H_ \ No newline at end of file diff --git a/facebody/include/alibabacloud/facebody/model/ExtractPedestrianFeatureAttrRequest.h b/facebody/include/alibabacloud/facebody/model/DetectIPCPedestrianOptimizedRequest.h similarity index 54% rename from facebody/include/alibabacloud/facebody/model/ExtractPedestrianFeatureAttrRequest.h rename to facebody/include/alibabacloud/facebody/model/DetectIPCPedestrianOptimizedRequest.h index 33af1b78a..f99dfc465 100644 --- a/facebody/include/alibabacloud/facebody/model/ExtractPedestrianFeatureAttrRequest.h +++ b/facebody/include/alibabacloud/facebody/model/DetectIPCPedestrianOptimizedRequest.h @@ -14,12 +14,12 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_FACEBODY_MODEL_EXTRACTPEDESTRIANFEATUREATTRREQUEST_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_EXTRACTPEDESTRIANFEATUREATTRREQUEST_H_ +#ifndef ALIBABACLOUD_FACEBODY_MODEL_DETECTIPCPEDESTRIANOPTIMIZEDREQUEST_H_ +#define ALIBABACLOUD_FACEBODY_MODEL_DETECTIPCPEDESTRIANOPTIMIZEDREQUEST_H_ #include #include -#include +#include #include namespace AlibabaCloud @@ -28,24 +28,27 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_FACEBODY_EXPORT ExtractPedestrianFeatureAttrRequest : public RpcServiceRequest + class ALIBABACLOUD_FACEBODY_EXPORT DetectIPCPedestrianOptimizedRequest : public RoaServiceRequest { public: - ExtractPedestrianFeatureAttrRequest(); - ~ExtractPedestrianFeatureAttrRequest(); + DetectIPCPedestrianOptimizedRequest(); + ~DetectIPCPedestrianOptimizedRequest(); - std::string getMode()const; - void setMode(const std::string& mode); - std::string getImageURL()const; - void setImageURL(const std::string& imageURL); + std::string getImageData()const; + void setImageData(const std::string& imageData); + long getWidth()const; + void setWidth(long width); + long getHeight()const; + void setHeight(long height); private: - std::string mode_; - std::string imageURL_; + std::string imageData_; + long width_; + long height_; }; } } } -#endif // !ALIBABACLOUD_FACEBODY_MODEL_EXTRACTPEDESTRIANFEATUREATTRREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_FACEBODY_MODEL_DETECTIPCPEDESTRIANOPTIMIZEDREQUEST_H_ \ No newline at end of file diff --git a/facebody/include/alibabacloud/facebody/model/DetectIPCPedestrianResult.h b/facebody/include/alibabacloud/facebody/model/DetectIPCPedestrianOptimizedResult.h similarity index 71% rename from facebody/include/alibabacloud/facebody/model/DetectIPCPedestrianResult.h rename to facebody/include/alibabacloud/facebody/model/DetectIPCPedestrianOptimizedResult.h index a710e5089..087d98ec7 100644 --- a/facebody/include/alibabacloud/facebody/model/DetectIPCPedestrianResult.h +++ b/facebody/include/alibabacloud/facebody/model/DetectIPCPedestrianOptimizedResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_FACEBODY_MODEL_DETECTIPCPEDESTRIANRESULT_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_DETECTIPCPEDESTRIANRESULT_H_ +#ifndef ALIBABACLOUD_FACEBODY_MODEL_DETECTIPCPEDESTRIANOPTIMIZEDRESULT_H_ +#define ALIBABACLOUD_FACEBODY_MODEL_DETECTIPCPEDESTRIANOPTIMIZEDRESULT_H_ #include #include @@ -29,7 +29,7 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_FACEBODY_EXPORT DetectIPCPedestrianResult : public ServiceResult + class ALIBABACLOUD_FACEBODY_EXPORT DetectIPCPedestrianOptimizedResult : public ServiceResult { public: struct Data @@ -41,18 +41,15 @@ namespace AlibabaCloud float score; std::vector boxes; }; - std::string dataId; - std::string errorCode; std::vector elements; - std::string errorMessage; }; std::vector imageInfoList; }; - DetectIPCPedestrianResult(); - explicit DetectIPCPedestrianResult(const std::string &payload); - ~DetectIPCPedestrianResult(); + DetectIPCPedestrianOptimizedResult(); + explicit DetectIPCPedestrianOptimizedResult(const std::string &payload); + ~DetectIPCPedestrianOptimizedResult(); Data getData()const; protected: @@ -64,4 +61,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_FACEBODY_MODEL_DETECTIPCPEDESTRIANRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_FACEBODY_MODEL_DETECTIPCPEDESTRIANOPTIMIZEDRESULT_H_ \ No newline at end of file diff --git a/facebody/include/alibabacloud/facebody/model/DetectIPCPedestrianRequest.h b/facebody/include/alibabacloud/facebody/model/DetectIPCPedestrianRequest.h deleted file mode 100644 index 073b1942f..000000000 --- a/facebody/include/alibabacloud/facebody/model/DetectIPCPedestrianRequest.h +++ /dev/null @@ -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 -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT DetectIPCPedestrianRequest : public RpcServiceRequest - { - public: - struct URLList - { - std::string dataId; - std::string imageURL; - }; - - public: - DetectIPCPedestrianRequest(); - ~DetectIPCPedestrianRequest(); - - std::string getImageData()const; - void setImageData(const std::string& imageData); - std::vector getURLList()const; - void setURLList(const std::vector& uRLList); - bool getContinueOnError()const; - void setContinueOnError(bool continueOnError); - int getWidth()const; - void setWidth(int width); - int getHeight()const; - void setHeight(int height); - - private: - std::string imageData_; - std::vector uRLList_; - bool continueOnError_; - int width_; - int height_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_DETECTIPCPEDESTRIANREQUEST_H_ \ No newline at end of file diff --git a/facebody/include/alibabacloud/facebody/model/DetectLivingFaceRequest.h b/facebody/include/alibabacloud/facebody/model/DetectLivingFaceRequest.h deleted file mode 100644 index ad9d4ca6a..000000000 --- a/facebody/include/alibabacloud/facebody/model/DetectLivingFaceRequest.h +++ /dev/null @@ -1,53 +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_DETECTLIVINGFACEREQUEST_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_DETECTLIVINGFACEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT DetectLivingFaceRequest : public RpcServiceRequest - { - public: - struct Tasks - { - std::string imageURL; - }; - - public: - DetectLivingFaceRequest(); - ~DetectLivingFaceRequest(); - - std::vector getTasks()const; - void setTasks(const std::vector& tasks); - - private: - std::vector tasks_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_DETECTLIVINGFACEREQUEST_H_ \ No newline at end of file diff --git a/facebody/include/alibabacloud/facebody/model/DetectLivingFaceResult.h b/facebody/include/alibabacloud/facebody/model/DetectLivingFaceResult.h deleted file mode 100644 index 68395c810..000000000 --- a/facebody/include/alibabacloud/facebody/model/DetectLivingFaceResult.h +++ /dev/null @@ -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. - */ - -#ifndef ALIBABACLOUD_FACEBODY_MODEL_DETECTLIVINGFACERESULT_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_DETECTLIVINGFACERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT DetectLivingFaceResult : public ServiceResult - { - public: - struct Data - { - struct Element - { - struct Result - { - struct Frame - { - float rate; - std::string url; - }; - std::vector frames; - std::string suggestion; - float rate; - std::string label; - }; - std::string taskId; - std::vector results; - std::string imageURL; - }; - std::vector elements; - }; - - - DetectLivingFaceResult(); - explicit DetectLivingFaceResult(const std::string &payload); - ~DetectLivingFaceResult(); - Data getData()const; - - protected: - void parse(const std::string &payload); - private: - Data data_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_DETECTLIVINGFACERESULT_H_ \ No newline at end of file diff --git a/facebody/include/alibabacloud/facebody/model/DetectMaskRequest.h b/facebody/include/alibabacloud/facebody/model/DetectMaskRequest.h deleted file mode 100644 index 35cb57adc..000000000 --- a/facebody/include/alibabacloud/facebody/model/DetectMaskRequest.h +++ /dev/null @@ -1,48 +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_DETECTMASKREQUEST_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_DETECTMASKREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT DetectMaskRequest : public RpcServiceRequest - { - - public: - DetectMaskRequest(); - ~DetectMaskRequest(); - - std::string getImageURL()const; - void setImageURL(const std::string& imageURL); - - private: - std::string imageURL_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_DETECTMASKREQUEST_H_ \ No newline at end of file diff --git a/facebody/include/alibabacloud/facebody/model/DetectMaskResult.h b/facebody/include/alibabacloud/facebody/model/DetectMaskResult.h deleted file mode 100644 index 0e04fc6b5..000000000 --- a/facebody/include/alibabacloud/facebody/model/DetectMaskResult.h +++ /dev/null @@ -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_DETECTMASKRESULT_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_DETECTMASKRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT DetectMaskResult : public ServiceResult - { - public: - struct Data - { - int mask; - float faceProbability; - }; - - - DetectMaskResult(); - explicit DetectMaskResult(const std::string &payload); - ~DetectMaskResult(); - Data getData()const; - - protected: - void parse(const std::string &payload); - private: - Data data_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_DETECTMASKRESULT_H_ \ No newline at end of file diff --git a/facebody/include/alibabacloud/facebody/model/DetectPedestrianIntrusionRequest.h b/facebody/include/alibabacloud/facebody/model/DetectPedestrianIntrusionRequest.h deleted file mode 100644 index 45bdd9246..000000000 --- a/facebody/include/alibabacloud/facebody/model/DetectPedestrianIntrusionRequest.h +++ /dev/null @@ -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_DETECTPEDESTRIANINTRUSIONREQUEST_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_DETECTPEDESTRIANINTRUSIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT DetectPedestrianIntrusionRequest : public RpcServiceRequest - { - - public: - DetectPedestrianIntrusionRequest(); - ~DetectPedestrianIntrusionRequest(); - - Array getDetectRegion()const; - void setDetectRegion(const Array& detectRegion); - std::string getRegionType()const; - void setRegionType(const std::string& regionType); - std::string getImageURL()const; - void setImageURL(const std::string& imageURL); - - private: - Array detectRegion_; - std::string regionType_; - std::string imageURL_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_DETECTPEDESTRIANINTRUSIONREQUEST_H_ \ No newline at end of file diff --git a/facebody/include/alibabacloud/facebody/model/DetectPedestrianIntrusionResult.h b/facebody/include/alibabacloud/facebody/model/DetectPedestrianIntrusionResult.h deleted file mode 100644 index 346c76ec2..000000000 --- a/facebody/include/alibabacloud/facebody/model/DetectPedestrianIntrusionResult.h +++ /dev/null @@ -1,76 +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_DETECTPEDESTRIANINTRUSIONRESULT_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_DETECTPEDESTRIANINTRUSIONRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT DetectPedestrianIntrusionResult : public ServiceResult - { - public: - struct Data - { - struct ElementsItem - { - struct Box - { - long left; - long top; - long right; - long bottom; - }; - long boxId; - std::string type; - long score; - bool isIntrude; - Box box; - }; - long imageHeight; - long imageWidth; - std::vector elements; - }; - - - DetectPedestrianIntrusionResult(); - explicit DetectPedestrianIntrusionResult(const std::string &payload); - ~DetectPedestrianIntrusionResult(); - 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_FACEBODY_MODEL_DETECTPEDESTRIANINTRUSIONRESULT_H_ \ No newline at end of file diff --git a/facebody/include/alibabacloud/facebody/model/DetectPedestrianRequest.h b/facebody/include/alibabacloud/facebody/model/DetectPedestrianRequest.h deleted file mode 100644 index 35815ed76..000000000 --- a/facebody/include/alibabacloud/facebody/model/DetectPedestrianRequest.h +++ /dev/null @@ -1,48 +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_DETECTPEDESTRIANREQUEST_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_DETECTPEDESTRIANREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT DetectPedestrianRequest : public RpcServiceRequest - { - - public: - DetectPedestrianRequest(); - ~DetectPedestrianRequest(); - - std::string getImageURL()const; - void setImageURL(const std::string& imageURL); - - private: - std::string imageURL_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_DETECTPEDESTRIANREQUEST_H_ \ No newline at end of file diff --git a/facebody/include/alibabacloud/facebody/model/DetectPedestrianResult.h b/facebody/include/alibabacloud/facebody/model/DetectPedestrianResult.h deleted file mode 100644 index 90b688b41..000000000 --- a/facebody/include/alibabacloud/facebody/model/DetectPedestrianResult.h +++ /dev/null @@ -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_DETECTPEDESTRIANRESULT_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_DETECTPEDESTRIANRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT DetectPedestrianResult : public ServiceResult - { - public: - struct Data - { - struct Element - { - float score; - std::string type; - std::vector boxes; - }; - int height; - std::vector elements; - int width; - }; - - - DetectPedestrianResult(); - explicit DetectPedestrianResult(const std::string &payload); - ~DetectPedestrianResult(); - Data getData()const; - - protected: - void parse(const std::string &payload); - private: - Data data_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_DETECTPEDESTRIANRESULT_H_ \ No newline at end of file diff --git a/facebody/include/alibabacloud/facebody/model/DetectVideoLivingFaceRequest.h b/facebody/include/alibabacloud/facebody/model/DetectVideoLivingFaceRequest.h deleted file mode 100644 index b806325bb..000000000 --- a/facebody/include/alibabacloud/facebody/model/DetectVideoLivingFaceRequest.h +++ /dev/null @@ -1,48 +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_DETECTVIDEOLIVINGFACEREQUEST_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_DETECTVIDEOLIVINGFACEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT DetectVideoLivingFaceRequest : public RpcServiceRequest - { - - public: - DetectVideoLivingFaceRequest(); - ~DetectVideoLivingFaceRequest(); - - std::string getVideoUrl()const; - void setVideoUrl(const std::string& videoUrl); - - private: - std::string videoUrl_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_DETECTVIDEOLIVINGFACEREQUEST_H_ \ No newline at end of file diff --git a/facebody/include/alibabacloud/facebody/model/DetectVideoLivingFaceResult.h b/facebody/include/alibabacloud/facebody/model/DetectVideoLivingFaceResult.h deleted file mode 100644 index 1fea3897a..000000000 --- a/facebody/include/alibabacloud/facebody/model/DetectVideoLivingFaceResult.h +++ /dev/null @@ -1,61 +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_DETECTVIDEOLIVINGFACERESULT_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_DETECTVIDEOLIVINGFACERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT DetectVideoLivingFaceResult : public ServiceResult - { - public: - struct Data - { - struct Element - { - float faceConfidence; - std::vector rect; - float liveConfidence; - }; - std::vector elements; - }; - - - DetectVideoLivingFaceResult(); - explicit DetectVideoLivingFaceResult(const std::string &payload); - ~DetectVideoLivingFaceResult(); - Data getData()const; - - protected: - void parse(const std::string &payload); - private: - Data data_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_DETECTVIDEOLIVINGFACERESULT_H_ \ No newline at end of file diff --git a/facebody/include/alibabacloud/facebody/model/EnhanceFaceRequest.h b/facebody/include/alibabacloud/facebody/model/EnhanceFaceRequest.h deleted file mode 100644 index c3f336a39..000000000 --- a/facebody/include/alibabacloud/facebody/model/EnhanceFaceRequest.h +++ /dev/null @@ -1,48 +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_ENHANCEFACEREQUEST_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_ENHANCEFACEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT EnhanceFaceRequest : public RpcServiceRequest - { - - public: - EnhanceFaceRequest(); - ~EnhanceFaceRequest(); - - std::string getImageURL()const; - void setImageURL(const std::string& imageURL); - - private: - std::string imageURL_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_ENHANCEFACEREQUEST_H_ \ No newline at end of file diff --git a/facebody/include/alibabacloud/facebody/model/EnhanceFaceResult.h b/facebody/include/alibabacloud/facebody/model/EnhanceFaceResult.h deleted file mode 100644 index f15801f8a..000000000 --- a/facebody/include/alibabacloud/facebody/model/EnhanceFaceResult.h +++ /dev/null @@ -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_ENHANCEFACERESULT_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_ENHANCEFACERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT EnhanceFaceResult : public ServiceResult - { - public: - struct Data - { - std::string imageURL; - }; - - - EnhanceFaceResult(); - explicit EnhanceFaceResult(const std::string &payload); - ~EnhanceFaceResult(); - Data getData()const; - - protected: - void parse(const std::string &payload); - private: - Data data_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_ENHANCEFACERESULT_H_ \ No newline at end of file diff --git a/facebody/include/alibabacloud/facebody/model/GenRealPersonVerificationTokenRequest.h b/facebody/include/alibabacloud/facebody/model/ExecuteServerSideVerificationRequest.h similarity index 55% rename from facebody/include/alibabacloud/facebody/model/GenRealPersonVerificationTokenRequest.h rename to facebody/include/alibabacloud/facebody/model/ExecuteServerSideVerificationRequest.h index 2f999ece9..d40b1ab24 100644 --- a/facebody/include/alibabacloud/facebody/model/GenRealPersonVerificationTokenRequest.h +++ b/facebody/include/alibabacloud/facebody/model/ExecuteServerSideVerificationRequest.h @@ -14,12 +14,12 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_FACEBODY_MODEL_GENREALPERSONVERIFICATIONTOKENREQUEST_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_GENREALPERSONVERIFICATIONTOKENREQUEST_H_ +#ifndef ALIBABACLOUD_FACEBODY_MODEL_EXECUTESERVERSIDEVERIFICATIONREQUEST_H_ +#define ALIBABACLOUD_FACEBODY_MODEL_EXECUTESERVERSIDEVERIFICATIONREQUEST_H_ #include #include -#include +#include #include namespace AlibabaCloud @@ -28,27 +28,33 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_FACEBODY_EXPORT GenRealPersonVerificationTokenRequest : public RpcServiceRequest + class ALIBABACLOUD_FACEBODY_EXPORT ExecuteServerSideVerificationRequest : public RoaServiceRequest { public: - GenRealPersonVerificationTokenRequest(); - ~GenRealPersonVerificationTokenRequest(); + ExecuteServerSideVerificationRequest(); + ~ExecuteServerSideVerificationRequest(); + std::string getFacialPictureData()const; + void setFacialPictureData(const std::string& facialPictureData); + std::string getSceneType()const; + void setSceneType(const std::string& sceneType); std::string getCertificateNumber()const; void setCertificateNumber(const std::string& certificateNumber); std::string getCertificateName()const; void setCertificateName(const std::string& certificateName); - std::string getMetaInfo()const; - void setMetaInfo(const std::string& metaInfo); + std::string getFacialPictureUrl()const; + void setFacialPictureUrl(const std::string& facialPictureUrl); private: + std::string facialPictureData_; + std::string sceneType_; std::string certificateNumber_; std::string certificateName_; - std::string metaInfo_; + std::string facialPictureUrl_; }; } } } -#endif // !ALIBABACLOUD_FACEBODY_MODEL_GENREALPERSONVERIFICATIONTOKENREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_FACEBODY_MODEL_EXECUTESERVERSIDEVERIFICATIONREQUEST_H_ \ No newline at end of file diff --git a/facebody/include/alibabacloud/facebody/model/CreateBodyDbResult.h b/facebody/include/alibabacloud/facebody/model/ExecuteServerSideVerificationResult.h similarity index 66% rename from facebody/include/alibabacloud/facebody/model/CreateBodyDbResult.h rename to facebody/include/alibabacloud/facebody/model/ExecuteServerSideVerificationResult.h index aebf1901e..b930a1097 100644 --- a/facebody/include/alibabacloud/facebody/model/CreateBodyDbResult.h +++ b/facebody/include/alibabacloud/facebody/model/ExecuteServerSideVerificationResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_FACEBODY_MODEL_CREATEBODYDBRESULT_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_CREATEBODYDBRESULT_H_ +#ifndef ALIBABACLOUD_FACEBODY_MODEL_EXECUTESERVERSIDEVERIFICATIONRESULT_H_ +#define ALIBABACLOUD_FACEBODY_MODEL_EXECUTESERVERSIDEVERIFICATIONRESULT_H_ #include #include @@ -29,18 +29,20 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_FACEBODY_EXPORT CreateBodyDbResult : public ServiceResult + class ALIBABACLOUD_FACEBODY_EXPORT ExecuteServerSideVerificationResult : public ServiceResult { public: struct Data { - long id; + std::string verificationToken; + bool pass; + std::string reason; }; - CreateBodyDbResult(); - explicit CreateBodyDbResult(const std::string &payload); - ~CreateBodyDbResult(); + ExecuteServerSideVerificationResult(); + explicit ExecuteServerSideVerificationResult(const std::string &payload); + ~ExecuteServerSideVerificationResult(); std::string getMessage()const; Data getData()const; std::string getCode()const; @@ -56,4 +58,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_FACEBODY_MODEL_CREATEBODYDBRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_FACEBODY_MODEL_EXECUTESERVERSIDEVERIFICATIONRESULT_H_ \ No newline at end of file diff --git a/facebody/include/alibabacloud/facebody/model/ExtractPedestrianFeatureAttrResult.h b/facebody/include/alibabacloud/facebody/model/ExtractPedestrianFeatureAttrResult.h deleted file mode 100644 index e5915f41c..000000000 --- a/facebody/include/alibabacloud/facebody/model/ExtractPedestrianFeatureAttrResult.h +++ /dev/null @@ -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. - */ - -#ifndef ALIBABACLOUD_FACEBODY_MODEL_EXTRACTPEDESTRIANFEATUREATTRRESULT_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_EXTRACTPEDESTRIANFEATUREATTRRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT ExtractPedestrianFeatureAttrResult : public ServiceResult - { - public: - struct Data - { - std::string hair; - std::string upperType; - float upperTypeScore; - float qualityScore; - std::string lowerColor; - std::string gender; - std::string feature; - float upperColorScore; - float lowerColorScore; - float genderScore; - std::string objType; - float lowerTypeScore; - float hairScore; - std::string upperColor; - std::string lowerType; - float ageScore; - float objTypeScore; - std::string age; - }; - - - ExtractPedestrianFeatureAttrResult(); - explicit ExtractPedestrianFeatureAttrResult(const std::string &payload); - ~ExtractPedestrianFeatureAttrResult(); - Data getData()const; - - protected: - void parse(const std::string &payload); - private: - Data data_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_EXTRACTPEDESTRIANFEATUREATTRRESULT_H_ \ No newline at end of file diff --git a/facebody/include/alibabacloud/facebody/model/ExtractPedestrianFeatureAttributeRequest.h b/facebody/include/alibabacloud/facebody/model/ExtractPedestrianFeatureAttributeRequest.h deleted file mode 100644 index 377d895a6..000000000 --- a/facebody/include/alibabacloud/facebody/model/ExtractPedestrianFeatureAttributeRequest.h +++ /dev/null @@ -1,59 +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_EXTRACTPEDESTRIANFEATUREATTRIBUTEREQUEST_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_EXTRACTPEDESTRIANFEATUREATTRIBUTEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT ExtractPedestrianFeatureAttributeRequest : public RpcServiceRequest - { - public: - struct UrlList - { - std::string url; - }; - - public: - ExtractPedestrianFeatureAttributeRequest(); - ~ExtractPedestrianFeatureAttributeRequest(); - - std::vector getUrlList()const; - void setUrlList(const std::vector& urlList); - std::string getMode()const; - void setMode(const std::string& mode); - std::string getImageURL()const; - void setImageURL(const std::string& imageURL); - - private: - std::vector urlList_; - std::string mode_; - std::string imageURL_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_EXTRACTPEDESTRIANFEATUREATTRIBUTEREQUEST_H_ \ No newline at end of file diff --git a/facebody/include/alibabacloud/facebody/model/ExtractPedestrianFeatureAttributeResult.h b/facebody/include/alibabacloud/facebody/model/ExtractPedestrianFeatureAttributeResult.h deleted file mode 100644 index ca0b5fc9e..000000000 --- a/facebody/include/alibabacloud/facebody/model/ExtractPedestrianFeatureAttributeResult.h +++ /dev/null @@ -1,94 +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_EXTRACTPEDESTRIANFEATUREATTRIBUTERESULT_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_EXTRACTPEDESTRIANFEATUREATTRIBUTERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT ExtractPedestrianFeatureAttributeResult : public ServiceResult - { - public: - struct Data - { - struct Element - { - std::string hair; - std::string upperType; - float upperTypeScore; - float qualityScore; - std::string lowerColor; - std::string gender; - std::string feature; - float upperColorScore; - float lowerColorScore; - float genderScore; - std::string objType; - float lowerTypeScore; - float hairScore; - std::string upperColor; - std::string lowerType; - float ageScore; - float objTypeScore; - std::string age; - }; - std::string hair; - std::string upperType; - float upperTypeScore; - float qualityScore; - std::string lowerColor; - std::string gender; - std::vector elements; - std::string feature; - float upperColorScore; - float lowerColorScore; - float genderScore; - std::string objType; - float lowerTypeScore; - float hairScore; - std::string upperColor; - std::string lowerType; - float ageScore; - float objTypeScore; - std::string age; - }; - - - ExtractPedestrianFeatureAttributeResult(); - explicit ExtractPedestrianFeatureAttributeResult(const std::string &payload); - ~ExtractPedestrianFeatureAttributeResult(); - Data getData()const; - - protected: - void parse(const std::string &payload); - private: - Data data_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_EXTRACTPEDESTRIANFEATUREATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/facebody/include/alibabacloud/facebody/model/FaceBeautyRequest.h b/facebody/include/alibabacloud/facebody/model/FaceBeautyRequest.h deleted file mode 100644 index 62dd5b7ea..000000000 --- a/facebody/include/alibabacloud/facebody/model/FaceBeautyRequest.h +++ /dev/null @@ -1,57 +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_FACEBEAUTYREQUEST_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_FACEBEAUTYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT FaceBeautyRequest : public RpcServiceRequest - { - - public: - FaceBeautyRequest(); - ~FaceBeautyRequest(); - - float getSharp()const; - void setSharp(float sharp); - float getWhite()const; - void setWhite(float white); - std::string getImageURL()const; - void setImageURL(const std::string& imageURL); - float getSmooth()const; - void setSmooth(float smooth); - - private: - float sharp_; - float white_; - std::string imageURL_; - float smooth_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_FACEBEAUTYREQUEST_H_ \ No newline at end of file diff --git a/facebody/include/alibabacloud/facebody/model/FaceBeautyResult.h b/facebody/include/alibabacloud/facebody/model/FaceBeautyResult.h deleted file mode 100644 index 8aef0d636..000000000 --- a/facebody/include/alibabacloud/facebody/model/FaceBeautyResult.h +++ /dev/null @@ -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_FACEBEAUTYRESULT_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_FACEBEAUTYRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT FaceBeautyResult : public ServiceResult - { - public: - struct Data - { - std::string imageURL; - }; - - - FaceBeautyResult(); - explicit FaceBeautyResult(const std::string &payload); - ~FaceBeautyResult(); - Data getData()const; - - protected: - void parse(const std::string &payload); - private: - Data data_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_FACEBEAUTYRESULT_H_ \ No newline at end of file diff --git a/facebody/include/alibabacloud/facebody/model/FaceFilterRequest.h b/facebody/include/alibabacloud/facebody/model/FaceFilterRequest.h deleted file mode 100644 index 3d7a18aeb..000000000 --- a/facebody/include/alibabacloud/facebody/model/FaceFilterRequest.h +++ /dev/null @@ -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_FACEFILTERREQUEST_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_FACEFILTERREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT FaceFilterRequest : public RpcServiceRequest - { - - public: - FaceFilterRequest(); - ~FaceFilterRequest(); - - float getStrength()const; - void setStrength(float strength); - std::string getResourceType()const; - void setResourceType(const std::string& resourceType); - std::string getImageURL()const; - void setImageURL(const std::string& imageURL); - - private: - float strength_; - std::string resourceType_; - std::string imageURL_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_FACEFILTERREQUEST_H_ \ No newline at end of file diff --git a/facebody/include/alibabacloud/facebody/model/FaceFilterResult.h b/facebody/include/alibabacloud/facebody/model/FaceFilterResult.h deleted file mode 100644 index db45f7290..000000000 --- a/facebody/include/alibabacloud/facebody/model/FaceFilterResult.h +++ /dev/null @@ -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_FACEFILTERRESULT_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_FACEFILTERRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT FaceFilterResult : public ServiceResult - { - public: - struct Data - { - std::string imageURL; - }; - - - FaceFilterResult(); - explicit FaceFilterResult(const std::string &payload); - ~FaceFilterResult(); - Data getData()const; - - protected: - void parse(const std::string &payload); - private: - Data data_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_FACEFILTERRESULT_H_ \ No newline at end of file diff --git a/facebody/include/alibabacloud/facebody/model/FaceMakeupRequest.h b/facebody/include/alibabacloud/facebody/model/FaceMakeupRequest.h deleted file mode 100644 index a68b26585..000000000 --- a/facebody/include/alibabacloud/facebody/model/FaceMakeupRequest.h +++ /dev/null @@ -1,57 +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_FACEMAKEUPREQUEST_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_FACEMAKEUPREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT FaceMakeupRequest : public RpcServiceRequest - { - - public: - FaceMakeupRequest(); - ~FaceMakeupRequest(); - - float getStrength()const; - void setStrength(float strength); - std::string getMakeupType()const; - void setMakeupType(const std::string& makeupType); - std::string getResourceType()const; - void setResourceType(const std::string& resourceType); - std::string getImageURL()const; - void setImageURL(const std::string& imageURL); - - private: - float strength_; - std::string makeupType_; - std::string resourceType_; - std::string imageURL_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_FACEMAKEUPREQUEST_H_ \ No newline at end of file diff --git a/facebody/include/alibabacloud/facebody/model/FaceMakeupResult.h b/facebody/include/alibabacloud/facebody/model/FaceMakeupResult.h deleted file mode 100644 index 19af282e6..000000000 --- a/facebody/include/alibabacloud/facebody/model/FaceMakeupResult.h +++ /dev/null @@ -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_FACEMAKEUPRESULT_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_FACEMAKEUPRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT FaceMakeupResult : public ServiceResult - { - public: - struct Data - { - std::string imageURL; - }; - - - FaceMakeupResult(); - explicit FaceMakeupResult(const std::string &payload); - ~FaceMakeupResult(); - Data getData()const; - - protected: - void parse(const std::string &payload); - private: - Data data_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_FACEMAKEUPRESULT_H_ \ No newline at end of file diff --git a/facebody/include/alibabacloud/facebody/model/FaceTidyupRequest.h b/facebody/include/alibabacloud/facebody/model/FaceTidyupRequest.h deleted file mode 100644 index 4cf52cabf..000000000 --- a/facebody/include/alibabacloud/facebody/model/FaceTidyupRequest.h +++ /dev/null @@ -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_FACETIDYUPREQUEST_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_FACETIDYUPREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT FaceTidyupRequest : public RpcServiceRequest - { - - public: - FaceTidyupRequest(); - ~FaceTidyupRequest(); - - int getShapeType()const; - void setShapeType(int shapeType); - float getStrength()const; - void setStrength(float strength); - std::string getImageURL()const; - void setImageURL(const std::string& imageURL); - - private: - int shapeType_; - float strength_; - std::string imageURL_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_FACETIDYUPREQUEST_H_ \ No newline at end of file diff --git a/facebody/include/alibabacloud/facebody/model/FaceTidyupResult.h b/facebody/include/alibabacloud/facebody/model/FaceTidyupResult.h deleted file mode 100644 index d510cd343..000000000 --- a/facebody/include/alibabacloud/facebody/model/FaceTidyupResult.h +++ /dev/null @@ -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_FACETIDYUPRESULT_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_FACETIDYUPRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT FaceTidyupResult : public ServiceResult - { - public: - struct Data - { - std::string imageURL; - }; - - - FaceTidyupResult(); - explicit FaceTidyupResult(const std::string &payload); - ~FaceTidyupResult(); - Data getData()const; - - protected: - void parse(const std::string &payload); - private: - Data data_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_FACETIDYUPRESULT_H_ \ No newline at end of file diff --git a/facebody/include/alibabacloud/facebody/model/GenRealPersonVerificationTokenResult.h b/facebody/include/alibabacloud/facebody/model/GenRealPersonVerificationTokenResult.h deleted file mode 100644 index 5b63e573e..000000000 --- a/facebody/include/alibabacloud/facebody/model/GenRealPersonVerificationTokenResult.h +++ /dev/null @@ -1,61 +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_GENREALPERSONVERIFICATIONTOKENRESULT_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_GENREALPERSONVERIFICATIONTOKENRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT GenRealPersonVerificationTokenResult : public ServiceResult - { - public: - struct Data - { - std::string verificationToken; - }; - - - GenRealPersonVerificationTokenResult(); - explicit GenRealPersonVerificationTokenResult(const std::string &payload); - ~GenRealPersonVerificationTokenResult(); - Data getData()const; - std::string getErrorMessage()const; - std::string getCode()const; - bool getSuccess()const; - - protected: - void parse(const std::string &payload); - private: - Data data_; - std::string errorMessage_; - std::string code_; - bool success_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_GENREALPERSONVERIFICATIONTOKENRESULT_H_ \ No newline at end of file diff --git a/facebody/include/alibabacloud/facebody/model/GenerateHumanAnimeStyleRequest.h b/facebody/include/alibabacloud/facebody/model/GenerateHumanAnimeStyleRequest.h deleted file mode 100644 index 14cc74a32..000000000 --- a/facebody/include/alibabacloud/facebody/model/GenerateHumanAnimeStyleRequest.h +++ /dev/null @@ -1,51 +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_GENERATEHUMANANIMESTYLEREQUEST_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_GENERATEHUMANANIMESTYLEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT GenerateHumanAnimeStyleRequest : public RpcServiceRequest - { - - public: - GenerateHumanAnimeStyleRequest(); - ~GenerateHumanAnimeStyleRequest(); - - std::string getAlgoType()const; - void setAlgoType(const std::string& algoType); - std::string getImageURL()const; - void setImageURL(const std::string& imageURL); - - private: - std::string algoType_; - std::string imageURL_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_GENERATEHUMANANIMESTYLEREQUEST_H_ \ No newline at end of file diff --git a/facebody/include/alibabacloud/facebody/model/GenerateHumanAnimeStyleResult.h b/facebody/include/alibabacloud/facebody/model/GenerateHumanAnimeStyleResult.h deleted file mode 100644 index e651c2971..000000000 --- a/facebody/include/alibabacloud/facebody/model/GenerateHumanAnimeStyleResult.h +++ /dev/null @@ -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_GENERATEHUMANANIMESTYLERESULT_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_GENERATEHUMANANIMESTYLERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT GenerateHumanAnimeStyleResult : public ServiceResult - { - public: - struct Data - { - std::string imageURL; - }; - - - GenerateHumanAnimeStyleResult(); - explicit GenerateHumanAnimeStyleResult(const std::string &payload); - ~GenerateHumanAnimeStyleResult(); - Data getData()const; - - protected: - void parse(const std::string &payload); - private: - Data data_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_GENERATEHUMANANIMESTYLERESULT_H_ \ No newline at end of file diff --git a/facebody/include/alibabacloud/facebody/model/GetBodyPersonRequest.h b/facebody/include/alibabacloud/facebody/model/GetBodyPersonRequest.h deleted file mode 100644 index 5ac5f07bb..000000000 --- a/facebody/include/alibabacloud/facebody/model/GetBodyPersonRequest.h +++ /dev/null @@ -1,51 +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_GETBODYPERSONREQUEST_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_GETBODYPERSONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT GetBodyPersonRequest : public RpcServiceRequest - { - - public: - GetBodyPersonRequest(); - ~GetBodyPersonRequest(); - - long getPersonId()const; - void setPersonId(long personId); - long getDbId()const; - void setDbId(long dbId); - - private: - long personId_; - long dbId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_GETBODYPERSONREQUEST_H_ \ No newline at end of file diff --git a/facebody/include/alibabacloud/facebody/model/GetBodyPersonResult.h b/facebody/include/alibabacloud/facebody/model/GetBodyPersonResult.h deleted file mode 100644 index f8a6fae6f..000000000 --- a/facebody/include/alibabacloud/facebody/model/GetBodyPersonResult.h +++ /dev/null @@ -1,69 +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_GETBODYPERSONRESULT_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_GETBODYPERSONRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT GetBodyPersonResult : public ServiceResult - { - public: - struct Data - { - struct Trace - { - std::string extraData; - long id; - }; - long traceCount; - long instanceId; - std::vector traceList; - long dbId; - long id; - std::string name; - }; - - - GetBodyPersonResult(); - explicit GetBodyPersonResult(const std::string &payload); - ~GetBodyPersonResult(); - 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_FACEBODY_MODEL_GETBODYPERSONRESULT_H_ \ No newline at end of file diff --git a/facebody/include/alibabacloud/facebody/model/GetFaceEntityRequest.h b/facebody/include/alibabacloud/facebody/model/GetFaceEntityRequest.h deleted file mode 100644 index 5e1610302..000000000 --- a/facebody/include/alibabacloud/facebody/model/GetFaceEntityRequest.h +++ /dev/null @@ -1,51 +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_GETFACEENTITYREQUEST_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_GETFACEENTITYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT GetFaceEntityRequest : public RpcServiceRequest - { - - public: - GetFaceEntityRequest(); - ~GetFaceEntityRequest(); - - std::string getEntityId()const; - void setEntityId(const std::string& entityId); - std::string getDbName()const; - void setDbName(const std::string& dbName); - - private: - std::string entityId_; - std::string dbName_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_GETFACEENTITYREQUEST_H_ \ No newline at end of file diff --git a/facebody/include/alibabacloud/facebody/model/GetFaceEntityResult.h b/facebody/include/alibabacloud/facebody/model/GetFaceEntityResult.h deleted file mode 100644 index 9c5add64b..000000000 --- a/facebody/include/alibabacloud/facebody/model/GetFaceEntityResult.h +++ /dev/null @@ -1,62 +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_GETFACEENTITYRESULT_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_GETFACEENTITYRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT GetFaceEntityResult : public ServiceResult - { - public: - struct Data - { - struct Face - { - std::string faceId; - }; - std::string entityId; - std::string dbName; - std::string labels; - std::vector faces; - }; - - - GetFaceEntityResult(); - explicit GetFaceEntityResult(const std::string &payload); - ~GetFaceEntityResult(); - Data getData()const; - - protected: - void parse(const std::string &payload); - private: - Data data_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_GETFACEENTITYRESULT_H_ \ No newline at end of file diff --git a/facebody/include/alibabacloud/facebody/model/GetRealPersonVerificationResultRequest.h b/facebody/include/alibabacloud/facebody/model/GetRealPersonVerificationResultRequest.h deleted file mode 100644 index 08f7c965e..000000000 --- a/facebody/include/alibabacloud/facebody/model/GetRealPersonVerificationResultRequest.h +++ /dev/null @@ -1,51 +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_GETREALPERSONVERIFICATIONRESULTREQUEST_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_GETREALPERSONVERIFICATIONRESULTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT GetRealPersonVerificationResultRequest : public RpcServiceRequest - { - - public: - GetRealPersonVerificationResultRequest(); - ~GetRealPersonVerificationResultRequest(); - - std::string getVerificationToken()const; - void setVerificationToken(const std::string& verificationToken); - std::string getMaterialHash()const; - void setMaterialHash(const std::string& materialHash); - - private: - std::string verificationToken_; - std::string materialHash_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_GETREALPERSONVERIFICATIONRESULTREQUEST_H_ \ No newline at end of file diff --git a/facebody/include/alibabacloud/facebody/model/GetRealPersonVerificationResultResult.h b/facebody/include/alibabacloud/facebody/model/GetRealPersonVerificationResultResult.h deleted file mode 100644 index b30b3d2b3..000000000 --- a/facebody/include/alibabacloud/facebody/model/GetRealPersonVerificationResultResult.h +++ /dev/null @@ -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_GETREALPERSONVERIFICATIONRESULTRESULT_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_GETREALPERSONVERIFICATIONRESULTRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT GetRealPersonVerificationResultResult : public ServiceResult - { - public: - struct Data - { - bool pass; - std::string materialMatch; - std::string identityInfo; - }; - - - GetRealPersonVerificationResultResult(); - explicit GetRealPersonVerificationResultResult(const std::string &payload); - ~GetRealPersonVerificationResultResult(); - Data getData()const; - std::string getErrorMessage()const; - std::string getCode()const; - bool getSuccess()const; - - protected: - void parse(const std::string &payload); - private: - Data data_; - std::string errorMessage_; - std::string code_; - bool success_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_GETREALPERSONVERIFICATIONRESULTRESULT_H_ \ No newline at end of file diff --git a/facebody/include/alibabacloud/facebody/model/HandPostureRequest.h b/facebody/include/alibabacloud/facebody/model/HandPostureRequest.h deleted file mode 100644 index 839fd19a0..000000000 --- a/facebody/include/alibabacloud/facebody/model/HandPostureRequest.h +++ /dev/null @@ -1,48 +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_HANDPOSTUREREQUEST_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_HANDPOSTUREREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT HandPostureRequest : public RpcServiceRequest - { - - public: - HandPostureRequest(); - ~HandPostureRequest(); - - std::string getImageURL()const; - void setImageURL(const std::string& imageURL); - - private: - std::string imageURL_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_HANDPOSTUREREQUEST_H_ \ No newline at end of file diff --git a/facebody/include/alibabacloud/facebody/model/HandPostureResult.h b/facebody/include/alibabacloud/facebody/model/HandPostureResult.h deleted file mode 100644 index 413c862c9..000000000 --- a/facebody/include/alibabacloud/facebody/model/HandPostureResult.h +++ /dev/null @@ -1,94 +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_HANDPOSTURERESULT_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_HANDPOSTURERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT HandPostureResult : public ServiceResult - { - public: - struct Data - { - struct MetaObject - { - int height; - int width; - }; - struct Output - { - struct Result - { - struct Box - { - struct Position - { - std::vector points; - }; - float confident; - std::vector positions; - }; - struct Hands - { - struct KeyPoint - { - struct Position2 - { - std::vector points3; - }; - std::vector positions1; - std::string label; - }; - float confident; - std::vector keyPoints; - }; - Hands hands; - Box box; - }; - std::vector results; - int handCount; - }; - MetaObject metaObject; - std::vector outputs; - }; - - - HandPostureResult(); - explicit HandPostureResult(const std::string &payload); - ~HandPostureResult(); - Data getData()const; - - protected: - void parse(const std::string &payload); - private: - Data data_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_HANDPOSTURERESULT_H_ \ No newline at end of file diff --git a/facebody/include/alibabacloud/facebody/model/ListBodyDbsRequest.h b/facebody/include/alibabacloud/facebody/model/ListBodyDbsRequest.h deleted file mode 100644 index 82ce3ccfc..000000000 --- a/facebody/include/alibabacloud/facebody/model/ListBodyDbsRequest.h +++ /dev/null @@ -1,51 +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_LISTBODYDBSREQUEST_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_LISTBODYDBSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT ListBodyDbsRequest : public RpcServiceRequest - { - - public: - ListBodyDbsRequest(); - ~ListBodyDbsRequest(); - - long getLimit()const; - void setLimit(long limit); - long getOffset()const; - void setOffset(long offset); - - private: - long limit_; - long offset_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_LISTBODYDBSREQUEST_H_ \ No newline at end of file diff --git a/facebody/include/alibabacloud/facebody/model/ListBodyDbsResult.h b/facebody/include/alibabacloud/facebody/model/ListBodyDbsResult.h deleted file mode 100644 index c2602b1ff..000000000 --- a/facebody/include/alibabacloud/facebody/model/ListBodyDbsResult.h +++ /dev/null @@ -1,65 +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_LISTBODYDBSRESULT_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_LISTBODYDBSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT ListBodyDbsResult : public ServiceResult - { - public: - struct Data - { - struct DbListItem - { - long id; - std::string name; - }; - long total; - std::vector dbList; - }; - - - ListBodyDbsResult(); - explicit ListBodyDbsResult(const std::string &payload); - ~ListBodyDbsResult(); - 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_FACEBODY_MODEL_LISTBODYDBSRESULT_H_ \ No newline at end of file diff --git a/facebody/include/alibabacloud/facebody/model/ListBodyPersonRequest.h b/facebody/include/alibabacloud/facebody/model/ListBodyPersonRequest.h deleted file mode 100644 index a378e09a4..000000000 --- a/facebody/include/alibabacloud/facebody/model/ListBodyPersonRequest.h +++ /dev/null @@ -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_LISTBODYPERSONREQUEST_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_LISTBODYPERSONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT ListBodyPersonRequest : public RpcServiceRequest - { - - public: - ListBodyPersonRequest(); - ~ListBodyPersonRequest(); - - long getLimit()const; - void setLimit(long limit); - long getOffset()const; - void setOffset(long offset); - long getDbId()const; - void setDbId(long dbId); - - private: - long limit_; - long offset_; - long dbId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_LISTBODYPERSONREQUEST_H_ \ No newline at end of file diff --git a/facebody/include/alibabacloud/facebody/model/ListBodyPersonResult.h b/facebody/include/alibabacloud/facebody/model/ListBodyPersonResult.h deleted file mode 100644 index 89ac62426..000000000 --- a/facebody/include/alibabacloud/facebody/model/ListBodyPersonResult.h +++ /dev/null @@ -1,68 +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_LISTBODYPERSONRESULT_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_LISTBODYPERSONRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT ListBodyPersonResult : public ServiceResult - { - public: - struct Data - { - struct Person - { - long traceCount; - long instanceId; - long dbId; - long id; - std::string name; - }; - std::vector personList; - long total; - }; - - - ListBodyPersonResult(); - explicit ListBodyPersonResult(const std::string &payload); - ~ListBodyPersonResult(); - 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_FACEBODY_MODEL_LISTBODYPERSONRESULT_H_ \ No newline at end of file diff --git a/facebody/include/alibabacloud/facebody/model/ListFaceDbsRequest.h b/facebody/include/alibabacloud/facebody/model/ListFaceDbsRequest.h deleted file mode 100644 index ea047bec2..000000000 --- a/facebody/include/alibabacloud/facebody/model/ListFaceDbsRequest.h +++ /dev/null @@ -1,45 +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_LISTFACEDBSREQUEST_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_LISTFACEDBSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT ListFaceDbsRequest : public RpcServiceRequest - { - - public: - ListFaceDbsRequest(); - ~ListFaceDbsRequest(); - - - private: - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_LISTFACEDBSREQUEST_H_ \ No newline at end of file diff --git a/facebody/include/alibabacloud/facebody/model/ListFaceDbsResult.h b/facebody/include/alibabacloud/facebody/model/ListFaceDbsResult.h deleted file mode 100644 index 520ca101d..000000000 --- a/facebody/include/alibabacloud/facebody/model/ListFaceDbsResult.h +++ /dev/null @@ -1,59 +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_LISTFACEDBSRESULT_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_LISTFACEDBSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT ListFaceDbsResult : public ServiceResult - { - public: - struct Data - { - struct DbListItem - { - std::string name; - }; - std::vector dbList; - }; - - - ListFaceDbsResult(); - explicit ListFaceDbsResult(const std::string &payload); - ~ListFaceDbsResult(); - Data getData()const; - - protected: - void parse(const std::string &payload); - private: - Data data_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_LISTFACEDBSRESULT_H_ \ No newline at end of file diff --git a/facebody/include/alibabacloud/facebody/model/ListFaceEntitiesRequest.h b/facebody/include/alibabacloud/facebody/model/ListFaceEntitiesRequest.h deleted file mode 100644 index 39bd6fefc..000000000 --- a/facebody/include/alibabacloud/facebody/model/ListFaceEntitiesRequest.h +++ /dev/null @@ -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_LISTFACEENTITIESREQUEST_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_LISTFACEENTITIESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT ListFaceEntitiesRequest : public RpcServiceRequest - { - - public: - ListFaceEntitiesRequest(); - ~ListFaceEntitiesRequest(); - - std::string getEntityIdPrefix()const; - void setEntityIdPrefix(const std::string& entityIdPrefix); - int getLimit()const; - void setLimit(int limit); - std::string getOrder()const; - void setOrder(const std::string& order); - int getOffset()const; - void setOffset(int offset); - std::string getToken()const; - void setToken(const std::string& token); - std::string getLabels()const; - void setLabels(const std::string& labels); - std::string getDbName()const; - void setDbName(const std::string& dbName); - - private: - std::string entityIdPrefix_; - int limit_; - std::string order_; - int offset_; - std::string token_; - std::string labels_; - std::string dbName_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_LISTFACEENTITIESREQUEST_H_ \ No newline at end of file diff --git a/facebody/include/alibabacloud/facebody/model/ListFaceEntitiesResult.h b/facebody/include/alibabacloud/facebody/model/ListFaceEntitiesResult.h deleted file mode 100644 index 8d0ff0adc..000000000 --- a/facebody/include/alibabacloud/facebody/model/ListFaceEntitiesResult.h +++ /dev/null @@ -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_LISTFACEENTITIESRESULT_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_LISTFACEENTITIESRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT ListFaceEntitiesResult : public ServiceResult - { - public: - struct Data - { - struct Entity - { - std::string entityId; - long createdAt; - std::string dbName; - std::string labels; - int faceCount; - long updatedAt; - }; - int totalCount; - std::string token; - std::vector entities; - }; - - - ListFaceEntitiesResult(); - explicit ListFaceEntitiesResult(const std::string &payload); - ~ListFaceEntitiesResult(); - Data getData()const; - - protected: - void parse(const std::string &payload); - private: - Data data_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_LISTFACEENTITIESRESULT_H_ \ No newline at end of file diff --git a/facebody/include/alibabacloud/facebody/model/PedestrianDetectAttributeRequest.h b/facebody/include/alibabacloud/facebody/model/PedestrianDetectAttributeRequest.h deleted file mode 100644 index 7fc741091..000000000 --- a/facebody/include/alibabacloud/facebody/model/PedestrianDetectAttributeRequest.h +++ /dev/null @@ -1,48 +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_PEDESTRIANDETECTATTRIBUTEREQUEST_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_PEDESTRIANDETECTATTRIBUTEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT PedestrianDetectAttributeRequest : public RpcServiceRequest - { - - public: - PedestrianDetectAttributeRequest(); - ~PedestrianDetectAttributeRequest(); - - std::string getImageURL()const; - void setImageURL(const std::string& imageURL); - - private: - std::string imageURL_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_PEDESTRIANDETECTATTRIBUTEREQUEST_H_ \ No newline at end of file diff --git a/facebody/include/alibabacloud/facebody/model/PedestrianDetectAttributeResult.h b/facebody/include/alibabacloud/facebody/model/PedestrianDetectAttributeResult.h deleted file mode 100644 index 0da640652..000000000 --- a/facebody/include/alibabacloud/facebody/model/PedestrianDetectAttributeResult.h +++ /dev/null @@ -1,140 +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_PEDESTRIANDETECTATTRIBUTERESULT_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_PEDESTRIANDETECTATTRIBUTERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT PedestrianDetectAttributeResult : public ServiceResult - { - public: - struct Data - { - struct AttributesItem - { - struct Age - { - float score; - std::string name; - }; - struct Backpack - { - float score; - std::string name; - }; - struct Gender - { - float score; - std::string name; - }; - struct Glasses - { - float score; - std::string name; - }; - struct Handbag - { - float score; - std::string name; - }; - struct Hat - { - float score; - std::string name; - }; - struct LowerColor - { - float score; - std::string name; - }; - struct LowerWear - { - float score; - std::string name; - }; - struct Orient - { - float score; - std::string name; - }; - struct ShoulderBag - { - float score; - std::string name; - }; - struct UpperColor - { - float score; - std::string name; - }; - struct UpperWear - { - float score; - std::string name; - }; - Backpack backpack; - LowerWear lowerWear; - Orient orient; - ShoulderBag shoulderBag; - LowerColor lowerColor; - Glasses glasses; - UpperColor upperColor; - Handbag handbag; - Hat hat; - Gender gender; - Age age; - UpperWear upperWear; - }; - struct BoxesItem - { - float score; - float bottomRightY; - float bottomRightX; - float topLeftY; - float topLeftX; - }; - int personNumber; - std::vector attributes; - std::vector boxes; - }; - - - PedestrianDetectAttributeResult(); - explicit PedestrianDetectAttributeResult(const std::string &payload); - ~PedestrianDetectAttributeResult(); - Data getData()const; - - protected: - void parse(const std::string &payload); - private: - Data data_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_PEDESTRIANDETECTATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/facebody/include/alibabacloud/facebody/model/RecognizeActionRequest.h b/facebody/include/alibabacloud/facebody/model/RecognizeActionRequest.h deleted file mode 100644 index a3a4c305d..000000000 --- a/facebody/include/alibabacloud/facebody/model/RecognizeActionRequest.h +++ /dev/null @@ -1,59 +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_RECOGNIZEACTIONREQUEST_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_RECOGNIZEACTIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT RecognizeActionRequest : public RpcServiceRequest - { - public: - struct URLList - { - std::string uRL; - }; - - public: - RecognizeActionRequest(); - ~RecognizeActionRequest(); - - std::vector getURLList()const; - void setURLList(const std::vector& uRLList); - int getType()const; - void setType(int type); - std::string getVideoUrl()const; - void setVideoUrl(const std::string& videoUrl); - - private: - std::vector uRLList_; - int type_; - std::string videoUrl_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_RECOGNIZEACTIONREQUEST_H_ \ No newline at end of file diff --git a/facebody/include/alibabacloud/facebody/model/RecognizeActionResult.h b/facebody/include/alibabacloud/facebody/model/RecognizeActionResult.h deleted file mode 100644 index eab565593..000000000 --- a/facebody/include/alibabacloud/facebody/model/RecognizeActionResult.h +++ /dev/null @@ -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_RECOGNIZEACTIONRESULT_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_RECOGNIZEACTIONRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT RecognizeActionResult : public ServiceResult - { - public: - struct Data - { - struct Element - { - struct BoxesItem - { - std::vector box; - }; - std::vector scores; - std::vector labels; - int timestamp; - std::vector boxes; - }; - std::vector elements; - }; - - - RecognizeActionResult(); - explicit RecognizeActionResult(const std::string &payload); - ~RecognizeActionResult(); - Data getData()const; - - protected: - void parse(const std::string &payload); - private: - Data data_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_RECOGNIZEACTIONRESULT_H_ \ No newline at end of file diff --git a/facebody/include/alibabacloud/facebody/model/RecognizeExpressionRequest.h b/facebody/include/alibabacloud/facebody/model/RecognizeExpressionRequest.h deleted file mode 100644 index 84973c161..000000000 --- a/facebody/include/alibabacloud/facebody/model/RecognizeExpressionRequest.h +++ /dev/null @@ -1,48 +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_RECOGNIZEEXPRESSIONREQUEST_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_RECOGNIZEEXPRESSIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT RecognizeExpressionRequest : public RpcServiceRequest - { - - public: - RecognizeExpressionRequest(); - ~RecognizeExpressionRequest(); - - std::string getImageURL()const; - void setImageURL(const std::string& imageURL); - - private: - std::string imageURL_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_RECOGNIZEEXPRESSIONREQUEST_H_ \ No newline at end of file diff --git a/facebody/include/alibabacloud/facebody/model/RecognizeExpressionResult.h b/facebody/include/alibabacloud/facebody/model/RecognizeExpressionResult.h deleted file mode 100644 index d3be0bd86..000000000 --- a/facebody/include/alibabacloud/facebody/model/RecognizeExpressionResult.h +++ /dev/null @@ -1,68 +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_RECOGNIZEEXPRESSIONRESULT_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_RECOGNIZEEXPRESSIONRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT RecognizeExpressionResult : public ServiceResult - { - public: - struct Data - { - struct Element - { - struct FaceRectangle - { - int left; - int top; - int height; - int width; - }; - std::string expression; - FaceRectangle faceRectangle; - float faceProbability; - }; - std::vector elements; - }; - - - RecognizeExpressionResult(); - explicit RecognizeExpressionResult(const std::string &payload); - ~RecognizeExpressionResult(); - Data getData()const; - - protected: - void parse(const std::string &payload); - private: - Data data_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_RECOGNIZEEXPRESSIONRESULT_H_ \ No newline at end of file diff --git a/facebody/include/alibabacloud/facebody/model/RecognizeFaceRequest.h b/facebody/include/alibabacloud/facebody/model/RecognizeFaceRequest.h deleted file mode 100644 index 05134ce30..000000000 --- a/facebody/include/alibabacloud/facebody/model/RecognizeFaceRequest.h +++ /dev/null @@ -1,51 +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_RECOGNIZEFACEREQUEST_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_RECOGNIZEFACEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT RecognizeFaceRequest : public RpcServiceRequest - { - - public: - RecognizeFaceRequest(); - ~RecognizeFaceRequest(); - - int getImageType()const; - void setImageType(int imageType); - std::string getImageURL()const; - void setImageURL(const std::string& imageURL); - - private: - int imageType_; - std::string imageURL_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_RECOGNIZEFACEREQUEST_H_ \ No newline at end of file diff --git a/facebody/include/alibabacloud/facebody/model/RecognizeFaceResult.h b/facebody/include/alibabacloud/facebody/model/RecognizeFaceResult.h deleted file mode 100644 index 10a41595b..000000000 --- a/facebody/include/alibabacloud/facebody/model/RecognizeFaceResult.h +++ /dev/null @@ -1,81 +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_RECOGNIZEFACERESULT_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_RECOGNIZEFACERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT RecognizeFaceResult : public ServiceResult - { - public: - struct Data - { - struct Qualities - { - std::vector noiseList; - std::vector scoreList; - std::vector blurList; - std::vector maskList; - std::vector glassList; - std::vector fnfList; - std::vector poseList1; - std::vector illuList; - }; - std::vector beuatyList; - std::vector faceRectangles; - Qualities qualities; - int denseFeatureLength; - std::vector poseList; - std::vector genderList; - std::vector pupils; - std::vector denseFeatures; - std::vector faceProbabilityList; - std::vector hatList; - int landmarkCount; - std::vector ageList; - std::vector glasses; - std::vector landmarks; - std::vector expressions; - int faceCount; - }; - - - RecognizeFaceResult(); - explicit RecognizeFaceResult(const std::string &payload); - ~RecognizeFaceResult(); - Data getData()const; - - protected: - void parse(const std::string &payload); - private: - Data data_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_RECOGNIZEFACERESULT_H_ \ No newline at end of file diff --git a/facebody/include/alibabacloud/facebody/model/RecognizePublicFaceRequest.h b/facebody/include/alibabacloud/facebody/model/RecognizePublicFaceRequest.h deleted file mode 100644 index d472e961d..000000000 --- a/facebody/include/alibabacloud/facebody/model/RecognizePublicFaceRequest.h +++ /dev/null @@ -1,53 +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_RECOGNIZEPUBLICFACEREQUEST_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_RECOGNIZEPUBLICFACEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT RecognizePublicFaceRequest : public RpcServiceRequest - { - public: - struct Task - { - std::string imageURL; - }; - - public: - RecognizePublicFaceRequest(); - ~RecognizePublicFaceRequest(); - - std::vector getTask()const; - void setTask(const std::vector& task); - - private: - std::vector task_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_RECOGNIZEPUBLICFACEREQUEST_H_ \ No newline at end of file diff --git a/facebody/include/alibabacloud/facebody/model/RecognizePublicFaceResult.h b/facebody/include/alibabacloud/facebody/model/RecognizePublicFaceResult.h deleted file mode 100644 index 6b9bb3ef1..000000000 --- a/facebody/include/alibabacloud/facebody/model/RecognizePublicFaceResult.h +++ /dev/null @@ -1,82 +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_RECOGNIZEPUBLICFACERESULT_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_RECOGNIZEPUBLICFACERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT RecognizePublicFaceResult : public ServiceResult - { - public: - struct Data - { - struct Element - { - struct Result - { - struct SubResult - { - struct Face - { - float rate; - std::string id; - std::string name; - }; - float w; - float h; - float x; - float y; - std::vector faces; - }; - std::string suggestion; - float rate; - std::string label; - std::vector subResults; - }; - std::string taskId; - std::vector results; - std::string imageURL; - }; - std::vector elements; - }; - - - RecognizePublicFaceResult(); - explicit RecognizePublicFaceResult(const std::string &payload); - ~RecognizePublicFaceResult(); - Data getData()const; - - protected: - void parse(const std::string &payload); - private: - Data data_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_RECOGNIZEPUBLICFACERESULT_H_ \ No newline at end of file diff --git a/facebody/include/alibabacloud/facebody/model/SearchBodyTraceRequest.h b/facebody/include/alibabacloud/facebody/model/SearchBodyTraceRequest.h deleted file mode 100644 index 5aea62fcd..000000000 --- a/facebody/include/alibabacloud/facebody/model/SearchBodyTraceRequest.h +++ /dev/null @@ -1,57 +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_SEARCHBODYTRACEREQUEST_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_SEARCHBODYTRACEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT SearchBodyTraceRequest : public RpcServiceRequest - { - - public: - SearchBodyTraceRequest(); - ~SearchBodyTraceRequest(); - - float getMinScore()const; - void setMinScore(float minScore); - long getLimit()const; - void setLimit(long limit); - Array getImages()const; - void setImages(const Array& images); - long getDbId()const; - void setDbId(long dbId); - - private: - float minScore_; - long limit_; - Array images_; - long dbId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_SEARCHBODYTRACEREQUEST_H_ \ No newline at end of file diff --git a/facebody/include/alibabacloud/facebody/model/SearchBodyTraceResult.h b/facebody/include/alibabacloud/facebody/model/SearchBodyTraceResult.h deleted file mode 100644 index 470c61ec6..000000000 --- a/facebody/include/alibabacloud/facebody/model/SearchBodyTraceResult.h +++ /dev/null @@ -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_SEARCHBODYTRACERESULT_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_SEARCHBODYTRACERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT SearchBodyTraceResult : public ServiceResult - { - public: - struct Data - { - struct Trace - { - float score; - long personId; - long traceId; - long dbId; - std::string extraData; - }; - std::vector matchList; - }; - - - SearchBodyTraceResult(); - explicit SearchBodyTraceResult(const std::string &payload); - ~SearchBodyTraceResult(); - 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_FACEBODY_MODEL_SEARCHBODYTRACERESULT_H_ \ No newline at end of file diff --git a/facebody/include/alibabacloud/facebody/model/SearchFaceRequest.h b/facebody/include/alibabacloud/facebody/model/SearchFaceRequest.h deleted file mode 100644 index 9f9d61517..000000000 --- a/facebody/include/alibabacloud/facebody/model/SearchFaceRequest.h +++ /dev/null @@ -1,57 +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_SEARCHFACEREQUEST_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_SEARCHFACEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT SearchFaceRequest : public RpcServiceRequest - { - - public: - SearchFaceRequest(); - ~SearchFaceRequest(); - - std::string getDbNames()const; - void setDbNames(const std::string& dbNames); - std::string getDbName()const; - void setDbName(const std::string& dbName); - std::string getImageUrl()const; - void setImageUrl(const std::string& imageUrl); - int getLimit()const; - void setLimit(int limit); - - private: - std::string dbNames_; - std::string dbName_; - std::string imageUrl_; - int limit_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_SEARCHFACEREQUEST_H_ \ No newline at end of file diff --git a/facebody/include/alibabacloud/facebody/model/SearchFaceResult.h b/facebody/include/alibabacloud/facebody/model/SearchFaceResult.h deleted file mode 100644 index d7f545f42..000000000 --- a/facebody/include/alibabacloud/facebody/model/SearchFaceResult.h +++ /dev/null @@ -1,75 +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_SEARCHFACERESULT_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_SEARCHFACERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT SearchFaceResult : public ServiceResult - { - public: - struct Data - { - struct MatchListItem - { - struct Location - { - int x; - int y; - int height; - int width; - }; - struct FaceItemsItem - { - std::string faceId; - std::string entityId; - float score; - std::string dbName; - std::string extraData; - }; - std::vector faceItems; - Location location; - }; - std::vector matchList; - }; - - - SearchFaceResult(); - explicit SearchFaceResult(const std::string &payload); - ~SearchFaceResult(); - Data getData()const; - - protected: - void parse(const std::string &payload); - private: - Data data_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_SEARCHFACERESULT_H_ \ No newline at end of file diff --git a/facebody/include/alibabacloud/facebody/model/SwapFacialFeaturesRequest.h b/facebody/include/alibabacloud/facebody/model/SwapFacialFeaturesRequest.h deleted file mode 100644 index 4ff8a9fb5..000000000 --- a/facebody/include/alibabacloud/facebody/model/SwapFacialFeaturesRequest.h +++ /dev/null @@ -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_SWAPFACIALFEATURESREQUEST_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_SWAPFACIALFEATURESREQUEST_H_ - -#include -#include -#include -#include - -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); - std::string getSourceImageURL()const; - void setSourceImageURL(const std::string& sourceImageURL); - std::string getEditPart()const; - void setEditPart(const std::string& editPart); - - private: - std::string targetImageURL_; - std::string sourceImageURL_; - std::string editPart_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_SWAPFACIALFEATURESREQUEST_H_ \ No newline at end of file diff --git a/facebody/include/alibabacloud/facebody/model/SwapFacialFeaturesResult.h b/facebody/include/alibabacloud/facebody/model/SwapFacialFeaturesResult.h deleted file mode 100644 index c2316b52a..000000000 --- a/facebody/include/alibabacloud/facebody/model/SwapFacialFeaturesResult.h +++ /dev/null @@ -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 -#include -#include -#include -#include - -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_ \ No newline at end of file diff --git a/facebody/include/alibabacloud/facebody/model/UpdateFaceEntityRequest.h b/facebody/include/alibabacloud/facebody/model/UpdateFaceEntityRequest.h deleted file mode 100644 index e8e07e9b5..000000000 --- a/facebody/include/alibabacloud/facebody/model/UpdateFaceEntityRequest.h +++ /dev/null @@ -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_UPDATEFACEENTITYREQUEST_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_UPDATEFACEENTITYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT UpdateFaceEntityRequest : public RpcServiceRequest - { - - public: - UpdateFaceEntityRequest(); - ~UpdateFaceEntityRequest(); - - std::string getEntityId()const; - void setEntityId(const std::string& entityId); - std::string getLabels()const; - void setLabels(const std::string& labels); - std::string getDbName()const; - void setDbName(const std::string& dbName); - - private: - std::string entityId_; - std::string labels_; - std::string dbName_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_UPDATEFACEENTITYREQUEST_H_ \ No newline at end of file diff --git a/facebody/include/alibabacloud/facebody/model/UpdateFaceEntityResult.h b/facebody/include/alibabacloud/facebody/model/UpdateFaceEntityResult.h deleted file mode 100644 index 9ade65fb8..000000000 --- a/facebody/include/alibabacloud/facebody/model/UpdateFaceEntityResult.h +++ /dev/null @@ -1,49 +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_UPDATEFACEENTITYRESULT_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_UPDATEFACEENTITYRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT UpdateFaceEntityResult : public ServiceResult - { - public: - - - UpdateFaceEntityResult(); - explicit UpdateFaceEntityResult(const std::string &payload); - ~UpdateFaceEntityResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_UPDATEFACEENTITYRESULT_H_ \ No newline at end of file diff --git a/facebody/include/alibabacloud/facebody/model/VerifyFaceMaskRequest.h b/facebody/include/alibabacloud/facebody/model/VerifyFaceMaskRequest.h deleted file mode 100644 index 3867e2aac..000000000 --- a/facebody/include/alibabacloud/facebody/model/VerifyFaceMaskRequest.h +++ /dev/null @@ -1,51 +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_VERIFYFACEMASKREQUEST_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_VERIFYFACEMASKREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT VerifyFaceMaskRequest : public RpcServiceRequest - { - - public: - VerifyFaceMaskRequest(); - ~VerifyFaceMaskRequest(); - - std::string getImageURL()const; - void setImageURL(const std::string& imageURL); - std::string getRefUrl()const; - void setRefUrl(const std::string& refUrl); - - private: - std::string imageURL_; - std::string refUrl_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_VERIFYFACEMASKREQUEST_H_ \ No newline at end of file diff --git a/facebody/include/alibabacloud/facebody/model/VerifyFaceMaskResult.h b/facebody/include/alibabacloud/facebody/model/VerifyFaceMaskResult.h deleted file mode 100644 index 9c83ce1e3..000000000 --- a/facebody/include/alibabacloud/facebody/model/VerifyFaceMaskResult.h +++ /dev/null @@ -1,60 +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_VERIFYFACEMASKRESULT_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_VERIFYFACEMASKRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT VerifyFaceMaskResult : public ServiceResult - { - public: - struct Data - { - std::vector thresholds; - float confidence; - int mask; - std::vector rectangle; - std::vector rectangleRef; - int maskRef; - }; - - - VerifyFaceMaskResult(); - explicit VerifyFaceMaskResult(const std::string &payload); - ~VerifyFaceMaskResult(); - Data getData()const; - - protected: - void parse(const std::string &payload); - private: - Data data_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_VERIFYFACEMASKRESULT_H_ \ No newline at end of file diff --git a/facebody/src/FacebodyClient.cc b/facebody/src/FacebodyClient.cc index 95a7468fd..17244d692 100644 --- a/facebody/src/FacebodyClient.cc +++ b/facebody/src/FacebodyClient.cc @@ -28,21 +28,21 @@ namespace } FacebodyClient::FacebodyClient(const Credentials &credentials, const ClientConfiguration &configuration) : - RpcServiceClient(SERVICE_NAME, std::make_shared(credentials), configuration) + RoaServiceClient(SERVICE_NAME, std::make_shared(credentials), configuration) { auto locationClient = std::make_shared(credentials, configuration); endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "facebody"); } FacebodyClient::FacebodyClient(const std::shared_ptr& credentialsProvider, const ClientConfiguration & configuration) : - RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration) + RoaServiceClient(SERVICE_NAME, credentialsProvider, configuration) { auto locationClient = std::make_shared(credentialsProvider, configuration); endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "facebody"); } FacebodyClient::FacebodyClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) : - RpcServiceClient(SERVICE_NAME, std::make_shared(accessKeyId, accessKeySecret), configuration) + RoaServiceClient(SERVICE_NAME, std::make_shared(accessKeyId, accessKeySecret), configuration) { auto locationClient = std::make_shared(accessKeyId, accessKeySecret, configuration); endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "facebody"); @@ -51,1872 +51,72 @@ FacebodyClient::FacebodyClient(const std::string & accessKeyId, const std::strin FacebodyClient::~FacebodyClient() {} -FacebodyClient::AddBodyTraceOutcome FacebodyClient::addBodyTrace(const AddBodyTraceRequest &request) const +FacebodyClient::DetectIPCPedestrianOptimizedOutcome FacebodyClient::detectIPCPedestrianOptimized(const DetectIPCPedestrianOptimizedRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return AddBodyTraceOutcome(endpointOutcome.error()); + return DetectIPCPedestrianOptimizedOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return AddBodyTraceOutcome(AddBodyTraceResult(outcome.result())); + return DetectIPCPedestrianOptimizedOutcome(DetectIPCPedestrianOptimizedResult(outcome.result())); else - return AddBodyTraceOutcome(outcome.error()); + return DetectIPCPedestrianOptimizedOutcome(outcome.error()); } -void FacebodyClient::addBodyTraceAsync(const AddBodyTraceRequest& request, const AddBodyTraceAsyncHandler& handler, const std::shared_ptr& context) const +void FacebodyClient::detectIPCPedestrianOptimizedAsync(const DetectIPCPedestrianOptimizedRequest& request, const DetectIPCPedestrianOptimizedAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, addBodyTrace(request), context); + handler(this, request, detectIPCPedestrianOptimized(request), context); }; asyncExecute(new Runnable(fn)); } -FacebodyClient::AddBodyTraceOutcomeCallable FacebodyClient::addBodyTraceCallable(const AddBodyTraceRequest &request) const +FacebodyClient::DetectIPCPedestrianOptimizedOutcomeCallable FacebodyClient::detectIPCPedestrianOptimizedCallable(const DetectIPCPedestrianOptimizedRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->addBodyTrace(request); + return this->detectIPCPedestrianOptimized(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -FacebodyClient::AddFaceOutcome FacebodyClient::addFace(const AddFaceRequest &request) const +FacebodyClient::ExecuteServerSideVerificationOutcome FacebodyClient::executeServerSideVerification(const ExecuteServerSideVerificationRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return AddFaceOutcome(endpointOutcome.error()); + return ExecuteServerSideVerificationOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return AddFaceOutcome(AddFaceResult(outcome.result())); + return ExecuteServerSideVerificationOutcome(ExecuteServerSideVerificationResult(outcome.result())); else - return AddFaceOutcome(outcome.error()); + return ExecuteServerSideVerificationOutcome(outcome.error()); } -void FacebodyClient::addFaceAsync(const AddFaceRequest& request, const AddFaceAsyncHandler& handler, const std::shared_ptr& context) const +void FacebodyClient::executeServerSideVerificationAsync(const ExecuteServerSideVerificationRequest& request, const ExecuteServerSideVerificationAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, addFace(request), context); + handler(this, request, executeServerSideVerification(request), context); }; asyncExecute(new Runnable(fn)); } -FacebodyClient::AddFaceOutcomeCallable FacebodyClient::addFaceCallable(const AddFaceRequest &request) const +FacebodyClient::ExecuteServerSideVerificationOutcomeCallable FacebodyClient::executeServerSideVerificationCallable(const ExecuteServerSideVerificationRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->addFace(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -FacebodyClient::AddFaceEntityOutcome FacebodyClient::addFaceEntity(const AddFaceEntityRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return AddFaceEntityOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return AddFaceEntityOutcome(AddFaceEntityResult(outcome.result())); - else - return AddFaceEntityOutcome(outcome.error()); -} - -void FacebodyClient::addFaceEntityAsync(const AddFaceEntityRequest& request, const AddFaceEntityAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, addFaceEntity(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -FacebodyClient::AddFaceEntityOutcomeCallable FacebodyClient::addFaceEntityCallable(const AddFaceEntityRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->addFaceEntity(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -FacebodyClient::BlurFaceOutcome FacebodyClient::blurFace(const BlurFaceRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return BlurFaceOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return BlurFaceOutcome(BlurFaceResult(outcome.result())); - else - return BlurFaceOutcome(outcome.error()); -} - -void FacebodyClient::blurFaceAsync(const BlurFaceRequest& request, const BlurFaceAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, blurFace(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -FacebodyClient::BlurFaceOutcomeCallable FacebodyClient::blurFaceCallable(const BlurFaceRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->blurFace(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -FacebodyClient::BodyPostureOutcome FacebodyClient::bodyPosture(const BodyPostureRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return BodyPostureOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return BodyPostureOutcome(BodyPostureResult(outcome.result())); - else - return BodyPostureOutcome(outcome.error()); -} - -void FacebodyClient::bodyPostureAsync(const BodyPostureRequest& request, const BodyPostureAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, bodyPosture(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -FacebodyClient::BodyPostureOutcomeCallable FacebodyClient::bodyPostureCallable(const BodyPostureRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->bodyPosture(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -FacebodyClient::CompareFaceOutcome FacebodyClient::compareFace(const CompareFaceRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return CompareFaceOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return CompareFaceOutcome(CompareFaceResult(outcome.result())); - else - return CompareFaceOutcome(outcome.error()); -} - -void FacebodyClient::compareFaceAsync(const CompareFaceRequest& request, const CompareFaceAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, compareFace(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -FacebodyClient::CompareFaceOutcomeCallable FacebodyClient::compareFaceCallable(const CompareFaceRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->compareFace(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - 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& 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>( - [this, request]() - { - return this->countCrowd(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -FacebodyClient::CreateBodyDbOutcome FacebodyClient::createBodyDb(const CreateBodyDbRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return CreateBodyDbOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return CreateBodyDbOutcome(CreateBodyDbResult(outcome.result())); - else - return CreateBodyDbOutcome(outcome.error()); -} - -void FacebodyClient::createBodyDbAsync(const CreateBodyDbRequest& request, const CreateBodyDbAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, createBodyDb(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -FacebodyClient::CreateBodyDbOutcomeCallable FacebodyClient::createBodyDbCallable(const CreateBodyDbRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->createBodyDb(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -FacebodyClient::CreateBodyPersonOutcome FacebodyClient::createBodyPerson(const CreateBodyPersonRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return CreateBodyPersonOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return CreateBodyPersonOutcome(CreateBodyPersonResult(outcome.result())); - else - return CreateBodyPersonOutcome(outcome.error()); -} - -void FacebodyClient::createBodyPersonAsync(const CreateBodyPersonRequest& request, const CreateBodyPersonAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, createBodyPerson(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -FacebodyClient::CreateBodyPersonOutcomeCallable FacebodyClient::createBodyPersonCallable(const CreateBodyPersonRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->createBodyPerson(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -FacebodyClient::CreateFaceDbOutcome FacebodyClient::createFaceDb(const CreateFaceDbRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return CreateFaceDbOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return CreateFaceDbOutcome(CreateFaceDbResult(outcome.result())); - else - return CreateFaceDbOutcome(outcome.error()); -} - -void FacebodyClient::createFaceDbAsync(const CreateFaceDbRequest& request, const CreateFaceDbAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, createFaceDb(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -FacebodyClient::CreateFaceDbOutcomeCallable FacebodyClient::createFaceDbCallable(const CreateFaceDbRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->createFaceDb(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -FacebodyClient::DeleteBodyDbOutcome FacebodyClient::deleteBodyDb(const DeleteBodyDbRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DeleteBodyDbOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DeleteBodyDbOutcome(DeleteBodyDbResult(outcome.result())); - else - return DeleteBodyDbOutcome(outcome.error()); -} - -void FacebodyClient::deleteBodyDbAsync(const DeleteBodyDbRequest& request, const DeleteBodyDbAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, deleteBodyDb(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -FacebodyClient::DeleteBodyDbOutcomeCallable FacebodyClient::deleteBodyDbCallable(const DeleteBodyDbRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->deleteBodyDb(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -FacebodyClient::DeleteBodyPersonOutcome FacebodyClient::deleteBodyPerson(const DeleteBodyPersonRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DeleteBodyPersonOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DeleteBodyPersonOutcome(DeleteBodyPersonResult(outcome.result())); - else - return DeleteBodyPersonOutcome(outcome.error()); -} - -void FacebodyClient::deleteBodyPersonAsync(const DeleteBodyPersonRequest& request, const DeleteBodyPersonAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, deleteBodyPerson(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -FacebodyClient::DeleteBodyPersonOutcomeCallable FacebodyClient::deleteBodyPersonCallable(const DeleteBodyPersonRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->deleteBodyPerson(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -FacebodyClient::DeleteFaceOutcome FacebodyClient::deleteFace(const DeleteFaceRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DeleteFaceOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DeleteFaceOutcome(DeleteFaceResult(outcome.result())); - else - return DeleteFaceOutcome(outcome.error()); -} - -void FacebodyClient::deleteFaceAsync(const DeleteFaceRequest& request, const DeleteFaceAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, deleteFace(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -FacebodyClient::DeleteFaceOutcomeCallable FacebodyClient::deleteFaceCallable(const DeleteFaceRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->deleteFace(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -FacebodyClient::DeleteFaceDbOutcome FacebodyClient::deleteFaceDb(const DeleteFaceDbRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DeleteFaceDbOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DeleteFaceDbOutcome(DeleteFaceDbResult(outcome.result())); - else - return DeleteFaceDbOutcome(outcome.error()); -} - -void FacebodyClient::deleteFaceDbAsync(const DeleteFaceDbRequest& request, const DeleteFaceDbAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, deleteFaceDb(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -FacebodyClient::DeleteFaceDbOutcomeCallable FacebodyClient::deleteFaceDbCallable(const DeleteFaceDbRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->deleteFaceDb(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -FacebodyClient::DeleteFaceEntityOutcome FacebodyClient::deleteFaceEntity(const DeleteFaceEntityRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DeleteFaceEntityOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DeleteFaceEntityOutcome(DeleteFaceEntityResult(outcome.result())); - else - return DeleteFaceEntityOutcome(outcome.error()); -} - -void FacebodyClient::deleteFaceEntityAsync(const DeleteFaceEntityRequest& request, const DeleteFaceEntityAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, deleteFaceEntity(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -FacebodyClient::DeleteFaceEntityOutcomeCallable FacebodyClient::deleteFaceEntityCallable(const DeleteFaceEntityRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->deleteFaceEntity(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -FacebodyClient::DetectBodyCountOutcome FacebodyClient::detectBodyCount(const DetectBodyCountRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DetectBodyCountOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DetectBodyCountOutcome(DetectBodyCountResult(outcome.result())); - else - return DetectBodyCountOutcome(outcome.error()); -} - -void FacebodyClient::detectBodyCountAsync(const DetectBodyCountRequest& request, const DetectBodyCountAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, detectBodyCount(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -FacebodyClient::DetectBodyCountOutcomeCallable FacebodyClient::detectBodyCountCallable(const DetectBodyCountRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->detectBodyCount(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -FacebodyClient::DetectCelebrityOutcome FacebodyClient::detectCelebrity(const DetectCelebrityRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DetectCelebrityOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DetectCelebrityOutcome(DetectCelebrityResult(outcome.result())); - else - return DetectCelebrityOutcome(outcome.error()); -} - -void FacebodyClient::detectCelebrityAsync(const DetectCelebrityRequest& request, const DetectCelebrityAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, detectCelebrity(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -FacebodyClient::DetectCelebrityOutcomeCallable FacebodyClient::detectCelebrityCallable(const DetectCelebrityRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->detectCelebrity(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -FacebodyClient::DetectChefCapOutcome FacebodyClient::detectChefCap(const DetectChefCapRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DetectChefCapOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DetectChefCapOutcome(DetectChefCapResult(outcome.result())); - else - return DetectChefCapOutcome(outcome.error()); -} - -void FacebodyClient::detectChefCapAsync(const DetectChefCapRequest& request, const DetectChefCapAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, detectChefCap(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -FacebodyClient::DetectChefCapOutcomeCallable FacebodyClient::detectChefCapCallable(const DetectChefCapRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->detectChefCap(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -FacebodyClient::DetectFaceOutcome FacebodyClient::detectFace(const DetectFaceRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DetectFaceOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DetectFaceOutcome(DetectFaceResult(outcome.result())); - else - return DetectFaceOutcome(outcome.error()); -} - -void FacebodyClient::detectFaceAsync(const DetectFaceRequest& request, const DetectFaceAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, detectFace(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -FacebodyClient::DetectFaceOutcomeCallable FacebodyClient::detectFaceCallable(const DetectFaceRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->detectFace(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - 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& 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>( - [this, request]() - { - return this->detectIPCPedestrian(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -FacebodyClient::DetectLivingFaceOutcome FacebodyClient::detectLivingFace(const DetectLivingFaceRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DetectLivingFaceOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DetectLivingFaceOutcome(DetectLivingFaceResult(outcome.result())); - else - return DetectLivingFaceOutcome(outcome.error()); -} - -void FacebodyClient::detectLivingFaceAsync(const DetectLivingFaceRequest& request, const DetectLivingFaceAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, detectLivingFace(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -FacebodyClient::DetectLivingFaceOutcomeCallable FacebodyClient::detectLivingFaceCallable(const DetectLivingFaceRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->detectLivingFace(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -FacebodyClient::DetectMaskOutcome FacebodyClient::detectMask(const DetectMaskRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DetectMaskOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DetectMaskOutcome(DetectMaskResult(outcome.result())); - else - return DetectMaskOutcome(outcome.error()); -} - -void FacebodyClient::detectMaskAsync(const DetectMaskRequest& request, const DetectMaskAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, detectMask(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -FacebodyClient::DetectMaskOutcomeCallable FacebodyClient::detectMaskCallable(const DetectMaskRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->detectMask(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -FacebodyClient::DetectPedestrianOutcome FacebodyClient::detectPedestrian(const DetectPedestrianRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DetectPedestrianOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DetectPedestrianOutcome(DetectPedestrianResult(outcome.result())); - else - return DetectPedestrianOutcome(outcome.error()); -} - -void FacebodyClient::detectPedestrianAsync(const DetectPedestrianRequest& request, const DetectPedestrianAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, detectPedestrian(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -FacebodyClient::DetectPedestrianOutcomeCallable FacebodyClient::detectPedestrianCallable(const DetectPedestrianRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->detectPedestrian(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -FacebodyClient::DetectPedestrianIntrusionOutcome FacebodyClient::detectPedestrianIntrusion(const DetectPedestrianIntrusionRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DetectPedestrianIntrusionOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DetectPedestrianIntrusionOutcome(DetectPedestrianIntrusionResult(outcome.result())); - else - return DetectPedestrianIntrusionOutcome(outcome.error()); -} - -void FacebodyClient::detectPedestrianIntrusionAsync(const DetectPedestrianIntrusionRequest& request, const DetectPedestrianIntrusionAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, detectPedestrianIntrusion(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -FacebodyClient::DetectPedestrianIntrusionOutcomeCallable FacebodyClient::detectPedestrianIntrusionCallable(const DetectPedestrianIntrusionRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->detectPedestrianIntrusion(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -FacebodyClient::DetectVideoLivingFaceOutcome FacebodyClient::detectVideoLivingFace(const DetectVideoLivingFaceRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DetectVideoLivingFaceOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DetectVideoLivingFaceOutcome(DetectVideoLivingFaceResult(outcome.result())); - else - return DetectVideoLivingFaceOutcome(outcome.error()); -} - -void FacebodyClient::detectVideoLivingFaceAsync(const DetectVideoLivingFaceRequest& request, const DetectVideoLivingFaceAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, detectVideoLivingFace(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -FacebodyClient::DetectVideoLivingFaceOutcomeCallable FacebodyClient::detectVideoLivingFaceCallable(const DetectVideoLivingFaceRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->detectVideoLivingFace(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -FacebodyClient::EnhanceFaceOutcome FacebodyClient::enhanceFace(const EnhanceFaceRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return EnhanceFaceOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return EnhanceFaceOutcome(EnhanceFaceResult(outcome.result())); - else - return EnhanceFaceOutcome(outcome.error()); -} - -void FacebodyClient::enhanceFaceAsync(const EnhanceFaceRequest& request, const EnhanceFaceAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, enhanceFace(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -FacebodyClient::EnhanceFaceOutcomeCallable FacebodyClient::enhanceFaceCallable(const EnhanceFaceRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->enhanceFace(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -FacebodyClient::ExtractPedestrianFeatureAttrOutcome FacebodyClient::extractPedestrianFeatureAttr(const ExtractPedestrianFeatureAttrRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ExtractPedestrianFeatureAttrOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ExtractPedestrianFeatureAttrOutcome(ExtractPedestrianFeatureAttrResult(outcome.result())); - else - return ExtractPedestrianFeatureAttrOutcome(outcome.error()); -} - -void FacebodyClient::extractPedestrianFeatureAttrAsync(const ExtractPedestrianFeatureAttrRequest& request, const ExtractPedestrianFeatureAttrAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, extractPedestrianFeatureAttr(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -FacebodyClient::ExtractPedestrianFeatureAttrOutcomeCallable FacebodyClient::extractPedestrianFeatureAttrCallable(const ExtractPedestrianFeatureAttrRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->extractPedestrianFeatureAttr(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -FacebodyClient::ExtractPedestrianFeatureAttributeOutcome FacebodyClient::extractPedestrianFeatureAttribute(const ExtractPedestrianFeatureAttributeRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ExtractPedestrianFeatureAttributeOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ExtractPedestrianFeatureAttributeOutcome(ExtractPedestrianFeatureAttributeResult(outcome.result())); - else - return ExtractPedestrianFeatureAttributeOutcome(outcome.error()); -} - -void FacebodyClient::extractPedestrianFeatureAttributeAsync(const ExtractPedestrianFeatureAttributeRequest& request, const ExtractPedestrianFeatureAttributeAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, extractPedestrianFeatureAttribute(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -FacebodyClient::ExtractPedestrianFeatureAttributeOutcomeCallable FacebodyClient::extractPedestrianFeatureAttributeCallable(const ExtractPedestrianFeatureAttributeRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->extractPedestrianFeatureAttribute(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -FacebodyClient::FaceBeautyOutcome FacebodyClient::faceBeauty(const FaceBeautyRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return FaceBeautyOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return FaceBeautyOutcome(FaceBeautyResult(outcome.result())); - else - return FaceBeautyOutcome(outcome.error()); -} - -void FacebodyClient::faceBeautyAsync(const FaceBeautyRequest& request, const FaceBeautyAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, faceBeauty(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -FacebodyClient::FaceBeautyOutcomeCallable FacebodyClient::faceBeautyCallable(const FaceBeautyRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->faceBeauty(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -FacebodyClient::FaceFilterOutcome FacebodyClient::faceFilter(const FaceFilterRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return FaceFilterOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return FaceFilterOutcome(FaceFilterResult(outcome.result())); - else - return FaceFilterOutcome(outcome.error()); -} - -void FacebodyClient::faceFilterAsync(const FaceFilterRequest& request, const FaceFilterAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, faceFilter(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -FacebodyClient::FaceFilterOutcomeCallable FacebodyClient::faceFilterCallable(const FaceFilterRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->faceFilter(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -FacebodyClient::FaceMakeupOutcome FacebodyClient::faceMakeup(const FaceMakeupRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return FaceMakeupOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return FaceMakeupOutcome(FaceMakeupResult(outcome.result())); - else - return FaceMakeupOutcome(outcome.error()); -} - -void FacebodyClient::faceMakeupAsync(const FaceMakeupRequest& request, const FaceMakeupAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, faceMakeup(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -FacebodyClient::FaceMakeupOutcomeCallable FacebodyClient::faceMakeupCallable(const FaceMakeupRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->faceMakeup(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -FacebodyClient::FaceTidyupOutcome FacebodyClient::faceTidyup(const FaceTidyupRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return FaceTidyupOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return FaceTidyupOutcome(FaceTidyupResult(outcome.result())); - else - return FaceTidyupOutcome(outcome.error()); -} - -void FacebodyClient::faceTidyupAsync(const FaceTidyupRequest& request, const FaceTidyupAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, faceTidyup(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -FacebodyClient::FaceTidyupOutcomeCallable FacebodyClient::faceTidyupCallable(const FaceTidyupRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->faceTidyup(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -FacebodyClient::GenRealPersonVerificationTokenOutcome FacebodyClient::genRealPersonVerificationToken(const GenRealPersonVerificationTokenRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GenRealPersonVerificationTokenOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GenRealPersonVerificationTokenOutcome(GenRealPersonVerificationTokenResult(outcome.result())); - else - return GenRealPersonVerificationTokenOutcome(outcome.error()); -} - -void FacebodyClient::genRealPersonVerificationTokenAsync(const GenRealPersonVerificationTokenRequest& request, const GenRealPersonVerificationTokenAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, genRealPersonVerificationToken(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -FacebodyClient::GenRealPersonVerificationTokenOutcomeCallable FacebodyClient::genRealPersonVerificationTokenCallable(const GenRealPersonVerificationTokenRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->genRealPersonVerificationToken(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -FacebodyClient::GenerateHumanAnimeStyleOutcome FacebodyClient::generateHumanAnimeStyle(const GenerateHumanAnimeStyleRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GenerateHumanAnimeStyleOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GenerateHumanAnimeStyleOutcome(GenerateHumanAnimeStyleResult(outcome.result())); - else - return GenerateHumanAnimeStyleOutcome(outcome.error()); -} - -void FacebodyClient::generateHumanAnimeStyleAsync(const GenerateHumanAnimeStyleRequest& request, const GenerateHumanAnimeStyleAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, generateHumanAnimeStyle(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -FacebodyClient::GenerateHumanAnimeStyleOutcomeCallable FacebodyClient::generateHumanAnimeStyleCallable(const GenerateHumanAnimeStyleRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->generateHumanAnimeStyle(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -FacebodyClient::GetBodyPersonOutcome FacebodyClient::getBodyPerson(const GetBodyPersonRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GetBodyPersonOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GetBodyPersonOutcome(GetBodyPersonResult(outcome.result())); - else - return GetBodyPersonOutcome(outcome.error()); -} - -void FacebodyClient::getBodyPersonAsync(const GetBodyPersonRequest& request, const GetBodyPersonAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, getBodyPerson(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -FacebodyClient::GetBodyPersonOutcomeCallable FacebodyClient::getBodyPersonCallable(const GetBodyPersonRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->getBodyPerson(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -FacebodyClient::GetFaceEntityOutcome FacebodyClient::getFaceEntity(const GetFaceEntityRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GetFaceEntityOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GetFaceEntityOutcome(GetFaceEntityResult(outcome.result())); - else - return GetFaceEntityOutcome(outcome.error()); -} - -void FacebodyClient::getFaceEntityAsync(const GetFaceEntityRequest& request, const GetFaceEntityAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, getFaceEntity(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -FacebodyClient::GetFaceEntityOutcomeCallable FacebodyClient::getFaceEntityCallable(const GetFaceEntityRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->getFaceEntity(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -FacebodyClient::GetRealPersonVerificationResultOutcome FacebodyClient::getRealPersonVerificationResult(const GetRealPersonVerificationResultRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GetRealPersonVerificationResultOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GetRealPersonVerificationResultOutcome(GetRealPersonVerificationResultResult(outcome.result())); - else - return GetRealPersonVerificationResultOutcome(outcome.error()); -} - -void FacebodyClient::getRealPersonVerificationResultAsync(const GetRealPersonVerificationResultRequest& request, const GetRealPersonVerificationResultAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, getRealPersonVerificationResult(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -FacebodyClient::GetRealPersonVerificationResultOutcomeCallable FacebodyClient::getRealPersonVerificationResultCallable(const GetRealPersonVerificationResultRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->getRealPersonVerificationResult(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -FacebodyClient::HandPostureOutcome FacebodyClient::handPosture(const HandPostureRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return HandPostureOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return HandPostureOutcome(HandPostureResult(outcome.result())); - else - return HandPostureOutcome(outcome.error()); -} - -void FacebodyClient::handPostureAsync(const HandPostureRequest& request, const HandPostureAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, handPosture(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -FacebodyClient::HandPostureOutcomeCallable FacebodyClient::handPostureCallable(const HandPostureRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->handPosture(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -FacebodyClient::ListBodyDbsOutcome FacebodyClient::listBodyDbs(const ListBodyDbsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ListBodyDbsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ListBodyDbsOutcome(ListBodyDbsResult(outcome.result())); - else - return ListBodyDbsOutcome(outcome.error()); -} - -void FacebodyClient::listBodyDbsAsync(const ListBodyDbsRequest& request, const ListBodyDbsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, listBodyDbs(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -FacebodyClient::ListBodyDbsOutcomeCallable FacebodyClient::listBodyDbsCallable(const ListBodyDbsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->listBodyDbs(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -FacebodyClient::ListBodyPersonOutcome FacebodyClient::listBodyPerson(const ListBodyPersonRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ListBodyPersonOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ListBodyPersonOutcome(ListBodyPersonResult(outcome.result())); - else - return ListBodyPersonOutcome(outcome.error()); -} - -void FacebodyClient::listBodyPersonAsync(const ListBodyPersonRequest& request, const ListBodyPersonAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, listBodyPerson(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -FacebodyClient::ListBodyPersonOutcomeCallable FacebodyClient::listBodyPersonCallable(const ListBodyPersonRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->listBodyPerson(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -FacebodyClient::ListFaceDbsOutcome FacebodyClient::listFaceDbs(const ListFaceDbsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ListFaceDbsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ListFaceDbsOutcome(ListFaceDbsResult(outcome.result())); - else - return ListFaceDbsOutcome(outcome.error()); -} - -void FacebodyClient::listFaceDbsAsync(const ListFaceDbsRequest& request, const ListFaceDbsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, listFaceDbs(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -FacebodyClient::ListFaceDbsOutcomeCallable FacebodyClient::listFaceDbsCallable(const ListFaceDbsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->listFaceDbs(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -FacebodyClient::ListFaceEntitiesOutcome FacebodyClient::listFaceEntities(const ListFaceEntitiesRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ListFaceEntitiesOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ListFaceEntitiesOutcome(ListFaceEntitiesResult(outcome.result())); - else - return ListFaceEntitiesOutcome(outcome.error()); -} - -void FacebodyClient::listFaceEntitiesAsync(const ListFaceEntitiesRequest& request, const ListFaceEntitiesAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, listFaceEntities(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -FacebodyClient::ListFaceEntitiesOutcomeCallable FacebodyClient::listFaceEntitiesCallable(const ListFaceEntitiesRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->listFaceEntities(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -FacebodyClient::PedestrianDetectAttributeOutcome FacebodyClient::pedestrianDetectAttribute(const PedestrianDetectAttributeRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return PedestrianDetectAttributeOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return PedestrianDetectAttributeOutcome(PedestrianDetectAttributeResult(outcome.result())); - else - return PedestrianDetectAttributeOutcome(outcome.error()); -} - -void FacebodyClient::pedestrianDetectAttributeAsync(const PedestrianDetectAttributeRequest& request, const PedestrianDetectAttributeAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, pedestrianDetectAttribute(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -FacebodyClient::PedestrianDetectAttributeOutcomeCallable FacebodyClient::pedestrianDetectAttributeCallable(const PedestrianDetectAttributeRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->pedestrianDetectAttribute(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -FacebodyClient::RecognizeActionOutcome FacebodyClient::recognizeAction(const RecognizeActionRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return RecognizeActionOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return RecognizeActionOutcome(RecognizeActionResult(outcome.result())); - else - return RecognizeActionOutcome(outcome.error()); -} - -void FacebodyClient::recognizeActionAsync(const RecognizeActionRequest& request, const RecognizeActionAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, recognizeAction(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -FacebodyClient::RecognizeActionOutcomeCallable FacebodyClient::recognizeActionCallable(const RecognizeActionRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->recognizeAction(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -FacebodyClient::RecognizeExpressionOutcome FacebodyClient::recognizeExpression(const RecognizeExpressionRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return RecognizeExpressionOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return RecognizeExpressionOutcome(RecognizeExpressionResult(outcome.result())); - else - return RecognizeExpressionOutcome(outcome.error()); -} - -void FacebodyClient::recognizeExpressionAsync(const RecognizeExpressionRequest& request, const RecognizeExpressionAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, recognizeExpression(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -FacebodyClient::RecognizeExpressionOutcomeCallable FacebodyClient::recognizeExpressionCallable(const RecognizeExpressionRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->recognizeExpression(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -FacebodyClient::RecognizeFaceOutcome FacebodyClient::recognizeFace(const RecognizeFaceRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return RecognizeFaceOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return RecognizeFaceOutcome(RecognizeFaceResult(outcome.result())); - else - return RecognizeFaceOutcome(outcome.error()); -} - -void FacebodyClient::recognizeFaceAsync(const RecognizeFaceRequest& request, const RecognizeFaceAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, recognizeFace(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -FacebodyClient::RecognizeFaceOutcomeCallable FacebodyClient::recognizeFaceCallable(const RecognizeFaceRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->recognizeFace(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -FacebodyClient::RecognizePublicFaceOutcome FacebodyClient::recognizePublicFace(const RecognizePublicFaceRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return RecognizePublicFaceOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return RecognizePublicFaceOutcome(RecognizePublicFaceResult(outcome.result())); - else - return RecognizePublicFaceOutcome(outcome.error()); -} - -void FacebodyClient::recognizePublicFaceAsync(const RecognizePublicFaceRequest& request, const RecognizePublicFaceAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, recognizePublicFace(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -FacebodyClient::RecognizePublicFaceOutcomeCallable FacebodyClient::recognizePublicFaceCallable(const RecognizePublicFaceRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->recognizePublicFace(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -FacebodyClient::SearchBodyTraceOutcome FacebodyClient::searchBodyTrace(const SearchBodyTraceRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return SearchBodyTraceOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return SearchBodyTraceOutcome(SearchBodyTraceResult(outcome.result())); - else - return SearchBodyTraceOutcome(outcome.error()); -} - -void FacebodyClient::searchBodyTraceAsync(const SearchBodyTraceRequest& request, const SearchBodyTraceAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, searchBodyTrace(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -FacebodyClient::SearchBodyTraceOutcomeCallable FacebodyClient::searchBodyTraceCallable(const SearchBodyTraceRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->searchBodyTrace(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -FacebodyClient::SearchFaceOutcome FacebodyClient::searchFace(const SearchFaceRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return SearchFaceOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return SearchFaceOutcome(SearchFaceResult(outcome.result())); - else - return SearchFaceOutcome(outcome.error()); -} - -void FacebodyClient::searchFaceAsync(const SearchFaceRequest& request, const SearchFaceAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, searchFace(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -FacebodyClient::SearchFaceOutcomeCallable FacebodyClient::searchFaceCallable(const SearchFaceRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->searchFace(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - 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& 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>( - [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(); - if (!endpointOutcome.isSuccess()) - return UpdateFaceEntityOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return UpdateFaceEntityOutcome(UpdateFaceEntityResult(outcome.result())); - else - return UpdateFaceEntityOutcome(outcome.error()); -} - -void FacebodyClient::updateFaceEntityAsync(const UpdateFaceEntityRequest& request, const UpdateFaceEntityAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, updateFaceEntity(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -FacebodyClient::UpdateFaceEntityOutcomeCallable FacebodyClient::updateFaceEntityCallable(const UpdateFaceEntityRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->updateFaceEntity(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -FacebodyClient::VerifyFaceMaskOutcome FacebodyClient::verifyFaceMask(const VerifyFaceMaskRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return VerifyFaceMaskOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return VerifyFaceMaskOutcome(VerifyFaceMaskResult(outcome.result())); - else - return VerifyFaceMaskOutcome(outcome.error()); -} - -void FacebodyClient::verifyFaceMaskAsync(const VerifyFaceMaskRequest& request, const VerifyFaceMaskAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, verifyFaceMask(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -FacebodyClient::VerifyFaceMaskOutcomeCallable FacebodyClient::verifyFaceMaskCallable(const VerifyFaceMaskRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->verifyFaceMask(request); + return this->executeServerSideVerification(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); diff --git a/facebody/src/model/AddBodyTraceRequest.cc b/facebody/src/model/AddBodyTraceRequest.cc deleted file mode 100644 index 1588aa1c9..000000000 --- a/facebody/src/model/AddBodyTraceRequest.cc +++ /dev/null @@ -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 - -using AlibabaCloud::Facebody::Model::AddBodyTraceRequest; - -AddBodyTraceRequest::AddBodyTraceRequest() : - RpcServiceRequest("facebody", "2019-12-30", "AddBodyTrace") -{ - setMethod(HttpRequest::Method::Post); -} - -AddBodyTraceRequest::~AddBodyTraceRequest() -{} - -std::string AddBodyTraceRequest::getExtraData()const -{ - return extraData_; -} - -void AddBodyTraceRequest::setExtraData(const std::string& extraData) -{ - extraData_ = extraData; - setBodyParameter("ExtraData", extraData); -} - -long AddBodyTraceRequest::getPersonId()const -{ - return personId_; -} - -void AddBodyTraceRequest::setPersonId(long personId) -{ - personId_ = personId; - setBodyParameter("PersonId", std::to_string(personId)); -} - -Array AddBodyTraceRequest::getImages()const -{ - return images_; -} - -void AddBodyTraceRequest::setImages(const Array& images) -{ - images_ = images; - setBodyParameter("Images", std::to_string(images)); -} - -long AddBodyTraceRequest::getDbId()const -{ - return dbId_; -} - -void AddBodyTraceRequest::setDbId(long dbId) -{ - dbId_ = dbId; - setBodyParameter("DbId", std::to_string(dbId)); -} - diff --git a/facebody/src/model/AddBodyTraceResult.cc b/facebody/src/model/AddBodyTraceResult.cc deleted file mode 100644 index e43a59591..000000000 --- a/facebody/src/model/AddBodyTraceResult.cc +++ /dev/null @@ -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. - */ - -#include -#include - -using namespace AlibabaCloud::Facebody; -using namespace AlibabaCloud::Facebody::Model; - -AddBodyTraceResult::AddBodyTraceResult() : - ServiceResult() -{} - -AddBodyTraceResult::AddBodyTraceResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -AddBodyTraceResult::~AddBodyTraceResult() -{} - -void AddBodyTraceResult::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["Id"].isNull()) - data_.id = std::stol(dataNode["Id"].asString()); - if(!value["Message"].isNull()) - message_ = value["Message"].asString(); - if(!value["Code"].isNull()) - code_ = value["Code"].asString(); - -} - -std::string AddBodyTraceResult::getMessage()const -{ - return message_; -} - -AddBodyTraceResult::Data AddBodyTraceResult::getData()const -{ - return data_; -} - -std::string AddBodyTraceResult::getCode()const -{ - return code_; -} - diff --git a/facebody/src/model/AddFaceEntityRequest.cc b/facebody/src/model/AddFaceEntityRequest.cc deleted file mode 100644 index a565865ac..000000000 --- a/facebody/src/model/AddFaceEntityRequest.cc +++ /dev/null @@ -1,62 +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 - -using AlibabaCloud::Facebody::Model::AddFaceEntityRequest; - -AddFaceEntityRequest::AddFaceEntityRequest() : - RpcServiceRequest("facebody", "2019-12-30", "AddFaceEntity") -{ - setMethod(HttpRequest::Method::Post); -} - -AddFaceEntityRequest::~AddFaceEntityRequest() -{} - -std::string AddFaceEntityRequest::getEntityId()const -{ - return entityId_; -} - -void AddFaceEntityRequest::setEntityId(const std::string& entityId) -{ - entityId_ = entityId; - setBodyParameter("EntityId", entityId); -} - -std::string AddFaceEntityRequest::getLabels()const -{ - return labels_; -} - -void AddFaceEntityRequest::setLabels(const std::string& labels) -{ - labels_ = labels; - setBodyParameter("Labels", labels); -} - -std::string AddFaceEntityRequest::getDbName()const -{ - return dbName_; -} - -void AddFaceEntityRequest::setDbName(const std::string& dbName) -{ - dbName_ = dbName; - setBodyParameter("DbName", dbName); -} - diff --git a/facebody/src/model/AddFaceEntityResult.cc b/facebody/src/model/AddFaceEntityResult.cc deleted file mode 100644 index 098198914..000000000 --- a/facebody/src/model/AddFaceEntityResult.cc +++ /dev/null @@ -1,44 +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 -#include - -using namespace AlibabaCloud::Facebody; -using namespace AlibabaCloud::Facebody::Model; - -AddFaceEntityResult::AddFaceEntityResult() : - ServiceResult() -{} - -AddFaceEntityResult::AddFaceEntityResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -AddFaceEntityResult::~AddFaceEntityResult() -{} - -void AddFaceEntityResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - -} - diff --git a/facebody/src/model/AddFaceRequest.cc b/facebody/src/model/AddFaceRequest.cc deleted file mode 100644 index 727b46354..000000000 --- a/facebody/src/model/AddFaceRequest.cc +++ /dev/null @@ -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 - -using AlibabaCloud::Facebody::Model::AddFaceRequest; - -AddFaceRequest::AddFaceRequest() : - RpcServiceRequest("facebody", "2019-12-30", "AddFace") -{ - setMethod(HttpRequest::Method::Post); -} - -AddFaceRequest::~AddFaceRequest() -{} - -std::string AddFaceRequest::getEntityId()const -{ - return entityId_; -} - -void AddFaceRequest::setEntityId(const std::string& entityId) -{ - entityId_ = entityId; - setBodyParameter("EntityId", entityId); -} - -std::string AddFaceRequest::getDbName()const -{ - return dbName_; -} - -void AddFaceRequest::setDbName(const std::string& dbName) -{ - dbName_ = dbName; - setBodyParameter("DbName", dbName); -} - -std::string AddFaceRequest::getImageUrl()const -{ - return imageUrl_; -} - -void AddFaceRequest::setImageUrl(const std::string& imageUrl) -{ - imageUrl_ = imageUrl; - setBodyParameter("ImageUrl", imageUrl); -} - -std::string AddFaceRequest::getExtraData()const -{ - return extraData_; -} - -void AddFaceRequest::setExtraData(const std::string& extraData) -{ - extraData_ = extraData; - setBodyParameter("ExtraData", extraData); -} - diff --git a/facebody/src/model/AddFaceResult.cc b/facebody/src/model/AddFaceResult.cc deleted file mode 100644 index dda3ecb88..000000000 --- a/facebody/src/model/AddFaceResult.cc +++ /dev/null @@ -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 -#include - -using namespace AlibabaCloud::Facebody; -using namespace AlibabaCloud::Facebody::Model; - -AddFaceResult::AddFaceResult() : - ServiceResult() -{} - -AddFaceResult::AddFaceResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -AddFaceResult::~AddFaceResult() -{} - -void AddFaceResult::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["FaceId"].isNull()) - data_.faceId = dataNode["FaceId"].asString(); - -} - -AddFaceResult::Data AddFaceResult::getData()const -{ - return data_; -} - diff --git a/facebody/src/model/BlurFaceRequest.cc b/facebody/src/model/BlurFaceRequest.cc deleted file mode 100644 index 04961d83c..000000000 --- a/facebody/src/model/BlurFaceRequest.cc +++ /dev/null @@ -1,40 +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 - -using AlibabaCloud::Facebody::Model::BlurFaceRequest; - -BlurFaceRequest::BlurFaceRequest() : - RpcServiceRequest("facebody", "2019-12-30", "BlurFace") -{ - setMethod(HttpRequest::Method::Post); -} - -BlurFaceRequest::~BlurFaceRequest() -{} - -std::string BlurFaceRequest::getImageURL()const -{ - return imageURL_; -} - -void BlurFaceRequest::setImageURL(const std::string& imageURL) -{ - imageURL_ = imageURL; - setBodyParameter("ImageURL", imageURL); -} - diff --git a/facebody/src/model/BlurFaceResult.cc b/facebody/src/model/BlurFaceResult.cc deleted file mode 100644 index eae658e90..000000000 --- a/facebody/src/model/BlurFaceResult.cc +++ /dev/null @@ -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 -#include - -using namespace AlibabaCloud::Facebody; -using namespace AlibabaCloud::Facebody::Model; - -BlurFaceResult::BlurFaceResult() : - ServiceResult() -{} - -BlurFaceResult::BlurFaceResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -BlurFaceResult::~BlurFaceResult() -{} - -void BlurFaceResult::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(); - -} - -BlurFaceResult::Data BlurFaceResult::getData()const -{ - return data_; -} - diff --git a/facebody/src/model/BodyPostureRequest.cc b/facebody/src/model/BodyPostureRequest.cc deleted file mode 100644 index 705b18e3a..000000000 --- a/facebody/src/model/BodyPostureRequest.cc +++ /dev/null @@ -1,40 +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 - -using AlibabaCloud::Facebody::Model::BodyPostureRequest; - -BodyPostureRequest::BodyPostureRequest() : - RpcServiceRequest("facebody", "2019-12-30", "BodyPosture") -{ - setMethod(HttpRequest::Method::Post); -} - -BodyPostureRequest::~BodyPostureRequest() -{} - -std::string BodyPostureRequest::getImageURL()const -{ - return imageURL_; -} - -void BodyPostureRequest::setImageURL(const std::string& imageURL) -{ - imageURL_ = imageURL; - setBodyParameter("ImageURL", imageURL); -} - diff --git a/facebody/src/model/BodyPostureResult.cc b/facebody/src/model/BodyPostureResult.cc deleted file mode 100644 index dfa28f3c4..000000000 --- a/facebody/src/model/BodyPostureResult.cc +++ /dev/null @@ -1,88 +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 -#include - -using namespace AlibabaCloud::Facebody; -using namespace AlibabaCloud::Facebody::Model; - -BodyPostureResult::BodyPostureResult() : - ServiceResult() -{} - -BodyPostureResult::BodyPostureResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -BodyPostureResult::~BodyPostureResult() -{} - -void BodyPostureResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto dataNode = value["Data"]; - auto allOutputsNode = dataNode["Outputs"]["Output"]; - for (auto dataNodeOutputsOutput : allOutputsNode) - { - Data::Output outputObject; - if(!dataNodeOutputsOutput["HumanCount"].isNull()) - outputObject.humanCount = std::stoi(dataNodeOutputsOutput["HumanCount"].asString()); - auto allResultsNode = dataNodeOutputsOutput["Results"]["Result"]; - for (auto dataNodeOutputsOutputResultsResult : allResultsNode) - { - Data::Output::Result resultsObject; - auto allBodiesNode = dataNodeOutputsOutputResultsResult["Bodies"]["Body"]; - for (auto dataNodeOutputsOutputResultsResultBodiesBody : allBodiesNode) - { - Data::Output::Result::Body bodiesObject; - if(!dataNodeOutputsOutputResultsResultBodiesBody["Confident"].isNull()) - bodiesObject.confident = std::stof(dataNodeOutputsOutputResultsResultBodiesBody["Confident"].asString()); - if(!dataNodeOutputsOutputResultsResultBodiesBody["Label"].isNull()) - bodiesObject.label = dataNodeOutputsOutputResultsResultBodiesBody["Label"].asString(); - auto allPositionsNode = dataNodeOutputsOutputResultsResultBodiesBody["Positions"]["Position"]; - for (auto dataNodeOutputsOutputResultsResultBodiesBodyPositionsPosition : allPositionsNode) - { - Data::Output::Result::Body::Position positionsObject; - auto allPoints = value["Points"]["Point"]; - for (auto value : allPoints) - positionsObject.points.push_back(value.asString()); - bodiesObject.positions.push_back(positionsObject); - } - resultsObject.bodies.push_back(bodiesObject); - } - outputObject.results.push_back(resultsObject); - } - data_.outputs.push_back(outputObject); - } - auto metaObjectNode = dataNode["MetaObject"]; - if(!metaObjectNode["Height"].isNull()) - data_.metaObject.height = std::stoi(metaObjectNode["Height"].asString()); - if(!metaObjectNode["Width"].isNull()) - data_.metaObject.width = std::stoi(metaObjectNode["Width"].asString()); - -} - -BodyPostureResult::Data BodyPostureResult::getData()const -{ - return data_; -} - diff --git a/facebody/src/model/CompareFaceRequest.cc b/facebody/src/model/CompareFaceRequest.cc deleted file mode 100644 index a07ac41fa..000000000 --- a/facebody/src/model/CompareFaceRequest.cc +++ /dev/null @@ -1,62 +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 - -using AlibabaCloud::Facebody::Model::CompareFaceRequest; - -CompareFaceRequest::CompareFaceRequest() : - RpcServiceRequest("facebody", "2019-12-30", "CompareFace") -{ - setMethod(HttpRequest::Method::Post); -} - -CompareFaceRequest::~CompareFaceRequest() -{} - -int CompareFaceRequest::getImageType()const -{ - return imageType_; -} - -void CompareFaceRequest::setImageType(int imageType) -{ - imageType_ = imageType; - setBodyParameter("ImageType", std::to_string(imageType)); -} - -std::string CompareFaceRequest::getImageURLB()const -{ - return imageURLB_; -} - -void CompareFaceRequest::setImageURLB(const std::string& imageURLB) -{ - imageURLB_ = imageURLB; - setBodyParameter("ImageURLB", imageURLB); -} - -std::string CompareFaceRequest::getImageURLA()const -{ - return imageURLA_; -} - -void CompareFaceRequest::setImageURLA(const std::string& imageURLA) -{ - imageURLA_ = imageURLA; - setBodyParameter("ImageURLA", imageURLA); -} - diff --git a/facebody/src/model/CompareFaceResult.cc b/facebody/src/model/CompareFaceResult.cc deleted file mode 100644 index 161e8a094..000000000 --- a/facebody/src/model/CompareFaceResult.cc +++ /dev/null @@ -1,61 +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 -#include - -using namespace AlibabaCloud::Facebody; -using namespace AlibabaCloud::Facebody::Model; - -CompareFaceResult::CompareFaceResult() : - ServiceResult() -{} - -CompareFaceResult::CompareFaceResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CompareFaceResult::~CompareFaceResult() -{} - -void CompareFaceResult::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["Confidence"].isNull()) - data_.confidence = std::stof(dataNode["Confidence"].asString()); - auto allThresholds = dataNode["Thresholds"]["Threshold"]; - for (auto value : allThresholds) - data_.thresholds.push_back(value.asString()); - auto allRectAList = dataNode["RectAList"]["RectA"]; - for (auto value : allRectAList) - data_.rectAList.push_back(value.asString()); - auto allRectBList = dataNode["RectBList"]["RectB"]; - for (auto value : allRectBList) - data_.rectBList.push_back(value.asString()); - -} - -CompareFaceResult::Data CompareFaceResult::getData()const -{ - return data_; -} - diff --git a/facebody/src/model/CountCrowdRequest.cc b/facebody/src/model/CountCrowdRequest.cc deleted file mode 100644 index d8bc30ce7..000000000 --- a/facebody/src/model/CountCrowdRequest.cc +++ /dev/null @@ -1,51 +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 - -using AlibabaCloud::Facebody::Model::CountCrowdRequest; - -CountCrowdRequest::CountCrowdRequest() : - RpcServiceRequest("facebody", "2019-12-30", "CountCrowd") -{ - setMethod(HttpRequest::Method::Post); -} - -CountCrowdRequest::~CountCrowdRequest() -{} - -bool CountCrowdRequest::getIsShow()const -{ - return isShow_; -} - -void CountCrowdRequest::setIsShow(bool isShow) -{ - isShow_ = isShow; - setBodyParameter("IsShow", isShow ? "true" : "false"); -} - -std::string CountCrowdRequest::getImageURL()const -{ - return imageURL_; -} - -void CountCrowdRequest::setImageURL(const std::string& imageURL) -{ - imageURL_ = imageURL; - setBodyParameter("ImageURL", imageURL); -} - diff --git a/facebody/src/model/CountCrowdResult.cc b/facebody/src/model/CountCrowdResult.cc deleted file mode 100644 index 7002ce434..000000000 --- a/facebody/src/model/CountCrowdResult.cc +++ /dev/null @@ -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 -#include - -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_; -} - diff --git a/facebody/src/model/CreateBodyDbRequest.cc b/facebody/src/model/CreateBodyDbRequest.cc deleted file mode 100644 index 60c0f487d..000000000 --- a/facebody/src/model/CreateBodyDbRequest.cc +++ /dev/null @@ -1,40 +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 - -using AlibabaCloud::Facebody::Model::CreateBodyDbRequest; - -CreateBodyDbRequest::CreateBodyDbRequest() : - RpcServiceRequest("facebody", "2019-12-30", "CreateBodyDb") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateBodyDbRequest::~CreateBodyDbRequest() -{} - -std::string CreateBodyDbRequest::getName()const -{ - return name_; -} - -void CreateBodyDbRequest::setName(const std::string& name) -{ - name_ = name; - setBodyParameter("Name", name); -} - diff --git a/facebody/src/model/CreateBodyDbResult.cc b/facebody/src/model/CreateBodyDbResult.cc deleted file mode 100644 index dcb879aa6..000000000 --- a/facebody/src/model/CreateBodyDbResult.cc +++ /dev/null @@ -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. - */ - -#include -#include - -using namespace AlibabaCloud::Facebody; -using namespace AlibabaCloud::Facebody::Model; - -CreateBodyDbResult::CreateBodyDbResult() : - ServiceResult() -{} - -CreateBodyDbResult::CreateBodyDbResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CreateBodyDbResult::~CreateBodyDbResult() -{} - -void CreateBodyDbResult::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["Id"].isNull()) - data_.id = std::stol(dataNode["Id"].asString()); - if(!value["Message"].isNull()) - message_ = value["Message"].asString(); - if(!value["Code"].isNull()) - code_ = value["Code"].asString(); - -} - -std::string CreateBodyDbResult::getMessage()const -{ - return message_; -} - -CreateBodyDbResult::Data CreateBodyDbResult::getData()const -{ - return data_; -} - -std::string CreateBodyDbResult::getCode()const -{ - return code_; -} - diff --git a/facebody/src/model/CreateBodyPersonRequest.cc b/facebody/src/model/CreateBodyPersonRequest.cc deleted file mode 100644 index 015304f56..000000000 --- a/facebody/src/model/CreateBodyPersonRequest.cc +++ /dev/null @@ -1,51 +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 - -using AlibabaCloud::Facebody::Model::CreateBodyPersonRequest; - -CreateBodyPersonRequest::CreateBodyPersonRequest() : - RpcServiceRequest("facebody", "2019-12-30", "CreateBodyPerson") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateBodyPersonRequest::~CreateBodyPersonRequest() -{} - -long CreateBodyPersonRequest::getDbId()const -{ - return dbId_; -} - -void CreateBodyPersonRequest::setDbId(long dbId) -{ - dbId_ = dbId; - setBodyParameter("DbId", std::to_string(dbId)); -} - -std::string CreateBodyPersonRequest::getName()const -{ - return name_; -} - -void CreateBodyPersonRequest::setName(const std::string& name) -{ - name_ = name; - setBodyParameter("Name", name); -} - diff --git a/facebody/src/model/CreateBodyPersonResult.cc b/facebody/src/model/CreateBodyPersonResult.cc deleted file mode 100644 index 8a5c1ab31..000000000 --- a/facebody/src/model/CreateBodyPersonResult.cc +++ /dev/null @@ -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. - */ - -#include -#include - -using namespace AlibabaCloud::Facebody; -using namespace AlibabaCloud::Facebody::Model; - -CreateBodyPersonResult::CreateBodyPersonResult() : - ServiceResult() -{} - -CreateBodyPersonResult::CreateBodyPersonResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CreateBodyPersonResult::~CreateBodyPersonResult() -{} - -void CreateBodyPersonResult::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["Id"].isNull()) - data_.id = std::stol(dataNode["Id"].asString()); - if(!value["Message"].isNull()) - message_ = value["Message"].asString(); - if(!value["Code"].isNull()) - code_ = value["Code"].asString(); - -} - -std::string CreateBodyPersonResult::getMessage()const -{ - return message_; -} - -CreateBodyPersonResult::Data CreateBodyPersonResult::getData()const -{ - return data_; -} - -std::string CreateBodyPersonResult::getCode()const -{ - return code_; -} - diff --git a/facebody/src/model/CreateFaceDbRequest.cc b/facebody/src/model/CreateFaceDbRequest.cc deleted file mode 100644 index 85bb96563..000000000 --- a/facebody/src/model/CreateFaceDbRequest.cc +++ /dev/null @@ -1,40 +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 - -using AlibabaCloud::Facebody::Model::CreateFaceDbRequest; - -CreateFaceDbRequest::CreateFaceDbRequest() : - RpcServiceRequest("facebody", "2019-12-30", "CreateFaceDb") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateFaceDbRequest::~CreateFaceDbRequest() -{} - -std::string CreateFaceDbRequest::getName()const -{ - return name_; -} - -void CreateFaceDbRequest::setName(const std::string& name) -{ - name_ = name; - setBodyParameter("Name", name); -} - diff --git a/facebody/src/model/CreateFaceDbResult.cc b/facebody/src/model/CreateFaceDbResult.cc deleted file mode 100644 index c79a1acdf..000000000 --- a/facebody/src/model/CreateFaceDbResult.cc +++ /dev/null @@ -1,44 +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 -#include - -using namespace AlibabaCloud::Facebody; -using namespace AlibabaCloud::Facebody::Model; - -CreateFaceDbResult::CreateFaceDbResult() : - ServiceResult() -{} - -CreateFaceDbResult::CreateFaceDbResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CreateFaceDbResult::~CreateFaceDbResult() -{} - -void CreateFaceDbResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - -} - diff --git a/facebody/src/model/DeleteBodyDbRequest.cc b/facebody/src/model/DeleteBodyDbRequest.cc deleted file mode 100644 index 4726f3b71..000000000 --- a/facebody/src/model/DeleteBodyDbRequest.cc +++ /dev/null @@ -1,40 +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 - -using AlibabaCloud::Facebody::Model::DeleteBodyDbRequest; - -DeleteBodyDbRequest::DeleteBodyDbRequest() : - RpcServiceRequest("facebody", "2019-12-30", "DeleteBodyDb") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteBodyDbRequest::~DeleteBodyDbRequest() -{} - -long DeleteBodyDbRequest::getId()const -{ - return id_; -} - -void DeleteBodyDbRequest::setId(long id) -{ - id_ = id; - setBodyParameter("Id", std::to_string(id)); -} - diff --git a/facebody/src/model/DeleteBodyDbResult.cc b/facebody/src/model/DeleteBodyDbResult.cc deleted file mode 100644 index 94d65b836..000000000 --- a/facebody/src/model/DeleteBodyDbResult.cc +++ /dev/null @@ -1,58 +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 -#include - -using namespace AlibabaCloud::Facebody; -using namespace AlibabaCloud::Facebody::Model; - -DeleteBodyDbResult::DeleteBodyDbResult() : - ServiceResult() -{} - -DeleteBodyDbResult::DeleteBodyDbResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DeleteBodyDbResult::~DeleteBodyDbResult() -{} - -void DeleteBodyDbResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["Message"].isNull()) - message_ = value["Message"].asString(); - if(!value["Code"].isNull()) - code_ = value["Code"].asString(); - -} - -std::string DeleteBodyDbResult::getMessage()const -{ - return message_; -} - -std::string DeleteBodyDbResult::getCode()const -{ - return code_; -} - diff --git a/facebody/src/model/DeleteBodyPersonRequest.cc b/facebody/src/model/DeleteBodyPersonRequest.cc deleted file mode 100644 index b59ab8d3b..000000000 --- a/facebody/src/model/DeleteBodyPersonRequest.cc +++ /dev/null @@ -1,51 +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 - -using AlibabaCloud::Facebody::Model::DeleteBodyPersonRequest; - -DeleteBodyPersonRequest::DeleteBodyPersonRequest() : - RpcServiceRequest("facebody", "2019-12-30", "DeleteBodyPerson") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteBodyPersonRequest::~DeleteBodyPersonRequest() -{} - -long DeleteBodyPersonRequest::getPersonId()const -{ - return personId_; -} - -void DeleteBodyPersonRequest::setPersonId(long personId) -{ - personId_ = personId; - setBodyParameter("PersonId", std::to_string(personId)); -} - -long DeleteBodyPersonRequest::getDbId()const -{ - return dbId_; -} - -void DeleteBodyPersonRequest::setDbId(long dbId) -{ - dbId_ = dbId; - setBodyParameter("DbId", std::to_string(dbId)); -} - diff --git a/facebody/src/model/DeleteBodyPersonResult.cc b/facebody/src/model/DeleteBodyPersonResult.cc deleted file mode 100644 index ec69cb42e..000000000 --- a/facebody/src/model/DeleteBodyPersonResult.cc +++ /dev/null @@ -1,58 +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 -#include - -using namespace AlibabaCloud::Facebody; -using namespace AlibabaCloud::Facebody::Model; - -DeleteBodyPersonResult::DeleteBodyPersonResult() : - ServiceResult() -{} - -DeleteBodyPersonResult::DeleteBodyPersonResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DeleteBodyPersonResult::~DeleteBodyPersonResult() -{} - -void DeleteBodyPersonResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["Message"].isNull()) - message_ = value["Message"].asString(); - if(!value["Code"].isNull()) - code_ = value["Code"].asString(); - -} - -std::string DeleteBodyPersonResult::getMessage()const -{ - return message_; -} - -std::string DeleteBodyPersonResult::getCode()const -{ - return code_; -} - diff --git a/facebody/src/model/DeleteFaceDbRequest.cc b/facebody/src/model/DeleteFaceDbRequest.cc deleted file mode 100644 index b69be5050..000000000 --- a/facebody/src/model/DeleteFaceDbRequest.cc +++ /dev/null @@ -1,40 +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 - -using AlibabaCloud::Facebody::Model::DeleteFaceDbRequest; - -DeleteFaceDbRequest::DeleteFaceDbRequest() : - RpcServiceRequest("facebody", "2019-12-30", "DeleteFaceDb") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteFaceDbRequest::~DeleteFaceDbRequest() -{} - -std::string DeleteFaceDbRequest::getName()const -{ - return name_; -} - -void DeleteFaceDbRequest::setName(const std::string& name) -{ - name_ = name; - setBodyParameter("Name", name); -} - diff --git a/facebody/src/model/DeleteFaceDbResult.cc b/facebody/src/model/DeleteFaceDbResult.cc deleted file mode 100644 index d7716f5ec..000000000 --- a/facebody/src/model/DeleteFaceDbResult.cc +++ /dev/null @@ -1,44 +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 -#include - -using namespace AlibabaCloud::Facebody; -using namespace AlibabaCloud::Facebody::Model; - -DeleteFaceDbResult::DeleteFaceDbResult() : - ServiceResult() -{} - -DeleteFaceDbResult::DeleteFaceDbResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DeleteFaceDbResult::~DeleteFaceDbResult() -{} - -void DeleteFaceDbResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - -} - diff --git a/facebody/src/model/DeleteFaceEntityRequest.cc b/facebody/src/model/DeleteFaceEntityRequest.cc deleted file mode 100644 index 0ae7e9493..000000000 --- a/facebody/src/model/DeleteFaceEntityRequest.cc +++ /dev/null @@ -1,51 +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 - -using AlibabaCloud::Facebody::Model::DeleteFaceEntityRequest; - -DeleteFaceEntityRequest::DeleteFaceEntityRequest() : - RpcServiceRequest("facebody", "2019-12-30", "DeleteFaceEntity") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteFaceEntityRequest::~DeleteFaceEntityRequest() -{} - -std::string DeleteFaceEntityRequest::getEntityId()const -{ - return entityId_; -} - -void DeleteFaceEntityRequest::setEntityId(const std::string& entityId) -{ - entityId_ = entityId; - setBodyParameter("EntityId", entityId); -} - -std::string DeleteFaceEntityRequest::getDbName()const -{ - return dbName_; -} - -void DeleteFaceEntityRequest::setDbName(const std::string& dbName) -{ - dbName_ = dbName; - setBodyParameter("DbName", dbName); -} - diff --git a/facebody/src/model/DeleteFaceEntityResult.cc b/facebody/src/model/DeleteFaceEntityResult.cc deleted file mode 100644 index 9ad0ab551..000000000 --- a/facebody/src/model/DeleteFaceEntityResult.cc +++ /dev/null @@ -1,44 +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 -#include - -using namespace AlibabaCloud::Facebody; -using namespace AlibabaCloud::Facebody::Model; - -DeleteFaceEntityResult::DeleteFaceEntityResult() : - ServiceResult() -{} - -DeleteFaceEntityResult::DeleteFaceEntityResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DeleteFaceEntityResult::~DeleteFaceEntityResult() -{} - -void DeleteFaceEntityResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - -} - diff --git a/facebody/src/model/DeleteFaceRequest.cc b/facebody/src/model/DeleteFaceRequest.cc deleted file mode 100644 index e6f572eca..000000000 --- a/facebody/src/model/DeleteFaceRequest.cc +++ /dev/null @@ -1,51 +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 - -using AlibabaCloud::Facebody::Model::DeleteFaceRequest; - -DeleteFaceRequest::DeleteFaceRequest() : - RpcServiceRequest("facebody", "2019-12-30", "DeleteFace") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteFaceRequest::~DeleteFaceRequest() -{} - -std::string DeleteFaceRequest::getFaceId()const -{ - return faceId_; -} - -void DeleteFaceRequest::setFaceId(const std::string& faceId) -{ - faceId_ = faceId; - setBodyParameter("FaceId", faceId); -} - -std::string DeleteFaceRequest::getDbName()const -{ - return dbName_; -} - -void DeleteFaceRequest::setDbName(const std::string& dbName) -{ - dbName_ = dbName; - setBodyParameter("DbName", dbName); -} - diff --git a/facebody/src/model/DeleteFaceResult.cc b/facebody/src/model/DeleteFaceResult.cc deleted file mode 100644 index f8bac60f4..000000000 --- a/facebody/src/model/DeleteFaceResult.cc +++ /dev/null @@ -1,44 +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 -#include - -using namespace AlibabaCloud::Facebody; -using namespace AlibabaCloud::Facebody::Model; - -DeleteFaceResult::DeleteFaceResult() : - ServiceResult() -{} - -DeleteFaceResult::DeleteFaceResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DeleteFaceResult::~DeleteFaceResult() -{} - -void DeleteFaceResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - -} - diff --git a/facebody/src/model/DetectBodyCountRequest.cc b/facebody/src/model/DetectBodyCountRequest.cc deleted file mode 100644 index 7fd63560a..000000000 --- a/facebody/src/model/DetectBodyCountRequest.cc +++ /dev/null @@ -1,40 +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 - -using AlibabaCloud::Facebody::Model::DetectBodyCountRequest; - -DetectBodyCountRequest::DetectBodyCountRequest() : - RpcServiceRequest("facebody", "2019-12-30", "DetectBodyCount") -{ - setMethod(HttpRequest::Method::Post); -} - -DetectBodyCountRequest::~DetectBodyCountRequest() -{} - -std::string DetectBodyCountRequest::getImageURL()const -{ - return imageURL_; -} - -void DetectBodyCountRequest::setImageURL(const std::string& imageURL) -{ - imageURL_ = imageURL; - setBodyParameter("ImageURL", imageURL); -} - diff --git a/facebody/src/model/DetectBodyCountResult.cc b/facebody/src/model/DetectBodyCountResult.cc deleted file mode 100644 index 55785fab8..000000000 --- a/facebody/src/model/DetectBodyCountResult.cc +++ /dev/null @@ -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 -#include - -using namespace AlibabaCloud::Facebody; -using namespace AlibabaCloud::Facebody::Model; - -DetectBodyCountResult::DetectBodyCountResult() : - ServiceResult() -{} - -DetectBodyCountResult::DetectBodyCountResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DetectBodyCountResult::~DetectBodyCountResult() -{} - -void DetectBodyCountResult::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["PersonNumber"].isNull()) - data_.personNumber = std::stoi(dataNode["PersonNumber"].asString()); - -} - -DetectBodyCountResult::Data DetectBodyCountResult::getData()const -{ - return data_; -} - diff --git a/facebody/src/model/DetectCelebrityRequest.cc b/facebody/src/model/DetectCelebrityRequest.cc deleted file mode 100644 index 1025c913d..000000000 --- a/facebody/src/model/DetectCelebrityRequest.cc +++ /dev/null @@ -1,40 +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 - -using AlibabaCloud::Facebody::Model::DetectCelebrityRequest; - -DetectCelebrityRequest::DetectCelebrityRequest() : - RpcServiceRequest("facebody", "2019-12-30", "DetectCelebrity") -{ - setMethod(HttpRequest::Method::Post); -} - -DetectCelebrityRequest::~DetectCelebrityRequest() -{} - -std::string DetectCelebrityRequest::getImageURL()const -{ - return imageURL_; -} - -void DetectCelebrityRequest::setImageURL(const std::string& imageURL) -{ - imageURL_ = imageURL; - setBodyParameter("ImageURL", imageURL); -} - diff --git a/facebody/src/model/DetectCelebrityResult.cc b/facebody/src/model/DetectCelebrityResult.cc deleted file mode 100644 index 23ddf013b..000000000 --- a/facebody/src/model/DetectCelebrityResult.cc +++ /dev/null @@ -1,65 +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 -#include - -using namespace AlibabaCloud::Facebody; -using namespace AlibabaCloud::Facebody::Model; - -DetectCelebrityResult::DetectCelebrityResult() : - ServiceResult() -{} - -DetectCelebrityResult::DetectCelebrityResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DetectCelebrityResult::~DetectCelebrityResult() -{} - -void DetectCelebrityResult::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["Width"].isNull()) - data_.width = std::stoi(dataNode["Width"].asString()); - if(!dataNode["Height"].isNull()) - data_.height = std::stoi(dataNode["Height"].asString()); - auto allFaceRecognizeResultsNode = dataNode["FaceRecognizeResults"]["FaceRecognizeResult"]; - for (auto dataNodeFaceRecognizeResultsFaceRecognizeResult : allFaceRecognizeResultsNode) - { - Data::FaceRecognizeResult faceRecognizeResultObject; - if(!dataNodeFaceRecognizeResultsFaceRecognizeResult["Name"].isNull()) - faceRecognizeResultObject.name = dataNodeFaceRecognizeResultsFaceRecognizeResult["Name"].asString(); - auto allFaceBoxes = value["FaceBoxes"]["FaceBox"]; - for (auto value : allFaceBoxes) - faceRecognizeResultObject.faceBoxes.push_back(value.asString()); - data_.faceRecognizeResults.push_back(faceRecognizeResultObject); - } - -} - -DetectCelebrityResult::Data DetectCelebrityResult::getData()const -{ - return data_; -} - diff --git a/facebody/src/model/DetectChefCapRequest.cc b/facebody/src/model/DetectChefCapRequest.cc deleted file mode 100644 index 973e8a89b..000000000 --- a/facebody/src/model/DetectChefCapRequest.cc +++ /dev/null @@ -1,40 +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 - -using AlibabaCloud::Facebody::Model::DetectChefCapRequest; - -DetectChefCapRequest::DetectChefCapRequest() : - RpcServiceRequest("facebody", "2019-12-30", "DetectChefCap") -{ - setMethod(HttpRequest::Method::Post); -} - -DetectChefCapRequest::~DetectChefCapRequest() -{} - -std::string DetectChefCapRequest::getImageURL()const -{ - return imageURL_; -} - -void DetectChefCapRequest::setImageURL(const std::string& imageURL) -{ - imageURL_ = imageURL; - setBodyParameter("ImageURL", imageURL); -} - diff --git a/facebody/src/model/DetectChefCapResult.cc b/facebody/src/model/DetectChefCapResult.cc deleted file mode 100644 index b9196ef4e..000000000 --- a/facebody/src/model/DetectChefCapResult.cc +++ /dev/null @@ -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. - */ - -#include -#include - -using namespace AlibabaCloud::Facebody; -using namespace AlibabaCloud::Facebody::Model; - -DetectChefCapResult::DetectChefCapResult() : - ServiceResult() -{} - -DetectChefCapResult::DetectChefCapResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DetectChefCapResult::~DetectChefCapResult() -{} - -void DetectChefCapResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto dataNode = value["Data"]; - auto allElementsNode = dataNode["Elements"]["ElementsItem"]; - for (auto dataNodeElementsElementsItem : allElementsNode) - { - Data::ElementsItem elementsItemObject; - if(!dataNodeElementsElementsItem["Category"].isNull()) - elementsItemObject.category = dataNodeElementsElementsItem["Category"].asString(); - if(!dataNodeElementsElementsItem["Confidence"].isNull()) - elementsItemObject.confidence = std::stof(dataNodeElementsElementsItem["Confidence"].asString()); - auto allBox = value["Box"]["Box"]; - for (auto value : allBox) - elementsItemObject.box.push_back(value.asString()); - data_.elements.push_back(elementsItemObject); - } - -} - -DetectChefCapResult::Data DetectChefCapResult::getData()const -{ - return data_; -} - diff --git a/facebody/src/model/DetectFaceRequest.cc b/facebody/src/model/DetectFaceRequest.cc deleted file mode 100644 index bc55b79e0..000000000 --- a/facebody/src/model/DetectFaceRequest.cc +++ /dev/null @@ -1,51 +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 - -using AlibabaCloud::Facebody::Model::DetectFaceRequest; - -DetectFaceRequest::DetectFaceRequest() : - RpcServiceRequest("facebody", "2019-12-30", "DetectFace") -{ - setMethod(HttpRequest::Method::Post); -} - -DetectFaceRequest::~DetectFaceRequest() -{} - -int DetectFaceRequest::getImageType()const -{ - return imageType_; -} - -void DetectFaceRequest::setImageType(int imageType) -{ - imageType_ = imageType; - setBodyParameter("ImageType", std::to_string(imageType)); -} - -std::string DetectFaceRequest::getImageURL()const -{ - return imageURL_; -} - -void DetectFaceRequest::setImageURL(const std::string& imageURL) -{ - imageURL_ = imageURL; - setBodyParameter("ImageURL", imageURL); -} - diff --git a/facebody/src/model/DetectFaceResult.cc b/facebody/src/model/DetectFaceResult.cc deleted file mode 100644 index d0d9d1022..000000000 --- a/facebody/src/model/DetectFaceResult.cc +++ /dev/null @@ -1,94 +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 -#include - -using namespace AlibabaCloud::Facebody; -using namespace AlibabaCloud::Facebody::Model; - -DetectFaceResult::DetectFaceResult() : - ServiceResult() -{} - -DetectFaceResult::DetectFaceResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DetectFaceResult::~DetectFaceResult() -{} - -void DetectFaceResult::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["LandmarkCount"].isNull()) - data_.landmarkCount = std::stoi(dataNode["LandmarkCount"].asString()); - if(!dataNode["FaceCount"].isNull()) - data_.faceCount = std::stoi(dataNode["FaceCount"].asString()); - auto qualitiesNode = dataNode["Qualities"]; - auto allNoiseList = qualitiesNode["NoiseList"]["Noise"]; - for (auto value : allNoiseList) - data_.qualities.noiseList.push_back(value.asString()); - auto allScoreList = qualitiesNode["ScoreList"]["Score"]; - for (auto value : allScoreList) - data_.qualities.scoreList.push_back(value.asString()); - auto allBlurList = qualitiesNode["BlurList"]["Blur"]; - for (auto value : allBlurList) - data_.qualities.blurList.push_back(value.asString()); - auto allMaskList = qualitiesNode["MaskList"]["Mask"]; - for (auto value : allMaskList) - data_.qualities.maskList.push_back(value.asString()); - auto allGlassList = qualitiesNode["GlassList"]["Glass"]; - for (auto value : allGlassList) - data_.qualities.glassList.push_back(value.asString()); - auto allFnfList = qualitiesNode["FnfList"]["Fnf"]; - for (auto value : allFnfList) - data_.qualities.fnfList.push_back(value.asString()); - auto allPoseList1 = qualitiesNode["PoseList"]["Pose"]; - for (auto value : allPoseList1) - data_.qualities.poseList1.push_back(value.asString()); - auto allIlluList = qualitiesNode["IlluList"]["Illu"]; - for (auto value : allIlluList) - data_.qualities.illuList.push_back(value.asString()); - auto allFaceProbabilityList = dataNode["FaceProbabilityList"]["FaceProbability"]; - for (auto value : allFaceProbabilityList) - data_.faceProbabilityList.push_back(value.asString()); - auto allFaceRectangles = dataNode["FaceRectangles"]["FaceRectangle"]; - for (auto value : allFaceRectangles) - data_.faceRectangles.push_back(value.asString()); - auto allLandmarks = dataNode["Landmarks"]["Landmark"]; - for (auto value : allLandmarks) - data_.landmarks.push_back(value.asString()); - auto allPoseList = dataNode["PoseList"]["Pose"]; - for (auto value : allPoseList) - data_.poseList.push_back(value.asString()); - auto allPupils = dataNode["Pupils"]["Pupil"]; - for (auto value : allPupils) - data_.pupils.push_back(value.asString()); - -} - -DetectFaceResult::Data DetectFaceResult::getData()const -{ - return data_; -} - diff --git a/facebody/src/model/DetectIPCPedestrianOptimizedRequest.cc b/facebody/src/model/DetectIPCPedestrianOptimizedRequest.cc new file mode 100644 index 000000000..ac131f274 --- /dev/null +++ b/facebody/src/model/DetectIPCPedestrianOptimizedRequest.cc @@ -0,0 +1,63 @@ +/* + * 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 + +using AlibabaCloud::Facebody::Model::DetectIPCPedestrianOptimizedRequest; + +DetectIPCPedestrianOptimizedRequest::DetectIPCPedestrianOptimizedRequest() : + RoaServiceRequest("facebody", "2020-09-10") +{ + setResourcePath("/viapi/k8s/facebody/detect-ipc-pedestrian-optimized"); + setMethod(HttpRequest::Method::Post); +} + +DetectIPCPedestrianOptimizedRequest::~DetectIPCPedestrianOptimizedRequest() +{} + +std::string DetectIPCPedestrianOptimizedRequest::getImageData()const +{ + return imageData_; +} + +void DetectIPCPedestrianOptimizedRequest::setImageData(const std::string& imageData) +{ + imageData_ = imageData; + setBodyParameter("ImageData", imageData); +} + +long DetectIPCPedestrianOptimizedRequest::getWidth()const +{ + return width_; +} + +void DetectIPCPedestrianOptimizedRequest::setWidth(long width) +{ + width_ = width; + setBodyParameter("Width", std::to_string(width)); +} + +long DetectIPCPedestrianOptimizedRequest::getHeight()const +{ + return height_; +} + +void DetectIPCPedestrianOptimizedRequest::setHeight(long height) +{ + height_ = height; + setBodyParameter("Height", std::to_string(height)); +} + diff --git a/facebody/src/model/DetectIPCPedestrianResult.cc b/facebody/src/model/DetectIPCPedestrianOptimizedResult.cc similarity index 53% rename from facebody/src/model/DetectIPCPedestrianResult.cc rename to facebody/src/model/DetectIPCPedestrianOptimizedResult.cc index 3b9c36d11..97be55517 100644 --- a/facebody/src/model/DetectIPCPedestrianResult.cc +++ b/facebody/src/model/DetectIPCPedestrianOptimizedResult.cc @@ -14,48 +14,42 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Facebody; using namespace AlibabaCloud::Facebody::Model; -DetectIPCPedestrianResult::DetectIPCPedestrianResult() : +DetectIPCPedestrianOptimizedResult::DetectIPCPedestrianOptimizedResult() : ServiceResult() {} -DetectIPCPedestrianResult::DetectIPCPedestrianResult(const std::string &payload) : +DetectIPCPedestrianOptimizedResult::DetectIPCPedestrianOptimizedResult(const std::string &payload) : ServiceResult() { parse(payload); } -DetectIPCPedestrianResult::~DetectIPCPedestrianResult() +DetectIPCPedestrianOptimizedResult::~DetectIPCPedestrianOptimizedResult() {} -void DetectIPCPedestrianResult::parse(const std::string &payload) +void DetectIPCPedestrianOptimizedResult::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) + auto allImageInfoListNode = dataNode["ImageInfoList"]["imageInfoListItem"]; + for (auto dataNodeImageInfoListimageInfoListItem : allImageInfoListNode) { Data::ImageInfoListItem imageInfoListItemObject; - if(!dataNodeImageInfoListImageInfoListItem["ErrorCode"].isNull()) - imageInfoListItemObject.errorCode = dataNodeImageInfoListImageInfoListItem["ErrorCode"].asString(); - if(!dataNodeImageInfoListImageInfoListItem["ErrorMessage"].isNull()) - imageInfoListItemObject.errorMessage = dataNodeImageInfoListImageInfoListItem["ErrorMessage"].asString(); - if(!dataNodeImageInfoListImageInfoListItem["DataId"].isNull()) - imageInfoListItemObject.dataId = dataNodeImageInfoListImageInfoListItem["DataId"].asString(); - auto allElementsNode = dataNodeImageInfoListImageInfoListItem["Elements"]["Element"]; - for (auto dataNodeImageInfoListImageInfoListItemElementsElement : allElementsNode) + auto allElementsNode = dataNodeImageInfoListimageInfoListItem["Elements"]["Element"]; + for (auto dataNodeImageInfoListimageInfoListItemElementsElement : allElementsNode) { Data::ImageInfoListItem::Element elementsObject; - if(!dataNodeImageInfoListImageInfoListItemElementsElement["Score"].isNull()) - elementsObject.score = std::stof(dataNodeImageInfoListImageInfoListItemElementsElement["Score"].asString()); + 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()); @@ -66,7 +60,7 @@ void DetectIPCPedestrianResult::parse(const std::string &payload) } -DetectIPCPedestrianResult::Data DetectIPCPedestrianResult::getData()const +DetectIPCPedestrianOptimizedResult::Data DetectIPCPedestrianOptimizedResult::getData()const { return data_; } diff --git a/facebody/src/model/DetectIPCPedestrianRequest.cc b/facebody/src/model/DetectIPCPedestrianRequest.cc deleted file mode 100644 index 67863a2b7..000000000 --- a/facebody/src/model/DetectIPCPedestrianRequest.cc +++ /dev/null @@ -1,89 +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 - -using AlibabaCloud::Facebody::Model::DetectIPCPedestrianRequest; - -DetectIPCPedestrianRequest::DetectIPCPedestrianRequest() : - RpcServiceRequest("facebody", "2019-12-30", "DetectIPCPedestrian") -{ - setMethod(HttpRequest::Method::Post); -} - -DetectIPCPedestrianRequest::~DetectIPCPedestrianRequest() -{} - -std::string DetectIPCPedestrianRequest::getImageData()const -{ - return imageData_; -} - -void DetectIPCPedestrianRequest::setImageData(const std::string& imageData) -{ - imageData_ = imageData; - setBodyParameter("ImageData", imageData); -} - -std::vector DetectIPCPedestrianRequest::getURLList()const -{ - return uRLList_; -} - -void DetectIPCPedestrianRequest::setURLList(const std::vector& uRLList) -{ - uRLList_ = uRLList; - for(int dep1 = 0; dep1!= uRLList.size(); dep1++) { - auto uRLListObj = uRLList.at(dep1); - std::string uRLListObjStr = "URLList." + std::to_string(dep1 + 1); - setParameter(uRLListObjStr + ".DataId", uRLListObj.dataId); - setParameter(uRLListObjStr + ".ImageURL", uRLListObj.imageURL); - } -} - -bool DetectIPCPedestrianRequest::getContinueOnError()const -{ - return continueOnError_; -} - -void DetectIPCPedestrianRequest::setContinueOnError(bool continueOnError) -{ - continueOnError_ = continueOnError; - setBodyParameter("ContinueOnError", continueOnError ? "true" : "false"); -} - -int DetectIPCPedestrianRequest::getWidth()const -{ - return width_; -} - -void DetectIPCPedestrianRequest::setWidth(int width) -{ - width_ = width; - setBodyParameter("Width", std::to_string(width)); -} - -int DetectIPCPedestrianRequest::getHeight()const -{ - return height_; -} - -void DetectIPCPedestrianRequest::setHeight(int height) -{ - height_ = height; - setBodyParameter("Height", std::to_string(height)); -} - diff --git a/facebody/src/model/DetectLivingFaceRequest.cc b/facebody/src/model/DetectLivingFaceRequest.cc deleted file mode 100644 index 2d7cfa27a..000000000 --- a/facebody/src/model/DetectLivingFaceRequest.cc +++ /dev/null @@ -1,44 +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 - -using AlibabaCloud::Facebody::Model::DetectLivingFaceRequest; - -DetectLivingFaceRequest::DetectLivingFaceRequest() : - RpcServiceRequest("facebody", "2019-12-30", "DetectLivingFace") -{ - setMethod(HttpRequest::Method::Post); -} - -DetectLivingFaceRequest::~DetectLivingFaceRequest() -{} - -std::vector DetectLivingFaceRequest::getTasks()const -{ - return tasks_; -} - -void DetectLivingFaceRequest::setTasks(const std::vector& tasks) -{ - tasks_ = tasks; - for(int dep1 = 0; dep1!= tasks.size(); dep1++) { - auto tasksObj = tasks.at(dep1); - std::string tasksObjStr = "Tasks." + std::to_string(dep1 + 1); - setParameter(tasksObjStr + ".ImageURL", tasksObj.imageURL); - } -} - diff --git a/facebody/src/model/DetectLivingFaceResult.cc b/facebody/src/model/DetectLivingFaceResult.cc deleted file mode 100644 index c0f3dae0b..000000000 --- a/facebody/src/model/DetectLivingFaceResult.cc +++ /dev/null @@ -1,82 +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 -#include - -using namespace AlibabaCloud::Facebody; -using namespace AlibabaCloud::Facebody::Model; - -DetectLivingFaceResult::DetectLivingFaceResult() : - ServiceResult() -{} - -DetectLivingFaceResult::DetectLivingFaceResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DetectLivingFaceResult::~DetectLivingFaceResult() -{} - -void DetectLivingFaceResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto dataNode = value["Data"]; - auto allElementsNode = dataNode["Elements"]["Element"]; - for (auto dataNodeElementsElement : allElementsNode) - { - Data::Element elementObject; - if(!dataNodeElementsElement["TaskId"].isNull()) - elementObject.taskId = dataNodeElementsElement["TaskId"].asString(); - if(!dataNodeElementsElement["ImageURL"].isNull()) - elementObject.imageURL = dataNodeElementsElement["ImageURL"].asString(); - auto allResultsNode = dataNodeElementsElement["Results"]["Result"]; - for (auto dataNodeElementsElementResultsResult : allResultsNode) - { - Data::Element::Result resultsObject; - if(!dataNodeElementsElementResultsResult["Label"].isNull()) - resultsObject.label = dataNodeElementsElementResultsResult["Label"].asString(); - if(!dataNodeElementsElementResultsResult["Suggestion"].isNull()) - resultsObject.suggestion = dataNodeElementsElementResultsResult["Suggestion"].asString(); - if(!dataNodeElementsElementResultsResult["Rate"].isNull()) - resultsObject.rate = std::stof(dataNodeElementsElementResultsResult["Rate"].asString()); - auto allFramesNode = dataNodeElementsElementResultsResult["Frames"]["Frame"]; - for (auto dataNodeElementsElementResultsResultFramesFrame : allFramesNode) - { - Data::Element::Result::Frame framesObject; - if(!dataNodeElementsElementResultsResultFramesFrame["Rate"].isNull()) - framesObject.rate = std::stof(dataNodeElementsElementResultsResultFramesFrame["Rate"].asString()); - if(!dataNodeElementsElementResultsResultFramesFrame["Url"].isNull()) - framesObject.url = dataNodeElementsElementResultsResultFramesFrame["Url"].asString(); - resultsObject.frames.push_back(framesObject); - } - elementObject.results.push_back(resultsObject); - } - data_.elements.push_back(elementObject); - } - -} - -DetectLivingFaceResult::Data DetectLivingFaceResult::getData()const -{ - return data_; -} - diff --git a/facebody/src/model/DetectMaskRequest.cc b/facebody/src/model/DetectMaskRequest.cc deleted file mode 100644 index 5d4dfa727..000000000 --- a/facebody/src/model/DetectMaskRequest.cc +++ /dev/null @@ -1,40 +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 - -using AlibabaCloud::Facebody::Model::DetectMaskRequest; - -DetectMaskRequest::DetectMaskRequest() : - RpcServiceRequest("facebody", "2019-12-30", "DetectMask") -{ - setMethod(HttpRequest::Method::Post); -} - -DetectMaskRequest::~DetectMaskRequest() -{} - -std::string DetectMaskRequest::getImageURL()const -{ - return imageURL_; -} - -void DetectMaskRequest::setImageURL(const std::string& imageURL) -{ - imageURL_ = imageURL; - setBodyParameter("ImageURL", imageURL); -} - diff --git a/facebody/src/model/DetectMaskResult.cc b/facebody/src/model/DetectMaskResult.cc deleted file mode 100644 index 4a0509d32..000000000 --- a/facebody/src/model/DetectMaskResult.cc +++ /dev/null @@ -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 -#include - -using namespace AlibabaCloud::Facebody; -using namespace AlibabaCloud::Facebody::Model; - -DetectMaskResult::DetectMaskResult() : - ServiceResult() -{} - -DetectMaskResult::DetectMaskResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DetectMaskResult::~DetectMaskResult() -{} - -void DetectMaskResult::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["Mask"].isNull()) - data_.mask = std::stoi(dataNode["Mask"].asString()); - if(!dataNode["FaceProbability"].isNull()) - data_.faceProbability = std::stof(dataNode["FaceProbability"].asString()); - -} - -DetectMaskResult::Data DetectMaskResult::getData()const -{ - return data_; -} - diff --git a/facebody/src/model/DetectPedestrianIntrusionRequest.cc b/facebody/src/model/DetectPedestrianIntrusionRequest.cc deleted file mode 100644 index 4cae56c8e..000000000 --- a/facebody/src/model/DetectPedestrianIntrusionRequest.cc +++ /dev/null @@ -1,62 +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 - -using AlibabaCloud::Facebody::Model::DetectPedestrianIntrusionRequest; - -DetectPedestrianIntrusionRequest::DetectPedestrianIntrusionRequest() : - RpcServiceRequest("facebody", "2019-12-30", "DetectPedestrianIntrusion") -{ - setMethod(HttpRequest::Method::Post); -} - -DetectPedestrianIntrusionRequest::~DetectPedestrianIntrusionRequest() -{} - -Array DetectPedestrianIntrusionRequest::getDetectRegion()const -{ - return detectRegion_; -} - -void DetectPedestrianIntrusionRequest::setDetectRegion(const Array& detectRegion) -{ - detectRegion_ = detectRegion; - setBodyParameter("DetectRegion", std::to_string(detectRegion)); -} - -std::string DetectPedestrianIntrusionRequest::getRegionType()const -{ - return regionType_; -} - -void DetectPedestrianIntrusionRequest::setRegionType(const std::string& regionType) -{ - regionType_ = regionType; - setBodyParameter("RegionType", regionType); -} - -std::string DetectPedestrianIntrusionRequest::getImageURL()const -{ - return imageURL_; -} - -void DetectPedestrianIntrusionRequest::setImageURL(const std::string& imageURL) -{ - imageURL_ = imageURL; - setBodyParameter("ImageURL", imageURL); -} - diff --git a/facebody/src/model/DetectPedestrianIntrusionResult.cc b/facebody/src/model/DetectPedestrianIntrusionResult.cc deleted file mode 100644 index 9ae929ff0..000000000 --- a/facebody/src/model/DetectPedestrianIntrusionResult.cc +++ /dev/null @@ -1,91 +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 -#include - -using namespace AlibabaCloud::Facebody; -using namespace AlibabaCloud::Facebody::Model; - -DetectPedestrianIntrusionResult::DetectPedestrianIntrusionResult() : - ServiceResult() -{} - -DetectPedestrianIntrusionResult::DetectPedestrianIntrusionResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DetectPedestrianIntrusionResult::~DetectPedestrianIntrusionResult() -{} - -void DetectPedestrianIntrusionResult::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["ImageHeight"].isNull()) - data_.imageHeight = std::stol(dataNode["ImageHeight"].asString()); - if(!dataNode["ImageWidth"].isNull()) - data_.imageWidth = std::stol(dataNode["ImageWidth"].asString()); - auto allElementsNode = dataNode["Elements"]["ElementsItem"]; - for (auto dataNodeElementsElementsItem : allElementsNode) - { - Data::ElementsItem elementsItemObject; - if(!dataNodeElementsElementsItem["BoxId"].isNull()) - elementsItemObject.boxId = std::stol(dataNodeElementsElementsItem["BoxId"].asString()); - if(!dataNodeElementsElementsItem["Type"].isNull()) - elementsItemObject.type = dataNodeElementsElementsItem["Type"].asString(); - if(!dataNodeElementsElementsItem["Score"].isNull()) - elementsItemObject.score = std::stol(dataNodeElementsElementsItem["Score"].asString()); - if(!dataNodeElementsElementsItem["IsIntrude"].isNull()) - elementsItemObject.isIntrude = dataNodeElementsElementsItem["IsIntrude"].asString() == "true"; - auto boxNode = value["Box"]; - if(!boxNode["Left"].isNull()) - elementsItemObject.box.left = std::stol(boxNode["Left"].asString()); - if(!boxNode["Top"].isNull()) - elementsItemObject.box.top = std::stol(boxNode["Top"].asString()); - if(!boxNode["Right"].isNull()) - elementsItemObject.box.right = std::stol(boxNode["Right"].asString()); - if(!boxNode["Bottom"].isNull()) - elementsItemObject.box.bottom = std::stol(boxNode["Bottom"].asString()); - data_.elements.push_back(elementsItemObject); - } - if(!value["Message"].isNull()) - message_ = value["Message"].asString(); - if(!value["Code"].isNull()) - code_ = value["Code"].asString(); - -} - -std::string DetectPedestrianIntrusionResult::getMessage()const -{ - return message_; -} - -DetectPedestrianIntrusionResult::Data DetectPedestrianIntrusionResult::getData()const -{ - return data_; -} - -std::string DetectPedestrianIntrusionResult::getCode()const -{ - return code_; -} - diff --git a/facebody/src/model/DetectPedestrianRequest.cc b/facebody/src/model/DetectPedestrianRequest.cc deleted file mode 100644 index 3f3248a55..000000000 --- a/facebody/src/model/DetectPedestrianRequest.cc +++ /dev/null @@ -1,40 +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 - -using AlibabaCloud::Facebody::Model::DetectPedestrianRequest; - -DetectPedestrianRequest::DetectPedestrianRequest() : - RpcServiceRequest("facebody", "2019-12-30", "DetectPedestrian") -{ - setMethod(HttpRequest::Method::Post); -} - -DetectPedestrianRequest::~DetectPedestrianRequest() -{} - -std::string DetectPedestrianRequest::getImageURL()const -{ - return imageURL_; -} - -void DetectPedestrianRequest::setImageURL(const std::string& imageURL) -{ - imageURL_ = imageURL; - setBodyParameter("ImageURL", imageURL); -} - diff --git a/facebody/src/model/DetectPedestrianResult.cc b/facebody/src/model/DetectPedestrianResult.cc deleted file mode 100644 index 710c04e91..000000000 --- a/facebody/src/model/DetectPedestrianResult.cc +++ /dev/null @@ -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. - */ - -#include -#include - -using namespace AlibabaCloud::Facebody; -using namespace AlibabaCloud::Facebody::Model; - -DetectPedestrianResult::DetectPedestrianResult() : - ServiceResult() -{} - -DetectPedestrianResult::DetectPedestrianResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DetectPedestrianResult::~DetectPedestrianResult() -{} - -void DetectPedestrianResult::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["Height"].isNull()) - data_.height = std::stoi(dataNode["Height"].asString()); - if(!dataNode["Width"].isNull()) - data_.width = std::stoi(dataNode["Width"].asString()); - auto allElementsNode = dataNode["Elements"]["Element"]; - for (auto dataNodeElementsElement : allElementsNode) - { - Data::Element elementObject; - if(!dataNodeElementsElement["Score"].isNull()) - elementObject.score = std::stof(dataNodeElementsElement["Score"].asString()); - if(!dataNodeElementsElement["Type"].isNull()) - elementObject.type = dataNodeElementsElement["Type"].asString(); - auto allBoxes = value["Boxes"]["Box"]; - for (auto value : allBoxes) - elementObject.boxes.push_back(value.asString()); - data_.elements.push_back(elementObject); - } - -} - -DetectPedestrianResult::Data DetectPedestrianResult::getData()const -{ - return data_; -} - diff --git a/facebody/src/model/DetectVideoLivingFaceRequest.cc b/facebody/src/model/DetectVideoLivingFaceRequest.cc deleted file mode 100644 index 586f3cbf9..000000000 --- a/facebody/src/model/DetectVideoLivingFaceRequest.cc +++ /dev/null @@ -1,40 +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 - -using AlibabaCloud::Facebody::Model::DetectVideoLivingFaceRequest; - -DetectVideoLivingFaceRequest::DetectVideoLivingFaceRequest() : - RpcServiceRequest("facebody", "2019-12-30", "DetectVideoLivingFace") -{ - setMethod(HttpRequest::Method::Post); -} - -DetectVideoLivingFaceRequest::~DetectVideoLivingFaceRequest() -{} - -std::string DetectVideoLivingFaceRequest::getVideoUrl()const -{ - return videoUrl_; -} - -void DetectVideoLivingFaceRequest::setVideoUrl(const std::string& videoUrl) -{ - videoUrl_ = videoUrl; - setBodyParameter("VideoUrl", videoUrl); -} - diff --git a/facebody/src/model/DetectVideoLivingFaceResult.cc b/facebody/src/model/DetectVideoLivingFaceResult.cc deleted file mode 100644 index 165a17f58..000000000 --- a/facebody/src/model/DetectVideoLivingFaceResult.cc +++ /dev/null @@ -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. - */ - -#include -#include - -using namespace AlibabaCloud::Facebody; -using namespace AlibabaCloud::Facebody::Model; - -DetectVideoLivingFaceResult::DetectVideoLivingFaceResult() : - ServiceResult() -{} - -DetectVideoLivingFaceResult::DetectVideoLivingFaceResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DetectVideoLivingFaceResult::~DetectVideoLivingFaceResult() -{} - -void DetectVideoLivingFaceResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto dataNode = value["Data"]; - auto allElementsNode = dataNode["Elements"]["Element"]; - for (auto dataNodeElementsElement : allElementsNode) - { - Data::Element elementObject; - if(!dataNodeElementsElement["LiveConfidence"].isNull()) - elementObject.liveConfidence = std::stof(dataNodeElementsElement["LiveConfidence"].asString()); - if(!dataNodeElementsElement["FaceConfidence"].isNull()) - elementObject.faceConfidence = std::stof(dataNodeElementsElement["FaceConfidence"].asString()); - auto allRect = value["Rect"]["Result"]; - for (auto value : allRect) - elementObject.rect.push_back(value.asString()); - data_.elements.push_back(elementObject); - } - -} - -DetectVideoLivingFaceResult::Data DetectVideoLivingFaceResult::getData()const -{ - return data_; -} - diff --git a/facebody/src/model/EnhanceFaceRequest.cc b/facebody/src/model/EnhanceFaceRequest.cc deleted file mode 100644 index 524559ffc..000000000 --- a/facebody/src/model/EnhanceFaceRequest.cc +++ /dev/null @@ -1,40 +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 - -using AlibabaCloud::Facebody::Model::EnhanceFaceRequest; - -EnhanceFaceRequest::EnhanceFaceRequest() : - RpcServiceRequest("facebody", "2019-12-30", "EnhanceFace") -{ - setMethod(HttpRequest::Method::Post); -} - -EnhanceFaceRequest::~EnhanceFaceRequest() -{} - -std::string EnhanceFaceRequest::getImageURL()const -{ - return imageURL_; -} - -void EnhanceFaceRequest::setImageURL(const std::string& imageURL) -{ - imageURL_ = imageURL; - setBodyParameter("ImageURL", imageURL); -} - diff --git a/facebody/src/model/EnhanceFaceResult.cc b/facebody/src/model/EnhanceFaceResult.cc deleted file mode 100644 index 05f4ed98f..000000000 --- a/facebody/src/model/EnhanceFaceResult.cc +++ /dev/null @@ -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 -#include - -using namespace AlibabaCloud::Facebody; -using namespace AlibabaCloud::Facebody::Model; - -EnhanceFaceResult::EnhanceFaceResult() : - ServiceResult() -{} - -EnhanceFaceResult::EnhanceFaceResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -EnhanceFaceResult::~EnhanceFaceResult() -{} - -void EnhanceFaceResult::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(); - -} - -EnhanceFaceResult::Data EnhanceFaceResult::getData()const -{ - return data_; -} - diff --git a/facebody/src/model/ExecuteServerSideVerificationRequest.cc b/facebody/src/model/ExecuteServerSideVerificationRequest.cc new file mode 100644 index 000000000..ef46740c1 --- /dev/null +++ b/facebody/src/model/ExecuteServerSideVerificationRequest.cc @@ -0,0 +1,85 @@ +/* + * 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 + +using AlibabaCloud::Facebody::Model::ExecuteServerSideVerificationRequest; + +ExecuteServerSideVerificationRequest::ExecuteServerSideVerificationRequest() : + RoaServiceRequest("facebody", "2020-09-10") +{ + setResourcePath("/viapi/thirdparty/realperson/execServerSideVerification"); + setMethod(HttpRequest::Method::Post); +} + +ExecuteServerSideVerificationRequest::~ExecuteServerSideVerificationRequest() +{} + +std::string ExecuteServerSideVerificationRequest::getFacialPictureData()const +{ + return facialPictureData_; +} + +void ExecuteServerSideVerificationRequest::setFacialPictureData(const std::string& facialPictureData) +{ + facialPictureData_ = facialPictureData; + setBodyParameter("FacialPictureData", facialPictureData); +} + +std::string ExecuteServerSideVerificationRequest::getSceneType()const +{ + return sceneType_; +} + +void ExecuteServerSideVerificationRequest::setSceneType(const std::string& sceneType) +{ + sceneType_ = sceneType; + setBodyParameter("SceneType", sceneType); +} + +std::string ExecuteServerSideVerificationRequest::getCertificateNumber()const +{ + return certificateNumber_; +} + +void ExecuteServerSideVerificationRequest::setCertificateNumber(const std::string& certificateNumber) +{ + certificateNumber_ = certificateNumber; + setBodyParameter("CertificateNumber", certificateNumber); +} + +std::string ExecuteServerSideVerificationRequest::getCertificateName()const +{ + return certificateName_; +} + +void ExecuteServerSideVerificationRequest::setCertificateName(const std::string& certificateName) +{ + certificateName_ = certificateName; + setBodyParameter("CertificateName", certificateName); +} + +std::string ExecuteServerSideVerificationRequest::getFacialPictureUrl()const +{ + return facialPictureUrl_; +} + +void ExecuteServerSideVerificationRequest::setFacialPictureUrl(const std::string& facialPictureUrl) +{ + facialPictureUrl_ = facialPictureUrl; + setBodyParameter("FacialPictureUrl", facialPictureUrl); +} + diff --git a/facebody/src/model/GenRealPersonVerificationTokenResult.cc b/facebody/src/model/ExecuteServerSideVerificationResult.cc similarity index 56% rename from facebody/src/model/GenRealPersonVerificationTokenResult.cc rename to facebody/src/model/ExecuteServerSideVerificationResult.cc index 2043cb0f2..1175a06d4 100644 --- a/facebody/src/model/GenRealPersonVerificationTokenResult.cc +++ b/facebody/src/model/ExecuteServerSideVerificationResult.cc @@ -14,26 +14,26 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Facebody; using namespace AlibabaCloud::Facebody::Model; -GenRealPersonVerificationTokenResult::GenRealPersonVerificationTokenResult() : +ExecuteServerSideVerificationResult::ExecuteServerSideVerificationResult() : ServiceResult() {} -GenRealPersonVerificationTokenResult::GenRealPersonVerificationTokenResult(const std::string &payload) : +ExecuteServerSideVerificationResult::ExecuteServerSideVerificationResult(const std::string &payload) : ServiceResult() { parse(payload); } -GenRealPersonVerificationTokenResult::~GenRealPersonVerificationTokenResult() +ExecuteServerSideVerificationResult::~ExecuteServerSideVerificationResult() {} -void GenRealPersonVerificationTokenResult::parse(const std::string &payload) +void ExecuteServerSideVerificationResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; @@ -42,32 +42,29 @@ void GenRealPersonVerificationTokenResult::parse(const std::string &payload) auto dataNode = value["Data"]; if(!dataNode["VerificationToken"].isNull()) data_.verificationToken = dataNode["VerificationToken"].asString(); - if(!value["ErrorMessage"].isNull()) - errorMessage_ = value["ErrorMessage"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; + if(!dataNode["Pass"].isNull()) + data_.pass = dataNode["Pass"].asString() == "true"; + if(!dataNode["Reason"].isNull()) + data_.reason = dataNode["Reason"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); if(!value["Code"].isNull()) code_ = value["Code"].asString(); } -GenRealPersonVerificationTokenResult::Data GenRealPersonVerificationTokenResult::getData()const +std::string ExecuteServerSideVerificationResult::getMessage()const +{ + return message_; +} + +ExecuteServerSideVerificationResult::Data ExecuteServerSideVerificationResult::getData()const { return data_; } -std::string GenRealPersonVerificationTokenResult::getErrorMessage()const -{ - return errorMessage_; -} - -std::string GenRealPersonVerificationTokenResult::getCode()const +std::string ExecuteServerSideVerificationResult::getCode()const { return code_; } -bool GenRealPersonVerificationTokenResult::getSuccess()const -{ - return success_; -} - diff --git a/facebody/src/model/ExtractPedestrianFeatureAttrRequest.cc b/facebody/src/model/ExtractPedestrianFeatureAttrRequest.cc deleted file mode 100644 index edcf75357..000000000 --- a/facebody/src/model/ExtractPedestrianFeatureAttrRequest.cc +++ /dev/null @@ -1,51 +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 - -using AlibabaCloud::Facebody::Model::ExtractPedestrianFeatureAttrRequest; - -ExtractPedestrianFeatureAttrRequest::ExtractPedestrianFeatureAttrRequest() : - RpcServiceRequest("facebody", "2019-12-30", "ExtractPedestrianFeatureAttr") -{ - setMethod(HttpRequest::Method::Post); -} - -ExtractPedestrianFeatureAttrRequest::~ExtractPedestrianFeatureAttrRequest() -{} - -std::string ExtractPedestrianFeatureAttrRequest::getMode()const -{ - return mode_; -} - -void ExtractPedestrianFeatureAttrRequest::setMode(const std::string& mode) -{ - mode_ = mode; - setBodyParameter("Mode", mode); -} - -std::string ExtractPedestrianFeatureAttrRequest::getImageURL()const -{ - return imageURL_; -} - -void ExtractPedestrianFeatureAttrRequest::setImageURL(const std::string& imageURL) -{ - imageURL_ = imageURL; - setBodyParameter("ImageURL", imageURL); -} - diff --git a/facebody/src/model/ExtractPedestrianFeatureAttrResult.cc b/facebody/src/model/ExtractPedestrianFeatureAttrResult.cc deleted file mode 100644 index 16a10b09b..000000000 --- a/facebody/src/model/ExtractPedestrianFeatureAttrResult.cc +++ /dev/null @@ -1,86 +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 -#include - -using namespace AlibabaCloud::Facebody; -using namespace AlibabaCloud::Facebody::Model; - -ExtractPedestrianFeatureAttrResult::ExtractPedestrianFeatureAttrResult() : - ServiceResult() -{} - -ExtractPedestrianFeatureAttrResult::ExtractPedestrianFeatureAttrResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ExtractPedestrianFeatureAttrResult::~ExtractPedestrianFeatureAttrResult() -{} - -void ExtractPedestrianFeatureAttrResult::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["ObjType"].isNull()) - data_.objType = dataNode["ObjType"].asString(); - if(!dataNode["ObjTypeScore"].isNull()) - data_.objTypeScore = std::stof(dataNode["ObjTypeScore"].asString()); - if(!dataNode["Feature"].isNull()) - data_.feature = dataNode["Feature"].asString(); - if(!dataNode["QualityScore"].isNull()) - data_.qualityScore = std::stof(dataNode["QualityScore"].asString()); - if(!dataNode["UpperColor"].isNull()) - data_.upperColor = dataNode["UpperColor"].asString(); - if(!dataNode["UpperColorScore"].isNull()) - data_.upperColorScore = std::stof(dataNode["UpperColorScore"].asString()); - if(!dataNode["UpperType"].isNull()) - data_.upperType = dataNode["UpperType"].asString(); - if(!dataNode["UpperTypeScore"].isNull()) - data_.upperTypeScore = std::stof(dataNode["UpperTypeScore"].asString()); - if(!dataNode["LowerColor"].isNull()) - data_.lowerColor = dataNode["LowerColor"].asString(); - if(!dataNode["LowerColorScore"].isNull()) - data_.lowerColorScore = std::stof(dataNode["LowerColorScore"].asString()); - if(!dataNode["LowerType"].isNull()) - data_.lowerType = dataNode["LowerType"].asString(); - if(!dataNode["LowerTypeScore"].isNull()) - data_.lowerTypeScore = std::stof(dataNode["LowerTypeScore"].asString()); - if(!dataNode["Gender"].isNull()) - data_.gender = dataNode["Gender"].asString(); - if(!dataNode["GenderScore"].isNull()) - data_.genderScore = std::stof(dataNode["GenderScore"].asString()); - if(!dataNode["Hair"].isNull()) - data_.hair = dataNode["Hair"].asString(); - if(!dataNode["HairScore"].isNull()) - data_.hairScore = std::stof(dataNode["HairScore"].asString()); - if(!dataNode["Age"].isNull()) - data_.age = dataNode["Age"].asString(); - if(!dataNode["AgeScore"].isNull()) - data_.ageScore = std::stof(dataNode["AgeScore"].asString()); - -} - -ExtractPedestrianFeatureAttrResult::Data ExtractPedestrianFeatureAttrResult::getData()const -{ - return data_; -} - diff --git a/facebody/src/model/ExtractPedestrianFeatureAttributeRequest.cc b/facebody/src/model/ExtractPedestrianFeatureAttributeRequest.cc deleted file mode 100644 index d0dd6c2b7..000000000 --- a/facebody/src/model/ExtractPedestrianFeatureAttributeRequest.cc +++ /dev/null @@ -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. - */ - -#include - -using AlibabaCloud::Facebody::Model::ExtractPedestrianFeatureAttributeRequest; - -ExtractPedestrianFeatureAttributeRequest::ExtractPedestrianFeatureAttributeRequest() : - RpcServiceRequest("facebody", "2019-12-30", "ExtractPedestrianFeatureAttribute") -{ - setMethod(HttpRequest::Method::Post); -} - -ExtractPedestrianFeatureAttributeRequest::~ExtractPedestrianFeatureAttributeRequest() -{} - -std::vector ExtractPedestrianFeatureAttributeRequest::getUrlList()const -{ - return urlList_; -} - -void ExtractPedestrianFeatureAttributeRequest::setUrlList(const std::vector& urlList) -{ - urlList_ = urlList; - for(int dep1 = 0; dep1!= urlList.size(); dep1++) { - auto urlListObj = urlList.at(dep1); - std::string urlListObjStr = "UrlList." + std::to_string(dep1 + 1); - setParameter(urlListObjStr + ".Url", urlListObj.url); - } -} - -std::string ExtractPedestrianFeatureAttributeRequest::getMode()const -{ - return mode_; -} - -void ExtractPedestrianFeatureAttributeRequest::setMode(const std::string& mode) -{ - mode_ = mode; - setBodyParameter("Mode", mode); -} - -std::string ExtractPedestrianFeatureAttributeRequest::getImageURL()const -{ - return imageURL_; -} - -void ExtractPedestrianFeatureAttributeRequest::setImageURL(const std::string& imageURL) -{ - imageURL_ = imageURL; - setBodyParameter("ImageURL", imageURL); -} - diff --git a/facebody/src/model/ExtractPedestrianFeatureAttributeResult.cc b/facebody/src/model/ExtractPedestrianFeatureAttributeResult.cc deleted file mode 100644 index 83697b0ea..000000000 --- a/facebody/src/model/ExtractPedestrianFeatureAttributeResult.cc +++ /dev/null @@ -1,128 +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 -#include - -using namespace AlibabaCloud::Facebody; -using namespace AlibabaCloud::Facebody::Model; - -ExtractPedestrianFeatureAttributeResult::ExtractPedestrianFeatureAttributeResult() : - ServiceResult() -{} - -ExtractPedestrianFeatureAttributeResult::ExtractPedestrianFeatureAttributeResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ExtractPedestrianFeatureAttributeResult::~ExtractPedestrianFeatureAttributeResult() -{} - -void ExtractPedestrianFeatureAttributeResult::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["ObjType"].isNull()) - data_.objType = dataNode["ObjType"].asString(); - if(!dataNode["ObjTypeScore"].isNull()) - data_.objTypeScore = std::stof(dataNode["ObjTypeScore"].asString()); - if(!dataNode["Feature"].isNull()) - data_.feature = dataNode["Feature"].asString(); - if(!dataNode["QualityScore"].isNull()) - data_.qualityScore = std::stof(dataNode["QualityScore"].asString()); - if(!dataNode["UpperColor"].isNull()) - data_.upperColor = dataNode["UpperColor"].asString(); - if(!dataNode["UpperColorScore"].isNull()) - data_.upperColorScore = std::stof(dataNode["UpperColorScore"].asString()); - if(!dataNode["UpperType"].isNull()) - data_.upperType = dataNode["UpperType"].asString(); - if(!dataNode["UpperTypeScore"].isNull()) - data_.upperTypeScore = std::stof(dataNode["UpperTypeScore"].asString()); - if(!dataNode["LowerColor"].isNull()) - data_.lowerColor = dataNode["LowerColor"].asString(); - if(!dataNode["LowerColorScore"].isNull()) - data_.lowerColorScore = std::stof(dataNode["LowerColorScore"].asString()); - if(!dataNode["LowerType"].isNull()) - data_.lowerType = dataNode["LowerType"].asString(); - if(!dataNode["LowerTypeScore"].isNull()) - data_.lowerTypeScore = std::stof(dataNode["LowerTypeScore"].asString()); - if(!dataNode["Gender"].isNull()) - data_.gender = dataNode["Gender"].asString(); - if(!dataNode["GenderScore"].isNull()) - data_.genderScore = std::stof(dataNode["GenderScore"].asString()); - if(!dataNode["Hair"].isNull()) - data_.hair = dataNode["Hair"].asString(); - if(!dataNode["HairScore"].isNull()) - data_.hairScore = std::stof(dataNode["HairScore"].asString()); - if(!dataNode["Age"].isNull()) - data_.age = dataNode["Age"].asString(); - if(!dataNode["AgeScore"].isNull()) - data_.ageScore = std::stof(dataNode["AgeScore"].asString()); - auto allElementsNode = dataNode["Elements"]["Element"]; - for (auto dataNodeElementsElement : allElementsNode) - { - Data::Element elementObject; - if(!dataNodeElementsElement["ObjType"].isNull()) - elementObject.objType = dataNodeElementsElement["ObjType"].asString(); - if(!dataNodeElementsElement["ObjTypeScore"].isNull()) - elementObject.objTypeScore = std::stof(dataNodeElementsElement["ObjTypeScore"].asString()); - if(!dataNodeElementsElement["Feature"].isNull()) - elementObject.feature = dataNodeElementsElement["Feature"].asString(); - if(!dataNodeElementsElement["QualityScore"].isNull()) - elementObject.qualityScore = std::stof(dataNodeElementsElement["QualityScore"].asString()); - if(!dataNodeElementsElement["UpperColor"].isNull()) - elementObject.upperColor = dataNodeElementsElement["UpperColor"].asString(); - if(!dataNodeElementsElement["UpperColorScore"].isNull()) - elementObject.upperColorScore = std::stof(dataNodeElementsElement["UpperColorScore"].asString()); - if(!dataNodeElementsElement["UpperType"].isNull()) - elementObject.upperType = dataNodeElementsElement["UpperType"].asString(); - if(!dataNodeElementsElement["UpperTypeScore"].isNull()) - elementObject.upperTypeScore = std::stof(dataNodeElementsElement["UpperTypeScore"].asString()); - if(!dataNodeElementsElement["LowerColor"].isNull()) - elementObject.lowerColor = dataNodeElementsElement["LowerColor"].asString(); - if(!dataNodeElementsElement["LowerColorScore"].isNull()) - elementObject.lowerColorScore = std::stof(dataNodeElementsElement["LowerColorScore"].asString()); - if(!dataNodeElementsElement["LowerType"].isNull()) - elementObject.lowerType = dataNodeElementsElement["LowerType"].asString(); - if(!dataNodeElementsElement["LowerTypeScore"].isNull()) - elementObject.lowerTypeScore = std::stof(dataNodeElementsElement["LowerTypeScore"].asString()); - if(!dataNodeElementsElement["Gender"].isNull()) - elementObject.gender = dataNodeElementsElement["Gender"].asString(); - if(!dataNodeElementsElement["GenderScore"].isNull()) - elementObject.genderScore = std::stof(dataNodeElementsElement["GenderScore"].asString()); - if(!dataNodeElementsElement["Hair"].isNull()) - elementObject.hair = dataNodeElementsElement["Hair"].asString(); - if(!dataNodeElementsElement["HairScore"].isNull()) - elementObject.hairScore = std::stof(dataNodeElementsElement["HairScore"].asString()); - if(!dataNodeElementsElement["Age"].isNull()) - elementObject.age = dataNodeElementsElement["Age"].asString(); - if(!dataNodeElementsElement["AgeScore"].isNull()) - elementObject.ageScore = std::stof(dataNodeElementsElement["AgeScore"].asString()); - data_.elements.push_back(elementObject); - } - -} - -ExtractPedestrianFeatureAttributeResult::Data ExtractPedestrianFeatureAttributeResult::getData()const -{ - return data_; -} - diff --git a/facebody/src/model/FaceBeautyRequest.cc b/facebody/src/model/FaceBeautyRequest.cc deleted file mode 100644 index 8831b9970..000000000 --- a/facebody/src/model/FaceBeautyRequest.cc +++ /dev/null @@ -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 - -using AlibabaCloud::Facebody::Model::FaceBeautyRequest; - -FaceBeautyRequest::FaceBeautyRequest() : - RpcServiceRequest("facebody", "2019-12-30", "FaceBeauty") -{ - setMethod(HttpRequest::Method::Post); -} - -FaceBeautyRequest::~FaceBeautyRequest() -{} - -float FaceBeautyRequest::getSharp()const -{ - return sharp_; -} - -void FaceBeautyRequest::setSharp(float sharp) -{ - sharp_ = sharp; - setBodyParameter("Sharp", std::to_string(sharp)); -} - -float FaceBeautyRequest::getWhite()const -{ - return white_; -} - -void FaceBeautyRequest::setWhite(float white) -{ - white_ = white; - setBodyParameter("White", std::to_string(white)); -} - -std::string FaceBeautyRequest::getImageURL()const -{ - return imageURL_; -} - -void FaceBeautyRequest::setImageURL(const std::string& imageURL) -{ - imageURL_ = imageURL; - setBodyParameter("ImageURL", imageURL); -} - -float FaceBeautyRequest::getSmooth()const -{ - return smooth_; -} - -void FaceBeautyRequest::setSmooth(float smooth) -{ - smooth_ = smooth; - setBodyParameter("Smooth", std::to_string(smooth)); -} - diff --git a/facebody/src/model/FaceBeautyResult.cc b/facebody/src/model/FaceBeautyResult.cc deleted file mode 100644 index c94e75c27..000000000 --- a/facebody/src/model/FaceBeautyResult.cc +++ /dev/null @@ -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 -#include - -using namespace AlibabaCloud::Facebody; -using namespace AlibabaCloud::Facebody::Model; - -FaceBeautyResult::FaceBeautyResult() : - ServiceResult() -{} - -FaceBeautyResult::FaceBeautyResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -FaceBeautyResult::~FaceBeautyResult() -{} - -void FaceBeautyResult::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(); - -} - -FaceBeautyResult::Data FaceBeautyResult::getData()const -{ - return data_; -} - diff --git a/facebody/src/model/FaceFilterRequest.cc b/facebody/src/model/FaceFilterRequest.cc deleted file mode 100644 index f0608936c..000000000 --- a/facebody/src/model/FaceFilterRequest.cc +++ /dev/null @@ -1,62 +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 - -using AlibabaCloud::Facebody::Model::FaceFilterRequest; - -FaceFilterRequest::FaceFilterRequest() : - RpcServiceRequest("facebody", "2019-12-30", "FaceFilter") -{ - setMethod(HttpRequest::Method::Post); -} - -FaceFilterRequest::~FaceFilterRequest() -{} - -float FaceFilterRequest::getStrength()const -{ - return strength_; -} - -void FaceFilterRequest::setStrength(float strength) -{ - strength_ = strength; - setBodyParameter("Strength", std::to_string(strength)); -} - -std::string FaceFilterRequest::getResourceType()const -{ - return resourceType_; -} - -void FaceFilterRequest::setResourceType(const std::string& resourceType) -{ - resourceType_ = resourceType; - setBodyParameter("ResourceType", resourceType); -} - -std::string FaceFilterRequest::getImageURL()const -{ - return imageURL_; -} - -void FaceFilterRequest::setImageURL(const std::string& imageURL) -{ - imageURL_ = imageURL; - setBodyParameter("ImageURL", imageURL); -} - diff --git a/facebody/src/model/FaceFilterResult.cc b/facebody/src/model/FaceFilterResult.cc deleted file mode 100644 index e5f0cfbb0..000000000 --- a/facebody/src/model/FaceFilterResult.cc +++ /dev/null @@ -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 -#include - -using namespace AlibabaCloud::Facebody; -using namespace AlibabaCloud::Facebody::Model; - -FaceFilterResult::FaceFilterResult() : - ServiceResult() -{} - -FaceFilterResult::FaceFilterResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -FaceFilterResult::~FaceFilterResult() -{} - -void FaceFilterResult::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(); - -} - -FaceFilterResult::Data FaceFilterResult::getData()const -{ - return data_; -} - diff --git a/facebody/src/model/FaceMakeupRequest.cc b/facebody/src/model/FaceMakeupRequest.cc deleted file mode 100644 index 42ec7fe2d..000000000 --- a/facebody/src/model/FaceMakeupRequest.cc +++ /dev/null @@ -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 - -using AlibabaCloud::Facebody::Model::FaceMakeupRequest; - -FaceMakeupRequest::FaceMakeupRequest() : - RpcServiceRequest("facebody", "2019-12-30", "FaceMakeup") -{ - setMethod(HttpRequest::Method::Post); -} - -FaceMakeupRequest::~FaceMakeupRequest() -{} - -float FaceMakeupRequest::getStrength()const -{ - return strength_; -} - -void FaceMakeupRequest::setStrength(float strength) -{ - strength_ = strength; - setBodyParameter("Strength", std::to_string(strength)); -} - -std::string FaceMakeupRequest::getMakeupType()const -{ - return makeupType_; -} - -void FaceMakeupRequest::setMakeupType(const std::string& makeupType) -{ - makeupType_ = makeupType; - setBodyParameter("MakeupType", makeupType); -} - -std::string FaceMakeupRequest::getResourceType()const -{ - return resourceType_; -} - -void FaceMakeupRequest::setResourceType(const std::string& resourceType) -{ - resourceType_ = resourceType; - setBodyParameter("ResourceType", resourceType); -} - -std::string FaceMakeupRequest::getImageURL()const -{ - return imageURL_; -} - -void FaceMakeupRequest::setImageURL(const std::string& imageURL) -{ - imageURL_ = imageURL; - setBodyParameter("ImageURL", imageURL); -} - diff --git a/facebody/src/model/FaceMakeupResult.cc b/facebody/src/model/FaceMakeupResult.cc deleted file mode 100644 index 86657c272..000000000 --- a/facebody/src/model/FaceMakeupResult.cc +++ /dev/null @@ -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 -#include - -using namespace AlibabaCloud::Facebody; -using namespace AlibabaCloud::Facebody::Model; - -FaceMakeupResult::FaceMakeupResult() : - ServiceResult() -{} - -FaceMakeupResult::FaceMakeupResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -FaceMakeupResult::~FaceMakeupResult() -{} - -void FaceMakeupResult::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(); - -} - -FaceMakeupResult::Data FaceMakeupResult::getData()const -{ - return data_; -} - diff --git a/facebody/src/model/FaceTidyupRequest.cc b/facebody/src/model/FaceTidyupRequest.cc deleted file mode 100644 index d31425485..000000000 --- a/facebody/src/model/FaceTidyupRequest.cc +++ /dev/null @@ -1,62 +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 - -using AlibabaCloud::Facebody::Model::FaceTidyupRequest; - -FaceTidyupRequest::FaceTidyupRequest() : - RpcServiceRequest("facebody", "2019-12-30", "FaceTidyup") -{ - setMethod(HttpRequest::Method::Post); -} - -FaceTidyupRequest::~FaceTidyupRequest() -{} - -int FaceTidyupRequest::getShapeType()const -{ - return shapeType_; -} - -void FaceTidyupRequest::setShapeType(int shapeType) -{ - shapeType_ = shapeType; - setBodyParameter("ShapeType", std::to_string(shapeType)); -} - -float FaceTidyupRequest::getStrength()const -{ - return strength_; -} - -void FaceTidyupRequest::setStrength(float strength) -{ - strength_ = strength; - setBodyParameter("Strength", std::to_string(strength)); -} - -std::string FaceTidyupRequest::getImageURL()const -{ - return imageURL_; -} - -void FaceTidyupRequest::setImageURL(const std::string& imageURL) -{ - imageURL_ = imageURL; - setBodyParameter("ImageURL", imageURL); -} - diff --git a/facebody/src/model/FaceTidyupResult.cc b/facebody/src/model/FaceTidyupResult.cc deleted file mode 100644 index 4e9b448db..000000000 --- a/facebody/src/model/FaceTidyupResult.cc +++ /dev/null @@ -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 -#include - -using namespace AlibabaCloud::Facebody; -using namespace AlibabaCloud::Facebody::Model; - -FaceTidyupResult::FaceTidyupResult() : - ServiceResult() -{} - -FaceTidyupResult::FaceTidyupResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -FaceTidyupResult::~FaceTidyupResult() -{} - -void FaceTidyupResult::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(); - -} - -FaceTidyupResult::Data FaceTidyupResult::getData()const -{ - return data_; -} - diff --git a/facebody/src/model/GenRealPersonVerificationTokenRequest.cc b/facebody/src/model/GenRealPersonVerificationTokenRequest.cc deleted file mode 100644 index ad66856b7..000000000 --- a/facebody/src/model/GenRealPersonVerificationTokenRequest.cc +++ /dev/null @@ -1,62 +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 - -using AlibabaCloud::Facebody::Model::GenRealPersonVerificationTokenRequest; - -GenRealPersonVerificationTokenRequest::GenRealPersonVerificationTokenRequest() : - RpcServiceRequest("facebody", "2019-12-30", "GenRealPersonVerificationToken") -{ - setMethod(HttpRequest::Method::Post); -} - -GenRealPersonVerificationTokenRequest::~GenRealPersonVerificationTokenRequest() -{} - -std::string GenRealPersonVerificationTokenRequest::getCertificateNumber()const -{ - return certificateNumber_; -} - -void GenRealPersonVerificationTokenRequest::setCertificateNumber(const std::string& certificateNumber) -{ - certificateNumber_ = certificateNumber; - setBodyParameter("CertificateNumber", certificateNumber); -} - -std::string GenRealPersonVerificationTokenRequest::getCertificateName()const -{ - return certificateName_; -} - -void GenRealPersonVerificationTokenRequest::setCertificateName(const std::string& certificateName) -{ - certificateName_ = certificateName; - setBodyParameter("CertificateName", certificateName); -} - -std::string GenRealPersonVerificationTokenRequest::getMetaInfo()const -{ - return metaInfo_; -} - -void GenRealPersonVerificationTokenRequest::setMetaInfo(const std::string& metaInfo) -{ - metaInfo_ = metaInfo; - setBodyParameter("MetaInfo", metaInfo); -} - diff --git a/facebody/src/model/GenerateHumanAnimeStyleRequest.cc b/facebody/src/model/GenerateHumanAnimeStyleRequest.cc deleted file mode 100644 index 262a577fa..000000000 --- a/facebody/src/model/GenerateHumanAnimeStyleRequest.cc +++ /dev/null @@ -1,51 +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 - -using AlibabaCloud::Facebody::Model::GenerateHumanAnimeStyleRequest; - -GenerateHumanAnimeStyleRequest::GenerateHumanAnimeStyleRequest() : - RpcServiceRequest("facebody", "2019-12-30", "GenerateHumanAnimeStyle") -{ - setMethod(HttpRequest::Method::Post); -} - -GenerateHumanAnimeStyleRequest::~GenerateHumanAnimeStyleRequest() -{} - -std::string GenerateHumanAnimeStyleRequest::getAlgoType()const -{ - return algoType_; -} - -void GenerateHumanAnimeStyleRequest::setAlgoType(const std::string& algoType) -{ - algoType_ = algoType; - setParameter("AlgoType", algoType); -} - -std::string GenerateHumanAnimeStyleRequest::getImageURL()const -{ - return imageURL_; -} - -void GenerateHumanAnimeStyleRequest::setImageURL(const std::string& imageURL) -{ - imageURL_ = imageURL; - setParameter("ImageURL", imageURL); -} - diff --git a/facebody/src/model/GenerateHumanAnimeStyleResult.cc b/facebody/src/model/GenerateHumanAnimeStyleResult.cc deleted file mode 100644 index 70cac75eb..000000000 --- a/facebody/src/model/GenerateHumanAnimeStyleResult.cc +++ /dev/null @@ -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 -#include - -using namespace AlibabaCloud::Facebody; -using namespace AlibabaCloud::Facebody::Model; - -GenerateHumanAnimeStyleResult::GenerateHumanAnimeStyleResult() : - ServiceResult() -{} - -GenerateHumanAnimeStyleResult::GenerateHumanAnimeStyleResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -GenerateHumanAnimeStyleResult::~GenerateHumanAnimeStyleResult() -{} - -void GenerateHumanAnimeStyleResult::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(); - -} - -GenerateHumanAnimeStyleResult::Data GenerateHumanAnimeStyleResult::getData()const -{ - return data_; -} - diff --git a/facebody/src/model/GetBodyPersonRequest.cc b/facebody/src/model/GetBodyPersonRequest.cc deleted file mode 100644 index 057422597..000000000 --- a/facebody/src/model/GetBodyPersonRequest.cc +++ /dev/null @@ -1,51 +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 - -using AlibabaCloud::Facebody::Model::GetBodyPersonRequest; - -GetBodyPersonRequest::GetBodyPersonRequest() : - RpcServiceRequest("facebody", "2019-12-30", "GetBodyPerson") -{ - setMethod(HttpRequest::Method::Get); -} - -GetBodyPersonRequest::~GetBodyPersonRequest() -{} - -long GetBodyPersonRequest::getPersonId()const -{ - return personId_; -} - -void GetBodyPersonRequest::setPersonId(long personId) -{ - personId_ = personId; - setParameter("PersonId", std::to_string(personId)); -} - -long GetBodyPersonRequest::getDbId()const -{ - return dbId_; -} - -void GetBodyPersonRequest::setDbId(long dbId) -{ - dbId_ = dbId; - setParameter("DbId", std::to_string(dbId)); -} - diff --git a/facebody/src/model/GetBodyPersonResult.cc b/facebody/src/model/GetBodyPersonResult.cc deleted file mode 100644 index 8e89751c3..000000000 --- a/facebody/src/model/GetBodyPersonResult.cc +++ /dev/null @@ -1,84 +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 -#include - -using namespace AlibabaCloud::Facebody; -using namespace AlibabaCloud::Facebody::Model; - -GetBodyPersonResult::GetBodyPersonResult() : - ServiceResult() -{} - -GetBodyPersonResult::GetBodyPersonResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -GetBodyPersonResult::~GetBodyPersonResult() -{} - -void GetBodyPersonResult::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["TraceCount"].isNull()) - data_.traceCount = std::stol(dataNode["TraceCount"].asString()); - if(!dataNode["InstanceId"].isNull()) - data_.instanceId = std::stol(dataNode["InstanceId"].asString()); - if(!dataNode["DbId"].isNull()) - data_.dbId = std::stol(dataNode["DbId"].asString()); - if(!dataNode["Id"].isNull()) - data_.id = std::stol(dataNode["Id"].asString()); - if(!dataNode["Name"].isNull()) - data_.name = dataNode["Name"].asString(); - auto allTraceListNode = dataNode["TraceList"]["Trace"]; - for (auto dataNodeTraceListTrace : allTraceListNode) - { - Data::Trace traceObject; - if(!dataNodeTraceListTrace["ExtraData"].isNull()) - traceObject.extraData = dataNodeTraceListTrace["ExtraData"].asString(); - if(!dataNodeTraceListTrace["Id"].isNull()) - traceObject.id = std::stol(dataNodeTraceListTrace["Id"].asString()); - data_.traceList.push_back(traceObject); - } - if(!value["Message"].isNull()) - message_ = value["Message"].asString(); - if(!value["Code"].isNull()) - code_ = value["Code"].asString(); - -} - -std::string GetBodyPersonResult::getMessage()const -{ - return message_; -} - -GetBodyPersonResult::Data GetBodyPersonResult::getData()const -{ - return data_; -} - -std::string GetBodyPersonResult::getCode()const -{ - return code_; -} - diff --git a/facebody/src/model/GetFaceEntityRequest.cc b/facebody/src/model/GetFaceEntityRequest.cc deleted file mode 100644 index 74c421552..000000000 --- a/facebody/src/model/GetFaceEntityRequest.cc +++ /dev/null @@ -1,51 +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 - -using AlibabaCloud::Facebody::Model::GetFaceEntityRequest; - -GetFaceEntityRequest::GetFaceEntityRequest() : - RpcServiceRequest("facebody", "2019-12-30", "GetFaceEntity") -{ - setMethod(HttpRequest::Method::Post); -} - -GetFaceEntityRequest::~GetFaceEntityRequest() -{} - -std::string GetFaceEntityRequest::getEntityId()const -{ - return entityId_; -} - -void GetFaceEntityRequest::setEntityId(const std::string& entityId) -{ - entityId_ = entityId; - setBodyParameter("EntityId", entityId); -} - -std::string GetFaceEntityRequest::getDbName()const -{ - return dbName_; -} - -void GetFaceEntityRequest::setDbName(const std::string& dbName) -{ - dbName_ = dbName; - setBodyParameter("DbName", dbName); -} - diff --git a/facebody/src/model/GetFaceEntityResult.cc b/facebody/src/model/GetFaceEntityResult.cc deleted file mode 100644 index 10b4ebb73..000000000 --- a/facebody/src/model/GetFaceEntityResult.cc +++ /dev/null @@ -1,64 +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 -#include - -using namespace AlibabaCloud::Facebody; -using namespace AlibabaCloud::Facebody::Model; - -GetFaceEntityResult::GetFaceEntityResult() : - ServiceResult() -{} - -GetFaceEntityResult::GetFaceEntityResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -GetFaceEntityResult::~GetFaceEntityResult() -{} - -void GetFaceEntityResult::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["DbName"].isNull()) - data_.dbName = dataNode["DbName"].asString(); - if(!dataNode["EntityId"].isNull()) - data_.entityId = dataNode["EntityId"].asString(); - if(!dataNode["Labels"].isNull()) - data_.labels = dataNode["Labels"].asString(); - auto allFacesNode = dataNode["Faces"]["Face"]; - for (auto dataNodeFacesFace : allFacesNode) - { - Data::Face faceObject; - if(!dataNodeFacesFace["FaceId"].isNull()) - faceObject.faceId = dataNodeFacesFace["FaceId"].asString(); - data_.faces.push_back(faceObject); - } - -} - -GetFaceEntityResult::Data GetFaceEntityResult::getData()const -{ - return data_; -} - diff --git a/facebody/src/model/GetRealPersonVerificationResultRequest.cc b/facebody/src/model/GetRealPersonVerificationResultRequest.cc deleted file mode 100644 index 243db0f98..000000000 --- a/facebody/src/model/GetRealPersonVerificationResultRequest.cc +++ /dev/null @@ -1,51 +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 - -using AlibabaCloud::Facebody::Model::GetRealPersonVerificationResultRequest; - -GetRealPersonVerificationResultRequest::GetRealPersonVerificationResultRequest() : - RpcServiceRequest("facebody", "2019-12-30", "GetRealPersonVerificationResult") -{ - setMethod(HttpRequest::Method::Post); -} - -GetRealPersonVerificationResultRequest::~GetRealPersonVerificationResultRequest() -{} - -std::string GetRealPersonVerificationResultRequest::getVerificationToken()const -{ - return verificationToken_; -} - -void GetRealPersonVerificationResultRequest::setVerificationToken(const std::string& verificationToken) -{ - verificationToken_ = verificationToken; - setBodyParameter("VerificationToken", verificationToken); -} - -std::string GetRealPersonVerificationResultRequest::getMaterialHash()const -{ - return materialHash_; -} - -void GetRealPersonVerificationResultRequest::setMaterialHash(const std::string& materialHash) -{ - materialHash_ = materialHash; - setBodyParameter("MaterialHash", materialHash); -} - diff --git a/facebody/src/model/GetRealPersonVerificationResultResult.cc b/facebody/src/model/GetRealPersonVerificationResultResult.cc deleted file mode 100644 index 0dc03ae66..000000000 --- a/facebody/src/model/GetRealPersonVerificationResultResult.cc +++ /dev/null @@ -1,77 +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 -#include - -using namespace AlibabaCloud::Facebody; -using namespace AlibabaCloud::Facebody::Model; - -GetRealPersonVerificationResultResult::GetRealPersonVerificationResultResult() : - ServiceResult() -{} - -GetRealPersonVerificationResultResult::GetRealPersonVerificationResultResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -GetRealPersonVerificationResultResult::~GetRealPersonVerificationResultResult() -{} - -void GetRealPersonVerificationResultResult::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["Pass"].isNull()) - data_.pass = dataNode["Pass"].asString() == "true"; - if(!dataNode["MaterialMatch"].isNull()) - data_.materialMatch = dataNode["MaterialMatch"].asString(); - if(!dataNode["IdentityInfo"].isNull()) - data_.identityInfo = dataNode["IdentityInfo"].asString(); - if(!value["Code"].isNull()) - code_ = value["Code"].asString(); - if(!value["ErrorMessage"].isNull()) - errorMessage_ = value["ErrorMessage"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - -} - -GetRealPersonVerificationResultResult::Data GetRealPersonVerificationResultResult::getData()const -{ - return data_; -} - -std::string GetRealPersonVerificationResultResult::getErrorMessage()const -{ - return errorMessage_; -} - -std::string GetRealPersonVerificationResultResult::getCode()const -{ - return code_; -} - -bool GetRealPersonVerificationResultResult::getSuccess()const -{ - return success_; -} - diff --git a/facebody/src/model/HandPostureRequest.cc b/facebody/src/model/HandPostureRequest.cc deleted file mode 100644 index 1a8a6a8b3..000000000 --- a/facebody/src/model/HandPostureRequest.cc +++ /dev/null @@ -1,40 +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 - -using AlibabaCloud::Facebody::Model::HandPostureRequest; - -HandPostureRequest::HandPostureRequest() : - RpcServiceRequest("facebody", "2019-12-30", "HandPosture") -{ - setMethod(HttpRequest::Method::Post); -} - -HandPostureRequest::~HandPostureRequest() -{} - -std::string HandPostureRequest::getImageURL()const -{ - return imageURL_; -} - -void HandPostureRequest::setImageURL(const std::string& imageURL) -{ - imageURL_ = imageURL; - setBodyParameter("ImageURL", imageURL); -} - diff --git a/facebody/src/model/HandPostureResult.cc b/facebody/src/model/HandPostureResult.cc deleted file mode 100644 index f97670f50..000000000 --- a/facebody/src/model/HandPostureResult.cc +++ /dev/null @@ -1,101 +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 -#include - -using namespace AlibabaCloud::Facebody; -using namespace AlibabaCloud::Facebody::Model; - -HandPostureResult::HandPostureResult() : - ServiceResult() -{} - -HandPostureResult::HandPostureResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -HandPostureResult::~HandPostureResult() -{} - -void HandPostureResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto dataNode = value["Data"]; - auto allOutputsNode = dataNode["Outputs"]["Output"]; - for (auto dataNodeOutputsOutput : allOutputsNode) - { - Data::Output outputObject; - if(!dataNodeOutputsOutput["HandCount"].isNull()) - outputObject.handCount = std::stoi(dataNodeOutputsOutput["HandCount"].asString()); - auto allResultsNode = dataNodeOutputsOutput["Results"]["Result"]; - for (auto dataNodeOutputsOutputResultsResult : allResultsNode) - { - Data::Output::Result resultsObject; - auto boxNode = value["Box"]; - if(!boxNode["Confident"].isNull()) - resultsObject.box.confident = std::stof(boxNode["Confident"].asString()); - auto allPositionsNode = boxNode["Positions"]["Position"]; - for (auto boxNodePositionsPosition : allPositionsNode) - { - Data::Output::Result::Box::Position positionObject; - auto allPoints = value["Points"]["Point"]; - for (auto value : allPoints) - positionObject.points.push_back(value.asString()); - resultsObject.box.positions.push_back(positionObject); - } - auto handsNode = value["Hands"]; - if(!handsNode["Confident"].isNull()) - resultsObject.hands.confident = std::stof(handsNode["Confident"].asString()); - auto allKeyPointsNode = handsNode["KeyPoints"]["KeyPoint"]; - for (auto handsNodeKeyPointsKeyPoint : allKeyPointsNode) - { - Data::Output::Result::Hands::KeyPoint keyPointObject; - if(!handsNodeKeyPointsKeyPoint["Label"].isNull()) - keyPointObject.label = handsNodeKeyPointsKeyPoint["Label"].asString(); - auto allPositions1Node = handsNodeKeyPointsKeyPoint["Positions"]["Position"]; - for (auto handsNodeKeyPointsKeyPointPositionsPosition : allPositions1Node) - { - Data::Output::Result::Hands::KeyPoint::Position2 positions1Object; - auto allPoints3 = value["Points"]["Point"]; - for (auto value : allPoints3) - positions1Object.points3.push_back(value.asString()); - keyPointObject.positions1.push_back(positions1Object); - } - resultsObject.hands.keyPoints.push_back(keyPointObject); - } - outputObject.results.push_back(resultsObject); - } - data_.outputs.push_back(outputObject); - } - auto metaObjectNode = dataNode["MetaObject"]; - if(!metaObjectNode["Height"].isNull()) - data_.metaObject.height = std::stoi(metaObjectNode["Height"].asString()); - if(!metaObjectNode["Width"].isNull()) - data_.metaObject.width = std::stoi(metaObjectNode["Width"].asString()); - -} - -HandPostureResult::Data HandPostureResult::getData()const -{ - return data_; -} - diff --git a/facebody/src/model/ListBodyDbsRequest.cc b/facebody/src/model/ListBodyDbsRequest.cc deleted file mode 100644 index e57e3f905..000000000 --- a/facebody/src/model/ListBodyDbsRequest.cc +++ /dev/null @@ -1,51 +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 - -using AlibabaCloud::Facebody::Model::ListBodyDbsRequest; - -ListBodyDbsRequest::ListBodyDbsRequest() : - RpcServiceRequest("facebody", "2019-12-30", "ListBodyDbs") -{ - setMethod(HttpRequest::Method::Get); -} - -ListBodyDbsRequest::~ListBodyDbsRequest() -{} - -long ListBodyDbsRequest::getLimit()const -{ - return limit_; -} - -void ListBodyDbsRequest::setLimit(long limit) -{ - limit_ = limit; - setParameter("Limit", std::to_string(limit)); -} - -long ListBodyDbsRequest::getOffset()const -{ - return offset_; -} - -void ListBodyDbsRequest::setOffset(long offset) -{ - offset_ = offset; - setParameter("Offset", std::to_string(offset)); -} - diff --git a/facebody/src/model/ListBodyDbsResult.cc b/facebody/src/model/ListBodyDbsResult.cc deleted file mode 100644 index 8ac6c880f..000000000 --- a/facebody/src/model/ListBodyDbsResult.cc +++ /dev/null @@ -1,76 +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 -#include - -using namespace AlibabaCloud::Facebody; -using namespace AlibabaCloud::Facebody::Model; - -ListBodyDbsResult::ListBodyDbsResult() : - ServiceResult() -{} - -ListBodyDbsResult::ListBodyDbsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ListBodyDbsResult::~ListBodyDbsResult() -{} - -void ListBodyDbsResult::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["Total"].isNull()) - data_.total = std::stol(dataNode["Total"].asString()); - auto allDbListNode = dataNode["DbList"]["DbListItem"]; - for (auto dataNodeDbListDbListItem : allDbListNode) - { - Data::DbListItem dbListItemObject; - if(!dataNodeDbListDbListItem["Id"].isNull()) - dbListItemObject.id = std::stol(dataNodeDbListDbListItem["Id"].asString()); - if(!dataNodeDbListDbListItem["Name"].isNull()) - dbListItemObject.name = dataNodeDbListDbListItem["Name"].asString(); - data_.dbList.push_back(dbListItemObject); - } - if(!value["Message"].isNull()) - message_ = value["Message"].asString(); - if(!value["Code"].isNull()) - code_ = value["Code"].asString(); - -} - -std::string ListBodyDbsResult::getMessage()const -{ - return message_; -} - -ListBodyDbsResult::Data ListBodyDbsResult::getData()const -{ - return data_; -} - -std::string ListBodyDbsResult::getCode()const -{ - return code_; -} - diff --git a/facebody/src/model/ListBodyPersonRequest.cc b/facebody/src/model/ListBodyPersonRequest.cc deleted file mode 100644 index 07897724b..000000000 --- a/facebody/src/model/ListBodyPersonRequest.cc +++ /dev/null @@ -1,62 +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 - -using AlibabaCloud::Facebody::Model::ListBodyPersonRequest; - -ListBodyPersonRequest::ListBodyPersonRequest() : - RpcServiceRequest("facebody", "2019-12-30", "ListBodyPerson") -{ - setMethod(HttpRequest::Method::Get); -} - -ListBodyPersonRequest::~ListBodyPersonRequest() -{} - -long ListBodyPersonRequest::getLimit()const -{ - return limit_; -} - -void ListBodyPersonRequest::setLimit(long limit) -{ - limit_ = limit; - setParameter("Limit", std::to_string(limit)); -} - -long ListBodyPersonRequest::getOffset()const -{ - return offset_; -} - -void ListBodyPersonRequest::setOffset(long offset) -{ - offset_ = offset; - setParameter("Offset", std::to_string(offset)); -} - -long ListBodyPersonRequest::getDbId()const -{ - return dbId_; -} - -void ListBodyPersonRequest::setDbId(long dbId) -{ - dbId_ = dbId; - setParameter("DbId", std::to_string(dbId)); -} - diff --git a/facebody/src/model/ListBodyPersonResult.cc b/facebody/src/model/ListBodyPersonResult.cc deleted file mode 100644 index d0c49d676..000000000 --- a/facebody/src/model/ListBodyPersonResult.cc +++ /dev/null @@ -1,82 +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 -#include - -using namespace AlibabaCloud::Facebody; -using namespace AlibabaCloud::Facebody::Model; - -ListBodyPersonResult::ListBodyPersonResult() : - ServiceResult() -{} - -ListBodyPersonResult::ListBodyPersonResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ListBodyPersonResult::~ListBodyPersonResult() -{} - -void ListBodyPersonResult::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["Total"].isNull()) - data_.total = std::stol(dataNode["Total"].asString()); - auto allPersonListNode = dataNode["PersonList"]["Person"]; - for (auto dataNodePersonListPerson : allPersonListNode) - { - Data::Person personObject; - if(!dataNodePersonListPerson["TraceCount"].isNull()) - personObject.traceCount = std::stol(dataNodePersonListPerson["TraceCount"].asString()); - if(!dataNodePersonListPerson["InstanceId"].isNull()) - personObject.instanceId = std::stol(dataNodePersonListPerson["InstanceId"].asString()); - if(!dataNodePersonListPerson["DbId"].isNull()) - personObject.dbId = std::stol(dataNodePersonListPerson["DbId"].asString()); - if(!dataNodePersonListPerson["Id"].isNull()) - personObject.id = std::stol(dataNodePersonListPerson["Id"].asString()); - if(!dataNodePersonListPerson["Name"].isNull()) - personObject.name = dataNodePersonListPerson["Name"].asString(); - data_.personList.push_back(personObject); - } - if(!value["Message"].isNull()) - message_ = value["Message"].asString(); - if(!value["Code"].isNull()) - code_ = value["Code"].asString(); - -} - -std::string ListBodyPersonResult::getMessage()const -{ - return message_; -} - -ListBodyPersonResult::Data ListBodyPersonResult::getData()const -{ - return data_; -} - -std::string ListBodyPersonResult::getCode()const -{ - return code_; -} - diff --git a/facebody/src/model/ListFaceDbsRequest.cc b/facebody/src/model/ListFaceDbsRequest.cc deleted file mode 100644 index 092d1e7e3..000000000 --- a/facebody/src/model/ListFaceDbsRequest.cc +++ /dev/null @@ -1,29 +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 - -using AlibabaCloud::Facebody::Model::ListFaceDbsRequest; - -ListFaceDbsRequest::ListFaceDbsRequest() : - RpcServiceRequest("facebody", "2019-12-30", "ListFaceDbs") -{ - setMethod(HttpRequest::Method::Post); -} - -ListFaceDbsRequest::~ListFaceDbsRequest() -{} - diff --git a/facebody/src/model/ListFaceDbsResult.cc b/facebody/src/model/ListFaceDbsResult.cc deleted file mode 100644 index 369deaef6..000000000 --- a/facebody/src/model/ListFaceDbsResult.cc +++ /dev/null @@ -1,58 +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 -#include - -using namespace AlibabaCloud::Facebody; -using namespace AlibabaCloud::Facebody::Model; - -ListFaceDbsResult::ListFaceDbsResult() : - ServiceResult() -{} - -ListFaceDbsResult::ListFaceDbsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ListFaceDbsResult::~ListFaceDbsResult() -{} - -void ListFaceDbsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto dataNode = value["Data"]; - auto allDbListNode = dataNode["DbList"]["DbListItem"]; - for (auto dataNodeDbListDbListItem : allDbListNode) - { - Data::DbListItem dbListItemObject; - if(!dataNodeDbListDbListItem["Name"].isNull()) - dbListItemObject.name = dataNodeDbListDbListItem["Name"].asString(); - data_.dbList.push_back(dbListItemObject); - } - -} - -ListFaceDbsResult::Data ListFaceDbsResult::getData()const -{ - return data_; -} - diff --git a/facebody/src/model/ListFaceEntitiesRequest.cc b/facebody/src/model/ListFaceEntitiesRequest.cc deleted file mode 100644 index edaa1698f..000000000 --- a/facebody/src/model/ListFaceEntitiesRequest.cc +++ /dev/null @@ -1,106 +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 - -using AlibabaCloud::Facebody::Model::ListFaceEntitiesRequest; - -ListFaceEntitiesRequest::ListFaceEntitiesRequest() : - RpcServiceRequest("facebody", "2019-12-30", "ListFaceEntities") -{ - setMethod(HttpRequest::Method::Post); -} - -ListFaceEntitiesRequest::~ListFaceEntitiesRequest() -{} - -std::string ListFaceEntitiesRequest::getEntityIdPrefix()const -{ - return entityIdPrefix_; -} - -void ListFaceEntitiesRequest::setEntityIdPrefix(const std::string& entityIdPrefix) -{ - entityIdPrefix_ = entityIdPrefix; - setBodyParameter("EntityIdPrefix", entityIdPrefix); -} - -int ListFaceEntitiesRequest::getLimit()const -{ - return limit_; -} - -void ListFaceEntitiesRequest::setLimit(int limit) -{ - limit_ = limit; - setBodyParameter("Limit", std::to_string(limit)); -} - -std::string ListFaceEntitiesRequest::getOrder()const -{ - return order_; -} - -void ListFaceEntitiesRequest::setOrder(const std::string& order) -{ - order_ = order; - setBodyParameter("Order", order); -} - -int ListFaceEntitiesRequest::getOffset()const -{ - return offset_; -} - -void ListFaceEntitiesRequest::setOffset(int offset) -{ - offset_ = offset; - setBodyParameter("Offset", std::to_string(offset)); -} - -std::string ListFaceEntitiesRequest::getToken()const -{ - return token_; -} - -void ListFaceEntitiesRequest::setToken(const std::string& token) -{ - token_ = token; - setBodyParameter("Token", token); -} - -std::string ListFaceEntitiesRequest::getLabels()const -{ - return labels_; -} - -void ListFaceEntitiesRequest::setLabels(const std::string& labels) -{ - labels_ = labels; - setBodyParameter("Labels", labels); -} - -std::string ListFaceEntitiesRequest::getDbName()const -{ - return dbName_; -} - -void ListFaceEntitiesRequest::setDbName(const std::string& dbName) -{ - dbName_ = dbName; - setBodyParameter("DbName", dbName); -} - diff --git a/facebody/src/model/ListFaceEntitiesResult.cc b/facebody/src/model/ListFaceEntitiesResult.cc deleted file mode 100644 index def2c7b9c..000000000 --- a/facebody/src/model/ListFaceEntitiesResult.cc +++ /dev/null @@ -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 -#include - -using namespace AlibabaCloud::Facebody; -using namespace AlibabaCloud::Facebody::Model; - -ListFaceEntitiesResult::ListFaceEntitiesResult() : - ServiceResult() -{} - -ListFaceEntitiesResult::ListFaceEntitiesResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ListFaceEntitiesResult::~ListFaceEntitiesResult() -{} - -void ListFaceEntitiesResult::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["Token"].isNull()) - data_.token = dataNode["Token"].asString(); - if(!dataNode["TotalCount"].isNull()) - data_.totalCount = std::stoi(dataNode["TotalCount"].asString()); - auto allEntitiesNode = dataNode["Entities"]["Entity"]; - for (auto dataNodeEntitiesEntity : allEntitiesNode) - { - Data::Entity entityObject; - if(!dataNodeEntitiesEntity["DbName"].isNull()) - entityObject.dbName = dataNodeEntitiesEntity["DbName"].asString(); - if(!dataNodeEntitiesEntity["EntityId"].isNull()) - entityObject.entityId = dataNodeEntitiesEntity["EntityId"].asString(); - if(!dataNodeEntitiesEntity["FaceCount"].isNull()) - entityObject.faceCount = std::stoi(dataNodeEntitiesEntity["FaceCount"].asString()); - if(!dataNodeEntitiesEntity["Labels"].isNull()) - entityObject.labels = dataNodeEntitiesEntity["Labels"].asString(); - if(!dataNodeEntitiesEntity["CreatedAt"].isNull()) - entityObject.createdAt = std::stol(dataNodeEntitiesEntity["CreatedAt"].asString()); - if(!dataNodeEntitiesEntity["UpdatedAt"].isNull()) - entityObject.updatedAt = std::stol(dataNodeEntitiesEntity["UpdatedAt"].asString()); - data_.entities.push_back(entityObject); - } - -} - -ListFaceEntitiesResult::Data ListFaceEntitiesResult::getData()const -{ - return data_; -} - diff --git a/facebody/src/model/PedestrianDetectAttributeRequest.cc b/facebody/src/model/PedestrianDetectAttributeRequest.cc deleted file mode 100644 index 689ec5763..000000000 --- a/facebody/src/model/PedestrianDetectAttributeRequest.cc +++ /dev/null @@ -1,40 +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 - -using AlibabaCloud::Facebody::Model::PedestrianDetectAttributeRequest; - -PedestrianDetectAttributeRequest::PedestrianDetectAttributeRequest() : - RpcServiceRequest("facebody", "2019-12-30", "PedestrianDetectAttribute") -{ - setMethod(HttpRequest::Method::Post); -} - -PedestrianDetectAttributeRequest::~PedestrianDetectAttributeRequest() -{} - -std::string PedestrianDetectAttributeRequest::getImageURL()const -{ - return imageURL_; -} - -void PedestrianDetectAttributeRequest::setImageURL(const std::string& imageURL) -{ - imageURL_ = imageURL; - setBodyParameter("ImageURL", imageURL); -} - diff --git a/facebody/src/model/PedestrianDetectAttributeResult.cc b/facebody/src/model/PedestrianDetectAttributeResult.cc deleted file mode 100644 index 7074eadab..000000000 --- a/facebody/src/model/PedestrianDetectAttributeResult.cc +++ /dev/null @@ -1,134 +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 -#include - -using namespace AlibabaCloud::Facebody; -using namespace AlibabaCloud::Facebody::Model; - -PedestrianDetectAttributeResult::PedestrianDetectAttributeResult() : - ServiceResult() -{} - -PedestrianDetectAttributeResult::PedestrianDetectAttributeResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -PedestrianDetectAttributeResult::~PedestrianDetectAttributeResult() -{} - -void PedestrianDetectAttributeResult::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["PersonNumber"].isNull()) - data_.personNumber = std::stoi(dataNode["PersonNumber"].asString()); - auto allAttributesNode = dataNode["Attributes"]["AttributesItem"]; - for (auto dataNodeAttributesAttributesItem : allAttributesNode) - { - Data::AttributesItem attributesItemObject; - auto ageNode = value["Age"]; - if(!ageNode["Name"].isNull()) - attributesItemObject.age.name = ageNode["Name"].asString(); - if(!ageNode["Score"].isNull()) - attributesItemObject.age.score = std::stof(ageNode["Score"].asString()); - auto backpackNode = value["Backpack"]; - if(!backpackNode["Name"].isNull()) - attributesItemObject.backpack.name = backpackNode["Name"].asString(); - if(!backpackNode["Score"].isNull()) - attributesItemObject.backpack.score = std::stof(backpackNode["Score"].asString()); - auto genderNode = value["Gender"]; - if(!genderNode["Name"].isNull()) - attributesItemObject.gender.name = genderNode["Name"].asString(); - if(!genderNode["Score"].isNull()) - attributesItemObject.gender.score = std::stof(genderNode["Score"].asString()); - auto glassesNode = value["Glasses"]; - if(!glassesNode["Name"].isNull()) - attributesItemObject.glasses.name = glassesNode["Name"].asString(); - if(!glassesNode["Score"].isNull()) - attributesItemObject.glasses.score = std::stof(glassesNode["Score"].asString()); - auto handbagNode = value["Handbag"]; - if(!handbagNode["Name"].isNull()) - attributesItemObject.handbag.name = handbagNode["Name"].asString(); - if(!handbagNode["Score"].isNull()) - attributesItemObject.handbag.score = std::stof(handbagNode["Score"].asString()); - auto hatNode = value["Hat"]; - if(!hatNode["Name"].isNull()) - attributesItemObject.hat.name = hatNode["Name"].asString(); - if(!hatNode["Score"].isNull()) - attributesItemObject.hat.score = std::stof(hatNode["Score"].asString()); - auto lowerColorNode = value["LowerColor"]; - if(!lowerColorNode["Name"].isNull()) - attributesItemObject.lowerColor.name = lowerColorNode["Name"].asString(); - if(!lowerColorNode["Score"].isNull()) - attributesItemObject.lowerColor.score = std::stof(lowerColorNode["Score"].asString()); - auto lowerWearNode = value["LowerWear"]; - if(!lowerWearNode["Name"].isNull()) - attributesItemObject.lowerWear.name = lowerWearNode["Name"].asString(); - if(!lowerWearNode["Score"].isNull()) - attributesItemObject.lowerWear.score = std::stof(lowerWearNode["Score"].asString()); - auto orientNode = value["Orient"]; - if(!orientNode["Name"].isNull()) - attributesItemObject.orient.name = orientNode["Name"].asString(); - if(!orientNode["Score"].isNull()) - attributesItemObject.orient.score = std::stof(orientNode["Score"].asString()); - auto shoulderBagNode = value["ShoulderBag"]; - if(!shoulderBagNode["Name"].isNull()) - attributesItemObject.shoulderBag.name = shoulderBagNode["Name"].asString(); - if(!shoulderBagNode["Score"].isNull()) - attributesItemObject.shoulderBag.score = std::stof(shoulderBagNode["Score"].asString()); - auto upperColorNode = value["UpperColor"]; - if(!upperColorNode["Name"].isNull()) - attributesItemObject.upperColor.name = upperColorNode["Name"].asString(); - if(!upperColorNode["Score"].isNull()) - attributesItemObject.upperColor.score = std::stof(upperColorNode["Score"].asString()); - auto upperWearNode = value["UpperWear"]; - if(!upperWearNode["Name"].isNull()) - attributesItemObject.upperWear.name = upperWearNode["Name"].asString(); - if(!upperWearNode["Score"].isNull()) - attributesItemObject.upperWear.score = std::stof(upperWearNode["Score"].asString()); - data_.attributes.push_back(attributesItemObject); - } - auto allBoxesNode = dataNode["Boxes"]["BoxesItem"]; - for (auto dataNodeBoxesBoxesItem : allBoxesNode) - { - Data::BoxesItem boxesItemObject; - if(!dataNodeBoxesBoxesItem["Score"].isNull()) - boxesItemObject.score = std::stof(dataNodeBoxesBoxesItem["Score"].asString()); - if(!dataNodeBoxesBoxesItem["TopLeftX"].isNull()) - boxesItemObject.topLeftX = std::stof(dataNodeBoxesBoxesItem["TopLeftX"].asString()); - if(!dataNodeBoxesBoxesItem["TopLeftY"].isNull()) - boxesItemObject.topLeftY = std::stof(dataNodeBoxesBoxesItem["TopLeftY"].asString()); - if(!dataNodeBoxesBoxesItem["BottomRightX"].isNull()) - boxesItemObject.bottomRightX = std::stof(dataNodeBoxesBoxesItem["BottomRightX"].asString()); - if(!dataNodeBoxesBoxesItem["BottomRightY"].isNull()) - boxesItemObject.bottomRightY = std::stof(dataNodeBoxesBoxesItem["BottomRightY"].asString()); - data_.boxes.push_back(boxesItemObject); - } - -} - -PedestrianDetectAttributeResult::Data PedestrianDetectAttributeResult::getData()const -{ - return data_; -} - diff --git a/facebody/src/model/RecognizeActionRequest.cc b/facebody/src/model/RecognizeActionRequest.cc deleted file mode 100644 index d2e6277a3..000000000 --- a/facebody/src/model/RecognizeActionRequest.cc +++ /dev/null @@ -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. - */ - -#include - -using AlibabaCloud::Facebody::Model::RecognizeActionRequest; - -RecognizeActionRequest::RecognizeActionRequest() : - RpcServiceRequest("facebody", "2019-12-30", "RecognizeAction") -{ - setMethod(HttpRequest::Method::Post); -} - -RecognizeActionRequest::~RecognizeActionRequest() -{} - -std::vector RecognizeActionRequest::getURLList()const -{ - return uRLList_; -} - -void RecognizeActionRequest::setURLList(const std::vector& uRLList) -{ - uRLList_ = uRLList; - for(int dep1 = 0; dep1!= uRLList.size(); dep1++) { - auto uRLListObj = uRLList.at(dep1); - std::string uRLListObjStr = "URLList." + std::to_string(dep1 + 1); - setParameter(uRLListObjStr + ".URL", uRLListObj.uRL); - } -} - -int RecognizeActionRequest::getType()const -{ - return type_; -} - -void RecognizeActionRequest::setType(int type) -{ - type_ = type; - setBodyParameter("Type", std::to_string(type)); -} - -std::string RecognizeActionRequest::getVideoUrl()const -{ - return videoUrl_; -} - -void RecognizeActionRequest::setVideoUrl(const std::string& videoUrl) -{ - videoUrl_ = videoUrl; - setBodyParameter("VideoUrl", videoUrl); -} - diff --git a/facebody/src/model/RecognizeActionResult.cc b/facebody/src/model/RecognizeActionResult.cc deleted file mode 100644 index 0ecf53864..000000000 --- a/facebody/src/model/RecognizeActionResult.cc +++ /dev/null @@ -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 -#include - -using namespace AlibabaCloud::Facebody; -using namespace AlibabaCloud::Facebody::Model; - -RecognizeActionResult::RecognizeActionResult() : - ServiceResult() -{} - -RecognizeActionResult::RecognizeActionResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -RecognizeActionResult::~RecognizeActionResult() -{} - -void RecognizeActionResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto dataNode = value["Data"]; - auto allElementsNode = dataNode["Elements"]["Element"]; - for (auto dataNodeElementsElement : allElementsNode) - { - Data::Element elementObject; - if(!dataNodeElementsElement["Timestamp"].isNull()) - elementObject.timestamp = std::stoi(dataNodeElementsElement["Timestamp"].asString()); - auto allBoxesNode = dataNodeElementsElement["Boxes"]["BoxesItem"]; - for (auto dataNodeElementsElementBoxesBoxesItem : allBoxesNode) - { - Data::Element::BoxesItem boxesObject; - auto allBox = value["Box"]["Box"]; - for (auto value : allBox) - boxesObject.box.push_back(value.asString()); - elementObject.boxes.push_back(boxesObject); - } - auto allScores = value["Scores"]["Score"]; - for (auto value : allScores) - elementObject.scores.push_back(value.asString()); - auto allLabels = value["Labels"]["Label"]; - for (auto value : allLabels) - elementObject.labels.push_back(value.asString()); - data_.elements.push_back(elementObject); - } - -} - -RecognizeActionResult::Data RecognizeActionResult::getData()const -{ - return data_; -} - diff --git a/facebody/src/model/RecognizeExpressionRequest.cc b/facebody/src/model/RecognizeExpressionRequest.cc deleted file mode 100644 index dd54286aa..000000000 --- a/facebody/src/model/RecognizeExpressionRequest.cc +++ /dev/null @@ -1,40 +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 - -using AlibabaCloud::Facebody::Model::RecognizeExpressionRequest; - -RecognizeExpressionRequest::RecognizeExpressionRequest() : - RpcServiceRequest("facebody", "2019-12-30", "RecognizeExpression") -{ - setMethod(HttpRequest::Method::Post); -} - -RecognizeExpressionRequest::~RecognizeExpressionRequest() -{} - -std::string RecognizeExpressionRequest::getImageURL()const -{ - return imageURL_; -} - -void RecognizeExpressionRequest::setImageURL(const std::string& imageURL) -{ - imageURL_ = imageURL; - setBodyParameter("ImageURL", imageURL); -} - diff --git a/facebody/src/model/RecognizeExpressionResult.cc b/facebody/src/model/RecognizeExpressionResult.cc deleted file mode 100644 index 1ff794b80..000000000 --- a/facebody/src/model/RecognizeExpressionResult.cc +++ /dev/null @@ -1,69 +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 -#include - -using namespace AlibabaCloud::Facebody; -using namespace AlibabaCloud::Facebody::Model; - -RecognizeExpressionResult::RecognizeExpressionResult() : - ServiceResult() -{} - -RecognizeExpressionResult::RecognizeExpressionResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -RecognizeExpressionResult::~RecognizeExpressionResult() -{} - -void RecognizeExpressionResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto dataNode = value["Data"]; - auto allElementsNode = dataNode["Elements"]["Element"]; - for (auto dataNodeElementsElement : allElementsNode) - { - Data::Element elementObject; - if(!dataNodeElementsElement["Expression"].isNull()) - elementObject.expression = dataNodeElementsElement["Expression"].asString(); - if(!dataNodeElementsElement["FaceProbability"].isNull()) - elementObject.faceProbability = std::stof(dataNodeElementsElement["FaceProbability"].asString()); - auto faceRectangleNode = value["FaceRectangle"]; - if(!faceRectangleNode["Height"].isNull()) - elementObject.faceRectangle.height = std::stoi(faceRectangleNode["Height"].asString()); - if(!faceRectangleNode["Left"].isNull()) - elementObject.faceRectangle.left = std::stoi(faceRectangleNode["Left"].asString()); - if(!faceRectangleNode["Top"].isNull()) - elementObject.faceRectangle.top = std::stoi(faceRectangleNode["Top"].asString()); - if(!faceRectangleNode["Width"].isNull()) - elementObject.faceRectangle.width = std::stoi(faceRectangleNode["Width"].asString()); - data_.elements.push_back(elementObject); - } - -} - -RecognizeExpressionResult::Data RecognizeExpressionResult::getData()const -{ - return data_; -} - diff --git a/facebody/src/model/RecognizeFaceRequest.cc b/facebody/src/model/RecognizeFaceRequest.cc deleted file mode 100644 index 55272b09b..000000000 --- a/facebody/src/model/RecognizeFaceRequest.cc +++ /dev/null @@ -1,51 +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 - -using AlibabaCloud::Facebody::Model::RecognizeFaceRequest; - -RecognizeFaceRequest::RecognizeFaceRequest() : - RpcServiceRequest("facebody", "2019-12-30", "RecognizeFace") -{ - setMethod(HttpRequest::Method::Post); -} - -RecognizeFaceRequest::~RecognizeFaceRequest() -{} - -int RecognizeFaceRequest::getImageType()const -{ - return imageType_; -} - -void RecognizeFaceRequest::setImageType(int imageType) -{ - imageType_ = imageType; - setBodyParameter("ImageType", std::to_string(imageType)); -} - -std::string RecognizeFaceRequest::getImageURL()const -{ - return imageURL_; -} - -void RecognizeFaceRequest::setImageURL(const std::string& imageURL) -{ - imageURL_ = imageURL; - setBodyParameter("ImageURL", imageURL); -} - diff --git a/facebody/src/model/RecognizeFaceResult.cc b/facebody/src/model/RecognizeFaceResult.cc deleted file mode 100644 index 415e7f223..000000000 --- a/facebody/src/model/RecognizeFaceResult.cc +++ /dev/null @@ -1,117 +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 -#include - -using namespace AlibabaCloud::Facebody; -using namespace AlibabaCloud::Facebody::Model; - -RecognizeFaceResult::RecognizeFaceResult() : - ServiceResult() -{} - -RecognizeFaceResult::RecognizeFaceResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -RecognizeFaceResult::~RecognizeFaceResult() -{} - -void RecognizeFaceResult::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["LandmarkCount"].isNull()) - data_.landmarkCount = std::stoi(dataNode["LandmarkCount"].asString()); - if(!dataNode["DenseFeatureLength"].isNull()) - data_.denseFeatureLength = std::stoi(dataNode["DenseFeatureLength"].asString()); - if(!dataNode["FaceCount"].isNull()) - data_.faceCount = std::stoi(dataNode["FaceCount"].asString()); - auto qualitiesNode = dataNode["Qualities"]; - auto allNoiseList = qualitiesNode["NoiseList"]["Noise"]; - for (auto value : allNoiseList) - data_.qualities.noiseList.push_back(value.asString()); - auto allScoreList = qualitiesNode["ScoreList"]["Score"]; - for (auto value : allScoreList) - data_.qualities.scoreList.push_back(value.asString()); - auto allBlurList = qualitiesNode["BlurList"]["Blur"]; - for (auto value : allBlurList) - data_.qualities.blurList.push_back(value.asString()); - auto allMaskList = qualitiesNode["MaskList"]["Mask"]; - for (auto value : allMaskList) - data_.qualities.maskList.push_back(value.asString()); - auto allGlassList = qualitiesNode["GlassList"]["Glass"]; - for (auto value : allGlassList) - data_.qualities.glassList.push_back(value.asString()); - auto allFnfList = qualitiesNode["FnfList"]["Fnf"]; - for (auto value : allFnfList) - data_.qualities.fnfList.push_back(value.asString()); - auto allPoseList1 = qualitiesNode["PoseList"]["Pose"]; - for (auto value : allPoseList1) - data_.qualities.poseList1.push_back(value.asString()); - auto allIlluList = qualitiesNode["IlluList"]["Illu"]; - for (auto value : allIlluList) - data_.qualities.illuList.push_back(value.asString()); - auto allDenseFeatures = dataNode["DenseFeatures"]["DenseFeature"]; - for (auto value : allDenseFeatures) - data_.denseFeatures.push_back(value.asString()); - auto allFaceProbabilityList = dataNode["FaceProbabilityList"]["FaceProbability"]; - for (auto value : allFaceProbabilityList) - data_.faceProbabilityList.push_back(value.asString()); - auto allHatList = dataNode["HatList"]["Hat"]; - for (auto value : allHatList) - data_.hatList.push_back(value.asString()); - auto allAgeList = dataNode["AgeList"]["Age"]; - for (auto value : allAgeList) - data_.ageList.push_back(value.asString()); - auto allBeuatyList = dataNode["BeuatyList"]["Beauty"]; - for (auto value : allBeuatyList) - data_.beuatyList.push_back(value.asString()); - auto allFaceRectangles = dataNode["FaceRectangles"]["FaceRectangle"]; - for (auto value : allFaceRectangles) - data_.faceRectangles.push_back(value.asString()); - auto allGlasses = dataNode["Glasses"]["Glass"]; - for (auto value : allGlasses) - data_.glasses.push_back(value.asString()); - auto allLandmarks = dataNode["Landmarks"]["Landmark"]; - for (auto value : allLandmarks) - data_.landmarks.push_back(value.asString()); - auto allExpressions = dataNode["Expressions"]["Expression"]; - for (auto value : allExpressions) - data_.expressions.push_back(value.asString()); - auto allPoseList = dataNode["PoseList"]["Pose"]; - for (auto value : allPoseList) - data_.poseList.push_back(value.asString()); - auto allGenderList = dataNode["GenderList"]["Gender"]; - for (auto value : allGenderList) - data_.genderList.push_back(value.asString()); - auto allPupils = dataNode["Pupils"]["Pupil"]; - for (auto value : allPupils) - data_.pupils.push_back(value.asString()); - -} - -RecognizeFaceResult::Data RecognizeFaceResult::getData()const -{ - return data_; -} - diff --git a/facebody/src/model/RecognizePublicFaceRequest.cc b/facebody/src/model/RecognizePublicFaceRequest.cc deleted file mode 100644 index 38374509e..000000000 --- a/facebody/src/model/RecognizePublicFaceRequest.cc +++ /dev/null @@ -1,44 +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 - -using AlibabaCloud::Facebody::Model::RecognizePublicFaceRequest; - -RecognizePublicFaceRequest::RecognizePublicFaceRequest() : - RpcServiceRequest("facebody", "2019-12-30", "RecognizePublicFace") -{ - setMethod(HttpRequest::Method::Post); -} - -RecognizePublicFaceRequest::~RecognizePublicFaceRequest() -{} - -std::vector RecognizePublicFaceRequest::getTask()const -{ - return task_; -} - -void RecognizePublicFaceRequest::setTask(const std::vector& task) -{ - task_ = task; - for(int dep1 = 0; dep1!= task.size(); dep1++) { - auto taskObj = task.at(dep1); - std::string taskObjStr = "Task." + std::to_string(dep1 + 1); - setParameter(taskObjStr + ".ImageURL", taskObj.imageURL); - } -} - diff --git a/facebody/src/model/RecognizePublicFaceResult.cc b/facebody/src/model/RecognizePublicFaceResult.cc deleted file mode 100644 index b8b53ba6b..000000000 --- a/facebody/src/model/RecognizePublicFaceResult.cc +++ /dev/null @@ -1,98 +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 -#include - -using namespace AlibabaCloud::Facebody; -using namespace AlibabaCloud::Facebody::Model; - -RecognizePublicFaceResult::RecognizePublicFaceResult() : - ServiceResult() -{} - -RecognizePublicFaceResult::RecognizePublicFaceResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -RecognizePublicFaceResult::~RecognizePublicFaceResult() -{} - -void RecognizePublicFaceResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto dataNode = value["Data"]; - auto allElementsNode = dataNode["Elements"]["Element"]; - for (auto dataNodeElementsElement : allElementsNode) - { - Data::Element elementObject; - if(!dataNodeElementsElement["TaskId"].isNull()) - elementObject.taskId = dataNodeElementsElement["TaskId"].asString(); - if(!dataNodeElementsElement["ImageURL"].isNull()) - elementObject.imageURL = dataNodeElementsElement["ImageURL"].asString(); - auto allResultsNode = dataNodeElementsElement["Results"]["Result"]; - for (auto dataNodeElementsElementResultsResult : allResultsNode) - { - Data::Element::Result resultsObject; - if(!dataNodeElementsElementResultsResult["Label"].isNull()) - resultsObject.label = dataNodeElementsElementResultsResult["Label"].asString(); - if(!dataNodeElementsElementResultsResult["Suggestion"].isNull()) - resultsObject.suggestion = dataNodeElementsElementResultsResult["Suggestion"].asString(); - if(!dataNodeElementsElementResultsResult["Rate"].isNull()) - resultsObject.rate = std::stof(dataNodeElementsElementResultsResult["Rate"].asString()); - auto allSubResultsNode = dataNodeElementsElementResultsResult["SubResults"]["SubResult"]; - for (auto dataNodeElementsElementResultsResultSubResultsSubResult : allSubResultsNode) - { - Data::Element::Result::SubResult subResultsObject; - if(!dataNodeElementsElementResultsResultSubResultsSubResult["H"].isNull()) - subResultsObject.h = std::stof(dataNodeElementsElementResultsResultSubResultsSubResult["H"].asString()); - if(!dataNodeElementsElementResultsResultSubResultsSubResult["W"].isNull()) - subResultsObject.w = std::stof(dataNodeElementsElementResultsResultSubResultsSubResult["W"].asString()); - if(!dataNodeElementsElementResultsResultSubResultsSubResult["X"].isNull()) - subResultsObject.x = std::stof(dataNodeElementsElementResultsResultSubResultsSubResult["X"].asString()); - if(!dataNodeElementsElementResultsResultSubResultsSubResult["Y"].isNull()) - subResultsObject.y = std::stof(dataNodeElementsElementResultsResultSubResultsSubResult["Y"].asString()); - auto allFacesNode = dataNodeElementsElementResultsResultSubResultsSubResult["Faces"]["Face"]; - for (auto dataNodeElementsElementResultsResultSubResultsSubResultFacesFace : allFacesNode) - { - Data::Element::Result::SubResult::Face facesObject; - if(!dataNodeElementsElementResultsResultSubResultsSubResultFacesFace["Id"].isNull()) - facesObject.id = dataNodeElementsElementResultsResultSubResultsSubResultFacesFace["Id"].asString(); - if(!dataNodeElementsElementResultsResultSubResultsSubResultFacesFace["Name"].isNull()) - facesObject.name = dataNodeElementsElementResultsResultSubResultsSubResultFacesFace["Name"].asString(); - if(!dataNodeElementsElementResultsResultSubResultsSubResultFacesFace["Rate"].isNull()) - facesObject.rate = std::stof(dataNodeElementsElementResultsResultSubResultsSubResultFacesFace["Rate"].asString()); - subResultsObject.faces.push_back(facesObject); - } - resultsObject.subResults.push_back(subResultsObject); - } - elementObject.results.push_back(resultsObject); - } - data_.elements.push_back(elementObject); - } - -} - -RecognizePublicFaceResult::Data RecognizePublicFaceResult::getData()const -{ - return data_; -} - diff --git a/facebody/src/model/SearchBodyTraceRequest.cc b/facebody/src/model/SearchBodyTraceRequest.cc deleted file mode 100644 index 126784bb6..000000000 --- a/facebody/src/model/SearchBodyTraceRequest.cc +++ /dev/null @@ -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 - -using AlibabaCloud::Facebody::Model::SearchBodyTraceRequest; - -SearchBodyTraceRequest::SearchBodyTraceRequest() : - RpcServiceRequest("facebody", "2019-12-30", "SearchBodyTrace") -{ - setMethod(HttpRequest::Method::Post); -} - -SearchBodyTraceRequest::~SearchBodyTraceRequest() -{} - -float SearchBodyTraceRequest::getMinScore()const -{ - return minScore_; -} - -void SearchBodyTraceRequest::setMinScore(float minScore) -{ - minScore_ = minScore; - setBodyParameter("MinScore", std::to_string(minScore)); -} - -long SearchBodyTraceRequest::getLimit()const -{ - return limit_; -} - -void SearchBodyTraceRequest::setLimit(long limit) -{ - limit_ = limit; - setBodyParameter("Limit", std::to_string(limit)); -} - -Array SearchBodyTraceRequest::getImages()const -{ - return images_; -} - -void SearchBodyTraceRequest::setImages(const Array& images) -{ - images_ = images; - setBodyParameter("Images", std::to_string(images)); -} - -long SearchBodyTraceRequest::getDbId()const -{ - return dbId_; -} - -void SearchBodyTraceRequest::setDbId(long dbId) -{ - dbId_ = dbId; - setBodyParameter("DbId", std::to_string(dbId)); -} - diff --git a/facebody/src/model/SearchBodyTraceResult.cc b/facebody/src/model/SearchBodyTraceResult.cc deleted file mode 100644 index 71f3a1709..000000000 --- a/facebody/src/model/SearchBodyTraceResult.cc +++ /dev/null @@ -1,80 +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 -#include - -using namespace AlibabaCloud::Facebody; -using namespace AlibabaCloud::Facebody::Model; - -SearchBodyTraceResult::SearchBodyTraceResult() : - ServiceResult() -{} - -SearchBodyTraceResult::SearchBodyTraceResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -SearchBodyTraceResult::~SearchBodyTraceResult() -{} - -void SearchBodyTraceResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto dataNode = value["Data"]; - auto allMatchListNode = dataNode["MatchList"]["Trace"]; - for (auto dataNodeMatchListTrace : allMatchListNode) - { - Data::Trace traceObject; - if(!dataNodeMatchListTrace["Score"].isNull()) - traceObject.score = std::stof(dataNodeMatchListTrace["Score"].asString()); - if(!dataNodeMatchListTrace["PersonId"].isNull()) - traceObject.personId = std::stol(dataNodeMatchListTrace["PersonId"].asString()); - if(!dataNodeMatchListTrace["TraceId"].isNull()) - traceObject.traceId = std::stol(dataNodeMatchListTrace["TraceId"].asString()); - if(!dataNodeMatchListTrace["DbId"].isNull()) - traceObject.dbId = std::stol(dataNodeMatchListTrace["DbId"].asString()); - if(!dataNodeMatchListTrace["ExtraData"].isNull()) - traceObject.extraData = dataNodeMatchListTrace["ExtraData"].asString(); - data_.matchList.push_back(traceObject); - } - if(!value["Message"].isNull()) - message_ = value["Message"].asString(); - if(!value["Code"].isNull()) - code_ = value["Code"].asString(); - -} - -std::string SearchBodyTraceResult::getMessage()const -{ - return message_; -} - -SearchBodyTraceResult::Data SearchBodyTraceResult::getData()const -{ - return data_; -} - -std::string SearchBodyTraceResult::getCode()const -{ - return code_; -} - diff --git a/facebody/src/model/SearchFaceRequest.cc b/facebody/src/model/SearchFaceRequest.cc deleted file mode 100644 index 9a681cefc..000000000 --- a/facebody/src/model/SearchFaceRequest.cc +++ /dev/null @@ -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 - -using AlibabaCloud::Facebody::Model::SearchFaceRequest; - -SearchFaceRequest::SearchFaceRequest() : - RpcServiceRequest("facebody", "2019-12-30", "SearchFace") -{ - setMethod(HttpRequest::Method::Post); -} - -SearchFaceRequest::~SearchFaceRequest() -{} - -std::string SearchFaceRequest::getDbNames()const -{ - return dbNames_; -} - -void SearchFaceRequest::setDbNames(const std::string& dbNames) -{ - dbNames_ = dbNames; - setParameter("DbNames", dbNames); -} - -std::string SearchFaceRequest::getDbName()const -{ - return dbName_; -} - -void SearchFaceRequest::setDbName(const std::string& dbName) -{ - dbName_ = dbName; - setBodyParameter("DbName", dbName); -} - -std::string SearchFaceRequest::getImageUrl()const -{ - return imageUrl_; -} - -void SearchFaceRequest::setImageUrl(const std::string& imageUrl) -{ - imageUrl_ = imageUrl; - setBodyParameter("ImageUrl", imageUrl); -} - -int SearchFaceRequest::getLimit()const -{ - return limit_; -} - -void SearchFaceRequest::setLimit(int limit) -{ - limit_ = limit; - setBodyParameter("Limit", std::to_string(limit)); -} - diff --git a/facebody/src/model/SearchFaceResult.cc b/facebody/src/model/SearchFaceResult.cc deleted file mode 100644 index 42ca5dc13..000000000 --- a/facebody/src/model/SearchFaceResult.cc +++ /dev/null @@ -1,81 +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 -#include - -using namespace AlibabaCloud::Facebody; -using namespace AlibabaCloud::Facebody::Model; - -SearchFaceResult::SearchFaceResult() : - ServiceResult() -{} - -SearchFaceResult::SearchFaceResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -SearchFaceResult::~SearchFaceResult() -{} - -void SearchFaceResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto dataNode = value["Data"]; - auto allMatchListNode = dataNode["MatchList"]["MatchListItem"]; - for (auto dataNodeMatchListMatchListItem : allMatchListNode) - { - Data::MatchListItem matchListItemObject; - auto allFaceItemsNode = dataNodeMatchListMatchListItem["FaceItems"]["FaceItemsItem"]; - for (auto dataNodeMatchListMatchListItemFaceItemsFaceItemsItem : allFaceItemsNode) - { - Data::MatchListItem::FaceItemsItem faceItemsObject; - if(!dataNodeMatchListMatchListItemFaceItemsFaceItemsItem["FaceId"].isNull()) - faceItemsObject.faceId = dataNodeMatchListMatchListItemFaceItemsFaceItemsItem["FaceId"].asString(); - if(!dataNodeMatchListMatchListItemFaceItemsFaceItemsItem["EntityId"].isNull()) - faceItemsObject.entityId = dataNodeMatchListMatchListItemFaceItemsFaceItemsItem["EntityId"].asString(); - if(!dataNodeMatchListMatchListItemFaceItemsFaceItemsItem["Score"].isNull()) - faceItemsObject.score = std::stof(dataNodeMatchListMatchListItemFaceItemsFaceItemsItem["Score"].asString()); - if(!dataNodeMatchListMatchListItemFaceItemsFaceItemsItem["DbName"].isNull()) - faceItemsObject.dbName = dataNodeMatchListMatchListItemFaceItemsFaceItemsItem["DbName"].asString(); - if(!dataNodeMatchListMatchListItemFaceItemsFaceItemsItem["ExtraData"].isNull()) - faceItemsObject.extraData = dataNodeMatchListMatchListItemFaceItemsFaceItemsItem["ExtraData"].asString(); - matchListItemObject.faceItems.push_back(faceItemsObject); - } - auto locationNode = value["Location"]; - if(!locationNode["X"].isNull()) - matchListItemObject.location.x = std::stoi(locationNode["X"].asString()); - if(!locationNode["Y"].isNull()) - matchListItemObject.location.y = std::stoi(locationNode["Y"].asString()); - if(!locationNode["Height"].isNull()) - matchListItemObject.location.height = std::stoi(locationNode["Height"].asString()); - if(!locationNode["Width"].isNull()) - matchListItemObject.location.width = std::stoi(locationNode["Width"].asString()); - data_.matchList.push_back(matchListItemObject); - } - -} - -SearchFaceResult::Data SearchFaceResult::getData()const -{ - return data_; -} - diff --git a/facebody/src/model/SwapFacialFeaturesRequest.cc b/facebody/src/model/SwapFacialFeaturesRequest.cc deleted file mode 100644 index fe3d1eaab..000000000 --- a/facebody/src/model/SwapFacialFeaturesRequest.cc +++ /dev/null @@ -1,62 +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 - -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("TargetImageURL", targetImageURL); -} - -std::string SwapFacialFeaturesRequest::getSourceImageURL()const -{ - return sourceImageURL_; -} - -void SwapFacialFeaturesRequest::setSourceImageURL(const std::string& sourceImageURL) -{ - sourceImageURL_ = sourceImageURL; - setBodyParameter("SourceImageURL", sourceImageURL); -} - -std::string SwapFacialFeaturesRequest::getEditPart()const -{ - return editPart_; -} - -void SwapFacialFeaturesRequest::setEditPart(const std::string& editPart) -{ - editPart_ = editPart; - setBodyParameter("EditPart", editPart); -} - diff --git a/facebody/src/model/SwapFacialFeaturesResult.cc b/facebody/src/model/SwapFacialFeaturesResult.cc deleted file mode 100644 index 4f8f58890..000000000 --- a/facebody/src/model/SwapFacialFeaturesResult.cc +++ /dev/null @@ -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 -#include - -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_; -} - diff --git a/facebody/src/model/UpdateFaceEntityRequest.cc b/facebody/src/model/UpdateFaceEntityRequest.cc deleted file mode 100644 index c0c8f1315..000000000 --- a/facebody/src/model/UpdateFaceEntityRequest.cc +++ /dev/null @@ -1,62 +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 - -using AlibabaCloud::Facebody::Model::UpdateFaceEntityRequest; - -UpdateFaceEntityRequest::UpdateFaceEntityRequest() : - RpcServiceRequest("facebody", "2019-12-30", "UpdateFaceEntity") -{ - setMethod(HttpRequest::Method::Post); -} - -UpdateFaceEntityRequest::~UpdateFaceEntityRequest() -{} - -std::string UpdateFaceEntityRequest::getEntityId()const -{ - return entityId_; -} - -void UpdateFaceEntityRequest::setEntityId(const std::string& entityId) -{ - entityId_ = entityId; - setBodyParameter("EntityId", entityId); -} - -std::string UpdateFaceEntityRequest::getLabels()const -{ - return labels_; -} - -void UpdateFaceEntityRequest::setLabels(const std::string& labels) -{ - labels_ = labels; - setBodyParameter("Labels", labels); -} - -std::string UpdateFaceEntityRequest::getDbName()const -{ - return dbName_; -} - -void UpdateFaceEntityRequest::setDbName(const std::string& dbName) -{ - dbName_ = dbName; - setBodyParameter("DbName", dbName); -} - diff --git a/facebody/src/model/UpdateFaceEntityResult.cc b/facebody/src/model/UpdateFaceEntityResult.cc deleted file mode 100644 index 003baa4f1..000000000 --- a/facebody/src/model/UpdateFaceEntityResult.cc +++ /dev/null @@ -1,44 +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 -#include - -using namespace AlibabaCloud::Facebody; -using namespace AlibabaCloud::Facebody::Model; - -UpdateFaceEntityResult::UpdateFaceEntityResult() : - ServiceResult() -{} - -UpdateFaceEntityResult::UpdateFaceEntityResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -UpdateFaceEntityResult::~UpdateFaceEntityResult() -{} - -void UpdateFaceEntityResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - -} - diff --git a/facebody/src/model/VerifyFaceMaskRequest.cc b/facebody/src/model/VerifyFaceMaskRequest.cc deleted file mode 100644 index 6a82be42a..000000000 --- a/facebody/src/model/VerifyFaceMaskRequest.cc +++ /dev/null @@ -1,51 +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 - -using AlibabaCloud::Facebody::Model::VerifyFaceMaskRequest; - -VerifyFaceMaskRequest::VerifyFaceMaskRequest() : - RpcServiceRequest("facebody", "2019-12-30", "VerifyFaceMask") -{ - setMethod(HttpRequest::Method::Post); -} - -VerifyFaceMaskRequest::~VerifyFaceMaskRequest() -{} - -std::string VerifyFaceMaskRequest::getImageURL()const -{ - return imageURL_; -} - -void VerifyFaceMaskRequest::setImageURL(const std::string& imageURL) -{ - imageURL_ = imageURL; - setBodyParameter("ImageURL", imageURL); -} - -std::string VerifyFaceMaskRequest::getRefUrl()const -{ - return refUrl_; -} - -void VerifyFaceMaskRequest::setRefUrl(const std::string& refUrl) -{ - refUrl_ = refUrl; - setBodyParameter("RefUrl", refUrl); -} - diff --git a/facebody/src/model/VerifyFaceMaskResult.cc b/facebody/src/model/VerifyFaceMaskResult.cc deleted file mode 100644 index b353cf1dc..000000000 --- a/facebody/src/model/VerifyFaceMaskResult.cc +++ /dev/null @@ -1,65 +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 -#include - -using namespace AlibabaCloud::Facebody; -using namespace AlibabaCloud::Facebody::Model; - -VerifyFaceMaskResult::VerifyFaceMaskResult() : - ServiceResult() -{} - -VerifyFaceMaskResult::VerifyFaceMaskResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -VerifyFaceMaskResult::~VerifyFaceMaskResult() -{} - -void VerifyFaceMaskResult::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["Confidence"].isNull()) - data_.confidence = std::stof(dataNode["Confidence"].asString()); - if(!dataNode["Mask"].isNull()) - data_.mask = std::stoi(dataNode["Mask"].asString()); - if(!dataNode["MaskRef"].isNull()) - data_.maskRef = std::stoi(dataNode["MaskRef"].asString()); - auto allRectangle = dataNode["Rectangle"]["Rectangle"]; - for (auto value : allRectangle) - data_.rectangle.push_back(value.asString()); - auto allRectangleRef = dataNode["RectangleRef"]["RectangleRef"]; - for (auto value : allRectangleRef) - data_.rectangleRef.push_back(value.asString()); - auto allThresholds = dataNode["Thresholds"]["Thresholds"]; - for (auto value : allThresholds) - data_.thresholds.push_back(value.asString()); - -} - -VerifyFaceMaskResult::Data VerifyFaceMaskResult::getData()const -{ - return data_; -} -