Git Product home page Git Product logo

question-extractor's Introduction

Question Extractor

Author - Delta0001#8468

Code hosted on GitHub at Question-Extractor

Usage Instructions

  • Open code.py and on Line 36, write the name of your file. If file is a .png then pics() function can be used, if .pdf then pdfs() On Line 38, the second arguement of cli() function is the first question number of the file. Edit accordingly.

  • Run code.py (please prefer using an IDE over terminal here as windows terminal was sometimes not taking Ctrl+C while code was running)

  • Tkinter window will open. Main image is under Current Question on which operations below are going to be performed.

Commands

While Not Merging

  1. Skip.

    • To skip Current Question
  2. Save

    • To save Current Question
  3. Start Merge

    • When you see the Next Question should be merged with Current Question start merge.

While Not Merging

Update - Now that you can manually set Q No. you can use 3rd command for both 3 and 4 and then change numbers manually, in case it's unclear when to use 3 and 4, use 3 and adjust.

  1. Skip While Merging.

    • To skip Current Question but continue merging, Current Merge remains same.
  2. Save End Merge

    • To save Current Question and end Current Merge. Closely related to 5.
  3. Merge Same

    • When you want to merge Current Question to Current Merge but not change Q No.. Like suppose there is a paragraph from q1-4 and before q1 there is paragraph statement. So when paragraph statement is Current Question then you'll Start Merge and when q1 is Current Question then you will use this command to merge statement and q1.
  4. Merge Next

    • Continuing last example, after you have used Start Merge and Merge Same, your Current Merge is comprised of statement-q1. Now when q2 is Current Question, use this command to merge q2 with Current Merge and increase Q No.
  5. Skip End Merging.

    • To skip Current Question and save Current Merge. In the pervious example, after you have merged statement-q1-q2-q3-q4 and next image has to be skipped, use this.

Q Inc and Q Dec

In case you need to change Q No. (note that it's the next question number to be saved), you can use Q Inc to increase and Q Dec to decrease. Make sure that when you are saving multiple merged questions, Q No. is the last question number of the merged qns.

Note

  • I know that While Not Merging command appears a bit complicated but after 2-3 uses you will be comfortable

  • Last <x> just keeps track of last button pressed.

  • pdf2image is a bit slow, suggest me new libraries.

  • Make sure the program successfully terminates in-case you close the Tkinter window in between. It's kinda wack.

question-extractor's People

Contributors

supersat001 avatar

Watchers

James Cloos avatar

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.