scan, split, OCR, prepare for LLM
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

__init__.py 778B

123456789101112131415161718192021222324252627282930313233343536373839
  1. from src.split.slicer import (
  2. CONTENT_THRESHOLD,
  3. DEFAULT_BORDER_PX,
  4. PAGE_NUMBER_WIDTH,
  5. SUPPORTED_EXTENSIONS,
  6. VALID_ROTATIONS,
  7. add_border,
  8. crop_to_content,
  9. detect_grid,
  10. find_content_bounds,
  11. generate_output_paths,
  12. load_image,
  13. parse_slice,
  14. process_image,
  15. rotate_image,
  16. save_page,
  17. slice_grid,
  18. validate_output_dir,
  19. )
  20. __all__ = [
  21. "CONTENT_THRESHOLD",
  22. "DEFAULT_BORDER_PX",
  23. "PAGE_NUMBER_WIDTH",
  24. "SUPPORTED_EXTENSIONS",
  25. "VALID_ROTATIONS",
  26. "add_border",
  27. "crop_to_content",
  28. "detect_grid",
  29. "find_content_bounds",
  30. "generate_output_paths",
  31. "load_image",
  32. "parse_slice",
  33. "process_image",
  34. "rotate_image",
  35. "save_page",
  36. "slice_grid",
  37. "validate_output_dir",
  38. ]