| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202 |
- /*
- * Copyright 2009-2017 Alibaba Cloud All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
- #ifndef ALIBABACLOUD_OCR_MODEL_RECOGNIZERUSSIAIDENTITYCARDRESULT_H_
- #define ALIBABACLOUD_OCR_MODEL_RECOGNIZERUSSIAIDENTITYCARDRESULT_H_
- #include <string>
- #include <vector>
- #include <utility>
- #include <alibabacloud/core/ServiceResult.h>
- #include <alibabacloud/ocr/OcrExport.h>
- namespace AlibabaCloud
- {
- namespace Ocr
- {
- namespace Model
- {
- class ALIBABACLOUD_OCR_EXPORT RecognizeRussiaIdentityCardResult : public ServiceResult
- {
- public:
- struct Data
- {
- struct BirthDate
- {
- struct KeyPointsItem
- {
- float x;
- float y;
- };
- float score;
- std::vector<KeyPointsItem> keyPoints;
- std::string text;
- };
- struct BirthPlaceFirstLine
- {
- struct KeyPointsItem2
- {
- float x;
- float y;
- };
- float score;
- std::vector<KeyPointsItem2> keyPoints1;
- std::string text;
- };
- struct BirthPlaceSecondLine
- {
- struct KeyPointsItem4
- {
- float x;
- float y;
- };
- float score;
- std::vector<KeyPointsItem4> keyPoints3;
- std::string text;
- };
- struct BirthPlaceThirdLine
- {
- struct KeyPointsItem6
- {
- float x;
- float y;
- };
- float score;
- std::vector<KeyPointsItem6> keyPoints5;
- std::string text;
- };
- struct CardBox
- {
- struct KeyPointsItem8
- {
- float x;
- float y;
- };
- std::string score;
- std::string text;
- std::vector<KeyPointsItem8> keyPoints7;
- };
- struct GivenName
- {
- struct KeyPointsItem10
- {
- float x;
- float y;
- };
- std::string score;
- std::string text;
- std::vector<KeyPointsItem10> keyPoints9;
- };
- struct IdNumber
- {
- struct KeyPointsItem12
- {
- float x;
- float y;
- };
- std::string score;
- std::vector<KeyPointsItem12> keyPoints11;
- std::string text;
- };
- struct PaternalName
- {
- struct KeyPointsItem14
- {
- float x;
- float y;
- };
- std::vector<KeyPointsItem14> keyPoints13;
- std::string score;
- std::string text;
- };
- struct PortraitBox
- {
- struct KeyPointsItem16
- {
- float x;
- float y;
- };
- std::string score;
- std::vector<KeyPointsItem16> keyPoints15;
- std::string text;
- };
- struct Sex
- {
- struct KeyPointsItem18
- {
- float x;
- float y;
- };
- std::string score;
- std::string text;
- std::vector<KeyPointsItem18> keyPoints17;
- };
- struct SurnameFirstLine
- {
- struct KeyPointsItem20
- {
- float x;
- float y;
- };
- std::string score;
- std::string text;
- std::vector<KeyPointsItem20> keyPoints19;
- };
- struct SurnameSecondLine
- {
- struct KeyPointsItem22
- {
- float x;
- float y;
- };
- std::string score;
- std::vector<KeyPointsItem22> keyPoints21;
- std::string text;
- };
- SurnameFirstLine surnameFirstLine;
- BirthPlaceFirstLine birthPlaceFirstLine;
- BirthPlaceSecondLine birthPlaceSecondLine;
- IdNumber idNumber;
- PaternalName paternalName;
- CardBox cardBox;
- Sex sex;
- SurnameSecondLine surnameSecondLine;
- GivenName givenName;
- PortraitBox portraitBox;
- BirthPlaceThirdLine birthPlaceThirdLine;
- BirthDate birthDate;
- };
- RecognizeRussiaIdentityCardResult();
- explicit RecognizeRussiaIdentityCardResult(const std::string &payload);
- ~RecognizeRussiaIdentityCardResult();
- std::string getMessage()const;
- Data getData()const;
- std::string getCode()const;
- protected:
- void parse(const std::string &payload);
- private:
- std::string message_;
- Data data_;
- std::string code_;
- };
- }
- }
- }
- #endif // !ALIBABACLOUD_OCR_MODEL_RECOGNIZERUSSIAIDENTITYCARDRESULT_H_
|