4

I am trying to setup My Ubuntu Desktop wallpaper that accepts a Live video feed from webcam using opencv and after performing some object detection I accept it as Opencv feed where I am able to Display it using cv2.imshow.

But instead of Using Imshow is it possible to cast the output of object detection as ubuntu desktop live Wallpaper.

I am even able to setup live video from youtube as Ubuntu live wallpaper using cvlc but unable to understand how to do that from opencv output.

  • how much trouble are you willing to go to? if `cvlc` works, there's a way but it could be complicated and I haven't done that yet – Christoph Rackwitz Dec 07 '20 at 05:47
  • basically, run `cvlc` to receive a stream, and use cv::VideoWriter to send a stream there. might require OpenCV with gstreamer or ffmpeg – Christoph Rackwitz Dec 07 '20 at 05:55
  • @ChristophRackwitz I am doing it to create an open source alternative to Hola lens and I am on the last stage of deployment as a result there is no chance of stepping back let me try it with CV::VideoWriter – include conio.h Dec 08 '20 at 19:27

2 Answers2

2

You might have to go with a lot of trouble as looks like its never been implemented but you can try implementing by one of the following ways :

  1. Try saving the frames and consciously deleting the old frame at a same time changing background from os call.
  2. if you are able to make cvlc run You can try running it by cv::VideoWriter or Streaming video to localhost and then using similar YouTube approach you were doing.
  3. You can Try using Streamlink/MPV/Xwinwrap fork.
Devlopers Friend
  • 439
  • 3
  • 21
1

You can save the desired results using cv2.imwrite() and then try the methods described here and here