python3处理.seq文件
都是编码惹的祸,python2没有区别string和bytes,python3是严格区分的。
感谢Kaij的分享。在py3中只需修改两个地方,您可自查。
行人检测——Caltech Pedestrian Dataset 数据集
#!/usr/bin/env python
# coding=utf-8
# Deal with .seq format for video sequence
# Author: Kaij
# The .seq file is combined with images,
# so I split the file into several images with the image prefix
# "\xFF\xD8\xFF\xE0\x00\x10\x4A\x46\x49\x46".
import os.path
import fnmatch
import shutil
def