Replies: 2 comments
-
NCNN_EXPORT Mat imdecode(const std::vector<uchar>& buf, int flags = IMREAD_COLOR);There is imdecode in opencv. Follow the name. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Hi, |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
now simpleocv allow to read images only from file, but stb library allows to read image from memory buffer, so adding a function that allow to read images form memory is relative easy. I added this function fora personal project, I simple added a function with signature:
NCNN_EXPORT Mat imread(unsigned char *buf, int len, int flags = IMREAD_COLOR);to simpleocv.h and I copied the implementation of imread replacing stbi_load with stbi_load_from_memory. Do you thing that is something interenting to have?
Alberto
Beta Was this translation helpful? Give feedback.
All reactions