developer-mayuan
3/14/2018 - 6:04 PM

OpenCV Premature end of JPEG file

def check(path):
    with open(path, 'rb') as f:
        f.seek(-2,2)
        if f.read() != '\xff\xd9':
            print path