[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 574: sizeof(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 630: sizeof(): Parameter must be an array or an object that implements Countable
Plum Geek Forum • Camera mirror over RealVNC
Page 1 of 1

Camera mirror over RealVNC

Posted: Tue Jan 30, 2018 7:51 pm
by gpvillamil
One of the first things I did when I got the Pi configured was connect to it over RealVNC and try to fire up the camera.

The built-in raspistill utility will not be mirrored over RealVNC, since it renders directly to GPU.

However the QV4L2 utility will work fine, it will render video from the Pi Cam to a window, and it can be mirrored over RealVNC. It has a bunch of handy settings, including vertical flip of the camera image.

Try this:

sudo apt-get install qv4l2
sudo modprobe bcm2835-v4l2
qv4l2

If you want to permanently add the bcm2835-v4l2 driver, edit /etc/modules and add "bcm2835-v4l2" to the file. The camera driver module will be installed at boot time.

Re: Camera mirror over RealVNC

Posted: Wed Jan 31, 2018 6:12 am
by esba1ley
This is another reason I use OpenCV. The OpenCV windows display the camera contents (stills AND video) over VNC.

I believe it does this by doing what you did, but behind the scenes as part of their package.

In Python I use the picamera and cv2 packages for anything relating to the camera... because the cv2 stuff hooks me into all kinds of computer vision goodies.

-Erik