@@ -502,8 +502,8 @@ async def process_multimodal_content():
502502
503503 image_content = {
504504 " img_path" : " path/to/image.jpg" ,
505- " img_caption " : [" Figure 1: Experimental results" ],
506- " img_footnote " : [" Data collected in 2024" ]
505+ " image_caption " : [" Figure 1: Experimental results" ],
506+ " image_footnote " : [" Data collected in 2024" ]
507507 }
508508
509509 description, entity_info = await image_processor.process_multimodal_content(
@@ -876,8 +876,8 @@ async def insert_content_list_example():
876876 {
877877 " type" : " image" ,
878878 " img_path" : " /absolute/path/to/figure1.jpg" , # IMPORTANT: Use absolute path
879- " img_caption " : [" Figure 1: System Architecture" ],
880- " img_footnote " : [" Source: Authors' original design" ],
879+ " image_caption " : [" Figure 1: System Architecture" ],
880+ " image_footnote " : [" Source: Authors' original design" ],
881881 " page_idx" : 1 # Page number where this image appears
882882 },
883883 {
@@ -947,7 +947,7 @@ if __name__ == "__main__":
947947The ` content_list ` should follow the standard format with each item being a dictionary containing:
948948
949949- ** Text content** : ` {"type": "text", "text": "content text", "page_idx": 0} `
950- - ** Image content** : ` {"type": "image", "img_path": "/absolute/path/to/image.jpg", "img_caption ": ["caption"], "img_footnote ": ["note"], "page_idx": 1} `
950+ - ** Image content** : ` {"type": "image", "img_path": "/absolute/path/to/image.jpg", "image_caption ": ["caption"], "image_footnote ": ["note"], "page_idx": 1} `
951951- ** Table content** : ` {"type": "table", "table_body": "markdown table", "table_caption": ["caption"], "table_footnote": ["note"], "page_idx": 2} `
952952- ** Equation content** : ` {"type": "equation", "latex": "LaTeX formula", "text": "description", "page_idx": 3} `
953953- ** Generic content** : ` {"type": "custom_type", "content": "any content", "page_idx": 4} `
0 commit comments