Quantcast
Channel: OpenCV Q&A Forum - Latest question feed
Viewing all articles
Browse latest Browse all 19555

Load a jpg image from memory

$
0
0
From an IP camera I've read in a jpg image to a buffer in memory. If I write this buffer to a file "picture.jpg", I can open it directly in Windows. I can also open the file with OpenCV: Mat image; image = imread("picture.jpg"); imshow("video", image); Is there a way to directly pass the memory buffer to OpenCV? Casting it to InputArray ends in error. Best regards, Peak

Viewing all articles
Browse latest Browse all 19555

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>