| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102 |
- /*
- * Copyright 2009-2017 Alibaba Cloud All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
- #ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_DETECTFACEATTRIBUTESRESULT_H_
- #define ALIBABACLOUD_CLOUDAUTH_MODEL_DETECTFACEATTRIBUTESRESULT_H_
- #include <string>
- #include <vector>
- #include <utility>
- #include <alibabacloud/core/ServiceResult.h>
- #include <alibabacloud/cloudauth/CloudauthExport.h>
- namespace AlibabaCloud
- {
- namespace Cloudauth
- {
- namespace Model
- {
- class ALIBABACLOUD_CLOUDAUTH_EXPORT DetectFaceAttributesResult : public ServiceResult
- {
- public:
- struct Data
- {
- struct FaceAttributesDetectInfo
- {
- struct FaceRect
- {
- int left;
- int top;
- int height;
- int width;
- };
- struct FaceAttributes
- {
- struct Gender
- {
- float score;
- std::string value;
- };
- struct Smiling
- {
- float value;
- float threshold;
- };
- struct Headpose
- {
- float pitchAngle;
- float rollAngle;
- float yawAngle;
- };
- std::string ethnicity;
- std::string facetype;
- Headpose headpose;
- std::string glasses;
- float blur;
- Smiling smiling;
- Gender gender;
- int age;
- };
- FaceAttributes faceAttributes;
- FaceRect faceRect;
- };
- int imgWidth;
- int imgHeight;
- std::vector<FaceAttributesDetectInfo> faceInfos;
- };
- DetectFaceAttributesResult();
- explicit DetectFaceAttributesResult(const std::string &payload);
- ~DetectFaceAttributesResult();
- std::string getMessage()const;
- Data getData()const;
- std::string getCode()const;
- bool getSuccess()const;
- protected:
- void parse(const std::string &payload);
- private:
- std::string message_;
- Data data_;
- std::string code_;
- bool success_;
- };
- }
- }
- }
- #endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_DETECTFACEATTRIBUTESRESULT_H_
|