朋友们,我手里有大约100个视频,我需要一个系统,软件来显示我将在这些视频中指定的图像的存在,在哪一秒重合,你能帮我怎么做吗?
视频数据标注测试
我可能没有正确理解你的问题。
您可以使用 OpenCV 将视频转换为帧
def FrameCapture(path):
# Path to video file
vidObj = cv2.VideoCapture(path)
# Used as counter variable
count = 0
# checks whether frames were extracted
success = 1
while success:
# vidObj object calls read
# function extract frames
success, image = vidObj.read()
# Saves the frames with frame-count
cv2.imwrite("frame%d.jpg" % count, image)
count += 1
然后你可以迭代这些帧并将它们与你的图像进行比较(有很多图像比较技术,如 MSE、Siamese 网络),然后得到相应的帧号。然后使用
获取其时间范围timeframe = framenumber / fps