def _deal_image_(self):
img = cv2.imread(self.totalpath, cv2.IMREAD_GRAYSCALE)
img = self._remove_line_(img)
result = self._split_word_(img)
# ??????????????????
if len(result) == 0:
print '???????...'
while len(result) == 0:
if self._generate_image_():
img, result = self._deal_image_()
print '?????????'
return img, result
评论列表
文章目录