From d0e1cd8792f190dd55f7be430c39eb1254a4981c Mon Sep 17 00:00:00 2001 From: sdk-team Date: Mon, 1 Feb 2021 09:17:16 +0000 Subject: [PATCH] Release GenerateHumanSketchStyle MergeImageFace AddFaceImageTemplate QueryFaceImageTemplate DeleteFaceImageTemplate. --- CHANGELOG | 3 + facebody/CMakeLists.txt | 232 +- .../alibabacloud/facebody/FacebodyClient.h | 456 ++++ .../facebody/model/AddBodyTraceRequest.h | 57 + .../facebody/model/AddBodyTraceResult.h | 59 + .../facebody/model/AddFaceEntityRequest.h | 54 + .../facebody/model/AddFaceEntityResult.h | 49 + .../model/AddFaceImageTemplateRequest.h | 51 + .../model/AddFaceImageTemplateResult.h | 59 + .../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/CreateBodyDbResult.h | 59 + .../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 + .../model/DeleteFaceImageTemplateRequest.h | 51 + .../model/DeleteFaceImageTemplateResult.h | 53 + .../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 + .../model/DetectIPCPedestrianRequest.h | 66 + .../model/DetectIPCPedestrianResult.h | 67 + .../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 + .../ExtractPedestrianFeatureAttrRequest.h | 54 + .../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 + .../GenRealPersonVerificationTokenRequest.h | 54 + .../GenRealPersonVerificationTokenResult.h | 61 + .../model/GenerateHumanAnimeStyleRequest.h | 51 + .../model/GenerateHumanAnimeStyleResult.h | 55 + .../model/GenerateHumanSketchStyleRequest.h | 48 + .../model/GenerateHumanSketchStyleResult.h | 59 + .../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 + .../facebody/model/MergeImageFaceRequest.h | 54 + .../facebody/model/MergeImageFaceResult.h | 59 + .../model/PedestrianDetectAttributeRequest.h | 48 + .../model/PedestrianDetectAttributeResult.h | 140 ++ .../model/QueryFaceImageTemplateRequest.h | 51 + .../model/QueryFaceImageTemplateResult.h | 67 + .../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 | 2052 +++++++++++++++++ facebody/src/model/AddBodyTraceRequest.cc | 73 + facebody/src/model/AddBodyTraceResult.cc | 66 + facebody/src/model/AddFaceEntityRequest.cc | 62 + facebody/src/model/AddFaceEntityResult.cc | 44 + .../src/model/AddFaceImageTemplateRequest.cc | 51 + .../src/model/AddFaceImageTemplateResult.cc | 66 + 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 + .../model/DeleteFaceImageTemplateRequest.cc | 51 + .../model/DeleteFaceImageTemplateResult.cc | 58 + 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 + .../src/model/DetectIPCPedestrianRequest.cc | 89 + .../src/model/DetectIPCPedestrianResult.cc | 73 + 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 + .../ExtractPedestrianFeatureAttrRequest.cc | 62 + .../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 + .../GenRealPersonVerificationTokenResult.cc | 73 + .../model/GenerateHumanAnimeStyleRequest.cc | 51 + .../model/GenerateHumanAnimeStyleResult.cc | 52 + .../model/GenerateHumanSketchStyleRequest.cc | 40 + .../model/GenerateHumanSketchStyleResult.cc | 66 + 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 + facebody/src/model/MergeImageFaceRequest.cc | 62 + facebody/src/model/MergeImageFaceResult.cc | 66 + .../model/PedestrianDetectAttributeRequest.cc | 40 + .../model/PedestrianDetectAttributeResult.cc | 134 ++ .../model/QueryFaceImageTemplateRequest.cc | 51 + .../src/model/QueryFaceImageTemplateResult.cc | 80 + 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 + 232 files changed, 16299 insertions(+), 2 deletions(-) create mode 100644 facebody/include/alibabacloud/facebody/model/AddBodyTraceRequest.h create mode 100644 facebody/include/alibabacloud/facebody/model/AddBodyTraceResult.h create mode 100644 facebody/include/alibabacloud/facebody/model/AddFaceEntityRequest.h create mode 100644 facebody/include/alibabacloud/facebody/model/AddFaceEntityResult.h create mode 100644 facebody/include/alibabacloud/facebody/model/AddFaceImageTemplateRequest.h create mode 100644 facebody/include/alibabacloud/facebody/model/AddFaceImageTemplateResult.h create mode 100644 facebody/include/alibabacloud/facebody/model/AddFaceRequest.h create mode 100644 facebody/include/alibabacloud/facebody/model/AddFaceResult.h create mode 100644 facebody/include/alibabacloud/facebody/model/BlurFaceRequest.h create mode 100644 facebody/include/alibabacloud/facebody/model/BlurFaceResult.h create mode 100644 facebody/include/alibabacloud/facebody/model/BodyPostureRequest.h create mode 100644 facebody/include/alibabacloud/facebody/model/BodyPostureResult.h create mode 100644 facebody/include/alibabacloud/facebody/model/CompareFaceRequest.h create mode 100644 facebody/include/alibabacloud/facebody/model/CompareFaceResult.h create mode 100644 facebody/include/alibabacloud/facebody/model/CountCrowdRequest.h create mode 100644 facebody/include/alibabacloud/facebody/model/CountCrowdResult.h create mode 100644 facebody/include/alibabacloud/facebody/model/CreateBodyDbRequest.h create mode 100644 facebody/include/alibabacloud/facebody/model/CreateBodyDbResult.h create mode 100644 facebody/include/alibabacloud/facebody/model/CreateBodyPersonRequest.h create mode 100644 facebody/include/alibabacloud/facebody/model/CreateBodyPersonResult.h create mode 100644 facebody/include/alibabacloud/facebody/model/CreateFaceDbRequest.h create mode 100644 facebody/include/alibabacloud/facebody/model/CreateFaceDbResult.h create mode 100644 facebody/include/alibabacloud/facebody/model/DeleteBodyDbRequest.h create mode 100644 facebody/include/alibabacloud/facebody/model/DeleteBodyDbResult.h create mode 100644 facebody/include/alibabacloud/facebody/model/DeleteBodyPersonRequest.h create mode 100644 facebody/include/alibabacloud/facebody/model/DeleteBodyPersonResult.h create mode 100644 facebody/include/alibabacloud/facebody/model/DeleteFaceDbRequest.h create mode 100644 facebody/include/alibabacloud/facebody/model/DeleteFaceDbResult.h create mode 100644 facebody/include/alibabacloud/facebody/model/DeleteFaceEntityRequest.h create mode 100644 facebody/include/alibabacloud/facebody/model/DeleteFaceEntityResult.h create mode 100644 facebody/include/alibabacloud/facebody/model/DeleteFaceImageTemplateRequest.h create mode 100644 facebody/include/alibabacloud/facebody/model/DeleteFaceImageTemplateResult.h create mode 100644 facebody/include/alibabacloud/facebody/model/DeleteFaceRequest.h create mode 100644 facebody/include/alibabacloud/facebody/model/DeleteFaceResult.h create mode 100644 facebody/include/alibabacloud/facebody/model/DetectBodyCountRequest.h create mode 100644 facebody/include/alibabacloud/facebody/model/DetectBodyCountResult.h create mode 100644 facebody/include/alibabacloud/facebody/model/DetectCelebrityRequest.h create mode 100644 facebody/include/alibabacloud/facebody/model/DetectCelebrityResult.h create mode 100644 facebody/include/alibabacloud/facebody/model/DetectChefCapRequest.h create mode 100644 facebody/include/alibabacloud/facebody/model/DetectChefCapResult.h create mode 100644 facebody/include/alibabacloud/facebody/model/DetectFaceRequest.h create mode 100644 facebody/include/alibabacloud/facebody/model/DetectFaceResult.h create mode 100644 facebody/include/alibabacloud/facebody/model/DetectIPCPedestrianRequest.h create mode 100644 facebody/include/alibabacloud/facebody/model/DetectIPCPedestrianResult.h create mode 100644 facebody/include/alibabacloud/facebody/model/DetectLivingFaceRequest.h create mode 100644 facebody/include/alibabacloud/facebody/model/DetectLivingFaceResult.h create mode 100644 facebody/include/alibabacloud/facebody/model/DetectMaskRequest.h create mode 100644 facebody/include/alibabacloud/facebody/model/DetectMaskResult.h create mode 100644 facebody/include/alibabacloud/facebody/model/DetectPedestrianIntrusionRequest.h create mode 100644 facebody/include/alibabacloud/facebody/model/DetectPedestrianIntrusionResult.h create mode 100644 facebody/include/alibabacloud/facebody/model/DetectPedestrianRequest.h create mode 100644 facebody/include/alibabacloud/facebody/model/DetectPedestrianResult.h create mode 100644 facebody/include/alibabacloud/facebody/model/DetectVideoLivingFaceRequest.h create mode 100644 facebody/include/alibabacloud/facebody/model/DetectVideoLivingFaceResult.h create mode 100644 facebody/include/alibabacloud/facebody/model/EnhanceFaceRequest.h create mode 100644 facebody/include/alibabacloud/facebody/model/EnhanceFaceResult.h create mode 100644 facebody/include/alibabacloud/facebody/model/ExtractPedestrianFeatureAttrRequest.h create mode 100644 facebody/include/alibabacloud/facebody/model/ExtractPedestrianFeatureAttrResult.h create mode 100644 facebody/include/alibabacloud/facebody/model/ExtractPedestrianFeatureAttributeRequest.h create mode 100644 facebody/include/alibabacloud/facebody/model/ExtractPedestrianFeatureAttributeResult.h create mode 100644 facebody/include/alibabacloud/facebody/model/FaceBeautyRequest.h create mode 100644 facebody/include/alibabacloud/facebody/model/FaceBeautyResult.h create mode 100644 facebody/include/alibabacloud/facebody/model/FaceFilterRequest.h create mode 100644 facebody/include/alibabacloud/facebody/model/FaceFilterResult.h create mode 100644 facebody/include/alibabacloud/facebody/model/FaceMakeupRequest.h create mode 100644 facebody/include/alibabacloud/facebody/model/FaceMakeupResult.h create mode 100644 facebody/include/alibabacloud/facebody/model/FaceTidyupRequest.h create mode 100644 facebody/include/alibabacloud/facebody/model/FaceTidyupResult.h create mode 100644 facebody/include/alibabacloud/facebody/model/GenRealPersonVerificationTokenRequest.h create mode 100644 facebody/include/alibabacloud/facebody/model/GenRealPersonVerificationTokenResult.h create mode 100644 facebody/include/alibabacloud/facebody/model/GenerateHumanAnimeStyleRequest.h create mode 100644 facebody/include/alibabacloud/facebody/model/GenerateHumanAnimeStyleResult.h create mode 100644 facebody/include/alibabacloud/facebody/model/GenerateHumanSketchStyleRequest.h create mode 100644 facebody/include/alibabacloud/facebody/model/GenerateHumanSketchStyleResult.h create mode 100644 facebody/include/alibabacloud/facebody/model/GetBodyPersonRequest.h create mode 100644 facebody/include/alibabacloud/facebody/model/GetBodyPersonResult.h create mode 100644 facebody/include/alibabacloud/facebody/model/GetFaceEntityRequest.h create mode 100644 facebody/include/alibabacloud/facebody/model/GetFaceEntityResult.h create mode 100644 facebody/include/alibabacloud/facebody/model/GetRealPersonVerificationResultRequest.h create mode 100644 facebody/include/alibabacloud/facebody/model/GetRealPersonVerificationResultResult.h create mode 100644 facebody/include/alibabacloud/facebody/model/HandPostureRequest.h create mode 100644 facebody/include/alibabacloud/facebody/model/HandPostureResult.h create mode 100644 facebody/include/alibabacloud/facebody/model/ListBodyDbsRequest.h create mode 100644 facebody/include/alibabacloud/facebody/model/ListBodyDbsResult.h create mode 100644 facebody/include/alibabacloud/facebody/model/ListBodyPersonRequest.h create mode 100644 facebody/include/alibabacloud/facebody/model/ListBodyPersonResult.h create mode 100644 facebody/include/alibabacloud/facebody/model/ListFaceDbsRequest.h create mode 100644 facebody/include/alibabacloud/facebody/model/ListFaceDbsResult.h create mode 100644 facebody/include/alibabacloud/facebody/model/ListFaceEntitiesRequest.h create mode 100644 facebody/include/alibabacloud/facebody/model/ListFaceEntitiesResult.h create mode 100644 facebody/include/alibabacloud/facebody/model/MergeImageFaceRequest.h create mode 100644 facebody/include/alibabacloud/facebody/model/MergeImageFaceResult.h create mode 100644 facebody/include/alibabacloud/facebody/model/PedestrianDetectAttributeRequest.h create mode 100644 facebody/include/alibabacloud/facebody/model/PedestrianDetectAttributeResult.h create mode 100644 facebody/include/alibabacloud/facebody/model/QueryFaceImageTemplateRequest.h create mode 100644 facebody/include/alibabacloud/facebody/model/QueryFaceImageTemplateResult.h create mode 100644 facebody/include/alibabacloud/facebody/model/RecognizeActionRequest.h create mode 100644 facebody/include/alibabacloud/facebody/model/RecognizeActionResult.h create mode 100644 facebody/include/alibabacloud/facebody/model/RecognizeExpressionRequest.h create mode 100644 facebody/include/alibabacloud/facebody/model/RecognizeExpressionResult.h create mode 100644 facebody/include/alibabacloud/facebody/model/RecognizeFaceRequest.h create mode 100644 facebody/include/alibabacloud/facebody/model/RecognizeFaceResult.h create mode 100644 facebody/include/alibabacloud/facebody/model/RecognizePublicFaceRequest.h create mode 100644 facebody/include/alibabacloud/facebody/model/RecognizePublicFaceResult.h create mode 100644 facebody/include/alibabacloud/facebody/model/SearchBodyTraceRequest.h create mode 100644 facebody/include/alibabacloud/facebody/model/SearchBodyTraceResult.h create mode 100644 facebody/include/alibabacloud/facebody/model/SearchFaceRequest.h create mode 100644 facebody/include/alibabacloud/facebody/model/SearchFaceResult.h create mode 100644 facebody/include/alibabacloud/facebody/model/SwapFacialFeaturesRequest.h create mode 100644 facebody/include/alibabacloud/facebody/model/SwapFacialFeaturesResult.h create mode 100644 facebody/include/alibabacloud/facebody/model/UpdateFaceEntityRequest.h create mode 100644 facebody/include/alibabacloud/facebody/model/UpdateFaceEntityResult.h create mode 100644 facebody/include/alibabacloud/facebody/model/VerifyFaceMaskRequest.h create mode 100644 facebody/include/alibabacloud/facebody/model/VerifyFaceMaskResult.h create mode 100644 facebody/src/model/AddBodyTraceRequest.cc create mode 100644 facebody/src/model/AddBodyTraceResult.cc create mode 100644 facebody/src/model/AddFaceEntityRequest.cc create mode 100644 facebody/src/model/AddFaceEntityResult.cc create mode 100644 facebody/src/model/AddFaceImageTemplateRequest.cc create mode 100644 facebody/src/model/AddFaceImageTemplateResult.cc create mode 100644 facebody/src/model/AddFaceRequest.cc create mode 100644 facebody/src/model/AddFaceResult.cc create mode 100644 facebody/src/model/BlurFaceRequest.cc create mode 100644 facebody/src/model/BlurFaceResult.cc create mode 100644 facebody/src/model/BodyPostureRequest.cc create mode 100644 facebody/src/model/BodyPostureResult.cc create mode 100644 facebody/src/model/CompareFaceRequest.cc create mode 100644 facebody/src/model/CompareFaceResult.cc create mode 100644 facebody/src/model/CountCrowdRequest.cc create mode 100644 facebody/src/model/CountCrowdResult.cc create mode 100644 facebody/src/model/CreateBodyDbRequest.cc create mode 100644 facebody/src/model/CreateBodyDbResult.cc create mode 100644 facebody/src/model/CreateBodyPersonRequest.cc create mode 100644 facebody/src/model/CreateBodyPersonResult.cc create mode 100644 facebody/src/model/CreateFaceDbRequest.cc create mode 100644 facebody/src/model/CreateFaceDbResult.cc create mode 100644 facebody/src/model/DeleteBodyDbRequest.cc create mode 100644 facebody/src/model/DeleteBodyDbResult.cc create mode 100644 facebody/src/model/DeleteBodyPersonRequest.cc create mode 100644 facebody/src/model/DeleteBodyPersonResult.cc create mode 100644 facebody/src/model/DeleteFaceDbRequest.cc create mode 100644 facebody/src/model/DeleteFaceDbResult.cc create mode 100644 facebody/src/model/DeleteFaceEntityRequest.cc create mode 100644 facebody/src/model/DeleteFaceEntityResult.cc create mode 100644 facebody/src/model/DeleteFaceImageTemplateRequest.cc create mode 100644 facebody/src/model/DeleteFaceImageTemplateResult.cc create mode 100644 facebody/src/model/DeleteFaceRequest.cc create mode 100644 facebody/src/model/DeleteFaceResult.cc create mode 100644 facebody/src/model/DetectBodyCountRequest.cc create mode 100644 facebody/src/model/DetectBodyCountResult.cc create mode 100644 facebody/src/model/DetectCelebrityRequest.cc create mode 100644 facebody/src/model/DetectCelebrityResult.cc create mode 100644 facebody/src/model/DetectChefCapRequest.cc create mode 100644 facebody/src/model/DetectChefCapResult.cc create mode 100644 facebody/src/model/DetectFaceRequest.cc create mode 100644 facebody/src/model/DetectFaceResult.cc create mode 100644 facebody/src/model/DetectIPCPedestrianRequest.cc create mode 100644 facebody/src/model/DetectIPCPedestrianResult.cc create mode 100644 facebody/src/model/DetectLivingFaceRequest.cc create mode 100644 facebody/src/model/DetectLivingFaceResult.cc create mode 100644 facebody/src/model/DetectMaskRequest.cc create mode 100644 facebody/src/model/DetectMaskResult.cc create mode 100644 facebody/src/model/DetectPedestrianIntrusionRequest.cc create mode 100644 facebody/src/model/DetectPedestrianIntrusionResult.cc create mode 100644 facebody/src/model/DetectPedestrianRequest.cc create mode 100644 facebody/src/model/DetectPedestrianResult.cc create mode 100644 facebody/src/model/DetectVideoLivingFaceRequest.cc create mode 100644 facebody/src/model/DetectVideoLivingFaceResult.cc create mode 100644 facebody/src/model/EnhanceFaceRequest.cc create mode 100644 facebody/src/model/EnhanceFaceResult.cc create mode 100644 facebody/src/model/ExtractPedestrianFeatureAttrRequest.cc create mode 100644 facebody/src/model/ExtractPedestrianFeatureAttrResult.cc create mode 100644 facebody/src/model/ExtractPedestrianFeatureAttributeRequest.cc create mode 100644 facebody/src/model/ExtractPedestrianFeatureAttributeResult.cc create mode 100644 facebody/src/model/FaceBeautyRequest.cc create mode 100644 facebody/src/model/FaceBeautyResult.cc create mode 100644 facebody/src/model/FaceFilterRequest.cc create mode 100644 facebody/src/model/FaceFilterResult.cc create mode 100644 facebody/src/model/FaceMakeupRequest.cc create mode 100644 facebody/src/model/FaceMakeupResult.cc create mode 100644 facebody/src/model/FaceTidyupRequest.cc create mode 100644 facebody/src/model/FaceTidyupResult.cc create mode 100644 facebody/src/model/GenRealPersonVerificationTokenRequest.cc create mode 100644 facebody/src/model/GenRealPersonVerificationTokenResult.cc create mode 100644 facebody/src/model/GenerateHumanAnimeStyleRequest.cc create mode 100644 facebody/src/model/GenerateHumanAnimeStyleResult.cc create mode 100644 facebody/src/model/GenerateHumanSketchStyleRequest.cc create mode 100644 facebody/src/model/GenerateHumanSketchStyleResult.cc create mode 100644 facebody/src/model/GetBodyPersonRequest.cc create mode 100644 facebody/src/model/GetBodyPersonResult.cc create mode 100644 facebody/src/model/GetFaceEntityRequest.cc create mode 100644 facebody/src/model/GetFaceEntityResult.cc create mode 100644 facebody/src/model/GetRealPersonVerificationResultRequest.cc create mode 100644 facebody/src/model/GetRealPersonVerificationResultResult.cc create mode 100644 facebody/src/model/HandPostureRequest.cc create mode 100644 facebody/src/model/HandPostureResult.cc create mode 100644 facebody/src/model/ListBodyDbsRequest.cc create mode 100644 facebody/src/model/ListBodyDbsResult.cc create mode 100644 facebody/src/model/ListBodyPersonRequest.cc create mode 100644 facebody/src/model/ListBodyPersonResult.cc create mode 100644 facebody/src/model/ListFaceDbsRequest.cc create mode 100644 facebody/src/model/ListFaceDbsResult.cc create mode 100644 facebody/src/model/ListFaceEntitiesRequest.cc create mode 100644 facebody/src/model/ListFaceEntitiesResult.cc create mode 100644 facebody/src/model/MergeImageFaceRequest.cc create mode 100644 facebody/src/model/MergeImageFaceResult.cc create mode 100644 facebody/src/model/PedestrianDetectAttributeRequest.cc create mode 100644 facebody/src/model/PedestrianDetectAttributeResult.cc create mode 100644 facebody/src/model/QueryFaceImageTemplateRequest.cc create mode 100644 facebody/src/model/QueryFaceImageTemplateResult.cc create mode 100644 facebody/src/model/RecognizeActionRequest.cc create mode 100644 facebody/src/model/RecognizeActionResult.cc create mode 100644 facebody/src/model/RecognizeExpressionRequest.cc create mode 100644 facebody/src/model/RecognizeExpressionResult.cc create mode 100644 facebody/src/model/RecognizeFaceRequest.cc create mode 100644 facebody/src/model/RecognizeFaceResult.cc create mode 100644 facebody/src/model/RecognizePublicFaceRequest.cc create mode 100644 facebody/src/model/RecognizePublicFaceResult.cc create mode 100644 facebody/src/model/SearchBodyTraceRequest.cc create mode 100644 facebody/src/model/SearchBodyTraceResult.cc create mode 100644 facebody/src/model/SearchFaceRequest.cc create mode 100644 facebody/src/model/SearchFaceResult.cc create mode 100644 facebody/src/model/SwapFacialFeaturesRequest.cc create mode 100644 facebody/src/model/SwapFacialFeaturesResult.cc create mode 100644 facebody/src/model/UpdateFaceEntityRequest.cc create mode 100644 facebody/src/model/UpdateFaceEntityResult.cc create mode 100644 facebody/src/model/VerifyFaceMaskRequest.cc create mode 100644 facebody/src/model/VerifyFaceMaskResult.cc diff --git a/CHANGELOG b/CHANGELOG index e30e4dc94..d1aa44ecb 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 - Add. diff --git a/facebody/CMakeLists.txt b/facebody/CMakeLists.txt index cc1ba6b50..1c25c6dcd 100644 --- a/facebody/CMakeLists.txt +++ b/facebody/CMakeLists.txt @@ -21,17 +21,245 @@ 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/AddFaceImageTemplateRequest.h + include/alibabacloud/facebody/model/AddFaceImageTemplateResult.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/DeleteFaceImageTemplateRequest.h + include/alibabacloud/facebody/model/DeleteFaceImageTemplateResult.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/DetectIPCPedestrianOptimizedRequest.h include/alibabacloud/facebody/model/DetectIPCPedestrianOptimizedResult.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/ExecuteServerSideVerificationRequest.h - include/alibabacloud/facebody/model/ExecuteServerSideVerificationResult.h ) + include/alibabacloud/facebody/model/ExecuteServerSideVerificationResult.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/GenerateHumanSketchStyleRequest.h + include/alibabacloud/facebody/model/GenerateHumanSketchStyleResult.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/MergeImageFaceRequest.h + include/alibabacloud/facebody/model/MergeImageFaceResult.h + include/alibabacloud/facebody/model/PedestrianDetectAttributeRequest.h + include/alibabacloud/facebody/model/PedestrianDetectAttributeResult.h + include/alibabacloud/facebody/model/QueryFaceImageTemplateRequest.h + include/alibabacloud/facebody/model/QueryFaceImageTemplateResult.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 ) 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/AddFaceImageTemplateRequest.cc + src/model/AddFaceImageTemplateResult.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/DeleteFaceImageTemplateRequest.cc + src/model/DeleteFaceImageTemplateResult.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/DetectIPCPedestrianOptimizedRequest.cc src/model/DetectIPCPedestrianOptimizedResult.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/ExecuteServerSideVerificationRequest.cc - src/model/ExecuteServerSideVerificationResult.cc ) + src/model/ExecuteServerSideVerificationResult.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/GenerateHumanSketchStyleRequest.cc + src/model/GenerateHumanSketchStyleResult.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/MergeImageFaceRequest.cc + src/model/MergeImageFaceResult.cc + src/model/PedestrianDetectAttributeRequest.cc + src/model/PedestrianDetectAttributeResult.cc + src/model/QueryFaceImageTemplateRequest.cc + src/model/QueryFaceImageTemplateResult.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 ) 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 d2917548d..d6a7d2f40 100644 --- a/facebody/include/alibabacloud/facebody/FacebodyClient.h +++ b/facebody/include/alibabacloud/facebody/FacebodyClient.h @@ -22,10 +22,124 @@ #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/AddFaceImageTemplateRequest.h" +#include "model/AddFaceImageTemplateResult.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/DeleteFaceImageTemplateRequest.h" +#include "model/DeleteFaceImageTemplateResult.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/DetectIPCPedestrianOptimizedRequest.h" #include "model/DetectIPCPedestrianOptimizedResult.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/ExecuteServerSideVerificationRequest.h" #include "model/ExecuteServerSideVerificationResult.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/GenerateHumanSketchStyleRequest.h" +#include "model/GenerateHumanSketchStyleResult.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/MergeImageFaceRequest.h" +#include "model/MergeImageFaceResult.h" +#include "model/PedestrianDetectAttributeRequest.h" +#include "model/PedestrianDetectAttributeResult.h" +#include "model/QueryFaceImageTemplateRequest.h" +#include "model/QueryFaceImageTemplateResult.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" namespace AlibabaCloud @@ -35,23 +149,365 @@ namespace AlibabaCloud 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 AddFaceImageTemplateOutcome; + typedef std::future AddFaceImageTemplateOutcomeCallable; + typedef std::function&)> AddFaceImageTemplateAsyncHandler; + 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 DeleteFaceImageTemplateOutcome; + typedef std::future DeleteFaceImageTemplateOutcomeCallable; + typedef std::function&)> DeleteFaceImageTemplateAsyncHandler; + 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 DetectIPCPedestrianOptimizedOutcome; typedef std::future DetectIPCPedestrianOptimizedOutcomeCallable; typedef std::function&)> DetectIPCPedestrianOptimizedAsyncHandler; + 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 ExecuteServerSideVerificationOutcome; typedef std::future ExecuteServerSideVerificationOutcomeCallable; typedef std::function&)> ExecuteServerSideVerificationAsyncHandler; + 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 GenerateHumanSketchStyleOutcome; + typedef std::future GenerateHumanSketchStyleOutcomeCallable; + typedef std::function&)> GenerateHumanSketchStyleAsyncHandler; + 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 MergeImageFaceOutcome; + typedef std::future MergeImageFaceOutcomeCallable; + typedef std::function&)> MergeImageFaceAsyncHandler; + typedef Outcome PedestrianDetectAttributeOutcome; + typedef std::future PedestrianDetectAttributeOutcomeCallable; + typedef std::function&)> PedestrianDetectAttributeAsyncHandler; + typedef Outcome QueryFaceImageTemplateOutcome; + typedef std::future QueryFaceImageTemplateOutcomeCallable; + typedef std::function&)> QueryFaceImageTemplateAsyncHandler; + 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; 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; + AddFaceImageTemplateOutcome addFaceImageTemplate(const Model::AddFaceImageTemplateRequest &request)const; + void addFaceImageTemplateAsync(const Model::AddFaceImageTemplateRequest& request, const AddFaceImageTemplateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddFaceImageTemplateOutcomeCallable addFaceImageTemplateCallable(const Model::AddFaceImageTemplateRequest& 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; + DeleteFaceImageTemplateOutcome deleteFaceImageTemplate(const Model::DeleteFaceImageTemplateRequest &request)const; + void deleteFaceImageTemplateAsync(const Model::DeleteFaceImageTemplateRequest& request, const DeleteFaceImageTemplateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteFaceImageTemplateOutcomeCallable deleteFaceImageTemplateCallable(const Model::DeleteFaceImageTemplateRequest& 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; 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; + 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; 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; + 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; + GenerateHumanSketchStyleOutcome generateHumanSketchStyle(const Model::GenerateHumanSketchStyleRequest &request)const; + void generateHumanSketchStyleAsync(const Model::GenerateHumanSketchStyleRequest& request, const GenerateHumanSketchStyleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GenerateHumanSketchStyleOutcomeCallable generateHumanSketchStyleCallable(const Model::GenerateHumanSketchStyleRequest& 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; + MergeImageFaceOutcome mergeImageFace(const Model::MergeImageFaceRequest &request)const; + void mergeImageFaceAsync(const Model::MergeImageFaceRequest& request, const MergeImageFaceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + MergeImageFaceOutcomeCallable mergeImageFaceCallable(const Model::MergeImageFaceRequest& 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; + QueryFaceImageTemplateOutcome queryFaceImageTemplate(const Model::QueryFaceImageTemplateRequest &request)const; + void queryFaceImageTemplateAsync(const Model::QueryFaceImageTemplateRequest& request, const QueryFaceImageTemplateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryFaceImageTemplateOutcomeCallable queryFaceImageTemplateCallable(const Model::QueryFaceImageTemplateRequest& 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; private: std::shared_ptr endpointProvider_; diff --git a/facebody/include/alibabacloud/facebody/model/AddBodyTraceRequest.h b/facebody/include/alibabacloud/facebody/model/AddBodyTraceRequest.h new file mode 100644 index 000000000..984c524ea --- /dev/null +++ b/facebody/include/alibabacloud/facebody/model/AddBodyTraceRequest.h @@ -0,0 +1,57 @@ +/* + * 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 new file mode 100644 index 000000000..379b45cc2 --- /dev/null +++ b/facebody/include/alibabacloud/facebody/model/AddBodyTraceResult.h @@ -0,0 +1,59 @@ +/* + * 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 new file mode 100644 index 000000000..dc7145b16 --- /dev/null +++ b/facebody/include/alibabacloud/facebody/model/AddFaceEntityRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_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 new file mode 100644 index 000000000..2de7041af --- /dev/null +++ b/facebody/include/alibabacloud/facebody/model/AddFaceEntityResult.h @@ -0,0 +1,49 @@ +/* + * 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/AddFaceImageTemplateRequest.h b/facebody/include/alibabacloud/facebody/model/AddFaceImageTemplateRequest.h new file mode 100644 index 000000000..761960831 --- /dev/null +++ b/facebody/include/alibabacloud/facebody/model/AddFaceImageTemplateRequest.h @@ -0,0 +1,51 @@ +/* + * 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_ADDFACEIMAGETEMPLATEREQUEST_H_ +#define ALIBABACLOUD_FACEBODY_MODEL_ADDFACEIMAGETEMPLATEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Facebody + { + namespace Model + { + class ALIBABACLOUD_FACEBODY_EXPORT AddFaceImageTemplateRequest : public RpcServiceRequest + { + + public: + AddFaceImageTemplateRequest(); + ~AddFaceImageTemplateRequest(); + + std::string getUserId()const; + void setUserId(const std::string& userId); + std::string getImageURL()const; + void setImageURL(const std::string& imageURL); + + private: + std::string userId_; + std::string imageURL_; + + }; + } + } +} +#endif // !ALIBABACLOUD_FACEBODY_MODEL_ADDFACEIMAGETEMPLATEREQUEST_H_ \ No newline at end of file diff --git a/facebody/include/alibabacloud/facebody/model/AddFaceImageTemplateResult.h b/facebody/include/alibabacloud/facebody/model/AddFaceImageTemplateResult.h new file mode 100644 index 000000000..f08f17b77 --- /dev/null +++ b/facebody/include/alibabacloud/facebody/model/AddFaceImageTemplateResult.h @@ -0,0 +1,59 @@ +/* + * 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_ADDFACEIMAGETEMPLATERESULT_H_ +#define ALIBABACLOUD_FACEBODY_MODEL_ADDFACEIMAGETEMPLATERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Facebody + { + namespace Model + { + class ALIBABACLOUD_FACEBODY_EXPORT AddFaceImageTemplateResult : public ServiceResult + { + public: + struct Data + { + std::string templateId; + }; + + + AddFaceImageTemplateResult(); + explicit AddFaceImageTemplateResult(const std::string &payload); + ~AddFaceImageTemplateResult(); + 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_ADDFACEIMAGETEMPLATERESULT_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 new file mode 100644 index 000000000..912cd48f2 --- /dev/null +++ b/facebody/include/alibabacloud/facebody/model/AddFaceRequest.h @@ -0,0 +1,57 @@ +/* + * 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 new file mode 100644 index 000000000..f225d899c --- /dev/null +++ b/facebody/include/alibabacloud/facebody/model/AddFaceResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_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 new file mode 100644 index 000000000..17aad411b --- /dev/null +++ b/facebody/include/alibabacloud/facebody/model/BlurFaceRequest.h @@ -0,0 +1,48 @@ +/* + * 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 new file mode 100644 index 000000000..2811079b2 --- /dev/null +++ b/facebody/include/alibabacloud/facebody/model/BlurFaceResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_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 new file mode 100644 index 000000000..acedecd6a --- /dev/null +++ b/facebody/include/alibabacloud/facebody/model/BodyPostureRequest.h @@ -0,0 +1,48 @@ +/* + * 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 new file mode 100644 index 000000000..4a542b346 --- /dev/null +++ b/facebody/include/alibabacloud/facebody/model/BodyPostureResult.h @@ -0,0 +1,80 @@ +/* + * 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 new file mode 100644 index 000000000..833920920 --- /dev/null +++ b/facebody/include/alibabacloud/facebody/model/CompareFaceRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_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(); + + std::string getImageURLB()const; + void setImageURLB(const std::string& imageURLB); + std::string getImageURLA()const; + void setImageURLA(const std::string& imageURLA); + int getImageType()const; + void setImageType(int imageType); + + private: + std::string imageURLB_; + std::string imageURLA_; + int imageType_; + + }; + } + } +} +#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 new file mode 100644 index 000000000..3d5c5b599 --- /dev/null +++ b/facebody/include/alibabacloud/facebody/model/CompareFaceResult.h @@ -0,0 +1,58 @@ +/* + * 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 new file mode 100644 index 000000000..4f8bec434 --- /dev/null +++ b/facebody/include/alibabacloud/facebody/model/CountCrowdRequest.h @@ -0,0 +1,51 @@ +/* + * 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 new file mode 100644 index 000000000..3969a893b --- /dev/null +++ b/facebody/include/alibabacloud/facebody/model/CountCrowdResult.h @@ -0,0 +1,56 @@ +/* + * 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 new file mode 100644 index 000000000..7f13c0470 --- /dev/null +++ b/facebody/include/alibabacloud/facebody/model/CreateBodyDbRequest.h @@ -0,0 +1,48 @@ +/* + * 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/CreateBodyDbResult.h b/facebody/include/alibabacloud/facebody/model/CreateBodyDbResult.h new file mode 100644 index 000000000..aebf1901e --- /dev/null +++ b/facebody/include/alibabacloud/facebody/model/CreateBodyDbResult.h @@ -0,0 +1,59 @@ +/* + * 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_CREATEBODYDBRESULT_H_ +#define ALIBABACLOUD_FACEBODY_MODEL_CREATEBODYDBRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Facebody + { + namespace Model + { + class ALIBABACLOUD_FACEBODY_EXPORT CreateBodyDbResult : public ServiceResult + { + public: + struct Data + { + long id; + }; + + + CreateBodyDbResult(); + explicit CreateBodyDbResult(const std::string &payload); + ~CreateBodyDbResult(); + 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_CREATEBODYDBRESULT_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 new file mode 100644 index 000000000..1393af362 --- /dev/null +++ b/facebody/include/alibabacloud/facebody/model/CreateBodyPersonRequest.h @@ -0,0 +1,51 @@ +/* + * 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 new file mode 100644 index 000000000..0e396fff0 --- /dev/null +++ b/facebody/include/alibabacloud/facebody/model/CreateBodyPersonResult.h @@ -0,0 +1,59 @@ +/* + * 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 new file mode 100644 index 000000000..386b64e85 --- /dev/null +++ b/facebody/include/alibabacloud/facebody/model/CreateFaceDbRequest.h @@ -0,0 +1,48 @@ +/* + * 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 new file mode 100644 index 000000000..21ede79a8 --- /dev/null +++ b/facebody/include/alibabacloud/facebody/model/CreateFaceDbResult.h @@ -0,0 +1,49 @@ +/* + * 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 new file mode 100644 index 000000000..a2cf9830e --- /dev/null +++ b/facebody/include/alibabacloud/facebody/model/DeleteBodyDbRequest.h @@ -0,0 +1,48 @@ +/* + * 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 new file mode 100644 index 000000000..8816f81fb --- /dev/null +++ b/facebody/include/alibabacloud/facebody/model/DeleteBodyDbResult.h @@ -0,0 +1,53 @@ +/* + * 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 new file mode 100644 index 000000000..ec6e444e3 --- /dev/null +++ b/facebody/include/alibabacloud/facebody/model/DeleteBodyPersonRequest.h @@ -0,0 +1,51 @@ +/* + * 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 new file mode 100644 index 000000000..1cb38afd5 --- /dev/null +++ b/facebody/include/alibabacloud/facebody/model/DeleteBodyPersonResult.h @@ -0,0 +1,53 @@ +/* + * 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 new file mode 100644 index 000000000..150abfafd --- /dev/null +++ b/facebody/include/alibabacloud/facebody/model/DeleteFaceDbRequest.h @@ -0,0 +1,48 @@ +/* + * 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 new file mode 100644 index 000000000..913e6a3e2 --- /dev/null +++ b/facebody/include/alibabacloud/facebody/model/DeleteFaceDbResult.h @@ -0,0 +1,49 @@ +/* + * 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 new file mode 100644 index 000000000..95ccb61bd --- /dev/null +++ b/facebody/include/alibabacloud/facebody/model/DeleteFaceEntityRequest.h @@ -0,0 +1,51 @@ +/* + * 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 new file mode 100644 index 000000000..d1b1a7f94 --- /dev/null +++ b/facebody/include/alibabacloud/facebody/model/DeleteFaceEntityResult.h @@ -0,0 +1,49 @@ +/* + * 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/DeleteFaceImageTemplateRequest.h b/facebody/include/alibabacloud/facebody/model/DeleteFaceImageTemplateRequest.h new file mode 100644 index 000000000..cba436ef5 --- /dev/null +++ b/facebody/include/alibabacloud/facebody/model/DeleteFaceImageTemplateRequest.h @@ -0,0 +1,51 @@ +/* + * 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_DELETEFACEIMAGETEMPLATEREQUEST_H_ +#define ALIBABACLOUD_FACEBODY_MODEL_DELETEFACEIMAGETEMPLATEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Facebody + { + namespace Model + { + class ALIBABACLOUD_FACEBODY_EXPORT DeleteFaceImageTemplateRequest : public RpcServiceRequest + { + + public: + DeleteFaceImageTemplateRequest(); + ~DeleteFaceImageTemplateRequest(); + + std::string getUserId()const; + void setUserId(const std::string& userId); + std::string getTemplateId()const; + void setTemplateId(const std::string& templateId); + + private: + std::string userId_; + std::string templateId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_FACEBODY_MODEL_DELETEFACEIMAGETEMPLATEREQUEST_H_ \ No newline at end of file diff --git a/facebody/include/alibabacloud/facebody/model/DeleteFaceImageTemplateResult.h b/facebody/include/alibabacloud/facebody/model/DeleteFaceImageTemplateResult.h new file mode 100644 index 000000000..c186d513a --- /dev/null +++ b/facebody/include/alibabacloud/facebody/model/DeleteFaceImageTemplateResult.h @@ -0,0 +1,53 @@ +/* + * 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_DELETEFACEIMAGETEMPLATERESULT_H_ +#define ALIBABACLOUD_FACEBODY_MODEL_DELETEFACEIMAGETEMPLATERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Facebody + { + namespace Model + { + class ALIBABACLOUD_FACEBODY_EXPORT DeleteFaceImageTemplateResult : public ServiceResult + { + public: + + + DeleteFaceImageTemplateResult(); + explicit DeleteFaceImageTemplateResult(const std::string &payload); + ~DeleteFaceImageTemplateResult(); + 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_DELETEFACEIMAGETEMPLATERESULT_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 new file mode 100644 index 000000000..669706c59 --- /dev/null +++ b/facebody/include/alibabacloud/facebody/model/DeleteFaceRequest.h @@ -0,0 +1,51 @@ +/* + * 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 new file mode 100644 index 000000000..d55265618 --- /dev/null +++ b/facebody/include/alibabacloud/facebody/model/DeleteFaceResult.h @@ -0,0 +1,49 @@ +/* + * 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 new file mode 100644 index 000000000..7a7f97ff7 --- /dev/null +++ b/facebody/include/alibabacloud/facebody/model/DetectBodyCountRequest.h @@ -0,0 +1,48 @@ +/* + * 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 new file mode 100644 index 000000000..9fd3d0607 --- /dev/null +++ b/facebody/include/alibabacloud/facebody/model/DetectBodyCountResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_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 new file mode 100644 index 000000000..5b6ba4759 --- /dev/null +++ b/facebody/include/alibabacloud/facebody/model/DetectCelebrityRequest.h @@ -0,0 +1,48 @@ +/* + * 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 new file mode 100644 index 000000000..93ba3fabe --- /dev/null +++ b/facebody/include/alibabacloud/facebody/model/DetectCelebrityResult.h @@ -0,0 +1,62 @@ +/* + * 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 new file mode 100644 index 000000000..4653ed6ba --- /dev/null +++ b/facebody/include/alibabacloud/facebody/model/DetectChefCapRequest.h @@ -0,0 +1,48 @@ +/* + * 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 new file mode 100644 index 000000000..f6cf8b047 --- /dev/null +++ b/facebody/include/alibabacloud/facebody/model/DetectChefCapResult.h @@ -0,0 +1,61 @@ +/* + * 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 new file mode 100644 index 000000000..0dabeda78 --- /dev/null +++ b/facebody/include/alibabacloud/facebody/model/DetectFaceRequest.h @@ -0,0 +1,51 @@ +/* + * 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 new file mode 100644 index 000000000..ab119f681 --- /dev/null +++ b/facebody/include/alibabacloud/facebody/model/DetectFaceResult.h @@ -0,0 +1,73 @@ +/* + * 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/DetectIPCPedestrianRequest.h b/facebody/include/alibabacloud/facebody/model/DetectIPCPedestrianRequest.h new file mode 100644 index 000000000..073b1942f --- /dev/null +++ b/facebody/include/alibabacloud/facebody/model/DetectIPCPedestrianRequest.h @@ -0,0 +1,66 @@ +/* + * 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/DetectIPCPedestrianResult.h b/facebody/include/alibabacloud/facebody/model/DetectIPCPedestrianResult.h new file mode 100644 index 000000000..a710e5089 --- /dev/null +++ b/facebody/include/alibabacloud/facebody/model/DetectIPCPedestrianResult.h @@ -0,0 +1,67 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_FACEBODY_MODEL_DETECTIPCPEDESTRIANRESULT_H_ +#define ALIBABACLOUD_FACEBODY_MODEL_DETECTIPCPEDESTRIANRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Facebody + { + namespace Model + { + class ALIBABACLOUD_FACEBODY_EXPORT DetectIPCPedestrianResult : public ServiceResult + { + public: + struct Data + { + struct ImageInfoListItem + { + struct Element + { + 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(); + Data getData()const; + + protected: + void parse(const std::string &payload); + private: + Data data_; + + }; + } + } +} +#endif // !ALIBABACLOUD_FACEBODY_MODEL_DETECTIPCPEDESTRIANRESULT_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 new file mode 100644 index 000000000..ad9d4ca6a --- /dev/null +++ b/facebody/include/alibabacloud/facebody/model/DetectLivingFaceRequest.h @@ -0,0 +1,53 @@ +/* + * 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 new file mode 100644 index 000000000..68395c810 --- /dev/null +++ b/facebody/include/alibabacloud/facebody/model/DetectLivingFaceResult.h @@ -0,0 +1,73 @@ +/* + * 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 new file mode 100644 index 000000000..35cb57adc --- /dev/null +++ b/facebody/include/alibabacloud/facebody/model/DetectMaskRequest.h @@ -0,0 +1,48 @@ +/* + * 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 new file mode 100644 index 000000000..0e04fc6b5 --- /dev/null +++ b/facebody/include/alibabacloud/facebody/model/DetectMaskResult.h @@ -0,0 +1,56 @@ +/* + * 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 new file mode 100644 index 000000000..45bdd9246 --- /dev/null +++ b/facebody/include/alibabacloud/facebody/model/DetectPedestrianIntrusionRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_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 new file mode 100644 index 000000000..346c76ec2 --- /dev/null +++ b/facebody/include/alibabacloud/facebody/model/DetectPedestrianIntrusionResult.h @@ -0,0 +1,76 @@ +/* + * 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 new file mode 100644 index 000000000..35815ed76 --- /dev/null +++ b/facebody/include/alibabacloud/facebody/model/DetectPedestrianRequest.h @@ -0,0 +1,48 @@ +/* + * 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 new file mode 100644 index 000000000..90b688b41 --- /dev/null +++ b/facebody/include/alibabacloud/facebody/model/DetectPedestrianResult.h @@ -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. + */ + +#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 new file mode 100644 index 000000000..b806325bb --- /dev/null +++ b/facebody/include/alibabacloud/facebody/model/DetectVideoLivingFaceRequest.h @@ -0,0 +1,48 @@ +/* + * 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 new file mode 100644 index 000000000..1fea3897a --- /dev/null +++ b/facebody/include/alibabacloud/facebody/model/DetectVideoLivingFaceResult.h @@ -0,0 +1,61 @@ +/* + * 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 new file mode 100644 index 000000000..c3f336a39 --- /dev/null +++ b/facebody/include/alibabacloud/facebody/model/EnhanceFaceRequest.h @@ -0,0 +1,48 @@ +/* + * 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 new file mode 100644 index 000000000..f15801f8a --- /dev/null +++ b/facebody/include/alibabacloud/facebody/model/EnhanceFaceResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_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/ExtractPedestrianFeatureAttrRequest.h b/facebody/include/alibabacloud/facebody/model/ExtractPedestrianFeatureAttrRequest.h new file mode 100644 index 000000000..cdcc7ba0b --- /dev/null +++ b/facebody/include/alibabacloud/facebody/model/ExtractPedestrianFeatureAttrRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_FACEBODY_MODEL_EXTRACTPEDESTRIANFEATUREATTRREQUEST_H_ +#define ALIBABACLOUD_FACEBODY_MODEL_EXTRACTPEDESTRIANFEATUREATTRREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Facebody + { + namespace Model + { + class ALIBABACLOUD_FACEBODY_EXPORT ExtractPedestrianFeatureAttrRequest : public RpcServiceRequest + { + + public: + ExtractPedestrianFeatureAttrRequest(); + ~ExtractPedestrianFeatureAttrRequest(); + + std::string getMode()const; + void setMode(const std::string& mode); + std::string getImageURL()const; + void setImageURL(const std::string& imageURL); + std::string getServiceVersion()const; + void setServiceVersion(const std::string& serviceVersion); + + private: + std::string mode_; + std::string imageURL_; + std::string serviceVersion_; + + }; + } + } +} +#endif // !ALIBABACLOUD_FACEBODY_MODEL_EXTRACTPEDESTRIANFEATUREATTRREQUEST_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 new file mode 100644 index 000000000..b4e7553e0 --- /dev/null +++ b/facebody/include/alibabacloud/facebody/model/ExtractPedestrianFeatureAttrResult.h @@ -0,0 +1,72 @@ +/* + * 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; + std::string lowerColor; + float qualityScore; + std::string gender; + std::string feature; + float upperColorScore; + float genderScore; + float lowerColorScore; + 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 new file mode 100644 index 000000000..377d895a6 --- /dev/null +++ b/facebody/include/alibabacloud/facebody/model/ExtractPedestrianFeatureAttributeRequest.h @@ -0,0 +1,59 @@ +/* + * 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 new file mode 100644 index 000000000..ca0b5fc9e --- /dev/null +++ b/facebody/include/alibabacloud/facebody/model/ExtractPedestrianFeatureAttributeResult.h @@ -0,0 +1,94 @@ +/* + * 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 new file mode 100644 index 000000000..62dd5b7ea --- /dev/null +++ b/facebody/include/alibabacloud/facebody/model/FaceBeautyRequest.h @@ -0,0 +1,57 @@ +/* + * 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 new file mode 100644 index 000000000..8aef0d636 --- /dev/null +++ b/facebody/include/alibabacloud/facebody/model/FaceBeautyResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_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 new file mode 100644 index 000000000..3d7a18aeb --- /dev/null +++ b/facebody/include/alibabacloud/facebody/model/FaceFilterRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_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 new file mode 100644 index 000000000..db45f7290 --- /dev/null +++ b/facebody/include/alibabacloud/facebody/model/FaceFilterResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_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 new file mode 100644 index 000000000..a68b26585 --- /dev/null +++ b/facebody/include/alibabacloud/facebody/model/FaceMakeupRequest.h @@ -0,0 +1,57 @@ +/* + * 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 new file mode 100644 index 000000000..19af282e6 --- /dev/null +++ b/facebody/include/alibabacloud/facebody/model/FaceMakeupResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_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 new file mode 100644 index 000000000..4cf52cabf --- /dev/null +++ b/facebody/include/alibabacloud/facebody/model/FaceTidyupRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_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 new file mode 100644 index 000000000..d510cd343 --- /dev/null +++ b/facebody/include/alibabacloud/facebody/model/FaceTidyupResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_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/GenRealPersonVerificationTokenRequest.h b/facebody/include/alibabacloud/facebody/model/GenRealPersonVerificationTokenRequest.h new file mode 100644 index 000000000..2f999ece9 --- /dev/null +++ b/facebody/include/alibabacloud/facebody/model/GenRealPersonVerificationTokenRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_FACEBODY_MODEL_GENREALPERSONVERIFICATIONTOKENREQUEST_H_ +#define ALIBABACLOUD_FACEBODY_MODEL_GENREALPERSONVERIFICATIONTOKENREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Facebody + { + namespace Model + { + class ALIBABACLOUD_FACEBODY_EXPORT GenRealPersonVerificationTokenRequest : public RpcServiceRequest + { + + public: + GenRealPersonVerificationTokenRequest(); + ~GenRealPersonVerificationTokenRequest(); + + 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); + + private: + std::string certificateNumber_; + std::string certificateName_; + std::string metaInfo_; + + }; + } + } +} +#endif // !ALIBABACLOUD_FACEBODY_MODEL_GENREALPERSONVERIFICATIONTOKENREQUEST_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 new file mode 100644 index 000000000..5b63e573e --- /dev/null +++ b/facebody/include/alibabacloud/facebody/model/GenRealPersonVerificationTokenResult.h @@ -0,0 +1,61 @@ +/* + * 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 new file mode 100644 index 000000000..14cc74a32 --- /dev/null +++ b/facebody/include/alibabacloud/facebody/model/GenerateHumanAnimeStyleRequest.h @@ -0,0 +1,51 @@ +/* + * 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 new file mode 100644 index 000000000..e651c2971 --- /dev/null +++ b/facebody/include/alibabacloud/facebody/model/GenerateHumanAnimeStyleResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_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/GenerateHumanSketchStyleRequest.h b/facebody/include/alibabacloud/facebody/model/GenerateHumanSketchStyleRequest.h new file mode 100644 index 000000000..bb2280895 --- /dev/null +++ b/facebody/include/alibabacloud/facebody/model/GenerateHumanSketchStyleRequest.h @@ -0,0 +1,48 @@ +/* + * 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_GENERATEHUMANSKETCHSTYLEREQUEST_H_ +#define ALIBABACLOUD_FACEBODY_MODEL_GENERATEHUMANSKETCHSTYLEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Facebody + { + namespace Model + { + class ALIBABACLOUD_FACEBODY_EXPORT GenerateHumanSketchStyleRequest : public RpcServiceRequest + { + + public: + GenerateHumanSketchStyleRequest(); + ~GenerateHumanSketchStyleRequest(); + + std::string getImageURL()const; + void setImageURL(const std::string& imageURL); + + private: + std::string imageURL_; + + }; + } + } +} +#endif // !ALIBABACLOUD_FACEBODY_MODEL_GENERATEHUMANSKETCHSTYLEREQUEST_H_ \ No newline at end of file diff --git a/facebody/include/alibabacloud/facebody/model/GenerateHumanSketchStyleResult.h b/facebody/include/alibabacloud/facebody/model/GenerateHumanSketchStyleResult.h new file mode 100644 index 000000000..ca20b6ee4 --- /dev/null +++ b/facebody/include/alibabacloud/facebody/model/GenerateHumanSketchStyleResult.h @@ -0,0 +1,59 @@ +/* + * 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_GENERATEHUMANSKETCHSTYLERESULT_H_ +#define ALIBABACLOUD_FACEBODY_MODEL_GENERATEHUMANSKETCHSTYLERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Facebody + { + namespace Model + { + class ALIBABACLOUD_FACEBODY_EXPORT GenerateHumanSketchStyleResult : public ServiceResult + { + public: + struct Data + { + std::string imageURL; + }; + + + GenerateHumanSketchStyleResult(); + explicit GenerateHumanSketchStyleResult(const std::string &payload); + ~GenerateHumanSketchStyleResult(); + 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_GENERATEHUMANSKETCHSTYLERESULT_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 new file mode 100644 index 000000000..5ac5f07bb --- /dev/null +++ b/facebody/include/alibabacloud/facebody/model/GetBodyPersonRequest.h @@ -0,0 +1,51 @@ +/* + * 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 new file mode 100644 index 000000000..f8a6fae6f --- /dev/null +++ b/facebody/include/alibabacloud/facebody/model/GetBodyPersonResult.h @@ -0,0 +1,69 @@ +/* + * 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 new file mode 100644 index 000000000..5e1610302 --- /dev/null +++ b/facebody/include/alibabacloud/facebody/model/GetFaceEntityRequest.h @@ -0,0 +1,51 @@ +/* + * 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 new file mode 100644 index 000000000..9c5add64b --- /dev/null +++ b/facebody/include/alibabacloud/facebody/model/GetFaceEntityResult.h @@ -0,0 +1,62 @@ +/* + * 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 new file mode 100644 index 000000000..08f7c965e --- /dev/null +++ b/facebody/include/alibabacloud/facebody/model/GetRealPersonVerificationResultRequest.h @@ -0,0 +1,51 @@ +/* + * 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 new file mode 100644 index 000000000..b30b3d2b3 --- /dev/null +++ b/facebody/include/alibabacloud/facebody/model/GetRealPersonVerificationResultResult.h @@ -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. + */ + +#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 new file mode 100644 index 000000000..839fd19a0 --- /dev/null +++ b/facebody/include/alibabacloud/facebody/model/HandPostureRequest.h @@ -0,0 +1,48 @@ +/* + * 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 new file mode 100644 index 000000000..413c862c9 --- /dev/null +++ b/facebody/include/alibabacloud/facebody/model/HandPostureResult.h @@ -0,0 +1,94 @@ +/* + * 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 new file mode 100644 index 000000000..82ce3ccfc --- /dev/null +++ b/facebody/include/alibabacloud/facebody/model/ListBodyDbsRequest.h @@ -0,0 +1,51 @@ +/* + * 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 new file mode 100644 index 000000000..c2602b1ff --- /dev/null +++ b/facebody/include/alibabacloud/facebody/model/ListBodyDbsResult.h @@ -0,0 +1,65 @@ +/* + * 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 new file mode 100644 index 000000000..a378e09a4 --- /dev/null +++ b/facebody/include/alibabacloud/facebody/model/ListBodyPersonRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_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 new file mode 100644 index 000000000..89ac62426 --- /dev/null +++ b/facebody/include/alibabacloud/facebody/model/ListBodyPersonResult.h @@ -0,0 +1,68 @@ +/* + * 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 new file mode 100644 index 000000000..ea047bec2 --- /dev/null +++ b/facebody/include/alibabacloud/facebody/model/ListFaceDbsRequest.h @@ -0,0 +1,45 @@ +/* + * 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 new file mode 100644 index 000000000..520ca101d --- /dev/null +++ b/facebody/include/alibabacloud/facebody/model/ListFaceDbsResult.h @@ -0,0 +1,59 @@ +/* + * 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 new file mode 100644 index 000000000..39bd6fefc --- /dev/null +++ b/facebody/include/alibabacloud/facebody/model/ListFaceEntitiesRequest.h @@ -0,0 +1,66 @@ +/* + * 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 new file mode 100644 index 000000000..8d0ff0adc --- /dev/null +++ b/facebody/include/alibabacloud/facebody/model/ListFaceEntitiesResult.h @@ -0,0 +1,66 @@ +/* + * 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/MergeImageFaceRequest.h b/facebody/include/alibabacloud/facebody/model/MergeImageFaceRequest.h new file mode 100644 index 000000000..fd7e17af6 --- /dev/null +++ b/facebody/include/alibabacloud/facebody/model/MergeImageFaceRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_FACEBODY_MODEL_MERGEIMAGEFACEREQUEST_H_ +#define ALIBABACLOUD_FACEBODY_MODEL_MERGEIMAGEFACEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Facebody + { + namespace Model + { + class ALIBABACLOUD_FACEBODY_EXPORT MergeImageFaceRequest : public RpcServiceRequest + { + + public: + MergeImageFaceRequest(); + ~MergeImageFaceRequest(); + + std::string getUserId()const; + void setUserId(const std::string& userId); + std::string getTemplateId()const; + void setTemplateId(const std::string& templateId); + std::string getImageURL()const; + void setImageURL(const std::string& imageURL); + + private: + std::string userId_; + std::string templateId_; + std::string imageURL_; + + }; + } + } +} +#endif // !ALIBABACLOUD_FACEBODY_MODEL_MERGEIMAGEFACEREQUEST_H_ \ No newline at end of file diff --git a/facebody/include/alibabacloud/facebody/model/MergeImageFaceResult.h b/facebody/include/alibabacloud/facebody/model/MergeImageFaceResult.h new file mode 100644 index 000000000..11062d365 --- /dev/null +++ b/facebody/include/alibabacloud/facebody/model/MergeImageFaceResult.h @@ -0,0 +1,59 @@ +/* + * 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_MERGEIMAGEFACERESULT_H_ +#define ALIBABACLOUD_FACEBODY_MODEL_MERGEIMAGEFACERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Facebody + { + namespace Model + { + class ALIBABACLOUD_FACEBODY_EXPORT MergeImageFaceResult : public ServiceResult + { + public: + struct Data + { + std::string imageURL; + }; + + + MergeImageFaceResult(); + explicit MergeImageFaceResult(const std::string &payload); + ~MergeImageFaceResult(); + 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_MERGEIMAGEFACERESULT_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 new file mode 100644 index 000000000..7fc741091 --- /dev/null +++ b/facebody/include/alibabacloud/facebody/model/PedestrianDetectAttributeRequest.h @@ -0,0 +1,48 @@ +/* + * 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 new file mode 100644 index 000000000..bc23923b7 --- /dev/null +++ b/facebody/include/alibabacloud/facebody/model/PedestrianDetectAttributeResult.h @@ -0,0 +1,140 @@ +/* + * 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 Backpack + { + float score; + std::string name; + }; + struct LowerWear + { + float score; + std::string name; + }; + struct ShoulderBag + { + float score; + std::string name; + }; + struct Orient + { + float score; + std::string name; + }; + struct LowerColor + { + float score; + std::string name; + }; + struct Glasses + { + float score; + std::string name; + }; + struct UpperColor + { + float score; + std::string name; + }; + struct Handbag + { + float score; + std::string name; + }; + struct Hat + { + float score; + std::string name; + }; + struct Gender + { + float score; + std::string name; + }; + struct UpperWear + { + float score; + std::string name; + }; + struct Age + { + float score; + std::string name; + }; + Backpack backpack; + LowerWear lowerWear; + ShoulderBag shoulderBag; + Orient orient; + LowerColor lowerColor; + Glasses glasses; + UpperColor upperColor; + Handbag handbag; + Hat hat; + Gender gender; + UpperWear upperWear; + Age age; + }; + 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/QueryFaceImageTemplateRequest.h b/facebody/include/alibabacloud/facebody/model/QueryFaceImageTemplateRequest.h new file mode 100644 index 000000000..f7da269f5 --- /dev/null +++ b/facebody/include/alibabacloud/facebody/model/QueryFaceImageTemplateRequest.h @@ -0,0 +1,51 @@ +/* + * 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_QUERYFACEIMAGETEMPLATEREQUEST_H_ +#define ALIBABACLOUD_FACEBODY_MODEL_QUERYFACEIMAGETEMPLATEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Facebody + { + namespace Model + { + class ALIBABACLOUD_FACEBODY_EXPORT QueryFaceImageTemplateRequest : public RpcServiceRequest + { + + public: + QueryFaceImageTemplateRequest(); + ~QueryFaceImageTemplateRequest(); + + std::string getUserId()const; + void setUserId(const std::string& userId); + std::string getTemplateId()const; + void setTemplateId(const std::string& templateId); + + private: + std::string userId_; + std::string templateId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_FACEBODY_MODEL_QUERYFACEIMAGETEMPLATEREQUEST_H_ \ No newline at end of file diff --git a/facebody/include/alibabacloud/facebody/model/QueryFaceImageTemplateResult.h b/facebody/include/alibabacloud/facebody/model/QueryFaceImageTemplateResult.h new file mode 100644 index 000000000..1fc89bf25 --- /dev/null +++ b/facebody/include/alibabacloud/facebody/model/QueryFaceImageTemplateResult.h @@ -0,0 +1,67 @@ +/* + * 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_QUERYFACEIMAGETEMPLATERESULT_H_ +#define ALIBABACLOUD_FACEBODY_MODEL_QUERYFACEIMAGETEMPLATERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Facebody + { + namespace Model + { + class ALIBABACLOUD_FACEBODY_EXPORT QueryFaceImageTemplateResult : public ServiceResult + { + public: + struct Data + { + struct ElementsItem + { + std::string templateURL; + std::string userId; + std::string createTime; + std::string updateTime; + std::string templateId; + }; + std::vector elements; + }; + + + QueryFaceImageTemplateResult(); + explicit QueryFaceImageTemplateResult(const std::string &payload); + ~QueryFaceImageTemplateResult(); + 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_QUERYFACEIMAGETEMPLATERESULT_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 new file mode 100644 index 000000000..a3a4c305d --- /dev/null +++ b/facebody/include/alibabacloud/facebody/model/RecognizeActionRequest.h @@ -0,0 +1,59 @@ +/* + * 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 new file mode 100644 index 000000000..eab565593 --- /dev/null +++ b/facebody/include/alibabacloud/facebody/model/RecognizeActionResult.h @@ -0,0 +1,66 @@ +/* + * 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 new file mode 100644 index 000000000..84973c161 --- /dev/null +++ b/facebody/include/alibabacloud/facebody/model/RecognizeExpressionRequest.h @@ -0,0 +1,48 @@ +/* + * 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 new file mode 100644 index 000000000..d3be0bd86 --- /dev/null +++ b/facebody/include/alibabacloud/facebody/model/RecognizeExpressionResult.h @@ -0,0 +1,68 @@ +/* + * 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 new file mode 100644 index 000000000..05134ce30 --- /dev/null +++ b/facebody/include/alibabacloud/facebody/model/RecognizeFaceRequest.h @@ -0,0 +1,51 @@ +/* + * 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 new file mode 100644 index 000000000..10a41595b --- /dev/null +++ b/facebody/include/alibabacloud/facebody/model/RecognizeFaceResult.h @@ -0,0 +1,81 @@ +/* + * 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 new file mode 100644 index 000000000..d472e961d --- /dev/null +++ b/facebody/include/alibabacloud/facebody/model/RecognizePublicFaceRequest.h @@ -0,0 +1,53 @@ +/* + * 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 new file mode 100644 index 000000000..6b9bb3ef1 --- /dev/null +++ b/facebody/include/alibabacloud/facebody/model/RecognizePublicFaceResult.h @@ -0,0 +1,82 @@ +/* + * 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 new file mode 100644 index 000000000..5aea62fcd --- /dev/null +++ b/facebody/include/alibabacloud/facebody/model/SearchBodyTraceRequest.h @@ -0,0 +1,57 @@ +/* + * 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 new file mode 100644 index 000000000..470c61ec6 --- /dev/null +++ b/facebody/include/alibabacloud/facebody/model/SearchBodyTraceResult.h @@ -0,0 +1,67 @@ +/* + * 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 new file mode 100644 index 000000000..9f9d61517 --- /dev/null +++ b/facebody/include/alibabacloud/facebody/model/SearchFaceRequest.h @@ -0,0 +1,57 @@ +/* + * 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 new file mode 100644 index 000000000..d7f545f42 --- /dev/null +++ b/facebody/include/alibabacloud/facebody/model/SearchFaceResult.h @@ -0,0 +1,75 @@ +/* + * 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 new file mode 100644 index 000000000..4ff8a9fb5 --- /dev/null +++ b/facebody/include/alibabacloud/facebody/model/SwapFacialFeaturesRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_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 new file mode 100644 index 000000000..c2316b52a --- /dev/null +++ b/facebody/include/alibabacloud/facebody/model/SwapFacialFeaturesResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_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 new file mode 100644 index 000000000..e8e07e9b5 --- /dev/null +++ b/facebody/include/alibabacloud/facebody/model/UpdateFaceEntityRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_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 new file mode 100644 index 000000000..9ade65fb8 --- /dev/null +++ b/facebody/include/alibabacloud/facebody/model/UpdateFaceEntityResult.h @@ -0,0 +1,49 @@ +/* + * 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 new file mode 100644 index 000000000..3867e2aac --- /dev/null +++ b/facebody/include/alibabacloud/facebody/model/VerifyFaceMaskRequest.h @@ -0,0 +1,51 @@ +/* + * 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 new file mode 100644 index 000000000..9c83ce1e3 --- /dev/null +++ b/facebody/include/alibabacloud/facebody/model/VerifyFaceMaskResult.h @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_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 17244d692..7e1d421f7 100644 --- a/facebody/src/FacebodyClient.cc +++ b/facebody/src/FacebodyClient.cc @@ -51,6 +51,798 @@ FacebodyClient::FacebodyClient(const std::string & accessKeyId, const std::strin FacebodyClient::~FacebodyClient() {} +FacebodyClient::AddBodyTraceOutcome FacebodyClient::addBodyTrace(const AddBodyTraceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AddBodyTraceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AddBodyTraceOutcome(AddBodyTraceResult(outcome.result())); + else + return AddBodyTraceOutcome(outcome.error()); +} + +void FacebodyClient::addBodyTraceAsync(const AddBodyTraceRequest& request, const AddBodyTraceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, addBodyTrace(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +FacebodyClient::AddBodyTraceOutcomeCallable FacebodyClient::addBodyTraceCallable(const AddBodyTraceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->addBodyTrace(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +FacebodyClient::AddFaceOutcome FacebodyClient::addFace(const AddFaceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AddFaceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AddFaceOutcome(AddFaceResult(outcome.result())); + else + return AddFaceOutcome(outcome.error()); +} + +void FacebodyClient::addFaceAsync(const AddFaceRequest& request, const AddFaceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, addFace(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +FacebodyClient::AddFaceOutcomeCallable FacebodyClient::addFaceCallable(const AddFaceRequest &request) const +{ + 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::AddFaceImageTemplateOutcome FacebodyClient::addFaceImageTemplate(const AddFaceImageTemplateRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AddFaceImageTemplateOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AddFaceImageTemplateOutcome(AddFaceImageTemplateResult(outcome.result())); + else + return AddFaceImageTemplateOutcome(outcome.error()); +} + +void FacebodyClient::addFaceImageTemplateAsync(const AddFaceImageTemplateRequest& request, const AddFaceImageTemplateAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, addFaceImageTemplate(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +FacebodyClient::AddFaceImageTemplateOutcomeCallable FacebodyClient::addFaceImageTemplateCallable(const AddFaceImageTemplateRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->addFaceImageTemplate(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::DeleteFaceImageTemplateOutcome FacebodyClient::deleteFaceImageTemplate(const DeleteFaceImageTemplateRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteFaceImageTemplateOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteFaceImageTemplateOutcome(DeleteFaceImageTemplateResult(outcome.result())); + else + return DeleteFaceImageTemplateOutcome(outcome.error()); +} + +void FacebodyClient::deleteFaceImageTemplateAsync(const DeleteFaceImageTemplateRequest& request, const DeleteFaceImageTemplateAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteFaceImageTemplate(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +FacebodyClient::DeleteFaceImageTemplateOutcomeCallable FacebodyClient::deleteFaceImageTemplateCallable(const DeleteFaceImageTemplateRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteFaceImageTemplate(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::DetectIPCPedestrianOptimizedOutcome FacebodyClient::detectIPCPedestrianOptimized(const DetectIPCPedestrianOptimizedRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -87,6 +879,222 @@ FacebodyClient::DetectIPCPedestrianOptimizedOutcomeCallable FacebodyClient::dete 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::ExecuteServerSideVerificationOutcome FacebodyClient::executeServerSideVerification(const ExecuteServerSideVerificationRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -123,3 +1131,1047 @@ FacebodyClient::ExecuteServerSideVerificationOutcomeCallable FacebodyClient::exe 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::GenerateHumanSketchStyleOutcome FacebodyClient::generateHumanSketchStyle(const GenerateHumanSketchStyleRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GenerateHumanSketchStyleOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GenerateHumanSketchStyleOutcome(GenerateHumanSketchStyleResult(outcome.result())); + else + return GenerateHumanSketchStyleOutcome(outcome.error()); +} + +void FacebodyClient::generateHumanSketchStyleAsync(const GenerateHumanSketchStyleRequest& request, const GenerateHumanSketchStyleAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, generateHumanSketchStyle(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +FacebodyClient::GenerateHumanSketchStyleOutcomeCallable FacebodyClient::generateHumanSketchStyleCallable(const GenerateHumanSketchStyleRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->generateHumanSketchStyle(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::MergeImageFaceOutcome FacebodyClient::mergeImageFace(const MergeImageFaceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return MergeImageFaceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return MergeImageFaceOutcome(MergeImageFaceResult(outcome.result())); + else + return MergeImageFaceOutcome(outcome.error()); +} + +void FacebodyClient::mergeImageFaceAsync(const MergeImageFaceRequest& request, const MergeImageFaceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, mergeImageFace(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +FacebodyClient::MergeImageFaceOutcomeCallable FacebodyClient::mergeImageFaceCallable(const MergeImageFaceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->mergeImageFace(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::QueryFaceImageTemplateOutcome FacebodyClient::queryFaceImageTemplate(const QueryFaceImageTemplateRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryFaceImageTemplateOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryFaceImageTemplateOutcome(QueryFaceImageTemplateResult(outcome.result())); + else + return QueryFaceImageTemplateOutcome(outcome.error()); +} + +void FacebodyClient::queryFaceImageTemplateAsync(const QueryFaceImageTemplateRequest& request, const QueryFaceImageTemplateAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryFaceImageTemplate(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +FacebodyClient::QueryFaceImageTemplateOutcomeCallable FacebodyClient::queryFaceImageTemplateCallable(const QueryFaceImageTemplateRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryFaceImageTemplate(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); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + diff --git a/facebody/src/model/AddBodyTraceRequest.cc b/facebody/src/model/AddBodyTraceRequest.cc new file mode 100644 index 000000000..1588aa1c9 --- /dev/null +++ b/facebody/src/model/AddBodyTraceRequest.cc @@ -0,0 +1,73 @@ +/* + * 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 new file mode 100644 index 000000000..e43a59591 --- /dev/null +++ b/facebody/src/model/AddBodyTraceResult.cc @@ -0,0 +1,66 @@ +/* + * 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 new file mode 100644 index 000000000..a565865ac --- /dev/null +++ b/facebody/src/model/AddFaceEntityRequest.cc @@ -0,0 +1,62 @@ +/* + * 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 new file mode 100644 index 000000000..098198914 --- /dev/null +++ b/facebody/src/model/AddFaceEntityResult.cc @@ -0,0 +1,44 @@ +/* + * 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/AddFaceImageTemplateRequest.cc b/facebody/src/model/AddFaceImageTemplateRequest.cc new file mode 100644 index 000000000..b62df602c --- /dev/null +++ b/facebody/src/model/AddFaceImageTemplateRequest.cc @@ -0,0 +1,51 @@ +/* + * 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::AddFaceImageTemplateRequest; + +AddFaceImageTemplateRequest::AddFaceImageTemplateRequest() : + RpcServiceRequest("facebody", "2019-12-30", "AddFaceImageTemplate") +{ + setMethod(HttpRequest::Method::Post); +} + +AddFaceImageTemplateRequest::~AddFaceImageTemplateRequest() +{} + +std::string AddFaceImageTemplateRequest::getUserId()const +{ + return userId_; +} + +void AddFaceImageTemplateRequest::setUserId(const std::string& userId) +{ + userId_ = userId; + setBodyParameter("UserId", userId); +} + +std::string AddFaceImageTemplateRequest::getImageURL()const +{ + return imageURL_; +} + +void AddFaceImageTemplateRequest::setImageURL(const std::string& imageURL) +{ + imageURL_ = imageURL; + setBodyParameter("ImageURL", imageURL); +} + diff --git a/facebody/src/model/AddFaceImageTemplateResult.cc b/facebody/src/model/AddFaceImageTemplateResult.cc new file mode 100644 index 000000000..511334c6c --- /dev/null +++ b/facebody/src/model/AddFaceImageTemplateResult.cc @@ -0,0 +1,66 @@ +/* + * 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; + +AddFaceImageTemplateResult::AddFaceImageTemplateResult() : + ServiceResult() +{} + +AddFaceImageTemplateResult::AddFaceImageTemplateResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AddFaceImageTemplateResult::~AddFaceImageTemplateResult() +{} + +void AddFaceImageTemplateResult::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["TemplateId"].isNull()) + data_.templateId = dataNode["TemplateId"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + +} + +std::string AddFaceImageTemplateResult::getMessage()const +{ + return message_; +} + +AddFaceImageTemplateResult::Data AddFaceImageTemplateResult::getData()const +{ + return data_; +} + +std::string AddFaceImageTemplateResult::getCode()const +{ + return code_; +} + diff --git a/facebody/src/model/AddFaceRequest.cc b/facebody/src/model/AddFaceRequest.cc new file mode 100644 index 000000000..727b46354 --- /dev/null +++ b/facebody/src/model/AddFaceRequest.cc @@ -0,0 +1,73 @@ +/* + * 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 new file mode 100644 index 000000000..dda3ecb88 --- /dev/null +++ b/facebody/src/model/AddFaceResult.cc @@ -0,0 +1,52 @@ +/* + * 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 new file mode 100644 index 000000000..04961d83c --- /dev/null +++ b/facebody/src/model/BlurFaceRequest.cc @@ -0,0 +1,40 @@ +/* + * 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 new file mode 100644 index 000000000..eae658e90 --- /dev/null +++ b/facebody/src/model/BlurFaceResult.cc @@ -0,0 +1,52 @@ +/* + * 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 new file mode 100644 index 000000000..705b18e3a --- /dev/null +++ b/facebody/src/model/BodyPostureRequest.cc @@ -0,0 +1,40 @@ +/* + * 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 new file mode 100644 index 000000000..dfa28f3c4 --- /dev/null +++ b/facebody/src/model/BodyPostureResult.cc @@ -0,0 +1,88 @@ +/* + * 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 new file mode 100644 index 000000000..5c6a2fcd2 --- /dev/null +++ b/facebody/src/model/CompareFaceRequest.cc @@ -0,0 +1,62 @@ +/* + * 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() +{} + +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); +} + +int CompareFaceRequest::getImageType()const +{ + return imageType_; +} + +void CompareFaceRequest::setImageType(int imageType) +{ + imageType_ = imageType; + setBodyParameter("ImageType", std::to_string(imageType)); +} + diff --git a/facebody/src/model/CompareFaceResult.cc b/facebody/src/model/CompareFaceResult.cc new file mode 100644 index 000000000..161e8a094 --- /dev/null +++ b/facebody/src/model/CompareFaceResult.cc @@ -0,0 +1,61 @@ +/* + * 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 new file mode 100644 index 000000000..d8bc30ce7 --- /dev/null +++ b/facebody/src/model/CountCrowdRequest.cc @@ -0,0 +1,51 @@ +/* + * 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 new file mode 100644 index 000000000..7002ce434 --- /dev/null +++ b/facebody/src/model/CountCrowdResult.cc @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#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 new file mode 100644 index 000000000..60c0f487d --- /dev/null +++ b/facebody/src/model/CreateBodyDbRequest.cc @@ -0,0 +1,40 @@ +/* + * 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 new file mode 100644 index 000000000..dcb879aa6 --- /dev/null +++ b/facebody/src/model/CreateBodyDbResult.cc @@ -0,0 +1,66 @@ +/* + * 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 new file mode 100644 index 000000000..015304f56 --- /dev/null +++ b/facebody/src/model/CreateBodyPersonRequest.cc @@ -0,0 +1,51 @@ +/* + * 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 new file mode 100644 index 000000000..8a5c1ab31 --- /dev/null +++ b/facebody/src/model/CreateBodyPersonResult.cc @@ -0,0 +1,66 @@ +/* + * 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 new file mode 100644 index 000000000..85bb96563 --- /dev/null +++ b/facebody/src/model/CreateFaceDbRequest.cc @@ -0,0 +1,40 @@ +/* + * 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 new file mode 100644 index 000000000..c79a1acdf --- /dev/null +++ b/facebody/src/model/CreateFaceDbResult.cc @@ -0,0 +1,44 @@ +/* + * 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 new file mode 100644 index 000000000..4726f3b71 --- /dev/null +++ b/facebody/src/model/DeleteBodyDbRequest.cc @@ -0,0 +1,40 @@ +/* + * 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 new file mode 100644 index 000000000..94d65b836 --- /dev/null +++ b/facebody/src/model/DeleteBodyDbResult.cc @@ -0,0 +1,58 @@ +/* + * 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 new file mode 100644 index 000000000..b59ab8d3b --- /dev/null +++ b/facebody/src/model/DeleteBodyPersonRequest.cc @@ -0,0 +1,51 @@ +/* + * 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 new file mode 100644 index 000000000..ec69cb42e --- /dev/null +++ b/facebody/src/model/DeleteBodyPersonResult.cc @@ -0,0 +1,58 @@ +/* + * 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 new file mode 100644 index 000000000..b69be5050 --- /dev/null +++ b/facebody/src/model/DeleteFaceDbRequest.cc @@ -0,0 +1,40 @@ +/* + * 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 new file mode 100644 index 000000000..d7716f5ec --- /dev/null +++ b/facebody/src/model/DeleteFaceDbResult.cc @@ -0,0 +1,44 @@ +/* + * 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 new file mode 100644 index 000000000..0ae7e9493 --- /dev/null +++ b/facebody/src/model/DeleteFaceEntityRequest.cc @@ -0,0 +1,51 @@ +/* + * 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 new file mode 100644 index 000000000..9ad0ab551 --- /dev/null +++ b/facebody/src/model/DeleteFaceEntityResult.cc @@ -0,0 +1,44 @@ +/* + * 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/DeleteFaceImageTemplateRequest.cc b/facebody/src/model/DeleteFaceImageTemplateRequest.cc new file mode 100644 index 000000000..bf3687fc3 --- /dev/null +++ b/facebody/src/model/DeleteFaceImageTemplateRequest.cc @@ -0,0 +1,51 @@ +/* + * 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::DeleteFaceImageTemplateRequest; + +DeleteFaceImageTemplateRequest::DeleteFaceImageTemplateRequest() : + RpcServiceRequest("facebody", "2019-12-30", "DeleteFaceImageTemplate") +{ + setMethod(HttpRequest::Method::Post); +} + +DeleteFaceImageTemplateRequest::~DeleteFaceImageTemplateRequest() +{} + +std::string DeleteFaceImageTemplateRequest::getUserId()const +{ + return userId_; +} + +void DeleteFaceImageTemplateRequest::setUserId(const std::string& userId) +{ + userId_ = userId; + setBodyParameter("UserId", userId); +} + +std::string DeleteFaceImageTemplateRequest::getTemplateId()const +{ + return templateId_; +} + +void DeleteFaceImageTemplateRequest::setTemplateId(const std::string& templateId) +{ + templateId_ = templateId; + setBodyParameter("TemplateId", templateId); +} + diff --git a/facebody/src/model/DeleteFaceImageTemplateResult.cc b/facebody/src/model/DeleteFaceImageTemplateResult.cc new file mode 100644 index 000000000..d0a1de75c --- /dev/null +++ b/facebody/src/model/DeleteFaceImageTemplateResult.cc @@ -0,0 +1,58 @@ +/* + * 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; + +DeleteFaceImageTemplateResult::DeleteFaceImageTemplateResult() : + ServiceResult() +{} + +DeleteFaceImageTemplateResult::DeleteFaceImageTemplateResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteFaceImageTemplateResult::~DeleteFaceImageTemplateResult() +{} + +void DeleteFaceImageTemplateResult::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 DeleteFaceImageTemplateResult::getMessage()const +{ + return message_; +} + +std::string DeleteFaceImageTemplateResult::getCode()const +{ + return code_; +} + diff --git a/facebody/src/model/DeleteFaceRequest.cc b/facebody/src/model/DeleteFaceRequest.cc new file mode 100644 index 000000000..e6f572eca --- /dev/null +++ b/facebody/src/model/DeleteFaceRequest.cc @@ -0,0 +1,51 @@ +/* + * 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 new file mode 100644 index 000000000..f8bac60f4 --- /dev/null +++ b/facebody/src/model/DeleteFaceResult.cc @@ -0,0 +1,44 @@ +/* + * 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 new file mode 100644 index 000000000..7fd63560a --- /dev/null +++ b/facebody/src/model/DetectBodyCountRequest.cc @@ -0,0 +1,40 @@ +/* + * 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 new file mode 100644 index 000000000..55785fab8 --- /dev/null +++ b/facebody/src/model/DetectBodyCountResult.cc @@ -0,0 +1,52 @@ +/* + * 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 new file mode 100644 index 000000000..1025c913d --- /dev/null +++ b/facebody/src/model/DetectCelebrityRequest.cc @@ -0,0 +1,40 @@ +/* + * 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 new file mode 100644 index 000000000..23ddf013b --- /dev/null +++ b/facebody/src/model/DetectCelebrityResult.cc @@ -0,0 +1,65 @@ +/* + * 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 new file mode 100644 index 000000000..973e8a89b --- /dev/null +++ b/facebody/src/model/DetectChefCapRequest.cc @@ -0,0 +1,40 @@ +/* + * 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 new file mode 100644 index 000000000..b9196ef4e --- /dev/null +++ b/facebody/src/model/DetectChefCapResult.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 +#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 new file mode 100644 index 000000000..bc55b79e0 --- /dev/null +++ b/facebody/src/model/DetectFaceRequest.cc @@ -0,0 +1,51 @@ +/* + * 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 new file mode 100644 index 000000000..d0d9d1022 --- /dev/null +++ b/facebody/src/model/DetectFaceResult.cc @@ -0,0 +1,94 @@ +/* + * 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/DetectIPCPedestrianRequest.cc b/facebody/src/model/DetectIPCPedestrianRequest.cc new file mode 100644 index 000000000..67863a2b7 --- /dev/null +++ b/facebody/src/model/DetectIPCPedestrianRequest.cc @@ -0,0 +1,89 @@ +/* + * 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/DetectIPCPedestrianResult.cc b/facebody/src/model/DetectIPCPedestrianResult.cc new file mode 100644 index 000000000..3b9c36d11 --- /dev/null +++ b/facebody/src/model/DetectIPCPedestrianResult.cc @@ -0,0 +1,73 @@ +/* + * 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; + +DetectIPCPedestrianResult::DetectIPCPedestrianResult() : + ServiceResult() +{} + +DetectIPCPedestrianResult::DetectIPCPedestrianResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DetectIPCPedestrianResult::~DetectIPCPedestrianResult() +{} + +void DetectIPCPedestrianResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + auto allImageInfoListNode = dataNode["ImageInfoList"]["ImageInfoListItem"]; + for (auto dataNodeImageInfoListImageInfoListItem : allImageInfoListNode) + { + Data::ImageInfoListItem imageInfoListItemObject; + if(!dataNodeImageInfoListImageInfoListItem["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) + { + Data::ImageInfoListItem::Element elementsObject; + if(!dataNodeImageInfoListImageInfoListItemElementsElement["Score"].isNull()) + elementsObject.score = std::stof(dataNodeImageInfoListImageInfoListItemElementsElement["Score"].asString()); + auto allBoxes = value["Boxes"]["Box"]; + for (auto value : allBoxes) + elementsObject.boxes.push_back(value.asString()); + imageInfoListItemObject.elements.push_back(elementsObject); + } + data_.imageInfoList.push_back(imageInfoListItemObject); + } + +} + +DetectIPCPedestrianResult::Data DetectIPCPedestrianResult::getData()const +{ + return data_; +} + diff --git a/facebody/src/model/DetectLivingFaceRequest.cc b/facebody/src/model/DetectLivingFaceRequest.cc new file mode 100644 index 000000000..2d7cfa27a --- /dev/null +++ b/facebody/src/model/DetectLivingFaceRequest.cc @@ -0,0 +1,44 @@ +/* + * 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 new file mode 100644 index 000000000..c0f3dae0b --- /dev/null +++ b/facebody/src/model/DetectLivingFaceResult.cc @@ -0,0 +1,82 @@ +/* + * 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 new file mode 100644 index 000000000..5d4dfa727 --- /dev/null +++ b/facebody/src/model/DetectMaskRequest.cc @@ -0,0 +1,40 @@ +/* + * 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 new file mode 100644 index 000000000..4a0509d32 --- /dev/null +++ b/facebody/src/model/DetectMaskResult.cc @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#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 new file mode 100644 index 000000000..4cae56c8e --- /dev/null +++ b/facebody/src/model/DetectPedestrianIntrusionRequest.cc @@ -0,0 +1,62 @@ +/* + * 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 new file mode 100644 index 000000000..9ae929ff0 --- /dev/null +++ b/facebody/src/model/DetectPedestrianIntrusionResult.cc @@ -0,0 +1,91 @@ +/* + * 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 new file mode 100644 index 000000000..3f3248a55 --- /dev/null +++ b/facebody/src/model/DetectPedestrianRequest.cc @@ -0,0 +1,40 @@ +/* + * 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 new file mode 100644 index 000000000..710c04e91 --- /dev/null +++ b/facebody/src/model/DetectPedestrianResult.cc @@ -0,0 +1,67 @@ +/* + * 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 new file mode 100644 index 000000000..586f3cbf9 --- /dev/null +++ b/facebody/src/model/DetectVideoLivingFaceRequest.cc @@ -0,0 +1,40 @@ +/* + * 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 new file mode 100644 index 000000000..165a17f58 --- /dev/null +++ b/facebody/src/model/DetectVideoLivingFaceResult.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 +#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 new file mode 100644 index 000000000..524559ffc --- /dev/null +++ b/facebody/src/model/EnhanceFaceRequest.cc @@ -0,0 +1,40 @@ +/* + * 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 new file mode 100644 index 000000000..05f4ed98f --- /dev/null +++ b/facebody/src/model/EnhanceFaceResult.cc @@ -0,0 +1,52 @@ +/* + * 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/ExtractPedestrianFeatureAttrRequest.cc b/facebody/src/model/ExtractPedestrianFeatureAttrRequest.cc new file mode 100644 index 000000000..6e25c9767 --- /dev/null +++ b/facebody/src/model/ExtractPedestrianFeatureAttrRequest.cc @@ -0,0 +1,62 @@ +/* + * 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); +} + +std::string ExtractPedestrianFeatureAttrRequest::getServiceVersion()const +{ + return serviceVersion_; +} + +void ExtractPedestrianFeatureAttrRequest::setServiceVersion(const std::string& serviceVersion) +{ + serviceVersion_ = serviceVersion; + setBodyParameter("ServiceVersion", serviceVersion); +} + diff --git a/facebody/src/model/ExtractPedestrianFeatureAttrResult.cc b/facebody/src/model/ExtractPedestrianFeatureAttrResult.cc new file mode 100644 index 000000000..d6ff936fa --- /dev/null +++ b/facebody/src/model/ExtractPedestrianFeatureAttrResult.cc @@ -0,0 +1,86 @@ +/* + * 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["Hair"].isNull()) + data_.hair = dataNode["Hair"].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["QualityScore"].isNull()) + data_.qualityScore = std::stof(dataNode["QualityScore"].asString()); + if(!dataNode["Gender"].isNull()) + data_.gender = dataNode["Gender"].asString(); + if(!dataNode["Feature"].isNull()) + data_.feature = dataNode["Feature"].asString(); + if(!dataNode["UpperColorScore"].isNull()) + data_.upperColorScore = std::stof(dataNode["UpperColorScore"].asString()); + if(!dataNode["GenderScore"].isNull()) + data_.genderScore = std::stof(dataNode["GenderScore"].asString()); + if(!dataNode["LowerColorScore"].isNull()) + data_.lowerColorScore = std::stof(dataNode["LowerColorScore"].asString()); + if(!dataNode["ObjType"].isNull()) + data_.objType = dataNode["ObjType"].asString(); + if(!dataNode["LowerTypeScore"].isNull()) + data_.lowerTypeScore = std::stof(dataNode["LowerTypeScore"].asString()); + if(!dataNode["HairScore"].isNull()) + data_.hairScore = std::stof(dataNode["HairScore"].asString()); + if(!dataNode["UpperColor"].isNull()) + data_.upperColor = dataNode["UpperColor"].asString(); + if(!dataNode["LowerType"].isNull()) + data_.lowerType = dataNode["LowerType"].asString(); + if(!dataNode["AgeScore"].isNull()) + data_.ageScore = std::stof(dataNode["AgeScore"].asString()); + if(!dataNode["ObjTypeScore"].isNull()) + data_.objTypeScore = std::stof(dataNode["ObjTypeScore"].asString()); + if(!dataNode["Age"].isNull()) + data_.age = dataNode["Age"].asString(); + +} + +ExtractPedestrianFeatureAttrResult::Data ExtractPedestrianFeatureAttrResult::getData()const +{ + return data_; +} + diff --git a/facebody/src/model/ExtractPedestrianFeatureAttributeRequest.cc b/facebody/src/model/ExtractPedestrianFeatureAttributeRequest.cc new file mode 100644 index 000000000..d0dd6c2b7 --- /dev/null +++ b/facebody/src/model/ExtractPedestrianFeatureAttributeRequest.cc @@ -0,0 +1,66 @@ +/* + * 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 new file mode 100644 index 000000000..83697b0ea --- /dev/null +++ b/facebody/src/model/ExtractPedestrianFeatureAttributeResult.cc @@ -0,0 +1,128 @@ +/* + * 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 new file mode 100644 index 000000000..8831b9970 --- /dev/null +++ b/facebody/src/model/FaceBeautyRequest.cc @@ -0,0 +1,73 @@ +/* + * 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 new file mode 100644 index 000000000..c94e75c27 --- /dev/null +++ b/facebody/src/model/FaceBeautyResult.cc @@ -0,0 +1,52 @@ +/* + * 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 new file mode 100644 index 000000000..f0608936c --- /dev/null +++ b/facebody/src/model/FaceFilterRequest.cc @@ -0,0 +1,62 @@ +/* + * 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 new file mode 100644 index 000000000..e5f0cfbb0 --- /dev/null +++ b/facebody/src/model/FaceFilterResult.cc @@ -0,0 +1,52 @@ +/* + * 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 new file mode 100644 index 000000000..42ec7fe2d --- /dev/null +++ b/facebody/src/model/FaceMakeupRequest.cc @@ -0,0 +1,73 @@ +/* + * 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 new file mode 100644 index 000000000..86657c272 --- /dev/null +++ b/facebody/src/model/FaceMakeupResult.cc @@ -0,0 +1,52 @@ +/* + * 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 new file mode 100644 index 000000000..d31425485 --- /dev/null +++ b/facebody/src/model/FaceTidyupRequest.cc @@ -0,0 +1,62 @@ +/* + * 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 new file mode 100644 index 000000000..4e9b448db --- /dev/null +++ b/facebody/src/model/FaceTidyupResult.cc @@ -0,0 +1,52 @@ +/* + * 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 new file mode 100644 index 000000000..ad66856b7 --- /dev/null +++ b/facebody/src/model/GenRealPersonVerificationTokenRequest.cc @@ -0,0 +1,62 @@ +/* + * 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/GenRealPersonVerificationTokenResult.cc b/facebody/src/model/GenRealPersonVerificationTokenResult.cc new file mode 100644 index 000000000..2043cb0f2 --- /dev/null +++ b/facebody/src/model/GenRealPersonVerificationTokenResult.cc @@ -0,0 +1,73 @@ +/* + * 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; + +GenRealPersonVerificationTokenResult::GenRealPersonVerificationTokenResult() : + ServiceResult() +{} + +GenRealPersonVerificationTokenResult::GenRealPersonVerificationTokenResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GenRealPersonVerificationTokenResult::~GenRealPersonVerificationTokenResult() +{} + +void GenRealPersonVerificationTokenResult::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["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(!value["Code"].isNull()) + code_ = value["Code"].asString(); + +} + +GenRealPersonVerificationTokenResult::Data GenRealPersonVerificationTokenResult::getData()const +{ + return data_; +} + +std::string GenRealPersonVerificationTokenResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string GenRealPersonVerificationTokenResult::getCode()const +{ + return code_; +} + +bool GenRealPersonVerificationTokenResult::getSuccess()const +{ + return success_; +} + diff --git a/facebody/src/model/GenerateHumanAnimeStyleRequest.cc b/facebody/src/model/GenerateHumanAnimeStyleRequest.cc new file mode 100644 index 000000000..262a577fa --- /dev/null +++ b/facebody/src/model/GenerateHumanAnimeStyleRequest.cc @@ -0,0 +1,51 @@ +/* + * 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 new file mode 100644 index 000000000..70cac75eb --- /dev/null +++ b/facebody/src/model/GenerateHumanAnimeStyleResult.cc @@ -0,0 +1,52 @@ +/* + * 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/GenerateHumanSketchStyleRequest.cc b/facebody/src/model/GenerateHumanSketchStyleRequest.cc new file mode 100644 index 000000000..54caee016 --- /dev/null +++ b/facebody/src/model/GenerateHumanSketchStyleRequest.cc @@ -0,0 +1,40 @@ +/* + * 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::GenerateHumanSketchStyleRequest; + +GenerateHumanSketchStyleRequest::GenerateHumanSketchStyleRequest() : + RpcServiceRequest("facebody", "2019-12-30", "GenerateHumanSketchStyle") +{ + setMethod(HttpRequest::Method::Post); +} + +GenerateHumanSketchStyleRequest::~GenerateHumanSketchStyleRequest() +{} + +std::string GenerateHumanSketchStyleRequest::getImageURL()const +{ + return imageURL_; +} + +void GenerateHumanSketchStyleRequest::setImageURL(const std::string& imageURL) +{ + imageURL_ = imageURL; + setBodyParameter("ImageURL", imageURL); +} + diff --git a/facebody/src/model/GenerateHumanSketchStyleResult.cc b/facebody/src/model/GenerateHumanSketchStyleResult.cc new file mode 100644 index 000000000..b770a1200 --- /dev/null +++ b/facebody/src/model/GenerateHumanSketchStyleResult.cc @@ -0,0 +1,66 @@ +/* + * 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; + +GenerateHumanSketchStyleResult::GenerateHumanSketchStyleResult() : + ServiceResult() +{} + +GenerateHumanSketchStyleResult::GenerateHumanSketchStyleResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GenerateHumanSketchStyleResult::~GenerateHumanSketchStyleResult() +{} + +void GenerateHumanSketchStyleResult::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(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + +} + +std::string GenerateHumanSketchStyleResult::getMessage()const +{ + return message_; +} + +GenerateHumanSketchStyleResult::Data GenerateHumanSketchStyleResult::getData()const +{ + return data_; +} + +std::string GenerateHumanSketchStyleResult::getCode()const +{ + return code_; +} + diff --git a/facebody/src/model/GetBodyPersonRequest.cc b/facebody/src/model/GetBodyPersonRequest.cc new file mode 100644 index 000000000..057422597 --- /dev/null +++ b/facebody/src/model/GetBodyPersonRequest.cc @@ -0,0 +1,51 @@ +/* + * 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 new file mode 100644 index 000000000..8e89751c3 --- /dev/null +++ b/facebody/src/model/GetBodyPersonResult.cc @@ -0,0 +1,84 @@ +/* + * 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 new file mode 100644 index 000000000..74c421552 --- /dev/null +++ b/facebody/src/model/GetFaceEntityRequest.cc @@ -0,0 +1,51 @@ +/* + * 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 new file mode 100644 index 000000000..10b4ebb73 --- /dev/null +++ b/facebody/src/model/GetFaceEntityResult.cc @@ -0,0 +1,64 @@ +/* + * 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 new file mode 100644 index 000000000..243db0f98 --- /dev/null +++ b/facebody/src/model/GetRealPersonVerificationResultRequest.cc @@ -0,0 +1,51 @@ +/* + * 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 new file mode 100644 index 000000000..0dc03ae66 --- /dev/null +++ b/facebody/src/model/GetRealPersonVerificationResultResult.cc @@ -0,0 +1,77 @@ +/* + * 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 new file mode 100644 index 000000000..1a8a6a8b3 --- /dev/null +++ b/facebody/src/model/HandPostureRequest.cc @@ -0,0 +1,40 @@ +/* + * 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 new file mode 100644 index 000000000..f97670f50 --- /dev/null +++ b/facebody/src/model/HandPostureResult.cc @@ -0,0 +1,101 @@ +/* + * 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 new file mode 100644 index 000000000..e57e3f905 --- /dev/null +++ b/facebody/src/model/ListBodyDbsRequest.cc @@ -0,0 +1,51 @@ +/* + * 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 new file mode 100644 index 000000000..8ac6c880f --- /dev/null +++ b/facebody/src/model/ListBodyDbsResult.cc @@ -0,0 +1,76 @@ +/* + * 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 new file mode 100644 index 000000000..07897724b --- /dev/null +++ b/facebody/src/model/ListBodyPersonRequest.cc @@ -0,0 +1,62 @@ +/* + * 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 new file mode 100644 index 000000000..d0c49d676 --- /dev/null +++ b/facebody/src/model/ListBodyPersonResult.cc @@ -0,0 +1,82 @@ +/* + * 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 new file mode 100644 index 000000000..092d1e7e3 --- /dev/null +++ b/facebody/src/model/ListFaceDbsRequest.cc @@ -0,0 +1,29 @@ +/* + * 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 new file mode 100644 index 000000000..369deaef6 --- /dev/null +++ b/facebody/src/model/ListFaceDbsResult.cc @@ -0,0 +1,58 @@ +/* + * 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 new file mode 100644 index 000000000..edaa1698f --- /dev/null +++ b/facebody/src/model/ListFaceEntitiesRequest.cc @@ -0,0 +1,106 @@ +/* + * 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 new file mode 100644 index 000000000..def2c7b9c --- /dev/null +++ b/facebody/src/model/ListFaceEntitiesResult.cc @@ -0,0 +1,72 @@ +/* + * 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/MergeImageFaceRequest.cc b/facebody/src/model/MergeImageFaceRequest.cc new file mode 100644 index 000000000..553126035 --- /dev/null +++ b/facebody/src/model/MergeImageFaceRequest.cc @@ -0,0 +1,62 @@ +/* + * 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::MergeImageFaceRequest; + +MergeImageFaceRequest::MergeImageFaceRequest() : + RpcServiceRequest("facebody", "2019-12-30", "MergeImageFace") +{ + setMethod(HttpRequest::Method::Post); +} + +MergeImageFaceRequest::~MergeImageFaceRequest() +{} + +std::string MergeImageFaceRequest::getUserId()const +{ + return userId_; +} + +void MergeImageFaceRequest::setUserId(const std::string& userId) +{ + userId_ = userId; + setBodyParameter("UserId", userId); +} + +std::string MergeImageFaceRequest::getTemplateId()const +{ + return templateId_; +} + +void MergeImageFaceRequest::setTemplateId(const std::string& templateId) +{ + templateId_ = templateId; + setBodyParameter("TemplateId", templateId); +} + +std::string MergeImageFaceRequest::getImageURL()const +{ + return imageURL_; +} + +void MergeImageFaceRequest::setImageURL(const std::string& imageURL) +{ + imageURL_ = imageURL; + setBodyParameter("ImageURL", imageURL); +} + diff --git a/facebody/src/model/MergeImageFaceResult.cc b/facebody/src/model/MergeImageFaceResult.cc new file mode 100644 index 000000000..12ad680d6 --- /dev/null +++ b/facebody/src/model/MergeImageFaceResult.cc @@ -0,0 +1,66 @@ +/* + * 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; + +MergeImageFaceResult::MergeImageFaceResult() : + ServiceResult() +{} + +MergeImageFaceResult::MergeImageFaceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +MergeImageFaceResult::~MergeImageFaceResult() +{} + +void MergeImageFaceResult::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(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + +} + +std::string MergeImageFaceResult::getMessage()const +{ + return message_; +} + +MergeImageFaceResult::Data MergeImageFaceResult::getData()const +{ + return data_; +} + +std::string MergeImageFaceResult::getCode()const +{ + return code_; +} + diff --git a/facebody/src/model/PedestrianDetectAttributeRequest.cc b/facebody/src/model/PedestrianDetectAttributeRequest.cc new file mode 100644 index 000000000..689ec5763 --- /dev/null +++ b/facebody/src/model/PedestrianDetectAttributeRequest.cc @@ -0,0 +1,40 @@ +/* + * 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 new file mode 100644 index 000000000..0e13d1705 --- /dev/null +++ b/facebody/src/model/PedestrianDetectAttributeResult.cc @@ -0,0 +1,134 @@ +/* + * 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 backpackNode = value["Backpack"]; + if(!backpackNode["Score"].isNull()) + attributesItemObject.backpack.score = std::stof(backpackNode["Score"].asString()); + if(!backpackNode["Name"].isNull()) + attributesItemObject.backpack.name = backpackNode["Name"].asString(); + auto lowerWearNode = value["LowerWear"]; + if(!lowerWearNode["Score"].isNull()) + attributesItemObject.lowerWear.score = std::stof(lowerWearNode["Score"].asString()); + if(!lowerWearNode["Name"].isNull()) + attributesItemObject.lowerWear.name = lowerWearNode["Name"].asString(); + auto shoulderBagNode = value["ShoulderBag"]; + if(!shoulderBagNode["Score"].isNull()) + attributesItemObject.shoulderBag.score = std::stof(shoulderBagNode["Score"].asString()); + if(!shoulderBagNode["Name"].isNull()) + attributesItemObject.shoulderBag.name = shoulderBagNode["Name"].asString(); + auto orientNode = value["Orient"]; + if(!orientNode["Score"].isNull()) + attributesItemObject.orient.score = std::stof(orientNode["Score"].asString()); + if(!orientNode["Name"].isNull()) + attributesItemObject.orient.name = orientNode["Name"].asString(); + auto lowerColorNode = value["LowerColor"]; + if(!lowerColorNode["Score"].isNull()) + attributesItemObject.lowerColor.score = std::stof(lowerColorNode["Score"].asString()); + if(!lowerColorNode["Name"].isNull()) + attributesItemObject.lowerColor.name = lowerColorNode["Name"].asString(); + auto glassesNode = value["Glasses"]; + if(!glassesNode["Score"].isNull()) + attributesItemObject.glasses.score = std::stof(glassesNode["Score"].asString()); + if(!glassesNode["Name"].isNull()) + attributesItemObject.glasses.name = glassesNode["Name"].asString(); + auto upperColorNode = value["UpperColor"]; + if(!upperColorNode["Score"].isNull()) + attributesItemObject.upperColor.score = std::stof(upperColorNode["Score"].asString()); + if(!upperColorNode["Name"].isNull()) + attributesItemObject.upperColor.name = upperColorNode["Name"].asString(); + auto handbagNode = value["Handbag"]; + if(!handbagNode["Score"].isNull()) + attributesItemObject.handbag.score = std::stof(handbagNode["Score"].asString()); + if(!handbagNode["Name"].isNull()) + attributesItemObject.handbag.name = handbagNode["Name"].asString(); + auto hatNode = value["Hat"]; + if(!hatNode["Score"].isNull()) + attributesItemObject.hat.score = std::stof(hatNode["Score"].asString()); + if(!hatNode["Name"].isNull()) + attributesItemObject.hat.name = hatNode["Name"].asString(); + auto genderNode = value["Gender"]; + if(!genderNode["Score"].isNull()) + attributesItemObject.gender.score = std::stof(genderNode["Score"].asString()); + if(!genderNode["Name"].isNull()) + attributesItemObject.gender.name = genderNode["Name"].asString(); + auto upperWearNode = value["UpperWear"]; + if(!upperWearNode["Score"].isNull()) + attributesItemObject.upperWear.score = std::stof(upperWearNode["Score"].asString()); + if(!upperWearNode["Name"].isNull()) + attributesItemObject.upperWear.name = upperWearNode["Name"].asString(); + auto ageNode = value["Age"]; + if(!ageNode["Score"].isNull()) + attributesItemObject.age.score = std::stof(ageNode["Score"].asString()); + if(!ageNode["Name"].isNull()) + attributesItemObject.age.name = ageNode["Name"].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["BottomRightY"].isNull()) + boxesItemObject.bottomRightY = std::stof(dataNodeBoxesBoxesItem["BottomRightY"].asString()); + if(!dataNodeBoxesBoxesItem["BottomRightX"].isNull()) + boxesItemObject.bottomRightX = std::stof(dataNodeBoxesBoxesItem["BottomRightX"].asString()); + if(!dataNodeBoxesBoxesItem["TopLeftY"].isNull()) + boxesItemObject.topLeftY = std::stof(dataNodeBoxesBoxesItem["TopLeftY"].asString()); + if(!dataNodeBoxesBoxesItem["TopLeftX"].isNull()) + boxesItemObject.topLeftX = std::stof(dataNodeBoxesBoxesItem["TopLeftX"].asString()); + data_.boxes.push_back(boxesItemObject); + } + +} + +PedestrianDetectAttributeResult::Data PedestrianDetectAttributeResult::getData()const +{ + return data_; +} + diff --git a/facebody/src/model/QueryFaceImageTemplateRequest.cc b/facebody/src/model/QueryFaceImageTemplateRequest.cc new file mode 100644 index 000000000..1ead89645 --- /dev/null +++ b/facebody/src/model/QueryFaceImageTemplateRequest.cc @@ -0,0 +1,51 @@ +/* + * 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::QueryFaceImageTemplateRequest; + +QueryFaceImageTemplateRequest::QueryFaceImageTemplateRequest() : + RpcServiceRequest("facebody", "2019-12-30", "QueryFaceImageTemplate") +{ + setMethod(HttpRequest::Method::Get); +} + +QueryFaceImageTemplateRequest::~QueryFaceImageTemplateRequest() +{} + +std::string QueryFaceImageTemplateRequest::getUserId()const +{ + return userId_; +} + +void QueryFaceImageTemplateRequest::setUserId(const std::string& userId) +{ + userId_ = userId; + setParameter("UserId", userId); +} + +std::string QueryFaceImageTemplateRequest::getTemplateId()const +{ + return templateId_; +} + +void QueryFaceImageTemplateRequest::setTemplateId(const std::string& templateId) +{ + templateId_ = templateId; + setParameter("TemplateId", templateId); +} + diff --git a/facebody/src/model/QueryFaceImageTemplateResult.cc b/facebody/src/model/QueryFaceImageTemplateResult.cc new file mode 100644 index 000000000..c83fe5261 --- /dev/null +++ b/facebody/src/model/QueryFaceImageTemplateResult.cc @@ -0,0 +1,80 @@ +/* + * 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; + +QueryFaceImageTemplateResult::QueryFaceImageTemplateResult() : + ServiceResult() +{} + +QueryFaceImageTemplateResult::QueryFaceImageTemplateResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryFaceImageTemplateResult::~QueryFaceImageTemplateResult() +{} + +void QueryFaceImageTemplateResult::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["TemplateURL"].isNull()) + elementsItemObject.templateURL = dataNodeElementsElementsItem["TemplateURL"].asString(); + if(!dataNodeElementsElementsItem["UserId"].isNull()) + elementsItemObject.userId = dataNodeElementsElementsItem["UserId"].asString(); + if(!dataNodeElementsElementsItem["CreateTime"].isNull()) + elementsItemObject.createTime = dataNodeElementsElementsItem["CreateTime"].asString(); + if(!dataNodeElementsElementsItem["UpdateTime"].isNull()) + elementsItemObject.updateTime = dataNodeElementsElementsItem["UpdateTime"].asString(); + if(!dataNodeElementsElementsItem["TemplateId"].isNull()) + elementsItemObject.templateId = dataNodeElementsElementsItem["TemplateId"].asString(); + data_.elements.push_back(elementsItemObject); + } + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + +} + +std::string QueryFaceImageTemplateResult::getMessage()const +{ + return message_; +} + +QueryFaceImageTemplateResult::Data QueryFaceImageTemplateResult::getData()const +{ + return data_; +} + +std::string QueryFaceImageTemplateResult::getCode()const +{ + return code_; +} + diff --git a/facebody/src/model/RecognizeActionRequest.cc b/facebody/src/model/RecognizeActionRequest.cc new file mode 100644 index 000000000..d2e6277a3 --- /dev/null +++ b/facebody/src/model/RecognizeActionRequest.cc @@ -0,0 +1,66 @@ +/* + * 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 new file mode 100644 index 000000000..0ecf53864 --- /dev/null +++ b/facebody/src/model/RecognizeActionResult.cc @@ -0,0 +1,73 @@ +/* + * 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 new file mode 100644 index 000000000..dd54286aa --- /dev/null +++ b/facebody/src/model/RecognizeExpressionRequest.cc @@ -0,0 +1,40 @@ +/* + * 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 new file mode 100644 index 000000000..1ff794b80 --- /dev/null +++ b/facebody/src/model/RecognizeExpressionResult.cc @@ -0,0 +1,69 @@ +/* + * 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 new file mode 100644 index 000000000..55272b09b --- /dev/null +++ b/facebody/src/model/RecognizeFaceRequest.cc @@ -0,0 +1,51 @@ +/* + * 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 new file mode 100644 index 000000000..415e7f223 --- /dev/null +++ b/facebody/src/model/RecognizeFaceResult.cc @@ -0,0 +1,117 @@ +/* + * 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 new file mode 100644 index 000000000..38374509e --- /dev/null +++ b/facebody/src/model/RecognizePublicFaceRequest.cc @@ -0,0 +1,44 @@ +/* + * 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 new file mode 100644 index 000000000..b8b53ba6b --- /dev/null +++ b/facebody/src/model/RecognizePublicFaceResult.cc @@ -0,0 +1,98 @@ +/* + * 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 new file mode 100644 index 000000000..126784bb6 --- /dev/null +++ b/facebody/src/model/SearchBodyTraceRequest.cc @@ -0,0 +1,73 @@ +/* + * 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 new file mode 100644 index 000000000..71f3a1709 --- /dev/null +++ b/facebody/src/model/SearchBodyTraceResult.cc @@ -0,0 +1,80 @@ +/* + * 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 new file mode 100644 index 000000000..9a681cefc --- /dev/null +++ b/facebody/src/model/SearchFaceRequest.cc @@ -0,0 +1,73 @@ +/* + * 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 new file mode 100644 index 000000000..42ca5dc13 --- /dev/null +++ b/facebody/src/model/SearchFaceResult.cc @@ -0,0 +1,81 @@ +/* + * 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 new file mode 100644 index 000000000..fe3d1eaab --- /dev/null +++ b/facebody/src/model/SwapFacialFeaturesRequest.cc @@ -0,0 +1,62 @@ +/* + * 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 new file mode 100644 index 000000000..4f8f58890 --- /dev/null +++ b/facebody/src/model/SwapFacialFeaturesResult.cc @@ -0,0 +1,52 @@ +/* + * 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 new file mode 100644 index 000000000..c0c8f1315 --- /dev/null +++ b/facebody/src/model/UpdateFaceEntityRequest.cc @@ -0,0 +1,62 @@ +/* + * 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 new file mode 100644 index 000000000..003baa4f1 --- /dev/null +++ b/facebody/src/model/UpdateFaceEntityResult.cc @@ -0,0 +1,44 @@ +/* + * 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 new file mode 100644 index 000000000..6a82be42a --- /dev/null +++ b/facebody/src/model/VerifyFaceMaskRequest.cc @@ -0,0 +1,51 @@ +/* + * 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 new file mode 100644 index 000000000..b353cf1dc --- /dev/null +++ b/facebody/src/model/VerifyFaceMaskResult.cc @@ -0,0 +1,65 @@ +/* + * 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_; +} +