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

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

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

Comments

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 -0600 )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 -0600 )edit

So you wanted to put timer in cv2.putText?

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

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 -0600 )edit