7. Web page real-time monitoring

7.1. Environment Construction

First make sure that the USB camera link is correct, enter the following command to check that the USB device number exists and is video0

image-20220214194339421

If the execute permission is not enough, you need to add the execute permission

7.2. modify the launch file

Keep hitting the keyboard [d] to delete everything. Click [i] on the keyboard to enter the edit mode, and write the following content into it.

Click the [ESC] key twice (or multiple times), click the keyboard [shift plus;], enter [wq], and click the [Enter] key.

7.3. effect demonstration

open terminal, start

Note: It is recommended to use Google Chrome or mobile QQ browser, other browsers may not be able to open the image

image-20220214194600516

Click [image_raw] to view the camera image in real time, and click [Snapshot] to display only one frame of image.