Welcome to HD USB Camera repository
27.Clear background detection algorithm
Clear background detection algorithm
1.Use
Code path:~/yahboomcar_ws/src/opencv_apps/launch
- Start the camera
roslaunch yahboomcar_visual opencv_apps.launch img_flip:=false
- img_flip parameter: whether the image needs to be flipped horizontally, the default is false.
[usb_cam-test.launch] file opens the [web_video_server] node by default, and you can directly use the [IP:8080] web page to view images in real time.
- Start the corner detection function of Opencv_apps
xxxxxxxxxxroslaunch opencv_apps segment_objects.launch # Clear background detection algorithmThe debug_view for some functions is disabled, and there is no screen appearing. You can view the effect in the following two ways.
xThe reason for closing debug_view is that it will generate errors on the terminal, but the actual effect has not been affected!
- Local view image
Enter the following command to select the corresponding topic
xxxxxxxxxxrqt_image_view
- LAN view image
(Same as under LAN) Enter IP+port in the browser, for example:
x192.168.2.150:8080
2. Effect display
By comparing the images, it can be seen that the background has been cleared.
