Skip to main content

Module table_classifier

Module table_classifier 

Source
Expand description

PP-LCNet classifiers: table type (wired/wireless) e document orientation.

Entrambi i modelli condividono la stessa architettura PP-LCNet_x1_0 ma dimensioni di input diverse:

  • TableTypeClassifier"x" shape [1, 3, 48, 192]
  • DocOrientationClassifier"x" shape [1, 3, 224, 224]
  • Normalizzazione ImageNet: mean=[0.485,0.456,0.406] std=[0.229,0.224,0.225]
  • Output: logits → argmax

§Modelli HuggingFace

ModelloClassiHF repo
PP-LCNet_x1_0_table_cls_onnx2PaddlePaddle/PP-LCNet_x1_0_table_cls_onnx
PP-LCNet_x1_0_doc_ori_onnx4PaddlePaddle/PP-LCNet_x1_0_doc_ori_onnx

§Pipeline consigliata per tabelle

  1. Identifica la regione tabella via LayoutAnalyzer.
  2. Usa TableTypeClassifier per discriminare wired vs wireless.
  3. Carica CellDetector (wired: RT-DETR-L wired, wireless: RT-DETR-L wireless).
  4. Usa TableStructureRecognizer con il modello SLANeXt corrispondente.

Structs§

DocOrientationClassifier
Classificatore orientamento documento.
TableTypeClassifier
Classificatore tabella wired/wireless.

Enums§

DocOrientation
Orientamento di una pagina documento (multipli di 90°).
TableType
Tipo di tabella classificato da PP-LCNet_x1_0_table_cls_onnx.