| Reference | Downloads | Github

Count number of white pixels in a frame

Is there a function that Psychopy provides to count the number of white pixels per frame? Alternatively, I have found a way to do it with OpenCV, but I wanted to check if I could simply use PsychoPy.

Thanks in advance for your answers!

I don’t think PsychoPy will have a function for that, but as OpenCV is bundled with PsychoPy, if you have a solution that already works via that package, go for it.

1 Like

Great, thanks for the answer :slight_smile: