'OpenCV Optical Flow using python
How do I perform Optical Flow on a set of images?
I want to read multiple images and perform Optical Flow (Lucas Kanade) on them. However I get solutions only for loading a video and not images.
Solution 1:[1]
I assume you have this line in tutorial:
ret, frame = cap.read()
Just get the frame this way:
frame = cv2.imread("path/to/img")
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Proko |
