sieuwe1 / PS4-eye-camera-for-linux-with-python-and-OpenCV

Use the PS4 camera as an cheap yet powerfull 3D depth and RGB camera for use with OpenCV and python in Linux
49 stars 15 forks source link

2 questions- only sudo run; other modes (640x400, 320x200) #5

Closed Dan010123 closed 10 months ago

Dan010123 commented 10 months ago

Hi! I have 2 questions First: I'm applying the Firmware patch ps4eye_init.py as sudo user. If I try to launch View_RGP.py as non-sudo - I get error open VIDEOIO(V4L2:/dev/video0): can't open camera by index Seems, that's why the camera only opens if running as sudo python3 View_RGP.py. (v4l2-ctl --list-devices also gets Failed to open /dev/video0: Permission denied ) Is it a way to run it as non-sudo user?

Second: could you please show, how do I set the camera for less resource consuming graphical mode like 640x400 or 320x200 (I try to launch it on raspberry pi4 8Gb, but I have only two green windows for left and right image.

Thanks a lot!