Update SegmentCloth.
This commit is contained in:
@@ -36,6 +36,8 @@ public:
|
|||||||
void setReturnForm(const std::string &returnForm);
|
void setReturnForm(const std::string &returnForm);
|
||||||
std::string getOssFile() const;
|
std::string getOssFile() const;
|
||||||
void setOssFile(const std::string &ossFile);
|
void setOssFile(const std::string &ossFile);
|
||||||
|
long getOutMode() const;
|
||||||
|
void setOutMode(long outMode);
|
||||||
std::string getRequestProxyBy() const;
|
std::string getRequestProxyBy() const;
|
||||||
void setRequestProxyBy(const std::string &requestProxyBy);
|
void setRequestProxyBy(const std::string &requestProxyBy);
|
||||||
std::string getImageURL() const;
|
std::string getImageURL() const;
|
||||||
@@ -45,6 +47,7 @@ private:
|
|||||||
std::vector<std::string> clothClass_;
|
std::vector<std::string> clothClass_;
|
||||||
std::string returnForm_;
|
std::string returnForm_;
|
||||||
std::string ossFile_;
|
std::string ossFile_;
|
||||||
|
long outMode_;
|
||||||
std::string requestProxyBy_;
|
std::string requestProxyBy_;
|
||||||
std::string imageURL_;
|
std::string imageURL_;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -51,6 +51,15 @@ void SegmentClothRequest::setOssFile(const std::string &ossFile) {
|
|||||||
setParameter(std::string("OssFile"), ossFile);
|
setParameter(std::string("OssFile"), ossFile);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
long SegmentClothRequest::getOutMode() const {
|
||||||
|
return outMode_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void SegmentClothRequest::setOutMode(long outMode) {
|
||||||
|
outMode_ = outMode;
|
||||||
|
setParameter(std::string("OutMode"), std::to_string(outMode));
|
||||||
|
}
|
||||||
|
|
||||||
std::string SegmentClothRequest::getRequestProxyBy() const {
|
std::string SegmentClothRequest::getRequestProxyBy() const {
|
||||||
return requestProxyBy_;
|
return requestProxyBy_;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user