Skip to content

Commit 1befab9

Browse files
committed
IMM SDK Auto Released By zhengrui.lj,Version:1.35.0
Signed-off-by: haowei.yao <[email protected]>
1 parent 97716c0 commit 1befab9

File tree

371 files changed

+34985
-2
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

371 files changed

+34985
-2
lines changed

CHANGELOG

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2019-03-28 Version: 1.35.0
2+
1, Add logo detect.
3+
14
2019-03-27 Version: 1.34.66
25
1, Add Project interface.
36
2, Add Tag interface.

CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,4 +115,5 @@ add_subdirectory(jarvis-public)
115115
add_subdirectory(mts)
116116
add_subdirectory(dysmsapi)
117117
add_subdirectory(ons)
118-
add_subdirectory(ivision)
118+
add_subdirectory(ivision)
119+
add_subdirectory(imm)

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.34.66
1+
1.35.0

imm/CMakeLists.txt

Lines changed: 446 additions & 0 deletions
Large diffs are not rendered by default.

imm/include/alibabacloud/imm/ImmClient.h

Lines changed: 774 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
/*
2+
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
#ifndef ALIBABACLOUD_IMM_IMMEXPORT_H_
18+
#define ALIBABACLOUD_IMM_IMMEXPORT_H_
19+
20+
#include <alibabacloud/core/Global.h>
21+
22+
#if defined(ALIBABACLOUD_SHARED)
23+
# if defined(ALIBABACLOUD_IMM_LIBRARY)
24+
# define ALIBABACLOUD_IMM_EXPORT ALIBABACLOUD_DECL_EXPORT
25+
# else
26+
# define ALIBABACLOUD_IMM_EXPORT ALIBABACLOUD_DECL_IMPORT
27+
# endif
28+
#else
29+
# define ALIBABACLOUD_IMM_EXPORT
30+
#endif
31+
32+
#endif // !ALIBABACLOUD_IMM_IMMEXPORT_H_
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
/*
2+
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
#ifndef ALIBABACLOUD_IMM_MODEL_COMPAREFACEREQUEST_H_
18+
#define ALIBABACLOUD_IMM_MODEL_COMPAREFACEREQUEST_H_
19+
20+
#include <string>
21+
#include <vector>
22+
#include <alibabacloud/core/RpcServiceRequest.h>
23+
#include <alibabacloud/imm/ImmExport.h>
24+
25+
namespace AlibabaCloud
26+
{
27+
namespace Imm
28+
{
29+
namespace Model
30+
{
31+
class ALIBABACLOUD_IMM_EXPORT CompareFaceRequest : public RpcServiceRequest
32+
{
33+
34+
public:
35+
CompareFaceRequest();
36+
~CompareFaceRequest();
37+
38+
std::string getRegionId()const;
39+
void setRegionId(const std::string& regionId);
40+
std::string getSrcUriB()const;
41+
void setSrcUriB(const std::string& srcUriB);
42+
std::string getSrcUriA()const;
43+
void setSrcUriA(const std::string& srcUriA);
44+
std::string getProject()const;
45+
void setProject(const std::string& project);
46+
std::string getAccessKeyId()const;
47+
void setAccessKeyId(const std::string& accessKeyId);
48+
49+
private:
50+
std::string regionId_;
51+
std::string srcUriB_;
52+
std::string srcUriA_;
53+
std::string project_;
54+
std::string accessKeyId_;
55+
56+
};
57+
}
58+
}
59+
}
60+
#endif // !ALIBABACLOUD_IMM_MODEL_COMPAREFACEREQUEST_H_
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
/*
2+
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
#ifndef ALIBABACLOUD_IMM_MODEL_COMPAREFACERESULT_H_
18+
#define ALIBABACLOUD_IMM_MODEL_COMPAREFACERESULT_H_
19+
20+
#include <string>
21+
#include <vector>
22+
#include <utility>
23+
#include <alibabacloud/core/ServiceResult.h>
24+
#include <alibabacloud/imm/ImmExport.h>
25+
26+
namespace AlibabaCloud
27+
{
28+
namespace Imm
29+
{
30+
namespace Model
31+
{
32+
class ALIBABACLOUD_IMM_EXPORT CompareFaceResult : public ServiceResult
33+
{
34+
public:
35+
struct CompareResultItem
36+
{
37+
struct FaceA
38+
{
39+
std::string imageUri;
40+
std::vector<std::string> axis;
41+
};
42+
struct FaceB
43+
{
44+
std::string imageUri;
45+
std::vector<std::string> axis1;
46+
};
47+
float similarity;
48+
FaceA faceA;
49+
FaceB faceB;
50+
};
51+
52+
53+
CompareFaceResult();
54+
explicit CompareFaceResult(const std::string &payload);
55+
~CompareFaceResult();
56+
std::vector<CompareResultItem> getCompareResult()const;
57+
58+
protected:
59+
void parse(const std::string &payload);
60+
private:
61+
std::vector<CompareResultItem> compareResult_;
62+
63+
};
64+
}
65+
}
66+
}
67+
#endif // !ALIBABACLOUD_IMM_MODEL_COMPAREFACERESULT_H_
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
/*
2+
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
#ifndef ALIBABACLOUD_IMM_MODEL_COMPAREIMAGEFACESREQUEST_H_
18+
#define ALIBABACLOUD_IMM_MODEL_COMPAREIMAGEFACESREQUEST_H_
19+
20+
#include <string>
21+
#include <vector>
22+
#include <alibabacloud/core/RpcServiceRequest.h>
23+
#include <alibabacloud/imm/ImmExport.h>
24+
25+
namespace AlibabaCloud
26+
{
27+
namespace Imm
28+
{
29+
namespace Model
30+
{
31+
class ALIBABACLOUD_IMM_EXPORT CompareImageFacesRequest : public RpcServiceRequest
32+
{
33+
34+
public:
35+
CompareImageFacesRequest();
36+
~CompareImageFacesRequest();
37+
38+
std::string getRegionId()const;
39+
void setRegionId(const std::string& regionId);
40+
std::string getImageUriB()const;
41+
void setImageUriB(const std::string& imageUriB);
42+
std::string getImageUriA()const;
43+
void setImageUriA(const std::string& imageUriA);
44+
std::string getProject()const;
45+
void setProject(const std::string& project);
46+
std::string getSetId()const;
47+
void setSetId(const std::string& setId);
48+
std::string getFaceIdA()const;
49+
void setFaceIdA(const std::string& faceIdA);
50+
std::string getFaceIdB()const;
51+
void setFaceIdB(const std::string& faceIdB);
52+
std::string getAccessKeyId()const;
53+
void setAccessKeyId(const std::string& accessKeyId);
54+
55+
private:
56+
std::string regionId_;
57+
std::string imageUriB_;
58+
std::string imageUriA_;
59+
std::string project_;
60+
std::string setId_;
61+
std::string faceIdA_;
62+
std::string faceIdB_;
63+
std::string accessKeyId_;
64+
65+
};
66+
}
67+
}
68+
}
69+
#endif // !ALIBABACLOUD_IMM_MODEL_COMPAREIMAGEFACESREQUEST_H_
Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
/*
2+
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
#ifndef ALIBABACLOUD_IMM_MODEL_COMPAREIMAGEFACESRESULT_H_
18+
#define ALIBABACLOUD_IMM_MODEL_COMPAREIMAGEFACESRESULT_H_
19+
20+
#include <string>
21+
#include <vector>
22+
#include <utility>
23+
#include <alibabacloud/core/ServiceResult.h>
24+
#include <alibabacloud/imm/ImmExport.h>
25+
26+
namespace AlibabaCloud
27+
{
28+
namespace Imm
29+
{
30+
namespace Model
31+
{
32+
class ALIBABACLOUD_IMM_EXPORT CompareImageFacesResult : public ServiceResult
33+
{
34+
public:
35+
struct FaceA
36+
{
37+
struct FaceAttributes
38+
{
39+
struct FaceBoundary
40+
{
41+
int left;
42+
int top;
43+
int height;
44+
int width;
45+
};
46+
FaceBoundary faceBoundary;
47+
};
48+
std::string faceId;
49+
FaceAttributes faceAttributes;
50+
};
51+
struct FaceB
52+
{
53+
struct FaceAttributes1
54+
{
55+
struct FaceBoundary2
56+
{
57+
int left;
58+
int top;
59+
int height;
60+
int width;
61+
};
62+
FaceBoundary2 faceBoundary2;
63+
};
64+
std::string faceId;
65+
FaceAttributes1 faceAttributes1;
66+
};
67+
68+
69+
CompareImageFacesResult();
70+
explicit CompareImageFacesResult(const std::string &payload);
71+
~CompareImageFacesResult();
72+
float getSimilarity()const;
73+
FaceA getFaceA()const;
74+
std::string getSetId()const;
75+
FaceB getFaceB()const;
76+
77+
protected:
78+
void parse(const std::string &payload);
79+
private:
80+
float similarity_;
81+
FaceA faceA_;
82+
std::string setId_;
83+
FaceB faceB_;
84+
85+
};
86+
}
87+
}
88+
}
89+
#endif // !ALIBABACLOUD_IMM_MODEL_COMPAREIMAGEFACESRESULT_H_

0 commit comments

Comments
 (0)