简体   繁体   中英

Webcam images to memory in C++

I need a way to capture images from a webcam and store them in memory. I'm experimenting with object tracking. (Wanting to write my self, I don't want a library for tracking.)

I don't want to save to a .bmp and then reload into memory.

I want something fast as I'll need to take images from the camera several times a second.

I don't really want to use something like OpenCV as it's likely too slow for my useage and has many features I don't really need. (Though if I'm wrong about it being slow, I may try it.)

Thanks in advance.

See here: http://www.dreamincode.net/forums/topic/193519-win32-webcam-program/

That should help you get images from the webcam. After you get the webcam image, you can do whatever with it. Save it to file or keep the buffer. Up to you.

You can also try DirectShow or VLC.

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