Coding answer (requires tesseract (free software)). I'm not sure which of the packages I actually used for that bit of code, some packages are there for other functions in the same code block.
from PIL import Image
import pytesseract
import cv2
import os
import subprocess
#Strip images and put them in the relevant directory
def image_exporter(pdf_path, output_dir):
if not os.path.exists(output_dir):
os.makedirs(output_dir)
cmd = ['pdfimages', '-all', pdf_path,
'{}/prefix'.format(output_dir)]
subprocess.call(cmd)
print('Images extracted:')
print(os.listdir(output_dir))