Camera mirror over RealVNC

The more technical aspects of Spirit, and carry-over discussion from Kickstarter updates.
Posts: 75
Joined: Fri Jan 26, 2018 5:03 pm

Camera mirror over RealVNC

Postby gpvillamil » Tue Jan 30, 2018 7:51 pm

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

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.

User avatar
Posts: 58
Joined: Sun Jan 01, 2017 2:15 am
Location: Pasadena, CA

Re: Camera mirror over RealVNC

Postby esba1ley » Wed Jan 31, 2018 6:12 am

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 S. Bailey
Entry, Descent, and Landing Aerospace Engineer
Maker, and Musician
SpiritRover Kickstarter Backer #460

Who is online

Users browsing this forum: No registered users and 5 guests