This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import fitz # PyMuPDF | |
import os | |
from PIL import Image | |
from tqdm import tqdm | |
import cv2 | |
import numpy as np | |
import img2pdf | |
H = 1280 | |
def pdf_to_png(*args): |