def set_image(self, image):
    'Public set_image function, This will detect all text boxes in input image and\n        will saves them as internal list of text_rect to be used in get_filter_result\n\n        :param image: input image from which needs to be cropped\n        :type image: numpy array(opencv)\n        '
    if (image is None):
        return None
    self.image = image
    self.text_rects = self.__detect_text()
Public set_image function, This will detect all text boxes in input image and
will saves them as internal list of text_rect to be used in get_filter_result

:param image: input image from which needs to be cropped
:type image: numpy array(opencv)
def set_image(self, image):
    'Public set_image function, This will detect all text boxes in input image and\n        will saves them as internal list of text_rect to be used in get_filter_result\n\n        :param image: input image from which needs to be cropped\n        :type image: numpy array(opencv)\n        '
    if (image is None):
        return None
    self.image = image
    self.text_rects = self.__detect_text()