سؤال

In iOS , I can get camera buffer image from the SDK, but in the Linux world, if I plug a camera to the machine, how can I get the camera buffer in Linux system? Thanks.

هل كانت مفيدة؟

المحلول

Each device in Linux word is linked to a file into the /dev directory. Precisely, the video devices usually are located into the /dev/v4l folder. In the folder you should find symbolic links that point to the /dev/video0 (the real file associated with the physical device file).

If you need to access to the buffer of the cam, you just need to open the file and start reading.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top