Oct-25-2017, 07:12 PM
That other reply has nothing to do with what you asked and has the additional added benefit of being extremely slow.
As I said previously, convert your image to a binary image (not grayscale).
Then find the sums of all rows (a single numpy operation).
Then take the max of these sums (also a single numpy operation).
As I said previously, convert your image to a binary image (not grayscale).
Then find the sums of all rows (a single numpy operation).
Then take the max of these sums (also a single numpy operation).