简体   繁体   中英

capture h264 to buffer with openCV

I retrieve an rtp H264 stream. I process like this : - get Udp packet - remove rtp header and parse packet to get image - record/append image into a file - open this file with opencv (bool VideoCapture::open(const string& filename))

and all is working fine!!

Now I want to skip the record in the file step and directly send image from udp process to opencv. But i don't know how initialise opencv with an input buffer. It only accept const string& filename.

Could somebody help me?

Thanks

如果它是单个图像,你有内存, imdecode应该做的伎俩

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM