• 请不要在回答技术问题时复制粘贴 AI 生成的内容
nosugar
V2EX  ›  程序员

给大家分享一个 Python 处理扫描后书籍的项目,兼顾阅读质量跟 PDF 体积

  •  
  •   nosugar · Jul 23, 2017 · 2800 views
    This topic created in 3234 days ago, the information mentioned may be changed or developed.
    使用的开源项目: https://github.com/barrer/scan-helper
    使用的处理脚本: https://github.com/barrer/scan-helper/blob/master/scan_helper_png.py

    扫描原始文件:4.0G
    文件个数:2459 张图片
    最终 PDF 大小:527M

    操作步骤:
    扫描( 600 DPI )
    ABBYY 歪斜矫正
    ABBYY 另存“ JPEG 彩色”
    “ scan_helper_rename.py ”修改图片名字为数字+英文字符(不能包含空格等特殊符号)
    “ scan_helper_png.py ”生成“ monochrome ”目录下黑白 png
    用无损压缩软件( ImageOptim、limitPNG 等)压缩“ monochrome ”目录下的黑白 png (可选操作)
    用 Adobe Acrobat DC 合并 png 为单个 pdf

    Demo:
    链接: https://pan.baidu.com/s/1sli9H7Z 密码: fedv
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2468 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 16:01 · PVG 00:01 · LAX 09:01 · JFK 12:01
    ♥ Do have faith in what you're doing.