After we've created VideoCapture
with cv2.VideoCapture(filename)
how can we retrieve filename
? Looks like get()
method with propId
is not what I'm looking for
sorry, but you cannot retrieve the filename from a cv2.VideoCapture.
(also, webcams or ip captures wont even have one)
since the filename is in your code, you need to cache it in a variable instead.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.