简体   繁体   中英

PiCamera on VNC display

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.

On your raspberry pi install xRDP for a remote desktop connection

sudo apt-get install xrdp

Use remote desktop connection for windows and proceed.

Open the VNC Server dialogue by double clicking the VNC icon on your Pi's taskbar. Open the menu by clicking on the three horizontal lines in the top right corner then go to Options > Troubleshooting and select Enable direct capture mode .

To close the preview window, you can enter Ctrl-D.

More information is available on this page .


This answer was based on Viewing PICamera V2 via VNC asked at Raspberry Pi Stack Exchange

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM