def set_right_picture(self, image=None):
     # sk_image = self.algorithm_picture.skeleton_image()
     # sk_image = PILtoQPixmap(sk_image)
     if not image:
         image = self.sign_picture.pilImageColor
     cv_image = PILtoCV(image)
     self.horizontal_lines, self.vertical_lines, horiz_histogram, vertical_histogram = HistogrammPiksDetector.getLinesOnPicture(
         cv_image, font=self.sign_picture.fontName)
     pil_image = CVtoPIL(horiz_histogram)
     bottom_image = CVtoPIL(vertical_histogram)
     self.pic_right.setPixmap(PILtoQPixmap(pil_image).scaled(self.app.pic_size, self.app.pic_size))
     self.pic_bottom.setPixmap(PILtoQPixmap(bottom_image).scaled(self.app.pic_size, self.app.pic_size))
 def get_lines_picture(cls, sign, median_num=17):
     image = sign.pilImageColor
     cv_image = PILtoCV(image)
     horizontal_lines, vertical_lines, horiz_histogram, vertical_histogram = HistogrammPiksDetector.getLinesOnPicture(
         cv_image, median_num)
     return horizontal_lines, vertical_lines