python pillow convert image into matrix code example Example: pillow image from array PIL.Image.fromarray(your_array)