Team Ai
Apppublic

BigGroot/amalgame-polygon-worker

sourceHugging Facemitupdated 5mo agoView on Hugging Face
0likes
App README

Amalgame Polygon Worker

Polygon nesting via Deepnest (Node binding C natif) + extraction/rendu PDF Python.

Stack hybride

  • —Python 3 + FastAPI : orchestrateur, extraction PDF (PyMuPDF), rendu PDF (reportlab)
  • —Node 20 + ShaMan-Deepnest : moteur de polygon nesting (binding C compilé sur Linux)
  • —Fallback rectpack : si Deepnest échoue, bascule sur rectpack (15.7% chute baseline)

Pourquoi ce 2ème worker

Le 1er worker (amalgame-worker) utilise rectpack en cote finie → 15.7% chute sur NOCIBE. Tests manuels de Karim sur Deepnest GUI : 37 RELAIS/feuille au lieu de 32 (rectpack). Ce worker exploite Deepnest pour atteindre la perf optimale (cible 12-13% chute).

Endpoint

POST /nest : multipart file + form params (sheetw, sheeth, margin, bleed, client_name). Retourne le PDF imposition + header X-Amalgame-Stats JSON.

Roadmap

  • —v2.0 : intégration Deepnest + fallback rectpack
  • —v2.1 : optimisation timeout dynamique selon nb pièces