How Can I Extract and Interpret Charts from a PDF Book Using Python?

I'm working on an AI trading assistant and have a specific challenge I'm hoping the dev and ML community can help with: I've loaded a full trading book into Python. The book contains numerous charts, figures, and graphs — like stock price plots labeled “FIGURE 104” with tickers like "U.S. STEEL". My goal is to extract these images, associate them with their captions (e.g., "FIGURE 104"), and generate meaningful descriptions or interpretations that I can feed into a reasoning AI model (I'm using something like DeepSeek locally). My question:

Apr 16, 2025 - 21:08
 0
How Can I Extract and Interpret Charts from a PDF Book Using Python?

Image description

I'm working on an AI trading assistant and have a specific challenge I'm hoping the dev and ML community can help with:

I've loaded a full trading book into Python. The book contains numerous charts, figures, and graphs — like stock price plots labeled “FIGURE 104” with tickers like "U.S. STEEL". My goal is to extract these images, associate them with their captions (e.g., "FIGURE 104"), and generate meaningful descriptions or interpretations that I can feed into a reasoning AI model (I'm using something like DeepSeek locally).

My question: