waveform80 / picamera

A pure Python interface to the Raspberry Pi camera module
https://picamera.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
1.57k stars 355 forks source link

4.16. Raw Bayer data captures - Example Code - Assertion Error #732

Open BlenderVali opened 1 year ago

BlenderVali commented 1 year ago

In the example script: docs/examples/bayer_data.py At line 35: assert data[:4] == 'BRCM' The Assertion Fails in Python 3.9.2

The Workaround I found for this: assert data[:4] == b'BRCM'

Apparently b'BRCM' and 'BRCM' Cannot be compared.