Hi, thanks for such a good work ! When I try to use the jpeg_toolbox.load() to read my jpg pics, it returns an empty dictionary, the original error is:
KeyError Traceback (most recent call last)
in
1 prefix = "../data/JPG"
2
----> 3 test = jpeg_toolbox.load(f"{prefix}/00899.jpg")
/data/anaconda3/lib/python3.8/site-packages/jpeg_toolbox.py in load(path, use_blocks)
23 r = jpeg.read_file(path.encode())
24
---> 25 r["quant_tables"] = np.array(r["quant_tables"])
26
27 for i in range(len(r["ac_huff_tables"])):
KeyError: 'quant_tables'
My python environment is 3.8 with Linux version 4.4.0-210-generic (buildd@lgw01-amd64-009) (gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.12) ). Have no clue why this happened. Is there any thing I've missed ? and what's the exact environment this repository is compatible with? Thanks if you can help me out.
Hi, thanks for such a good work ! When I try to use the jpeg_toolbox.load() to read my jpg pics, it returns an empty dictionary, the original error is:
KeyError Traceback (most recent call last)