qshub / pdf_engine

Commit History

  1. Fix OOM crashes on Render proxy by parsing PDFs using mmap from disk instead of massive byte duplication in memory

    e73778d
  2. Add per-page rendering try-except resilience to prevent PDF parsing crashes during upload

    9b910ca
  3. Fix 502 upload crash: add proactive garbage collection (gc.collect) to keep RAM under 80MB on cloud containers (Render)

    c9f5391
  4. Optimize render speed to 1200px (0.02s/page) + remove redundant PDF text re-extraction in auto_classify to permanently fix 502 gateway timeouts

    cd9f6b4
  5. Fix 502 crash root cause: replace PIL Image.frombytes with native C++ PyMuPDF pix.tobytes('jpg', jpg_quality=95)

    2580d29
  6. Fix classification syntax bug + preserve 4000 char page text + enrich UAE drawing keywords + fall back to PDF text re-extraction

    0f3ab13
  7. Eliminate PyMuPDF thread-unsafe access causing process SIGSEGV crash and HTTP 502 error

    987a547
  8. Optimize PDF page extraction and classification speed with 0% impact on extraction accuracy

    0d71027

  1. fix(qto): restrict no-label scale calibration to plan scales (50-200)⁠

    basel00omar +1: Claude Opus 4.8
    1208261
  2. feat(qto): PDF-only extraction accuracy upgrades (fully internal, guarded)⁠

    basel00omar +1: Claude Opus 4.8
    df96826

  1. fix: prevent extract_all_text from crashing when easyocr is not installed

    1c70885
  2. fix: restore OCR fallback and hallucination guard

    b6675ab

  1. feat: apply latest bug fixes and consolidate AI logic

    7516417

  1. Engine Upgrade: Hybrid OCR-LLM Pipeline using pdfplumber for 100% deterministic table extraction fallback

    03dc90c

  1. Fix UI styling for Dashboard start project, update QTO extraction pipeline logic, add PyMuPDF fallback for columns and OCR for floor heights

    8682034
  2. fix: force white background in fast_save_pdf_pages for React backend

    f6e2815
  3. fix: force white background in PDF loader to prevent black squares in Gemini

    ad8953c

  1. perf: eliminate Step 3 hangs by shrinking max PNG DPI to 50 for all blueprints, preventing massive network timeouts when sending images to Gemini. Increased concurrent extraction workers to 8 to slash processing time.

    19a1eb3
  2. fix: reduce max_workers to 1 in fast_save_pdf_pages to prevent RAM thrashing on large A0 blueprints

    cf2538a
  3. perf: Massive speed boost for Step 1 (Upload) and Step 2 (Classification) by bypassing Numpy/PIL and writing native C++ compressed images directly to disk

    9394ed3
  4. Fix UnboundLocalError in CV extractor and revert hardcoded heuristics

    3f2a193

  1. THE QS HUB v2.0 - Complete React + FastAPI Platform (clean deploy)

    1b4b6d2