Welcome To Our Shell

Mister Spy & Souheyl Bypass Shell

Current Path : /proc/thread-self/root/usr/local/lib/python3.8/dist-packages/tests/

Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
Upload File :
Current File : //proc/thread-self/root/usr/local/lib/python3.8/dist-packages/tests/test_table_detection.py

"""Test table area detection."""

from pdftotree.core import load_model
from pdftotree.visual.visual_utils import predict_heatmap


def test_vision_model():
    """Check if the vision model runs and returns results in expected format."""
    pdf_file = "tests/input/paleo.pdf"
    model_path = "tests/input/paleo_visual_model.h5"
    model = load_model("vision", model_path)
    page_num = 0
    image, pred = predict_heatmap(
        pdf_file, page_num, model
    )  # index start at 0 with wand
    assert image.shape == (448, 448, 3)
    assert pred.shape == (448, 448)


# TODO: add test_ml_model and test_heuristic_model

bypass 1.0, Devloped By El Moujahidin (the source has been moved and devloped)
Email: contact@elmoujehidin.net bypass 1.0, Devloped By El Moujahidin (the source has been moved and devloped) Email: contact@elmoujehidin.net