# How can I detect diagram region and extract (crop) it from a research paper [closed]

How can I detect diagram region and extract(crop) it from a research paper

• your question is pretty general and I'm guessing by the down-vote that others feel the same. perhaps research a few methods quickly and learn roughly what they mean, make a list of them and pose a question about which of the methods on your list have worked for others. a quick google of "how to detect and crop a region of an image" will get you started. Dec 13 '19 at 20:55
• There are many methods that extract the image from file and you can apply image detection after that but you did not tell what type of file you need to extract(crop). So, your question needs to be clarified. Dec 14 '19 at 4:36

I will consider that you need to extract(crop) the digram from the pdf research paper. You can use PyPDF2 or PyMuPDF to extract the images from the PDF file and then you can apply machine learning to do recognition and classification of the images. There are different types of machine learning solutions for image classification and you can start with Convolutional Neural Network and you can start here.