image processing - Help editing a picture in python -


i have suppose i'm given picture, there shouldnt user inputs or calls media.chose file, given picture return average red value of pixels in picture (as int). if average calculation results in non-integer value, truncate result. example, if average values 10, 6 , 4, result 6.

the question answered here

use pil load image, read pixel pixel , calculation.


Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -