jnohlgard / python-v4l2capture

Python extension to capture video with video4linux2 (fork of https://launchpad.net/python-v4l2-capture)
133 stars 83 forks source link

ValueError: not enough image data #18

Closed maykef closed 7 years ago

maykef commented 7 years ago

ubuntu@tegra-ubuntu:~$ python3 take_photo.py libv4l2: error set_fmt gave us a different result then try_fmt! Traceback (most recent call last): File "take_photo.py", line 32, in image = Image.frombytes("RGB", (size_x, size_y), image_data) File "/usr/lib/python3/dist-packages/PIL/Image.py", line 2057, in frombytes im.frombytes(data, decoder_name, args) File "/usr/lib/python3/dist-packages/PIL/Image.py", line 740, in frombytes raise ValueError("not enough image data") ValueError: not enough image data