0

how do I split a video into individual frames so that I can use it in ImageTk.

I have found a few tutorials around this, but all the dependencies have since updated and I'm having real trouble finding a way to get this to work. Many of the problems are from not being able to install the dependencies (OpenCV)

any suggestions on how I can install OpenCV to make this work:

import cv2
video_capture = cv2.VideoCapture("rtsp://admin:admin@192.168.0.94:554/stream3")


while True:
    # get frame by frame
    ret, frame = video_capture.read()
    cv2.imwrite('pic.png',frame)
    cv2.imshow('Video', frame)

or what would you recommend I do?

Marc Frame
  • 923
  • 1
  • 13
  • 26

1 Answers1

1

Make sure you have pip installed on your system. See how to install pip and how to install pip on Mac OS

Then just run pip install opencv-python

Community
  • 1
  • 1
September
  • 416
  • 4
  • 11