Supported Grab Frame IMM.

This commit is contained in:
sdk-team
2019-10-08 16:50:20 +08:00
parent 009add7f30
commit 82ba7e55bb
11 changed files with 347 additions and 1 deletions

View File

@@ -34,6 +34,8 @@
#include "model/CreateDocIndexTaskResult.h"
#include "model/CreateFaceSetRequest.h"
#include "model/CreateFaceSetResult.h"
#include "model/CreateGrabFrameTaskRequest.h"
#include "model/CreateGrabFrameTaskResult.h"
#include "model/CreateGroupFacesJobRequest.h"
#include "model/CreateGroupFacesJobResult.h"
#include "model/CreateMediaComplexTaskRequest.h"
@@ -253,6 +255,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::CreateFaceSetResult> CreateFaceSetOutcome;
typedef std::future<CreateFaceSetOutcome> CreateFaceSetOutcomeCallable;
typedef std::function<void(const ImmClient*, const Model::CreateFaceSetRequest&, const CreateFaceSetOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateFaceSetAsyncHandler;
typedef Outcome<Error, Model::CreateGrabFrameTaskResult> CreateGrabFrameTaskOutcome;
typedef std::future<CreateGrabFrameTaskOutcome> CreateGrabFrameTaskOutcomeCallable;
typedef std::function<void(const ImmClient*, const Model::CreateGrabFrameTaskRequest&, const CreateGrabFrameTaskOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateGrabFrameTaskAsyncHandler;
typedef Outcome<Error, Model::CreateGroupFacesJobResult> CreateGroupFacesJobOutcome;
typedef std::future<CreateGroupFacesJobOutcome> CreateGroupFacesJobOutcomeCallable;
typedef std::function<void(const ImmClient*, const Model::CreateGroupFacesJobRequest&, const CreateGroupFacesJobOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateGroupFacesJobAsyncHandler;
@@ -564,6 +569,9 @@ namespace AlibabaCloud
CreateFaceSetOutcome createFaceSet(const Model::CreateFaceSetRequest &request)const;
void createFaceSetAsync(const Model::CreateFaceSetRequest& request, const CreateFaceSetAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateFaceSetOutcomeCallable createFaceSetCallable(const Model::CreateFaceSetRequest& request) const;
CreateGrabFrameTaskOutcome createGrabFrameTask(const Model::CreateGrabFrameTaskRequest &request)const;
void createGrabFrameTaskAsync(const Model::CreateGrabFrameTaskRequest& request, const CreateGrabFrameTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateGrabFrameTaskOutcomeCallable createGrabFrameTaskCallable(const Model::CreateGrabFrameTaskRequest& request) const;
CreateGroupFacesJobOutcome createGroupFacesJob(const Model::CreateGroupFacesJobRequest &request)const;
void createGroupFacesJobAsync(const Model::CreateGroupFacesJobRequest& request, const CreateGroupFacesJobAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateGroupFacesJobOutcomeCallable createGroupFacesJobCallable(const Model::CreateGroupFacesJobRequest& request) const;

View 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_CREATEGRABFRAMETASKREQUEST_H_
#define ALIBABACLOUD_IMM_MODEL_CREATEGRABFRAMETASKREQUEST_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 CreateGrabFrameTaskRequest : public RpcServiceRequest
{
public:
CreateGrabFrameTaskRequest();
~CreateGrabFrameTaskRequest();
std::string getProject()const;
void setProject(const std::string& project);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getNotifyEndpoint()const;
void setNotifyEndpoint(const std::string& notifyEndpoint);
std::string getCustomMessage()const;
void setCustomMessage(const std::string& customMessage);
std::string getNotifyTopicName()const;
void setNotifyTopicName(const std::string& notifyTopicName);
std::string getTargetList()const;
void setTargetList(const std::string& targetList);
std::string getVideoUri()const;
void setVideoUri(const std::string& videoUri);
private:
std::string project_;
std::string accessKeyId_;
std::string notifyEndpoint_;
std::string customMessage_;
std::string notifyTopicName_;
std::string targetList_;
std::string videoUri_;
};
}
}
}
#endif // !ALIBABACLOUD_IMM_MODEL_CREATEGRABFRAMETASKREQUEST_H_

View File

@@ -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_IMM_MODEL_CREATEGRABFRAMETASKRESULT_H_
#define ALIBABACLOUD_IMM_MODEL_CREATEGRABFRAMETASKRESULT_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 CreateGrabFrameTaskResult : public ServiceResult
{
public:
CreateGrabFrameTaskResult();
explicit CreateGrabFrameTaskResult(const std::string &payload);
~CreateGrabFrameTaskResult();
std::string getTaskId()const;
std::string getTaskType()const;
protected:
void parse(const std::string &payload);
private:
std::string taskId_;
std::string taskType_;
};
}
}
}
#endif // !ALIBABACLOUD_IMM_MODEL_CREATEGRABFRAMETASKRESULT_H_

View File

@@ -41,6 +41,8 @@ namespace AlibabaCloud
void setAccessKeyId(const std::string& accessKeyId);
std::string getNotifyEndpoint()const;
void setNotifyEndpoint(const std::string& notifyEndpoint);
std::string getCustomMessage()const;
void setCustomMessage(const std::string& customMessage);
std::string getNotifyTopicName()const;
void setNotifyTopicName(const std::string& notifyTopicName);
std::string getTargetList()const;
@@ -52,6 +54,7 @@ namespace AlibabaCloud
std::string project_;
std::string accessKeyId_;
std::string notifyEndpoint_;
std::string customMessage_;
std::string notifyTopicName_;
std::string targetList_;
std::string videoUri_;