I want to capture a video from a real webcam, apply filters with openCv and write the filtered video on a virtual webcam, to stream it on web.
I don
You can also use a combination of v4l2loopback, OBS Studio and obs-v4l2sink.
Use OBS Studio to capture video from your device, then obs-v4l2sink is a small plugin that writes output into /dev/video* of your choice.
https://github.com/umlaeute/v4l2loopback/wiki/OBS-Studio
https://github.com/CatxFish/obs-v4l2sink