GithubHelp home page GithubHelp logo

image-extraction's Introduction

Code for extracting a representative image from a PDF file using CV.

This code needs to be run on GPU. We include a colab example.

Setup

bash setup.sh

Running

First add a bunch of PDF files to a directory pdfs/.

Next call,

python run.py pdfs/ pics/

The code will attempt to extract an image for each pdf into the pic directory.

image-extraction's People

Contributors

srush avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

coursekevin

image-extraction's Issues

[Error] No pic found

Hi,

Thanks for this awesome resource. Unfortunately, I'm not able to extract image from the pdf.

The following error is encountered. You can reproduce this with the provided collab notebook ImageCheck.ipynb.
I also had to bump the version for pyyaml to get the bash setup.bash running.

rm: cannot remove 'dataset/*': No such file or directory
rm: cannot remove 'out/*': No such file or directory
No pic found for ../pdfs/q2noHUqMkK.pdf
rm: cannot remove 'out/*': No such file or directory
No pic found for ../pdfs/mllQ3QNNr9d.pdf

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.