简体   繁体   中英

How to store a frame to a file using OpenCV

I am reading frames from a camera using:

capture=cv.CaptureFromCAM(0) frame1 = cv.QueryFrame(capture)

How can I save this frame into a jpg file?

你可以试试这个

cv.SaveImage("frame.jpg". ,frame1);

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