def get_filter_result(self, crop):
    'Main public function of TextDetector filter class,\n        this filter Returns false if crop contains no text, additionally\n        checks for overlap between input crop rectangle and the detected\n        text bounding box, returns True if No overlap (Filter will not discard input crop)\n        otherwise returns False (signal for discarding input crop).\n        \n        :param crop: input crop rectangle to test\n        :type crop: crop_rect\n        :return: True if No overlap (Filter will not discard input crop) otherwise returns False \n        :rtype: bool\n        '
    if ((self.text_rects is None) or (len(self.text_rects) == 0)):
        return True
    for rect in self.text_rects:
        if (not ((rect[2] <= (crop.x + crop.w)) and (rect[0] >= crop.x) and (rect[1] >= crop.y) and (rect[3] <= (crop.y + crop.h)))):
            return False
        else:
            return True
    return True
Main public function of TextDetector filter class,
this filter Returns false if crop contains no text, additionally
checks for overlap between input crop rectangle and the detected
text bounding box, returns True if No overlap (Filter will not discard input crop)
otherwise returns False (signal for discarding input crop).

:param crop: input crop rectangle to test
:type crop: crop_rect
:return: True if No overlap (Filter will not discard input crop) otherwise returns False 
:rtype: bool
def get_filter_result(self, crop):
    'Main public function of TextDetector filter class,\n        this filter Returns false if crop contains no text, additionally\n        checks for overlap between input crop rectangle and the detected\n        text bounding box, returns True if No overlap (Filter will not discard input crop)\n        otherwise returns False (signal for discarding input crop).\n        \n        :param crop: input crop rectangle to test\n        :type crop: crop_rect\n        :return: True if No overlap (Filter will not discard input crop) otherwise returns False \n        :rtype: bool\n        '
    if ((self.text_rects is None) or (len(self.text_rects) == 0)):
        return True
    for rect in self.text_rects:
        if (not ((rect[2] <= (crop.x + crop.w)) and (rect[0] >= crop.x) and (rect[1] >= crop.y) and (rect[3] <= (crop.y + crop.h)))):
            return False
        else:
            return True
    return True