From 088c3010cd33ede13c89b6e440bbbb6265bec000 Mon Sep 17 00:00:00 2001 From: sdk-team Date: Thu, 17 Sep 2020 16:57:51 +0000 Subject: [PATCH] Add Api DetectIPCPedestrianOptimized. --- CHANGELOG | 3 + facebody/CMakeLists.txt | 152 +- .../alibabacloud/facebody/FacebodyClient.h | 300 +++- .../facebody/model/AddFaceEntityRequest.h | 54 + .../facebody/model/AddFaceEntityResult.h | 49 + .../facebody/model/AddFaceRequest.h | 57 + .../facebody/model/AddFaceResult.h | 55 + .../facebody/model/BlurFaceRequest.h | 48 + .../facebody/model/BlurFaceResult.h | 55 + .../facebody/model/BodyPostureRequest.h | 48 + .../facebody/model/BodyPostureResult.h | 80 + .../facebody/model/CompareFaceRequest.h | 54 + .../facebody/model/CompareFaceResult.h | 58 + .../facebody/model/CreateFaceDbRequest.h | 48 + .../facebody/model/CreateFaceDbResult.h | 49 + .../facebody/model/DeleteFaceDbRequest.h | 48 + .../facebody/model/DeleteFaceDbResult.h | 49 + .../facebody/model/DeleteFaceEntityRequest.h | 51 + .../facebody/model/DeleteFaceEntityResult.h | 49 + .../facebody/model/DeleteFaceRequest.h | 51 + .../facebody/model/DeleteFaceResult.h | 49 + .../facebody/model/DetectBodyCountRequest.h | 48 + .../facebody/model/DetectBodyCountResult.h | 55 + .../facebody/model/DetectCelebrityRequest.h | 48 + .../facebody/model/DetectCelebrityResult.h | 62 + .../facebody/model/DetectChefCapRequest.h | 48 + .../facebody/model/DetectChefCapResult.h | 61 + .../facebody/model/DetectFaceRequest.h | 51 + .../facebody/model/DetectFaceResult.h | 61 + .../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 + .../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 | 51 + .../ExtractPedestrianFeatureAttrResult.h | 72 + ...ExtractPedestrianFeatureAttributeRequest.h | 48 + .../ExtractPedestrianFeatureAttributeResult.h | 72 + .../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 + .../facebody/model/GetFaceEntityRequest.h | 51 + .../facebody/model/GetFaceEntityResult.h | 62 + .../facebody/model/HandPostureRequest.h | 48 + .../facebody/model/HandPostureResult.h | 94 ++ .../facebody/model/ListFaceDbsRequest.h | 45 + .../facebody/model/ListFaceDbsResult.h | 59 + .../facebody/model/ListFaceEntitiesRequest.h | 66 + .../facebody/model/ListFaceEntitiesResult.h | 66 + .../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 | 67 + .../model/RecognizePublicFaceRequest.h | 53 + .../model/RecognizePublicFaceResult.h | 82 + .../facebody/model/SearchFaceRequest.h | 54 + .../facebody/model/SearchFaceResult.h | 74 + .../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 | 1338 ++++++++++++++++- facebody/src/model/AddFaceEntityRequest.cc | 62 + facebody/src/model/AddFaceEntityResult.cc | 44 + facebody/src/model/AddFaceRequest.cc | 73 + facebody/src/model/AddFaceResult.cc | 52 + facebody/src/model/BlurFaceRequest.cc | 40 + facebody/src/model/BlurFaceResult.cc | 52 + facebody/src/model/BodyPostureRequest.cc | 40 + facebody/src/model/BodyPostureResult.cc | 88 ++ facebody/src/model/CompareFaceRequest.cc | 62 + facebody/src/model/CompareFaceResult.cc | 61 + facebody/src/model/CreateFaceDbRequest.cc | 40 + facebody/src/model/CreateFaceDbResult.cc | 44 + facebody/src/model/DeleteFaceDbRequest.cc | 40 + facebody/src/model/DeleteFaceDbResult.cc | 44 + facebody/src/model/DeleteFaceEntityRequest.cc | 51 + facebody/src/model/DeleteFaceEntityResult.cc | 44 + facebody/src/model/DeleteFaceRequest.cc | 51 + facebody/src/model/DeleteFaceResult.cc | 44 + facebody/src/model/DetectBodyCountRequest.cc | 40 + facebody/src/model/DetectBodyCountResult.cc | 52 + facebody/src/model/DetectCelebrityRequest.cc | 40 + facebody/src/model/DetectCelebrityResult.cc | 65 + facebody/src/model/DetectChefCapRequest.cc | 40 + facebody/src/model/DetectChefCapResult.cc | 63 + facebody/src/model/DetectFaceRequest.cc | 51 + facebody/src/model/DetectFaceResult.cc | 69 + .../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 + 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 | 51 + .../ExtractPedestrianFeatureAttrResult.cc | 86 ++ ...xtractPedestrianFeatureAttributeRequest.cc | 40 + ...ExtractPedestrianFeatureAttributeResult.cc | 86 ++ 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 + facebody/src/model/GetFaceEntityRequest.cc | 51 + facebody/src/model/GetFaceEntityResult.cc | 64 + facebody/src/model/HandPostureRequest.cc | 40 + facebody/src/model/HandPostureResult.cc | 101 ++ 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/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 | 86 ++ .../src/model/RecognizePublicFaceRequest.cc | 44 + .../src/model/RecognizePublicFaceResult.cc | 98 ++ facebody/src/model/SearchFaceRequest.cc | 62 + facebody/src/model/SearchFaceResult.cc | 79 + .../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 + 152 files changed, 10281 insertions(+), 7 deletions(-) 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/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/CreateFaceDbRequest.h create mode 100644 facebody/include/alibabacloud/facebody/model/CreateFaceDbResult.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/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/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/GetFaceEntityRequest.h create mode 100644 facebody/include/alibabacloud/facebody/model/GetFaceEntityResult.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/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/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/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/AddFaceEntityRequest.cc create mode 100644 facebody/src/model/AddFaceEntityResult.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/CreateFaceDbRequest.cc create mode 100644 facebody/src/model/CreateFaceDbResult.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/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/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/GetFaceEntityRequest.cc create mode 100644 facebody/src/model/GetFaceEntityResult.cc create mode 100644 facebody/src/model/HandPostureRequest.cc create mode 100644 facebody/src/model/HandPostureResult.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/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/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 86945334a..19a087c41 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,6 +1,9 @@ 2020-09-17 Version: patch - Add Api DetectIPCPedestrianOptimized. +2020-09-17 Version: patch +- Add Api DetectIPCPedestrianOptimized. + 2020-09-17 Version: patch - GetTitleIntelligence add interface. diff --git a/facebody/CMakeLists.txt b/facebody/CMakeLists.txt index d0e943a7e..3848ffdc1 100644 --- a/facebody/CMakeLists.txt +++ b/facebody/CMakeLists.txt @@ -21,13 +21,161 @@ set(facebody_public_header include/alibabacloud/facebody/FacebodyExport.h ) set(facebody_public_header_model + include/alibabacloud/facebody/model/AddFaceRequest.h + include/alibabacloud/facebody/model/AddFaceResult.h + include/alibabacloud/facebody/model/AddFaceEntityRequest.h + include/alibabacloud/facebody/model/AddFaceEntityResult.h + include/alibabacloud/facebody/model/BlurFaceRequest.h + include/alibabacloud/facebody/model/BlurFaceResult.h + include/alibabacloud/facebody/model/BodyPostureRequest.h + include/alibabacloud/facebody/model/BodyPostureResult.h + include/alibabacloud/facebody/model/CompareFaceRequest.h + include/alibabacloud/facebody/model/CompareFaceResult.h + include/alibabacloud/facebody/model/CreateFaceDbRequest.h + include/alibabacloud/facebody/model/CreateFaceDbResult.h + include/alibabacloud/facebody/model/DeleteFaceRequest.h + include/alibabacloud/facebody/model/DeleteFaceResult.h + include/alibabacloud/facebody/model/DeleteFaceDbRequest.h + include/alibabacloud/facebody/model/DeleteFaceDbResult.h + include/alibabacloud/facebody/model/DeleteFaceEntityRequest.h + include/alibabacloud/facebody/model/DeleteFaceEntityResult.h + include/alibabacloud/facebody/model/DetectBodyCountRequest.h + include/alibabacloud/facebody/model/DetectBodyCountResult.h + include/alibabacloud/facebody/model/DetectCelebrityRequest.h + include/alibabacloud/facebody/model/DetectCelebrityResult.h + include/alibabacloud/facebody/model/DetectChefCapRequest.h + include/alibabacloud/facebody/model/DetectChefCapResult.h + include/alibabacloud/facebody/model/DetectFaceRequest.h + include/alibabacloud/facebody/model/DetectFaceResult.h + include/alibabacloud/facebody/model/DetectIPCPedestrianRequest.h + include/alibabacloud/facebody/model/DetectIPCPedestrianResult.h include/alibabacloud/facebody/model/DetectIPCPedestrianOptimizedRequest.h - include/alibabacloud/facebody/model/DetectIPCPedestrianOptimizedResult.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/DetectVideoLivingFaceRequest.h + include/alibabacloud/facebody/model/DetectVideoLivingFaceResult.h + include/alibabacloud/facebody/model/EnhanceFaceRequest.h + include/alibabacloud/facebody/model/EnhanceFaceResult.h + include/alibabacloud/facebody/model/ExtractPedestrianFeatureAttrRequest.h + include/alibabacloud/facebody/model/ExtractPedestrianFeatureAttrResult.h + include/alibabacloud/facebody/model/ExtractPedestrianFeatureAttributeRequest.h + include/alibabacloud/facebody/model/ExtractPedestrianFeatureAttributeResult.h + include/alibabacloud/facebody/model/FaceBeautyRequest.h + include/alibabacloud/facebody/model/FaceBeautyResult.h + include/alibabacloud/facebody/model/FaceFilterRequest.h + include/alibabacloud/facebody/model/FaceFilterResult.h + include/alibabacloud/facebody/model/FaceMakeupRequest.h + include/alibabacloud/facebody/model/FaceMakeupResult.h + include/alibabacloud/facebody/model/FaceTidyupRequest.h + include/alibabacloud/facebody/model/FaceTidyupResult.h + include/alibabacloud/facebody/model/GetFaceEntityRequest.h + include/alibabacloud/facebody/model/GetFaceEntityResult.h + include/alibabacloud/facebody/model/HandPostureRequest.h + include/alibabacloud/facebody/model/HandPostureResult.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/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/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/AddFaceRequest.cc + src/model/AddFaceResult.cc + src/model/AddFaceEntityRequest.cc + src/model/AddFaceEntityResult.cc + src/model/BlurFaceRequest.cc + src/model/BlurFaceResult.cc + src/model/BodyPostureRequest.cc + src/model/BodyPostureResult.cc + src/model/CompareFaceRequest.cc + src/model/CompareFaceResult.cc + src/model/CreateFaceDbRequest.cc + src/model/CreateFaceDbResult.cc + src/model/DeleteFaceRequest.cc + src/model/DeleteFaceResult.cc + src/model/DeleteFaceDbRequest.cc + src/model/DeleteFaceDbResult.cc + src/model/DeleteFaceEntityRequest.cc + src/model/DeleteFaceEntityResult.cc + src/model/DetectBodyCountRequest.cc + src/model/DetectBodyCountResult.cc + src/model/DetectCelebrityRequest.cc + src/model/DetectCelebrityResult.cc + src/model/DetectChefCapRequest.cc + src/model/DetectChefCapResult.cc + src/model/DetectFaceRequest.cc + src/model/DetectFaceResult.cc + src/model/DetectIPCPedestrianRequest.cc + src/model/DetectIPCPedestrianResult.cc src/model/DetectIPCPedestrianOptimizedRequest.cc - src/model/DetectIPCPedestrianOptimizedResult.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/DetectVideoLivingFaceRequest.cc + src/model/DetectVideoLivingFaceResult.cc + src/model/EnhanceFaceRequest.cc + src/model/EnhanceFaceResult.cc + src/model/ExtractPedestrianFeatureAttrRequest.cc + src/model/ExtractPedestrianFeatureAttrResult.cc + src/model/ExtractPedestrianFeatureAttributeRequest.cc + src/model/ExtractPedestrianFeatureAttributeResult.cc + src/model/FaceBeautyRequest.cc + src/model/FaceBeautyResult.cc + src/model/FaceFilterRequest.cc + src/model/FaceFilterResult.cc + src/model/FaceMakeupRequest.cc + src/model/FaceMakeupResult.cc + src/model/FaceTidyupRequest.cc + src/model/FaceTidyupResult.cc + src/model/GetFaceEntityRequest.cc + src/model/GetFaceEntityResult.cc + src/model/HandPostureRequest.cc + src/model/HandPostureResult.cc + src/model/ListFaceDbsRequest.cc + src/model/ListFaceDbsResult.cc + src/model/ListFaceEntitiesRequest.cc + src/model/ListFaceEntitiesResult.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/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 39e2d9d6f..6f7f36a01 100644 --- a/facebody/include/alibabacloud/facebody/FacebodyClient.h +++ b/facebody/include/alibabacloud/facebody/FacebodyClient.h @@ -20,30 +20,326 @@ #include #include #include -#include +#include #include "FacebodyExport.h" +#include "model/AddFaceRequest.h" +#include "model/AddFaceResult.h" +#include "model/AddFaceEntityRequest.h" +#include "model/AddFaceEntityResult.h" +#include "model/BlurFaceRequest.h" +#include "model/BlurFaceResult.h" +#include "model/BodyPostureRequest.h" +#include "model/BodyPostureResult.h" +#include "model/CompareFaceRequest.h" +#include "model/CompareFaceResult.h" +#include "model/CreateFaceDbRequest.h" +#include "model/CreateFaceDbResult.h" +#include "model/DeleteFaceRequest.h" +#include "model/DeleteFaceResult.h" +#include "model/DeleteFaceDbRequest.h" +#include "model/DeleteFaceDbResult.h" +#include "model/DeleteFaceEntityRequest.h" +#include "model/DeleteFaceEntityResult.h" +#include "model/DetectBodyCountRequest.h" +#include "model/DetectBodyCountResult.h" +#include "model/DetectCelebrityRequest.h" +#include "model/DetectCelebrityResult.h" +#include "model/DetectChefCapRequest.h" +#include "model/DetectChefCapResult.h" +#include "model/DetectFaceRequest.h" +#include "model/DetectFaceResult.h" +#include "model/DetectIPCPedestrianRequest.h" +#include "model/DetectIPCPedestrianResult.h" #include "model/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/DetectVideoLivingFaceRequest.h" +#include "model/DetectVideoLivingFaceResult.h" +#include "model/EnhanceFaceRequest.h" +#include "model/EnhanceFaceResult.h" +#include "model/ExtractPedestrianFeatureAttrRequest.h" +#include "model/ExtractPedestrianFeatureAttrResult.h" +#include "model/ExtractPedestrianFeatureAttributeRequest.h" +#include "model/ExtractPedestrianFeatureAttributeResult.h" +#include "model/FaceBeautyRequest.h" +#include "model/FaceBeautyResult.h" +#include "model/FaceFilterRequest.h" +#include "model/FaceFilterResult.h" +#include "model/FaceMakeupRequest.h" +#include "model/FaceMakeupResult.h" +#include "model/FaceTidyupRequest.h" +#include "model/FaceTidyupResult.h" +#include "model/GetFaceEntityRequest.h" +#include "model/GetFaceEntityResult.h" +#include "model/HandPostureRequest.h" +#include "model/HandPostureResult.h" +#include "model/ListFaceDbsRequest.h" +#include "model/ListFaceDbsResult.h" +#include "model/ListFaceEntitiesRequest.h" +#include "model/ListFaceEntitiesResult.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/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 { namespace Facebody { - class ALIBABACLOUD_FACEBODY_EXPORT FacebodyClient : public RoaServiceClient + class ALIBABACLOUD_FACEBODY_EXPORT FacebodyClient : public RpcServiceClient { public: + typedef Outcome AddFaceOutcome; + typedef std::future AddFaceOutcomeCallable; + typedef std::function&)> AddFaceAsyncHandler; + typedef Outcome AddFaceEntityOutcome; + typedef std::future AddFaceEntityOutcomeCallable; + typedef std::function&)> AddFaceEntityAsyncHandler; + typedef Outcome BlurFaceOutcome; + typedef std::future BlurFaceOutcomeCallable; + typedef std::function&)> BlurFaceAsyncHandler; + typedef Outcome BodyPostureOutcome; + typedef std::future BodyPostureOutcomeCallable; + typedef std::function&)> BodyPostureAsyncHandler; + typedef Outcome CompareFaceOutcome; + typedef std::future CompareFaceOutcomeCallable; + typedef std::function&)> CompareFaceAsyncHandler; + typedef Outcome CreateFaceDbOutcome; + typedef std::future CreateFaceDbOutcomeCallable; + typedef std::function&)> CreateFaceDbAsyncHandler; + typedef Outcome DeleteFaceOutcome; + typedef std::future DeleteFaceOutcomeCallable; + typedef std::function&)> DeleteFaceAsyncHandler; + typedef Outcome DeleteFaceDbOutcome; + typedef std::future DeleteFaceDbOutcomeCallable; + typedef std::function&)> DeleteFaceDbAsyncHandler; + typedef Outcome DeleteFaceEntityOutcome; + typedef std::future DeleteFaceEntityOutcomeCallable; + typedef std::function&)> DeleteFaceEntityAsyncHandler; + typedef Outcome DetectBodyCountOutcome; + typedef std::future DetectBodyCountOutcomeCallable; + typedef std::function&)> DetectBodyCountAsyncHandler; + typedef Outcome DetectCelebrityOutcome; + typedef std::future DetectCelebrityOutcomeCallable; + typedef std::function&)> DetectCelebrityAsyncHandler; + typedef Outcome DetectChefCapOutcome; + typedef std::future DetectChefCapOutcomeCallable; + typedef std::function&)> DetectChefCapAsyncHandler; + typedef Outcome DetectFaceOutcome; + typedef std::future DetectFaceOutcomeCallable; + typedef std::function&)> DetectFaceAsyncHandler; + typedef Outcome DetectIPCPedestrianOutcome; + typedef std::future DetectIPCPedestrianOutcomeCallable; + typedef std::function&)> DetectIPCPedestrianAsyncHandler; typedef Outcome 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 DetectVideoLivingFaceOutcome; + typedef std::future DetectVideoLivingFaceOutcomeCallable; + typedef std::function&)> DetectVideoLivingFaceAsyncHandler; + typedef Outcome EnhanceFaceOutcome; + typedef std::future EnhanceFaceOutcomeCallable; + typedef std::function&)> EnhanceFaceAsyncHandler; + typedef Outcome ExtractPedestrianFeatureAttrOutcome; + typedef std::future ExtractPedestrianFeatureAttrOutcomeCallable; + typedef std::function&)> ExtractPedestrianFeatureAttrAsyncHandler; + typedef Outcome ExtractPedestrianFeatureAttributeOutcome; + typedef std::future ExtractPedestrianFeatureAttributeOutcomeCallable; + typedef std::function&)> ExtractPedestrianFeatureAttributeAsyncHandler; + typedef Outcome FaceBeautyOutcome; + typedef std::future FaceBeautyOutcomeCallable; + typedef std::function&)> FaceBeautyAsyncHandler; + typedef Outcome FaceFilterOutcome; + typedef std::future FaceFilterOutcomeCallable; + typedef std::function&)> FaceFilterAsyncHandler; + typedef Outcome FaceMakeupOutcome; + typedef std::future FaceMakeupOutcomeCallable; + typedef std::function&)> FaceMakeupAsyncHandler; + typedef Outcome FaceTidyupOutcome; + typedef std::future FaceTidyupOutcomeCallable; + typedef std::function&)> FaceTidyupAsyncHandler; + typedef Outcome GetFaceEntityOutcome; + typedef std::future GetFaceEntityOutcomeCallable; + typedef std::function&)> GetFaceEntityAsyncHandler; + typedef Outcome HandPostureOutcome; + typedef std::future HandPostureOutcomeCallable; + typedef std::function&)> HandPostureAsyncHandler; + typedef Outcome ListFaceDbsOutcome; + typedef std::future ListFaceDbsOutcomeCallable; + typedef std::function&)> ListFaceDbsAsyncHandler; + typedef Outcome ListFaceEntitiesOutcome; + typedef std::future ListFaceEntitiesOutcomeCallable; + typedef std::function&)> ListFaceEntitiesAsyncHandler; + 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 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(); + AddFaceOutcome addFace(const Model::AddFaceRequest &request)const; + void addFaceAsync(const Model::AddFaceRequest& request, const AddFaceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddFaceOutcomeCallable addFaceCallable(const Model::AddFaceRequest& request) const; + AddFaceEntityOutcome addFaceEntity(const Model::AddFaceEntityRequest &request)const; + void addFaceEntityAsync(const Model::AddFaceEntityRequest& request, const AddFaceEntityAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddFaceEntityOutcomeCallable addFaceEntityCallable(const Model::AddFaceEntityRequest& request) const; + BlurFaceOutcome blurFace(const Model::BlurFaceRequest &request)const; + void blurFaceAsync(const Model::BlurFaceRequest& request, const BlurFaceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + BlurFaceOutcomeCallable blurFaceCallable(const Model::BlurFaceRequest& request) const; + BodyPostureOutcome bodyPosture(const Model::BodyPostureRequest &request)const; + void bodyPostureAsync(const Model::BodyPostureRequest& request, const BodyPostureAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + BodyPostureOutcomeCallable bodyPostureCallable(const Model::BodyPostureRequest& request) const; + CompareFaceOutcome compareFace(const Model::CompareFaceRequest &request)const; + void compareFaceAsync(const Model::CompareFaceRequest& request, const CompareFaceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CompareFaceOutcomeCallable compareFaceCallable(const Model::CompareFaceRequest& request) const; + 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; + DeleteFaceOutcome deleteFace(const Model::DeleteFaceRequest &request)const; + void deleteFaceAsync(const Model::DeleteFaceRequest& request, const DeleteFaceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteFaceOutcomeCallable deleteFaceCallable(const Model::DeleteFaceRequest& request) const; + DeleteFaceDbOutcome deleteFaceDb(const Model::DeleteFaceDbRequest &request)const; + void deleteFaceDbAsync(const Model::DeleteFaceDbRequest& request, const DeleteFaceDbAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteFaceDbOutcomeCallable deleteFaceDbCallable(const Model::DeleteFaceDbRequest& request) const; + DeleteFaceEntityOutcome deleteFaceEntity(const Model::DeleteFaceEntityRequest &request)const; + void deleteFaceEntityAsync(const Model::DeleteFaceEntityRequest& request, const DeleteFaceEntityAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteFaceEntityOutcomeCallable deleteFaceEntityCallable(const Model::DeleteFaceEntityRequest& request) const; + DetectBodyCountOutcome detectBodyCount(const Model::DetectBodyCountRequest &request)const; + void detectBodyCountAsync(const Model::DetectBodyCountRequest& request, const DetectBodyCountAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DetectBodyCountOutcomeCallable detectBodyCountCallable(const Model::DetectBodyCountRequest& request) const; + DetectCelebrityOutcome detectCelebrity(const Model::DetectCelebrityRequest &request)const; + void detectCelebrityAsync(const Model::DetectCelebrityRequest& request, const DetectCelebrityAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DetectCelebrityOutcomeCallable detectCelebrityCallable(const Model::DetectCelebrityRequest& request) const; + DetectChefCapOutcome detectChefCap(const Model::DetectChefCapRequest &request)const; + void detectChefCapAsync(const Model::DetectChefCapRequest& request, const DetectChefCapAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DetectChefCapOutcomeCallable detectChefCapCallable(const Model::DetectChefCapRequest& request) const; + DetectFaceOutcome detectFace(const Model::DetectFaceRequest &request)const; + void detectFaceAsync(const Model::DetectFaceRequest& request, const DetectFaceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DetectFaceOutcomeCallable detectFaceCallable(const Model::DetectFaceRequest& request) const; + DetectIPCPedestrianOutcome detectIPCPedestrian(const Model::DetectIPCPedestrianRequest &request)const; + void detectIPCPedestrianAsync(const Model::DetectIPCPedestrianRequest& request, const DetectIPCPedestrianAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DetectIPCPedestrianOutcomeCallable detectIPCPedestrianCallable(const Model::DetectIPCPedestrianRequest& request) const; 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; + DetectVideoLivingFaceOutcome detectVideoLivingFace(const Model::DetectVideoLivingFaceRequest &request)const; + void detectVideoLivingFaceAsync(const Model::DetectVideoLivingFaceRequest& request, const DetectVideoLivingFaceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DetectVideoLivingFaceOutcomeCallable detectVideoLivingFaceCallable(const Model::DetectVideoLivingFaceRequest& request) const; + EnhanceFaceOutcome enhanceFace(const Model::EnhanceFaceRequest &request)const; + void enhanceFaceAsync(const Model::EnhanceFaceRequest& request, const EnhanceFaceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + EnhanceFaceOutcomeCallable enhanceFaceCallable(const Model::EnhanceFaceRequest& request) const; + ExtractPedestrianFeatureAttrOutcome extractPedestrianFeatureAttr(const Model::ExtractPedestrianFeatureAttrRequest &request)const; + void extractPedestrianFeatureAttrAsync(const Model::ExtractPedestrianFeatureAttrRequest& request, const ExtractPedestrianFeatureAttrAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ExtractPedestrianFeatureAttrOutcomeCallable extractPedestrianFeatureAttrCallable(const Model::ExtractPedestrianFeatureAttrRequest& request) const; + ExtractPedestrianFeatureAttributeOutcome extractPedestrianFeatureAttribute(const Model::ExtractPedestrianFeatureAttributeRequest &request)const; + void extractPedestrianFeatureAttributeAsync(const Model::ExtractPedestrianFeatureAttributeRequest& request, const ExtractPedestrianFeatureAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ExtractPedestrianFeatureAttributeOutcomeCallable extractPedestrianFeatureAttributeCallable(const Model::ExtractPedestrianFeatureAttributeRequest& request) const; + FaceBeautyOutcome faceBeauty(const Model::FaceBeautyRequest &request)const; + void faceBeautyAsync(const Model::FaceBeautyRequest& request, const FaceBeautyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + FaceBeautyOutcomeCallable faceBeautyCallable(const Model::FaceBeautyRequest& request) const; + FaceFilterOutcome faceFilter(const Model::FaceFilterRequest &request)const; + void faceFilterAsync(const Model::FaceFilterRequest& request, const FaceFilterAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + FaceFilterOutcomeCallable faceFilterCallable(const Model::FaceFilterRequest& request) const; + FaceMakeupOutcome faceMakeup(const Model::FaceMakeupRequest &request)const; + void faceMakeupAsync(const Model::FaceMakeupRequest& request, const FaceMakeupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + FaceMakeupOutcomeCallable faceMakeupCallable(const Model::FaceMakeupRequest& request) const; + FaceTidyupOutcome faceTidyup(const Model::FaceTidyupRequest &request)const; + void faceTidyupAsync(const Model::FaceTidyupRequest& request, const FaceTidyupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + FaceTidyupOutcomeCallable faceTidyupCallable(const Model::FaceTidyupRequest& request) const; + 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; + 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; + 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; + 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; + 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/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/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..c2504ea3c --- /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(); + + int getImageType()const; + void setImageType(int imageType); + std::string getImageURLB()const; + void setImageURLB(const std::string& imageURLB); + std::string getImageURLA()const; + void setImageURLA(const std::string& imageURLA); + + private: + int imageType_; + std::string imageURLB_; + std::string imageURLA_; + + }; + } + } +} +#endif // !ALIBABACLOUD_FACEBODY_MODEL_COMPAREFACEREQUEST_H_ \ No newline at end of file diff --git a/facebody/include/alibabacloud/facebody/model/CompareFaceResult.h b/facebody/include/alibabacloud/facebody/model/CompareFaceResult.h 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/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/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/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..1942ea422 --- /dev/null +++ b/facebody/include/alibabacloud/facebody/model/DetectFaceResult.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_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 + { + std::vector faceProbabilityList; + int landmarkCount; + std::vector faceRectangles; + std::vector landmarks; + 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/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..33af1b78a --- /dev/null +++ b/facebody/include/alibabacloud/facebody/model/ExtractPedestrianFeatureAttrRequest.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_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); + + private: + std::string mode_; + std::string imageURL_; + + }; + } + } +} +#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..e5915f41c --- /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; + float qualityScore; + std::string lowerColor; + std::string gender; + std::string feature; + float upperColorScore; + float lowerColorScore; + float genderScore; + std::string objType; + float lowerTypeScore; + float hairScore; + std::string upperColor; + std::string lowerType; + float ageScore; + float objTypeScore; + std::string age; + }; + + + ExtractPedestrianFeatureAttrResult(); + explicit ExtractPedestrianFeatureAttrResult(const std::string &payload); + ~ExtractPedestrianFeatureAttrResult(); + Data getData()const; + + protected: + void parse(const std::string &payload); + private: + Data data_; + + }; + } + } +} +#endif // !ALIBABACLOUD_FACEBODY_MODEL_EXTRACTPEDESTRIANFEATUREATTRRESULT_H_ \ No newline at end of file diff --git a/facebody/include/alibabacloud/facebody/model/ExtractPedestrianFeatureAttributeRequest.h b/facebody/include/alibabacloud/facebody/model/ExtractPedestrianFeatureAttributeRequest.h new file mode 100644 index 000000000..a22249ff0 --- /dev/null +++ b/facebody/include/alibabacloud/facebody/model/ExtractPedestrianFeatureAttributeRequest.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_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: + ExtractPedestrianFeatureAttributeRequest(); + ~ExtractPedestrianFeatureAttributeRequest(); + + std::string getImageURL()const; + void setImageURL(const std::string& imageURL); + + private: + 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..b95aad8ac --- /dev/null +++ b/facebody/include/alibabacloud/facebody/model/ExtractPedestrianFeatureAttributeResult.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_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 + { + 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; + }; + + + 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/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/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/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/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..1ace4f285 --- /dev/null +++ b/facebody/include/alibabacloud/facebody/model/RecognizeFaceResult.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_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 + { + std::vector faceRectangles; + int denseFeatureLength; + std::vector poseList; + std::vector pupils; + std::vector genderList; + std::vector denseFeatures; + std::vector faceProbabilityList; + 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/SearchFaceRequest.h b/facebody/include/alibabacloud/facebody/model/SearchFaceRequest.h new file mode 100644 index 000000000..a52d5d2c1 --- /dev/null +++ b/facebody/include/alibabacloud/facebody/model/SearchFaceRequest.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_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 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 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..14b51edd1 --- /dev/null +++ b/facebody/include/alibabacloud/facebody/model/SearchFaceResult.h @@ -0,0 +1,74 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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 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 a5a10d6ca..27e7ef68e 100644 --- a/facebody/src/FacebodyClient.cc +++ b/facebody/src/FacebodyClient.cc @@ -28,21 +28,21 @@ namespace } FacebodyClient::FacebodyClient(const Credentials &credentials, const ClientConfiguration &configuration) : - RoaServiceClient(SERVICE_NAME, std::make_shared(credentials), configuration) + RpcServiceClient(SERVICE_NAME, std::make_shared(credentials), configuration) { auto locationClient = std::make_shared(credentials, configuration); endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); } FacebodyClient::FacebodyClient(const std::shared_ptr& credentialsProvider, const ClientConfiguration & configuration) : - RoaServiceClient(SERVICE_NAME, credentialsProvider, configuration) + RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration) { auto locationClient = std::make_shared(credentialsProvider, configuration); endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); } FacebodyClient::FacebodyClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) : - RoaServiceClient(SERVICE_NAME, std::make_shared(accessKeyId, accessKeySecret), configuration) + RpcServiceClient(SERVICE_NAME, std::make_shared(accessKeyId, accessKeySecret), configuration) { auto locationClient = std::make_shared(accessKeyId, accessKeySecret, configuration); endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); @@ -51,6 +51,510 @@ FacebodyClient::FacebodyClient(const std::string & accessKeyId, const std::strin FacebodyClient::~FacebodyClient() {} +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::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::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::DeleteFaceOutcome FacebodyClient::deleteFace(const DeleteFaceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteFaceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteFaceOutcome(DeleteFaceResult(outcome.result())); + else + return DeleteFaceOutcome(outcome.error()); +} + +void FacebodyClient::deleteFaceAsync(const DeleteFaceRequest& request, const DeleteFaceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteFace(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +FacebodyClient::DeleteFaceOutcomeCallable FacebodyClient::deleteFaceCallable(const DeleteFaceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteFace(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +FacebodyClient::DeleteFaceDbOutcome FacebodyClient::deleteFaceDb(const DeleteFaceDbRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteFaceDbOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteFaceDbOutcome(DeleteFaceDbResult(outcome.result())); + else + return DeleteFaceDbOutcome(outcome.error()); +} + +void FacebodyClient::deleteFaceDbAsync(const DeleteFaceDbRequest& request, const DeleteFaceDbAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteFaceDb(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +FacebodyClient::DeleteFaceDbOutcomeCallable FacebodyClient::deleteFaceDbCallable(const DeleteFaceDbRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteFaceDb(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +FacebodyClient::DeleteFaceEntityOutcome FacebodyClient::deleteFaceEntity(const DeleteFaceEntityRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteFaceEntityOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteFaceEntityOutcome(DeleteFaceEntityResult(outcome.result())); + else + return DeleteFaceEntityOutcome(outcome.error()); +} + +void FacebodyClient::deleteFaceEntityAsync(const DeleteFaceEntityRequest& request, const DeleteFaceEntityAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteFaceEntity(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +FacebodyClient::DeleteFaceEntityOutcomeCallable FacebodyClient::deleteFaceEntityCallable(const DeleteFaceEntityRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteFaceEntity(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +FacebodyClient::DetectBodyCountOutcome FacebodyClient::detectBodyCount(const DetectBodyCountRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DetectBodyCountOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DetectBodyCountOutcome(DetectBodyCountResult(outcome.result())); + else + return DetectBodyCountOutcome(outcome.error()); +} + +void FacebodyClient::detectBodyCountAsync(const DetectBodyCountRequest& request, const DetectBodyCountAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, detectBodyCount(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +FacebodyClient::DetectBodyCountOutcomeCallable FacebodyClient::detectBodyCountCallable(const DetectBodyCountRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->detectBodyCount(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +FacebodyClient::DetectCelebrityOutcome FacebodyClient::detectCelebrity(const DetectCelebrityRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DetectCelebrityOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DetectCelebrityOutcome(DetectCelebrityResult(outcome.result())); + else + return DetectCelebrityOutcome(outcome.error()); +} + +void FacebodyClient::detectCelebrityAsync(const DetectCelebrityRequest& request, const DetectCelebrityAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, detectCelebrity(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +FacebodyClient::DetectCelebrityOutcomeCallable FacebodyClient::detectCelebrityCallable(const DetectCelebrityRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->detectCelebrity(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +FacebodyClient::DetectChefCapOutcome FacebodyClient::detectChefCap(const DetectChefCapRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DetectChefCapOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DetectChefCapOutcome(DetectChefCapResult(outcome.result())); + else + return DetectChefCapOutcome(outcome.error()); +} + +void FacebodyClient::detectChefCapAsync(const DetectChefCapRequest& request, const DetectChefCapAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, detectChefCap(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +FacebodyClient::DetectChefCapOutcomeCallable FacebodyClient::detectChefCapCallable(const DetectChefCapRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->detectChefCap(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +FacebodyClient::DetectFaceOutcome FacebodyClient::detectFace(const DetectFaceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DetectFaceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DetectFaceOutcome(DetectFaceResult(outcome.result())); + else + return DetectFaceOutcome(outcome.error()); +} + +void FacebodyClient::detectFaceAsync(const DetectFaceRequest& request, const DetectFaceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, detectFace(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +FacebodyClient::DetectFaceOutcomeCallable FacebodyClient::detectFaceCallable(const DetectFaceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->detectFace(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +FacebodyClient::DetectIPCPedestrianOutcome FacebodyClient::detectIPCPedestrian(const DetectIPCPedestrianRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DetectIPCPedestrianOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DetectIPCPedestrianOutcome(DetectIPCPedestrianResult(outcome.result())); + else + return DetectIPCPedestrianOutcome(outcome.error()); +} + +void FacebodyClient::detectIPCPedestrianAsync(const DetectIPCPedestrianRequest& request, const DetectIPCPedestrianAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, detectIPCPedestrian(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +FacebodyClient::DetectIPCPedestrianOutcomeCallable FacebodyClient::detectIPCPedestrianCallable(const DetectIPCPedestrianRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->detectIPCPedestrian(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + FacebodyClient::DetectIPCPedestrianOptimizedOutcome FacebodyClient::detectIPCPedestrianOptimized(const DetectIPCPedestrianOptimizedRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -87,3 +591,831 @@ 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::DetectVideoLivingFaceOutcome FacebodyClient::detectVideoLivingFace(const DetectVideoLivingFaceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DetectVideoLivingFaceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DetectVideoLivingFaceOutcome(DetectVideoLivingFaceResult(outcome.result())); + else + return DetectVideoLivingFaceOutcome(outcome.error()); +} + +void FacebodyClient::detectVideoLivingFaceAsync(const DetectVideoLivingFaceRequest& request, const DetectVideoLivingFaceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, detectVideoLivingFace(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +FacebodyClient::DetectVideoLivingFaceOutcomeCallable FacebodyClient::detectVideoLivingFaceCallable(const DetectVideoLivingFaceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->detectVideoLivingFace(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +FacebodyClient::EnhanceFaceOutcome FacebodyClient::enhanceFace(const EnhanceFaceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return EnhanceFaceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return EnhanceFaceOutcome(EnhanceFaceResult(outcome.result())); + else + return EnhanceFaceOutcome(outcome.error()); +} + +void FacebodyClient::enhanceFaceAsync(const EnhanceFaceRequest& request, const EnhanceFaceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, enhanceFace(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +FacebodyClient::EnhanceFaceOutcomeCallable FacebodyClient::enhanceFaceCallable(const EnhanceFaceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->enhanceFace(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +FacebodyClient::ExtractPedestrianFeatureAttrOutcome FacebodyClient::extractPedestrianFeatureAttr(const ExtractPedestrianFeatureAttrRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ExtractPedestrianFeatureAttrOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ExtractPedestrianFeatureAttrOutcome(ExtractPedestrianFeatureAttrResult(outcome.result())); + else + return ExtractPedestrianFeatureAttrOutcome(outcome.error()); +} + +void FacebodyClient::extractPedestrianFeatureAttrAsync(const ExtractPedestrianFeatureAttrRequest& request, const ExtractPedestrianFeatureAttrAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, extractPedestrianFeatureAttr(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +FacebodyClient::ExtractPedestrianFeatureAttrOutcomeCallable FacebodyClient::extractPedestrianFeatureAttrCallable(const ExtractPedestrianFeatureAttrRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->extractPedestrianFeatureAttr(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +FacebodyClient::ExtractPedestrianFeatureAttributeOutcome FacebodyClient::extractPedestrianFeatureAttribute(const ExtractPedestrianFeatureAttributeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ExtractPedestrianFeatureAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ExtractPedestrianFeatureAttributeOutcome(ExtractPedestrianFeatureAttributeResult(outcome.result())); + else + return ExtractPedestrianFeatureAttributeOutcome(outcome.error()); +} + +void FacebodyClient::extractPedestrianFeatureAttributeAsync(const ExtractPedestrianFeatureAttributeRequest& request, const ExtractPedestrianFeatureAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, extractPedestrianFeatureAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +FacebodyClient::ExtractPedestrianFeatureAttributeOutcomeCallable FacebodyClient::extractPedestrianFeatureAttributeCallable(const ExtractPedestrianFeatureAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->extractPedestrianFeatureAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +FacebodyClient::FaceBeautyOutcome FacebodyClient::faceBeauty(const FaceBeautyRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return FaceBeautyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return FaceBeautyOutcome(FaceBeautyResult(outcome.result())); + else + return FaceBeautyOutcome(outcome.error()); +} + +void FacebodyClient::faceBeautyAsync(const FaceBeautyRequest& request, const FaceBeautyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, faceBeauty(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +FacebodyClient::FaceBeautyOutcomeCallable FacebodyClient::faceBeautyCallable(const FaceBeautyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->faceBeauty(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +FacebodyClient::FaceFilterOutcome FacebodyClient::faceFilter(const FaceFilterRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return FaceFilterOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return FaceFilterOutcome(FaceFilterResult(outcome.result())); + else + return FaceFilterOutcome(outcome.error()); +} + +void FacebodyClient::faceFilterAsync(const FaceFilterRequest& request, const FaceFilterAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, faceFilter(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +FacebodyClient::FaceFilterOutcomeCallable FacebodyClient::faceFilterCallable(const FaceFilterRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->faceFilter(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +FacebodyClient::FaceMakeupOutcome FacebodyClient::faceMakeup(const FaceMakeupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return FaceMakeupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return FaceMakeupOutcome(FaceMakeupResult(outcome.result())); + else + return FaceMakeupOutcome(outcome.error()); +} + +void FacebodyClient::faceMakeupAsync(const FaceMakeupRequest& request, const FaceMakeupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, faceMakeup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +FacebodyClient::FaceMakeupOutcomeCallable FacebodyClient::faceMakeupCallable(const FaceMakeupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->faceMakeup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +FacebodyClient::FaceTidyupOutcome FacebodyClient::faceTidyup(const FaceTidyupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return FaceTidyupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return FaceTidyupOutcome(FaceTidyupResult(outcome.result())); + else + return FaceTidyupOutcome(outcome.error()); +} + +void FacebodyClient::faceTidyupAsync(const FaceTidyupRequest& request, const FaceTidyupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, faceTidyup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +FacebodyClient::FaceTidyupOutcomeCallable FacebodyClient::faceTidyupCallable(const FaceTidyupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->faceTidyup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +FacebodyClient::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::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::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::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::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/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/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..3bca36eb5 --- /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 = allOutputsNode["Results"]["Result"]; + for (auto allOutputsNodeResultsResult : allResultsNode) + { + Data::Output::Result resultsObject; + auto allBodiesNode = allResultsNode["Bodies"]["Body"]; + for (auto allResultsNodeBodiesBody : allBodiesNode) + { + Data::Output::Result::Body bodiesObject; + if(!allResultsNodeBodiesBody["Confident"].isNull()) + bodiesObject.confident = std::stof(allResultsNodeBodiesBody["Confident"].asString()); + if(!allResultsNodeBodiesBody["Label"].isNull()) + bodiesObject.label = allResultsNodeBodiesBody["Label"].asString(); + auto allPositionsNode = allBodiesNode["Positions"]["Position"]; + for (auto allBodiesNodePositionsPosition : 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..a07ac41fa --- /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() +{} + +int CompareFaceRequest::getImageType()const +{ + return imageType_; +} + +void CompareFaceRequest::setImageType(int imageType) +{ + imageType_ = imageType; + setBodyParameter("ImageType", std::to_string(imageType)); +} + +std::string CompareFaceRequest::getImageURLB()const +{ + return imageURLB_; +} + +void CompareFaceRequest::setImageURLB(const std::string& imageURLB) +{ + imageURLB_ = imageURLB; + setBodyParameter("ImageURLB", imageURLB); +} + +std::string CompareFaceRequest::getImageURLA()const +{ + return imageURLA_; +} + +void CompareFaceRequest::setImageURLA(const std::string& imageURLA) +{ + imageURLA_ = imageURLA; + setBodyParameter("ImageURLA", imageURLA); +} + diff --git a/facebody/src/model/CompareFaceResult.cc b/facebody/src/model/CompareFaceResult.cc 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/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/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/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..b24fc2b96 --- /dev/null +++ b/facebody/src/model/DetectFaceResult.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; + +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["FaceCount"].isNull()) + data_.faceCount = std::stoi(dataNode["FaceCount"].asString()); + if(!dataNode["LandmarkCount"].isNull()) + data_.landmarkCount = std::stoi(dataNode["LandmarkCount"].asString()); + auto allFaceRectangles = dataNode["FaceRectangles"]["FaceRectangle"]; + for (auto value : allFaceRectangles) + data_.faceRectangles.push_back(value.asString()); + auto allFaceProbabilityList = dataNode["FaceProbabilityList"]["FaceProbability"]; + for (auto value : allFaceProbabilityList) + data_.faceProbabilityList.push_back(value.asString()); + auto allPoseList = dataNode["PoseList"]["Pose"]; + for (auto value : allPoseList) + data_.poseList.push_back(value.asString()); + auto allLandmarks = dataNode["Landmarks"]["Landmark"]; + for (auto value : allLandmarks) + data_.landmarks.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..baa46cdda --- /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 = allImageInfoListNode["Elements"]["Element"]; + for (auto allImageInfoListNodeElementsElement : allElementsNode) + { + Data::ImageInfoListItem::Element elementsObject; + if(!allImageInfoListNodeElementsElement["Score"].isNull()) + elementsObject.score = std::stof(allImageInfoListNodeElementsElement["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..684226869 --- /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 = allElementsNode["Results"]["Result"]; + for (auto allElementsNodeResultsResult : allResultsNode) + { + Data::Element::Result resultsObject; + if(!allElementsNodeResultsResult["Label"].isNull()) + resultsObject.label = allElementsNodeResultsResult["Label"].asString(); + if(!allElementsNodeResultsResult["Suggestion"].isNull()) + resultsObject.suggestion = allElementsNodeResultsResult["Suggestion"].asString(); + if(!allElementsNodeResultsResult["Rate"].isNull()) + resultsObject.rate = std::stof(allElementsNodeResultsResult["Rate"].asString()); + auto allFramesNode = allResultsNode["Frames"]["Frame"]; + for (auto allResultsNodeFramesFrame : allFramesNode) + { + Data::Element::Result::Frame framesObject; + if(!allResultsNodeFramesFrame["Rate"].isNull()) + framesObject.rate = std::stof(allResultsNodeFramesFrame["Rate"].asString()); + if(!allResultsNodeFramesFrame["Url"].isNull()) + framesObject.url = allResultsNodeFramesFrame["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/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..fd591ee08 --- /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["Width"].isNull()) + data_.width = std::stoi(dataNode["Width"].asString()); + if(!dataNode["Height"].isNull()) + data_.height = std::stoi(dataNode["Height"].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..edcf75357 --- /dev/null +++ b/facebody/src/model/ExtractPedestrianFeatureAttrRequest.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::ExtractPedestrianFeatureAttrRequest; + +ExtractPedestrianFeatureAttrRequest::ExtractPedestrianFeatureAttrRequest() : + RpcServiceRequest("facebody", "2019-12-30", "ExtractPedestrianFeatureAttr") +{ + setMethod(HttpRequest::Method::Post); +} + +ExtractPedestrianFeatureAttrRequest::~ExtractPedestrianFeatureAttrRequest() +{} + +std::string ExtractPedestrianFeatureAttrRequest::getMode()const +{ + return mode_; +} + +void ExtractPedestrianFeatureAttrRequest::setMode(const std::string& mode) +{ + mode_ = mode; + setBodyParameter("Mode", mode); +} + +std::string ExtractPedestrianFeatureAttrRequest::getImageURL()const +{ + return imageURL_; +} + +void ExtractPedestrianFeatureAttrRequest::setImageURL(const std::string& imageURL) +{ + imageURL_ = imageURL; + setBodyParameter("ImageURL", imageURL); +} + diff --git a/facebody/src/model/ExtractPedestrianFeatureAttrResult.cc b/facebody/src/model/ExtractPedestrianFeatureAttrResult.cc new file mode 100644 index 000000000..16a10b09b --- /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["ObjType"].isNull()) + data_.objType = dataNode["ObjType"].asString(); + if(!dataNode["ObjTypeScore"].isNull()) + data_.objTypeScore = std::stof(dataNode["ObjTypeScore"].asString()); + if(!dataNode["Feature"].isNull()) + data_.feature = dataNode["Feature"].asString(); + if(!dataNode["QualityScore"].isNull()) + data_.qualityScore = std::stof(dataNode["QualityScore"].asString()); + if(!dataNode["UpperColor"].isNull()) + data_.upperColor = dataNode["UpperColor"].asString(); + if(!dataNode["UpperColorScore"].isNull()) + data_.upperColorScore = std::stof(dataNode["UpperColorScore"].asString()); + if(!dataNode["UpperType"].isNull()) + data_.upperType = dataNode["UpperType"].asString(); + if(!dataNode["UpperTypeScore"].isNull()) + data_.upperTypeScore = std::stof(dataNode["UpperTypeScore"].asString()); + if(!dataNode["LowerColor"].isNull()) + data_.lowerColor = dataNode["LowerColor"].asString(); + if(!dataNode["LowerColorScore"].isNull()) + data_.lowerColorScore = std::stof(dataNode["LowerColorScore"].asString()); + if(!dataNode["LowerType"].isNull()) + data_.lowerType = dataNode["LowerType"].asString(); + if(!dataNode["LowerTypeScore"].isNull()) + data_.lowerTypeScore = std::stof(dataNode["LowerTypeScore"].asString()); + if(!dataNode["Gender"].isNull()) + data_.gender = dataNode["Gender"].asString(); + if(!dataNode["GenderScore"].isNull()) + data_.genderScore = std::stof(dataNode["GenderScore"].asString()); + if(!dataNode["Hair"].isNull()) + data_.hair = dataNode["Hair"].asString(); + if(!dataNode["HairScore"].isNull()) + data_.hairScore = std::stof(dataNode["HairScore"].asString()); + if(!dataNode["Age"].isNull()) + data_.age = dataNode["Age"].asString(); + if(!dataNode["AgeScore"].isNull()) + data_.ageScore = std::stof(dataNode["AgeScore"].asString()); + +} + +ExtractPedestrianFeatureAttrResult::Data ExtractPedestrianFeatureAttrResult::getData()const +{ + return data_; +} + diff --git a/facebody/src/model/ExtractPedestrianFeatureAttributeRequest.cc b/facebody/src/model/ExtractPedestrianFeatureAttributeRequest.cc new file mode 100644 index 000000000..5643ebd13 --- /dev/null +++ b/facebody/src/model/ExtractPedestrianFeatureAttributeRequest.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::ExtractPedestrianFeatureAttributeRequest; + +ExtractPedestrianFeatureAttributeRequest::ExtractPedestrianFeatureAttributeRequest() : + RpcServiceRequest("facebody", "2019-12-30", "ExtractPedestrianFeatureAttribute") +{ + setMethod(HttpRequest::Method::Post); +} + +ExtractPedestrianFeatureAttributeRequest::~ExtractPedestrianFeatureAttributeRequest() +{} + +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..d5e49269f --- /dev/null +++ b/facebody/src/model/ExtractPedestrianFeatureAttributeResult.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; + +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()); + +} + +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/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/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..945ad9235 --- /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 = allOutputsNode["Results"]["Result"]; + for (auto allOutputsNodeResultsResult : 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 = allKeyPointsNode["Positions"]["Position"]; + for (auto allKeyPointsNodePositionsPosition : 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/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/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..607964989 --- /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 = allElementsNode["Boxes"]["BoxesItem"]; + for (auto allElementsNodeBoxesBoxesItem : 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..62b133190 --- /dev/null +++ b/facebody/src/model/RecognizeFaceResult.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; + +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["FaceCount"].isNull()) + data_.faceCount = std::stoi(dataNode["FaceCount"].asString()); + if(!dataNode["LandmarkCount"].isNull()) + data_.landmarkCount = std::stoi(dataNode["LandmarkCount"].asString()); + if(!dataNode["DenseFeatureLength"].isNull()) + data_.denseFeatureLength = std::stoi(dataNode["DenseFeatureLength"].asString()); + auto allFaceRectangles = dataNode["FaceRectangles"]["FaceRectangle"]; + for (auto value : allFaceRectangles) + data_.faceRectangles.push_back(value.asString()); + auto allFaceProbabilityList = dataNode["FaceProbabilityList"]["FaceProbability"]; + for (auto value : allFaceProbabilityList) + data_.faceProbabilityList.push_back(value.asString()); + auto allPoseList = dataNode["PoseList"]["Pose"]; + for (auto value : allPoseList) + data_.poseList.push_back(value.asString()); + auto allLandmarks = dataNode["Landmarks"]["Landmark"]; + for (auto value : allLandmarks) + data_.landmarks.push_back(value.asString()); + auto allPupils = dataNode["Pupils"]["Pupil"]; + for (auto value : allPupils) + data_.pupils.push_back(value.asString()); + auto allGenderList = dataNode["GenderList"]["Gender"]; + for (auto value : allGenderList) + data_.genderList.push_back(value.asString()); + auto allAgeList = dataNode["AgeList"]["Age"]; + for (auto value : allAgeList) + data_.ageList.push_back(value.asString()); + auto allExpressions = dataNode["Expressions"]["Expression"]; + for (auto value : allExpressions) + data_.expressions.push_back(value.asString()); + auto allGlasses = dataNode["Glasses"]["Glass"]; + for (auto value : allGlasses) + data_.glasses.push_back(value.asString()); + auto allDenseFeatures = dataNode["DenseFeatures"]["DenseFeature"]; + for (auto value : allDenseFeatures) + data_.denseFeatures.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..35b77698b --- /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 = allElementsNode["Results"]["Result"]; + for (auto allElementsNodeResultsResult : allResultsNode) + { + Data::Element::Result resultsObject; + if(!allElementsNodeResultsResult["Label"].isNull()) + resultsObject.label = allElementsNodeResultsResult["Label"].asString(); + if(!allElementsNodeResultsResult["Suggestion"].isNull()) + resultsObject.suggestion = allElementsNodeResultsResult["Suggestion"].asString(); + if(!allElementsNodeResultsResult["Rate"].isNull()) + resultsObject.rate = std::stof(allElementsNodeResultsResult["Rate"].asString()); + auto allSubResultsNode = allResultsNode["SubResults"]["SubResult"]; + for (auto allResultsNodeSubResultsSubResult : allSubResultsNode) + { + Data::Element::Result::SubResult subResultsObject; + if(!allResultsNodeSubResultsSubResult["H"].isNull()) + subResultsObject.h = std::stof(allResultsNodeSubResultsSubResult["H"].asString()); + if(!allResultsNodeSubResultsSubResult["W"].isNull()) + subResultsObject.w = std::stof(allResultsNodeSubResultsSubResult["W"].asString()); + if(!allResultsNodeSubResultsSubResult["X"].isNull()) + subResultsObject.x = std::stof(allResultsNodeSubResultsSubResult["X"].asString()); + if(!allResultsNodeSubResultsSubResult["Y"].isNull()) + subResultsObject.y = std::stof(allResultsNodeSubResultsSubResult["Y"].asString()); + auto allFacesNode = allSubResultsNode["Faces"]["Face"]; + for (auto allSubResultsNodeFacesFace : allFacesNode) + { + Data::Element::Result::SubResult::Face facesObject; + if(!allSubResultsNodeFacesFace["Id"].isNull()) + facesObject.id = allSubResultsNodeFacesFace["Id"].asString(); + if(!allSubResultsNodeFacesFace["Name"].isNull()) + facesObject.name = allSubResultsNodeFacesFace["Name"].asString(); + if(!allSubResultsNodeFacesFace["Rate"].isNull()) + facesObject.rate = std::stof(allSubResultsNodeFacesFace["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/SearchFaceRequest.cc b/facebody/src/model/SearchFaceRequest.cc new file mode 100644 index 000000000..da378217e --- /dev/null +++ b/facebody/src/model/SearchFaceRequest.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::SearchFaceRequest; + +SearchFaceRequest::SearchFaceRequest() : + RpcServiceRequest("facebody", "2019-12-30", "SearchFace") +{ + setMethod(HttpRequest::Method::Post); +} + +SearchFaceRequest::~SearchFaceRequest() +{} + +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..780a1f094 --- /dev/null +++ b/facebody/src/model/SearchFaceResult.cc @@ -0,0 +1,79 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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 = allMatchListNode["FaceItems"]["FaceItemsItem"]; + for (auto allMatchListNodeFaceItemsFaceItemsItem : allFaceItemsNode) + { + Data::MatchListItem::FaceItemsItem faceItemsObject; + if(!allMatchListNodeFaceItemsFaceItemsItem["FaceId"].isNull()) + faceItemsObject.faceId = allMatchListNodeFaceItemsFaceItemsItem["FaceId"].asString(); + if(!allMatchListNodeFaceItemsFaceItemsItem["Score"].isNull()) + faceItemsObject.score = std::stof(allMatchListNodeFaceItemsFaceItemsItem["Score"].asString()); + if(!allMatchListNodeFaceItemsFaceItemsItem["ExtraData"].isNull()) + faceItemsObject.extraData = allMatchListNodeFaceItemsFaceItemsItem["ExtraData"].asString(); + if(!allMatchListNodeFaceItemsFaceItemsItem["EntityId"].isNull()) + faceItemsObject.entityId = allMatchListNodeFaceItemsFaceItemsItem["EntityId"].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["Width"].isNull()) + matchListItemObject.location.width = std::stoi(locationNode["Width"].asString()); + if(!locationNode["Height"].isNull()) + matchListItemObject.location.height = std::stoi(locationNode["Height"].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_; +} +