Is there a way to use the final OpenCV image as a camera?

asked 2020-06-06 16:20:15 -0500

Hey, is there a way to use the final OpenCV image as a camera? So, for example, the camera in skype shows this final image in real time. Purpose: Put a timer with puttext on the camera input.

edit retag flag offensive close merge delete


please explain: "OpenCV image as a camera"

sure you can put some text onto the image before showing it

berak gravatar imageberak ( 2020-06-07 01:04:45 -0500 )edit

You can use opencv to capture images from a webcam and then annotate it with text. That's basic functionality and not complicated.

holger gravatar imageholger ( 2020-06-07 19:06:42 -0500 )edit

So you wanted to put timer in cv2.putText?

supra56 gravatar imagesupra56 ( 2020-06-07 20:15:18 -0500 )edit

I am in good mood currently so i guess what he wants to do:

  1. Grab periodically a frame from a webcam
  2. Annotate it with some text
  3. Show the image

Is this understanding correct?. If so do the following:

Create a timer thread. Use VideoCapture object to grab frame. Use putText to draw the text. Use imshow() to show the picture, Or serialize the image and show it in your application.

holger gravatar imageholger ( 2020-06-08 06:03:32 -0500 )edit