Extracting pixel values of an image using python pil library - Source Dexter

3 Comments

  1. Yasoob
    August 28, 2013 @ 3:38 am

    Reblogged this on Bite Sized Python Tips and commented:
    This is a very nice post which teaches you some of the basics of PIL (python imaging library) . Make sure that you read it if you are interested in images.

    Reply

  2. Anonymous
    September 20, 2015 @ 1:01 pm

    Python GUI stopped executing after I added a
    print pix_val_flat
    or print pix_val

    Reply

    • akshay pai
      September 20, 2015 @ 11:50 pm

      There might be various reasons as to why that might have happened. First, it might be because the image file was very large causing some kind of an overflow leading to the GUI or shell to crash. Second, it might be because of the way you printed it… Try iterating through the list of pixels values and print values as you iterate through it. Feel free to leave a comment if you face any issues.

      Reply

Leave a Reply

Your email address will not be published. Required fields are marked *