How to convert list of integers to image?
问题 I am using a SFM5020 fingerprint scanner and I am using pysfm library. I have a function that reads fingerprint data and gives template data of length 10909 in the form of a list. I want to convert it to an image. Can you please help me on this? I don't know the height and width, I just know the length of the template data which is 10909. Here's a section of such template data: template_data = [16, 1, 0, 0, 64, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 84, 1, 0, 0, 0, 0, 0, 255, 255,