Answer the question
In order to leave comments, you need to log in
How to pass video frame from OpenCV to Matplotlib?
There is an IP camera from which the RTSP stream is taken through the Python version of OpenCV:
camera = cv2.VideoCapture(rtsp_url)
ret, frame = camera.read()
cv2.imshow('frame', frame)
img = matplotlib.image.imread(img_file)
status = cv2.imwrite('image.jpg', frame)
img_file = matplotlib.image.imread('image.jpg')
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question