marker icon indicating copy to clipboard operation
marker copied to clipboard

[BUG: Breaking] Table Extract is not working in the marker i used this code.

Open kArtikOOPPO opened this issue 2 months ago • 1 comments

🧨 Describe the Bug

Image Table is not extracted as a table format.

--- Install required packages ---

!pip install marker-pdf[full] pillow pandas requests --quiet

--- Imports ---

import requests, json, pandas as pd from PIL import Image from io import BytesIO from marker.converters.table import TableConverter from marker.models import create_model_dict from marker.output import text_from_rendered

--- Load the image from URL ---

url = "https://storage.googleapis.com/slango-app/1761824964354_merged_5_2025CBS32000000010_202508CBS000000006_20250832C000000002_image00012_2025CBS32000000010_202508CBS000000006_20250832C000000002_image00013.jpg" response = requests.get(url) image_path = "/content/table_image.jpg"

Save image locally

with open(image_path, "wb") as f: f.write(response.content)

--- Initialize the table converter ---

converter = TableConverter(artifact_dict=create_model_dict())

--- Run table extraction ---

rendered = converter( image_path, # force_layout_block="Table", # Force full-page table detection # output_format="json" # Include cell coordinates & structure )

--- Extract text and images ---

text, tables, images = text_from_rendered(rendered)

kArtikOOPPO avatar Nov 03 '25 04:11 kArtikOOPPO

please can you provide code with llm

ankit8347 avatar Nov 08 '25 12:11 ankit8347