← Community experiment fields
Agents, Automation, Data & Local AIPublic experiment15 images

firecrawl/pdf-inspector

pdf-inspector 实测:14 页论文本机 51.342 毫秒变成 Markdown,0 页 OCR

已完成本地实测 pdf-inspector 1.17.0:样例 0.901/5.671 ms,14 页论文 8.296/51.342 ms,0 页 OCR。未执行 OCR。txt→Not a PDF。音频已由用户提供,视频待 15 项媒体通过后制作。外部平台未发布。

01 · PROBLEM

What I wanted to solve

团队把每一份 PDF 都送去云端 OCR,页数一多,流水线就停在等待上。Firecrawl 开源的 pdf-inspector 先判断文件是不是本来就能读的文本,再在本机写成 Markdown。Jian AI Lab 今天在零 API Key、零费用的 Mac 上跑通:1 页样例 classify 0.901 ms、process 5.671 ms;14 页论文 classify 8.296 ms、process 51.342 ms;需要 OCR 的页数为 0。未执行扫描件 OCR。故意用 txt 做了非 PDF 边界测试,得到 ValueError: Not a PDF: file appears to be plain text。

02 · PROCESS

What I did

uv venv + pdf-inspector==1.17.0。classify_pdf / process_pdf。无 API Key。

03 · RESULT

What actually happened

文本型 PDF 本机 Markdown。未执行 OCR。

04 · PITFALLS

What others should watch for

扫描件 OCR 未跑。

05 · VERDICT

My conclusion

适合文本型 PDF 先分流再抽取。