Add GetImageQuality API.
This commit is contained in:
@@ -110,6 +110,8 @@
|
||||
#include "model/GetImageCroppingSuggestionsResult.h"
|
||||
#include "model/GetImageJobRequest.h"
|
||||
#include "model/GetImageJobResult.h"
|
||||
#include "model/GetImageQualityRequest.h"
|
||||
#include "model/GetImageQualityResult.h"
|
||||
#include "model/GetMediaMetaRequest.h"
|
||||
#include "model/GetMediaMetaResult.h"
|
||||
#include "model/GetOfficeConversionTaskRequest.h"
|
||||
@@ -315,6 +317,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::GetImageJobResult> GetImageJobOutcome;
|
||||
typedef std::future<GetImageJobOutcome> GetImageJobOutcomeCallable;
|
||||
typedef std::function<void(const ImmClient*, const Model::GetImageJobRequest&, const GetImageJobOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetImageJobAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetImageQualityResult> GetImageQualityOutcome;
|
||||
typedef std::future<GetImageQualityOutcome> GetImageQualityOutcomeCallable;
|
||||
typedef std::function<void(const ImmClient*, const Model::GetImageQualityRequest&, const GetImageQualityOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetImageQualityAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetMediaMetaResult> GetMediaMetaOutcome;
|
||||
typedef std::future<GetMediaMetaOutcome> GetMediaMetaOutcomeCallable;
|
||||
typedef std::function<void(const ImmClient*, const Model::GetMediaMetaRequest&, const GetMediaMetaOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetMediaMetaAsyncHandler;
|
||||
@@ -548,6 +553,9 @@ namespace AlibabaCloud
|
||||
GetImageJobOutcome getImageJob(const Model::GetImageJobRequest &request)const;
|
||||
void getImageJobAsync(const Model::GetImageJobRequest& request, const GetImageJobAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetImageJobOutcomeCallable getImageJobCallable(const Model::GetImageJobRequest& request) const;
|
||||
GetImageQualityOutcome getImageQuality(const Model::GetImageQualityRequest &request)const;
|
||||
void getImageQualityAsync(const Model::GetImageQualityRequest& request, const GetImageQualityAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetImageQualityOutcomeCallable getImageQualityCallable(const Model::GetImageQualityRequest& request) const;
|
||||
GetMediaMetaOutcome getMediaMeta(const Model::GetMediaMetaRequest &request)const;
|
||||
void getMediaMetaAsync(const Model::GetMediaMetaRequest& request, const GetMediaMetaAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetMediaMetaOutcomeCallable getMediaMetaCallable(const Model::GetMediaMetaRequest& request) const;
|
||||
|
||||
54
imm/include/alibabacloud/imm/model/GetImageQualityRequest.h
Normal file
54
imm/include/alibabacloud/imm/model/GetImageQualityRequest.h
Normal file
@@ -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_IMM_MODEL_GETIMAGEQUALITYREQUEST_H_
|
||||
#define ALIBABACLOUD_IMM_MODEL_GETIMAGEQUALITYREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/imm/ImmExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Imm
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_IMM_EXPORT GetImageQualityRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetImageQualityRequest();
|
||||
~GetImageQualityRequest();
|
||||
|
||||
std::string getProject()const;
|
||||
void setProject(const std::string& project);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getImageUri()const;
|
||||
void setImageUri(const std::string& imageUri);
|
||||
|
||||
private:
|
||||
std::string project_;
|
||||
std::string accessKeyId_;
|
||||
std::string imageUri_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_IMM_MODEL_GETIMAGEQUALITYREQUEST_H_
|
||||
66
imm/include/alibabacloud/imm/model/GetImageQualityResult.h
Normal file
66
imm/include/alibabacloud/imm/model/GetImageQualityResult.h
Normal file
@@ -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_IMM_MODEL_GETIMAGEQUALITYRESULT_H_
|
||||
#define ALIBABACLOUD_IMM_MODEL_GETIMAGEQUALITYRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/imm/ImmExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Imm
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_IMM_EXPORT GetImageQualityResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct ImageQuality
|
||||
{
|
||||
float clarityScore;
|
||||
float compositionScore;
|
||||
float contrastScore;
|
||||
float color;
|
||||
float exposure;
|
||||
float overallScore;
|
||||
float clarity;
|
||||
float contrast;
|
||||
float exposureScore;
|
||||
float colorScore;
|
||||
};
|
||||
|
||||
|
||||
GetImageQualityResult();
|
||||
explicit GetImageQualityResult(const std::string &payload);
|
||||
~GetImageQualityResult();
|
||||
ImageQuality getImageQuality()const;
|
||||
std::string getImageUri()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
ImageQuality imageQuality_;
|
||||
std::string imageUri_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_IMM_MODEL_GETIMAGEQUALITYRESULT_H_
|
||||
@@ -42,6 +42,7 @@ namespace AlibabaCloud
|
||||
{
|
||||
std::string videoTagEnName;
|
||||
std::string videoTagName;
|
||||
int videoTagLevel;
|
||||
float videoTagConfidence;
|
||||
};
|
||||
struct PersonsItem
|
||||
@@ -62,23 +63,36 @@ namespace AlibabaCloud
|
||||
int getVideoWidth()const;
|
||||
std::string getSourceType()const;
|
||||
std::string getSourceUri()const;
|
||||
std::string getVideoInfo()const;
|
||||
std::string getRemarksA()const;
|
||||
std::string getVideoFrameTagsModifyTime()const;
|
||||
std::string getRemarksB()const;
|
||||
std::string getVideoFacesFailReason()const;
|
||||
std::string getVideoFacesStatus()const;
|
||||
std::string getRemarksC()const;
|
||||
std::string getVideoOCRModifyTime()const;
|
||||
std::string getRemarksD()const;
|
||||
int getVideoHeight()const;
|
||||
std::vector<PersonsItem> getPersons()const;
|
||||
std::vector<CelebrityItem> getCelebrity()const;
|
||||
std::string getSourcePosition()const;
|
||||
std::string getVideoOCRFailReason()const;
|
||||
std::string getVideoFrameTagsStatus()const;
|
||||
std::string getVideoTagsFailReason()const;
|
||||
std::string getVideoTagsModifyTime()const;
|
||||
std::string getVideoOCRStatus()const;
|
||||
int getVideoFrames()const;
|
||||
std::string getProcessModifyTime()const;
|
||||
std::string getVideoSTTModifyTime()const;
|
||||
std::string getProcessFailReason()const;
|
||||
std::string getCreateTime()const;
|
||||
std::string getExternalId()const;
|
||||
std::string getVideoSTTFailReason()const;
|
||||
std::string getVideoUri()const;
|
||||
std::string getVideoFormat()const;
|
||||
std::string getVideoFrameTagsFailReason()const;
|
||||
std::string getVideoSTTStatus()const;
|
||||
std::string getVideoFacesModifyTime()const;
|
||||
std::vector<VideoTagsItem> getVideoTags()const;
|
||||
std::string getCelebrityModifyTime()const;
|
||||
float getVideoDuration()const;
|
||||
@@ -96,23 +110,36 @@ namespace AlibabaCloud
|
||||
int videoWidth_;
|
||||
std::string sourceType_;
|
||||
std::string sourceUri_;
|
||||
std::string videoInfo_;
|
||||
std::string remarksA_;
|
||||
std::string videoFrameTagsModifyTime_;
|
||||
std::string remarksB_;
|
||||
std::string videoFacesFailReason_;
|
||||
std::string videoFacesStatus_;
|
||||
std::string remarksC_;
|
||||
std::string videoOCRModifyTime_;
|
||||
std::string remarksD_;
|
||||
int videoHeight_;
|
||||
std::vector<PersonsItem> persons_;
|
||||
std::vector<CelebrityItem> celebrity_;
|
||||
std::string sourcePosition_;
|
||||
std::string videoOCRFailReason_;
|
||||
std::string videoFrameTagsStatus_;
|
||||
std::string videoTagsFailReason_;
|
||||
std::string videoTagsModifyTime_;
|
||||
std::string videoOCRStatus_;
|
||||
int videoFrames_;
|
||||
std::string processModifyTime_;
|
||||
std::string videoSTTModifyTime_;
|
||||
std::string processFailReason_;
|
||||
std::string createTime_;
|
||||
std::string externalId_;
|
||||
std::string videoSTTFailReason_;
|
||||
std::string videoUri_;
|
||||
std::string videoFormat_;
|
||||
std::string videoFrameTagsFailReason_;
|
||||
std::string videoSTTStatus_;
|
||||
std::string videoFacesModifyTime_;
|
||||
std::vector<VideoTagsItem> videoTags_;
|
||||
std::string celebrityModifyTime_;
|
||||
float videoDuration_;
|
||||
|
||||
@@ -45,6 +45,10 @@ namespace AlibabaCloud
|
||||
void setStartTime(const std::string& startTime);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getNotifyEndpoint()const;
|
||||
void setNotifyEndpoint(const std::string& notifyEndpoint);
|
||||
std::string getNotifyTopicName()const;
|
||||
void setNotifyTopicName(const std::string& notifyTopicName);
|
||||
std::string getRemarksB()const;
|
||||
void setRemarksB(const std::string& remarksB);
|
||||
std::string getRemarksA()const;
|
||||
@@ -72,6 +76,8 @@ namespace AlibabaCloud
|
||||
std::string externalId_;
|
||||
std::string startTime_;
|
||||
std::string accessKeyId_;
|
||||
std::string notifyEndpoint_;
|
||||
std::string notifyTopicName_;
|
||||
std::string remarksB_;
|
||||
std::string remarksA_;
|
||||
std::string endTime_;
|
||||
|
||||
@@ -52,12 +52,16 @@ namespace AlibabaCloud
|
||||
std::string modifyTime;
|
||||
std::string createTime;
|
||||
std::string externalId;
|
||||
float maxAge;
|
||||
std::string gender;
|
||||
std::string remarksA;
|
||||
float averageAge;
|
||||
std::string remarksB;
|
||||
std::string groupId;
|
||||
std::string remarksArrayB;
|
||||
std::string remarksC;
|
||||
int imageCount;
|
||||
float minAge;
|
||||
std::string remarksD;
|
||||
std::string remarksArrayA;
|
||||
int faceCount;
|
||||
|
||||
Reference in New Issue
Block a user