Skip to content

Instantly share code, notes, and snippets.

@uelordi01
Created October 2, 2018 16:04
Show Gist options
  • Select an option

  • Save uelordi01/80985638d2f0dd6c6f7072b870e6dfc0 to your computer and use it in GitHub Desktop.

Select an option

Save uelordi01/80985638d2f0dd6c6f7072b870e6dfc0 to your computer and use it in GitHub Desktop.
#take the base64_decode from https://renenyffenegger.ch/notes/development/Base64/Encoding-and-decoding-base-64-with-cpp
std::string raw = base64_decode(im64);
cv::Mat rawData( 1, raw.size(), CV_8UC1, (void*) raw.c_str());
cv::Mat decodedImage = cv::imdecode( rawData, cv::IMREAD_COLOR /*, flags */ );
cv::imshow("hola",decodedImage);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment