First time here? Check out the FAQ!
answered 2015-06-08 08:17:19 -0600
You want to compute the number of pixels not null, there is a function for that: [countNonZero] (http://docs.opencv.org/modules/core/doc/operations_on_arrays.html?highlight=countnonzero#cv2.countNonZero)