How to find out if a channel is empty with python ?

Hi,
i am working on some images sequences with python.
And i got a problem with some frames where the alpha channel is black.
I would like to create a function in python to test if the alpha channel is totally empty… Return true if yes and false is not.
It’s sound simple, but i didnt found any way to access to the channels datas from python.

Please drop me a line if you have an idea…

I know it’s possible to do it with some c++, by accessing the buffer. By i dont know either how to do it.:confused:

NC

No Responses to “How to find out if a channel is empty with python ?”

Post a Comment