Skip to content

Commit

Permalink
Remove unused zoom
Browse files Browse the repository at this point in the history
  • Loading branch information
plutasnyy committed Jan 7, 2025
1 parent c25039f commit 3bff8ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion unstructured/partition/utils/ocr_models/tesseract_ocr.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def get_layout_from_image(self, image: PILImage.Image) -> List[TextRegion]:
trace_logger.detail("Processing entire page OCR with tesseract...")
zoom = 1
ocr_df: pd.DataFrame = self.image_to_data_with_character_confidence_filter(
np.array(image, zoom),
np.array(image),
lang=self.language,
character_confidence_threshold=env_config.TESSERACT_CHARACTER_CONFIDENCE_THRESHOLD,
)
Expand Down

0 comments on commit 3bff8ae

Please sign in to comment.