Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
448 views
in Technique[技术] by (71.8m points)

python - Extract timestamp of all frames that has a target recognised face in a saved video read using CV2. [computer-vision]

my python code will look something like this:

timestamp_list = []
cap = cv2.VideoCapture("video.mp4") 
if (cap.isOpened()== False): 
  print("Error opening video file")

while(cap.isOpened()):
  ret, frame = cap.read()
  if ret == True:

    # check if frame has target face and return boolean True if face recognised
    #**get timestamp and append to timestamp_list **

Thanks for reading my question. Please pardon me if the question is kiddish, I am a newbie in computer vision. Please let me know if I am missing to provide any other information.

question from:https://stackoverflow.com/questions/65879235/extract-timestamp-of-all-frames-that-has-a-target-recognised-face-in-a-saved-vid

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...