pupil-labs / libuvc

a cross-platform library for USB video devices
https://int80k.com/libuvc/
Other
52 stars 30 forks source link

How to capture pupil images by using the libuvc #38

Closed zhimin-wang closed 4 years ago

zhimin-wang commented 4 years ago

Hi, after many efforts, I have complied and run successfully the libuvc lib in C++ environment. Although there is a example, I don't know how to print the name of device_list and capture the pupil image from the usb. Is there any more detailed codes that read Pupil images by using the libuvc? Looking forward to your reply.

zhimin-wang commented 4 years ago

I have worked with DirectShow. It only need one line: cv::VideoCapture cap(0, cv::CAP_DSHOW);