Milind Padalkar
-
Posts
4 -
Joined
-
Last visited
Content Type
Profiles
Forums
Gallery
Blogs
Events
Store
Downloads
Posts posted by Milind Padalkar
-
-
Seems it was fairly easy after looking at the output of :
v4l2-ctl --device /dev/video0 --list-formats-ext # /dev/video0 corresponds to the VivePro' camera
I found that it the following entries among many:
ioctl: VIDIOC_ENUM_FMT Type: Video Capture [0]: 'YUYV' (YUYV 4:2:2) Size: Discrete 640x480 Interval: Discrete 0.017s (60.000 fps) Size: Discrete 612x460 Interval: Discrete 0.017s (60.000 fps) Size: Discrete 612x920 Interval: Discrete 0.019s (52.000 fps) Interval: Discrete 0.018s (55.000 fps) Interval: Discrete 0.033s (30.000 fps) Interval: Discrete 0.017s (60.000 fps) Size: Discrete 320x240 Interval: Discrete 0.033s (30.000 fps) Size: Discrete 352x288 Interval: Discrete 0.033s (30.000 fps) Size: Discrete 432x240 Interval: Discrete 0.033s (30.000 fps) Size: Discrete 640x360 Interval: Discrete 0.033s (30.000 fps) Size: Discrete 800x448 Interval: Discrete 0.033s (30.000 fps) Size: Discrete 800x600 Interval: Discrete 0.033s (30.000 fps) Size: Discrete 864x480 Interval: Discrete 0.033s (30.000 fps) Size: Discrete 640x481 Interval: Discrete 0.017s (60.000 fps) Size: Discrete 640x960 Interval: Discrete 0.017s (60.000 fps) Size: Discrete 612x920 Interval: Discrete 0.019s (52.000 fps) Interval: Discrete 0.018s (55.000 fps) Interval: Discrete 0.033s (30.000 fps) Interval: Discrete 0.017s (60.000 fps)
So by default it was showing 640x480 but one can also access 640x960 which is 2*(640x480).
The attached file shows how to access it. -
Hi @bipul mohanto, maybe you can have a look at the following using OpenXR with Godot.
Hope it helps!
-
I have the Vive Pro and I can access one of the front cameras (the right one specifically) with OpenCV's API and C++ (cv::VideoCapture()). How can I access both the front cameras? I am using Ubuntu 20.04.
Thanks and best regards,
Milind
OpenCV video processing with SRWorks
in VIVE SRWorks SDK
Posted
Seems like the other view is available if you set the correct frame size (reference post).
Here is how you can do it (note that the 2nd view is available below the 1st one).