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

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

PostgreSQL 9.x - pg_read_binary_file & inserting files into bytea -

jtree - comparing two TreeNode (or DefaultMutableTreeNode) objects in Java Comparator -