Transforms complex documents like PDFs and Office docs into LLM-ready markdown/JSON for your Agentic workflows.
Python ai4sciencedocument-analysisdocxextract-datalayout-analysisocrparserpdfpdf-converterpdf-extractor-llmpdf-extractor-pretrainpdf-extractor-ragpdf-parserpptxpythonxlsx
update
[email protected]8df65cd92400
diff --git a/magic_pdf/model/magic_model.py b/magic_pdf/model/magic_model.pyindex b03d2c2c..2b2e3238 100644--- a/magic_pdf/model/magic_model.py+++ b/magic_pdf/model/magic_model.py@@ -16,23 +16,13 @@ class MagicModel():def get_imgs(self, page_no:int): # @许瑞- return_lst = []-image_block = {}-- img = {- "bbox":[x0,y0,x1,y1]- }- img_caption = {- "bbox":[x0,y0,x1,y1],- "text":"",- }-image_block['bbox'] = [x0, y0, x1, y1]# 计算出来- image_block['img_body'] = img- image_blcok['img_caption'] = img_caption+ image_block['img_body_bbox'] = [x0, y0, x1, y1]+ image_blcok['img_caption_bbox'] = [x0, y0, x1, y1] # 如果没有就是None,但是保证key存在+ image_blcok['img_caption_text']= [x0, y0, x1, y1] # 如果没有就是空字符串,但是保证key存在return [image_block,]