驴:
你试试这样:
verticalProfile = (binaryImage, 2)之和;
thresholdValue = 0;%或其他
rowsWithLetters = verticalProfile > thresholdValue;