Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

user friendly image loading #7974

Merged
merged 1 commit into from Sep 24, 2017
Merged

Conversation

zhreshold
Copy link
Member

} else {
dst = cv::Mat(out->shape()[0], out->shape()[1], flag == 0 ? CV_8U : CV_8UC3,
out->data().dptr_);
#if (CV_MAJOR_VERSION > 2 || (CV_MAJOR_VERSION == 2 && CV_MINOR_VERSION >=4))
cv::imdecode(buf, flag, &dst);
CHECK(!dst.empty()) << "Failed decoding image to output directly.";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Decoding failed. Invalid image file.

#else
cv::Mat tmp = cv::imdecode(buf, flag);
CHECK(!tmp.empty());
CHECK(!tmp.empty()) << "Invalid image file. Only supports png and jpg.";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Decoding failed. Invalid image file.

@piiswrong
Copy link
Contributor

piiswrong commented Sep 21, 2017

please fix lint

fix

modify log message

fix pylint
@piiswrong piiswrong merged commit b83a03b into apache:master Sep 24, 2017
mbaijal pushed a commit to mbaijal/incubator-mxnet that referenced this pull request Sep 25, 2017
fix

modify log message

fix pylint
crazy-cat pushed a commit to crazy-cat/incubator-mxnet that referenced this pull request Oct 26, 2017
fix

modify log message

fix pylint
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants