简体   繁体   English

VNC 显示器上的 PiCamera

[英]PiCamera on VNC display

I've recently started working with the Raspberry PiCamera module, and have an issue with image preview.我最近开始使用 Raspberry PiCamera 模块,但遇到图像预览问题。 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.使用start_preview()可以很好地处理 Raspberry 的物理视频 output。现在我想通过 TightVNC 客户端使用 Pi,所以我连接到显示器 1,因为 Pi 拒绝连接到主显示器。

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).当我通过 VNC 远程运行我的 python 脚本时,相机 output 显示在原始 Pi 显示器上(HDMI output 到单独的显示器)。 Does anyone have an idea about how to get the PiCamera display on the remote computer?有人知道如何在远程计算机上显示 PiCamera 吗? 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.我最近才开始使用它,不知道是否应该尝试连接到 Pi 的主显示器或将我的 python 脚本更改为 output VNC 辅助显示器上的视频。

On your raspberry pi install xRDP for a remote desktop connection在你的树莓派上安装 xRDP 以建立远程桌面连接

sudo apt-get install xrdp

Use remote desktop connection for windows and proceed.使用 Windows 的远程桌面连接并继续。

Open the VNC Server dialogue by double clicking the VNC icon on your Pi's taskbar.双击 Pi 任务栏上的 VNC 图标,打开 VNC 服务器对话框。 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 .通过单击右上角的三个水平线打开菜单,然后单击 go 到选项 > 故障排除和 select启用直接捕获模式

To close the preview window, you can enter Ctrl-D.要关闭预览 window,您可以输入 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此答案基于在 Raspberry Pi Stack Exchange 上询问的通过 VNC 查看 PICamera V2

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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