I found another application that works quite easily and has the benefit of being able to adjust all the settings from the web interface.
It's called picamera2-WebUI-Lite
webui-lite-screen.png
There's a slight error on the instructions to install and it doesn't tell you how to set it up as a service, so I've listed thesteps.
To install.
SSH into your PI (or open a terminal if using a desktop)
Change directory
cd /usr/local/bin/Clone the repositry
sudo git clone https://github.com/monkeymademe/picamera2-WebUI-Lite.gitChange directory
cd /usr/local/bin/picamera2-WebUI-LiteTest that it's running
python3 app.pyOpen your browser and go to
http://raspberrypi.local:8080/
To see just the video feed go to
http://raspberrypi.local:8080/video_feed
Go back to the terminal and hot CTRL + C to shut the app down
To set it up as a service
Change directory
Open a text editor to create a system service file
sudo nano webui-lite.servicePaste in the following
[Unit] Description=Start script for WebUi-Lite as a service After=syslog.target network.target [Service] WorkingDirectory=/usr/local/bin/picamera2-WebUI-Lite/ ExecStart=/usr/bin/python3 /usr/local/bin//picamera2-WebUI-Lite/app.py Restart=always RestartSec=120 [Install] WantedBy=multi-user.targetPress CTRL + X to exit and Y to save
Reload the daemon
sudo systemctl daemon-reloadEnable the service
sudo systemctl enable webui-lite.serviceNOTE that if you already have the other streamVideo service I listed above using Picamera you will have to disable it as you can't run both.
sudo systemctl disable streamVideo.serviceReboot the system to make sure the service starts
sudo shutdown -r nowAdjust your DWC settings as follows
webui.png
This will allow you to easily get to the settings page by clicking on the webcam image in DWC
From there adjust your resolution and you can also zoom in a particular area using the scaler crop settings.
Full view
fullscreen.png
Cropped view
zoomed.png