Reading-in a binary JPEG-Header (in Python)
问题 I would like to read in a JPEG-Header and analyze it. According to Wikipedia, the header consists of a sequences of markers. Each Marker starts with FF xx , where xx is a specific Marker-ID. So my idea, was to simply read in the image in binary format, and seek for the corresponding character-combinations in the binary stream. This should enable me to split the header in the corresponding marker-fields. For instance, this is, what I receive, when I read in the first 20 bytes of an image: