src/transformers/models/layoutlmv2/feature_extraction_layoutlmv2.py/LayoutLMv2FeatureExtractor/__init__
class LayoutLMv2FeatureExtractor:    def __init__(self, do_resize=True, size=224, resample=Image.BILINEAR, apply_ocr=True, **kwargs):
        super().__init__(**kwargs)
        self.do_resize = do_resize
        self.size = size
        self.resample = resample
        self.apply_ocr = apply_ocr
        if apply_ocr:
            requires_backends(self, "pytesseract")