Tuesday, April 12, 2022

[SOLVED] PiCamera on VNC display

Issue

I've recently started working with the Raspberry PiCamera module, and have an issue with image preview. Using start_preview() works fine of the Raspberry's physical video output. Now I want to use the Pi through a TightVNC client, so I connect to display 1 as Pi refuses connections to the main display.

When I run my python script remotely through VNC, the camera output is shown on the original Pi display (HDMI output to a separate monitor). Does anyone have an idea about how to get the PiCamera display on the remote computer? I've only started using it recently and don't know if I should try to connect to the Pi's main display or change my python script to output the video on the VNC secondary display.


Solution

On your raspberry pi install xRDP for a remote desktop connection

sudo apt-get install xrdp

Use remote desktop connection for windows and proceed.



Answered By - XOR
Answer Checked By - Mildred Charles (WPSolving Admin)