Skip to content
Snippets Groups Projects
README.md 1.7 KiB
Newer Older
  • Learn to ignore specific revisions
  • Quentin Bolsee's avatar
    Quentin Bolsee committed
    # Aruco Frame
    
    
    Quentin Bolsee's avatar
    Quentin Bolsee committed
     <img src="./docs/explainer.png" width="500"/>
    
    Quentin Bolsee's avatar
    Quentin Bolsee committed
    
    This open source project lets you scan a drawing or image using an easy to build frame, and obtain a rectified image in real-life units. The frame exists in 3 different sizes, you can build your own by downloading the design files [here](./design).
    
    
    Quentin Bolsee's avatar
    Quentin Bolsee committed
    ## Installation
    
    Steps:
    - Clone or download this project, and place the folder somewhere
    - Install python>3.8 ([link](https://www.python.org/downloads/))
    - Add python to your system's path ([guide](https://realpython.com/add-python-to-path/))
    - Open a terminal and navigate to the project's folder
    - Install dependencies:
    
    ```
    python -m pip install -r requirements.txt
    ```
    
    - Test:
    
    ```
    python aruco-frame.py -i example/raspi.jpg
    ```
    
    
    Quentin Bolsee's avatar
    Quentin Bolsee committed
    ## Usage
    
    Quentin Bolsee's avatar
    Quentin Bolsee committed
    
    
    Quentin Bolsee's avatar
    Quentin Bolsee committed
    ### Process an image:
    
    ```
    python aruco-frame.py -i <FILENAME_IN>
    ```
    
    If the output path is not specified with a `-o <FILENAME_OUT>` argument, the result is saved as `<FILENAME_IN>_<DPI>_DPI.png`.
    
    ## User manual
    
    
    Quentin Bolsee's avatar
    Quentin Bolsee committed
    ```
    
    Quentin Bolsee's avatar
    Quentin Bolsee committed
    usage: aruco-frame.py [-h] [-i INPUT] [-o OUTPUT] [-d DPI] [-s] [-c CONFIG] [-v]
    
    
    Quentin Bolsee's avatar
    Quentin Bolsee committed
    Extracts the image from an image containing an aruco frame
    
    Quentin Bolsee's avatar
    Quentin Bolsee committed
    
    options:
      -h, --help            show this help message and exit
      -i INPUT, --input INPUT
                            Input filename.
      -o OUTPUT, --output OUTPUT
    
    Quentin Bolsee's avatar
    Quentin Bolsee committed
                            Output filename (default: <filename_in>_<DPI>_DPI.png).
    
    Quentin Bolsee's avatar
    Quentin Bolsee committed
      -d DPI, --dpi DPI     Manual output DPI (default: auto).
      -s, --show            Show debug image.
      -c CONFIG, --config CONFIG
                            Frame configuration file (default: ./config/config.json).
      -v, --verbose         Verbose mode (default: false).
    
    Quentin Bolsee's avatar
    Quentin Bolsee committed
    ```
    
    ## Authors and acknowledgment
    
    Quentin Bolsee's avatar
    Quentin Bolsee committed
    
    Quentin Bolsee 2024
    
    Quentin Bolsee's avatar
    Quentin Bolsee committed
    
    ## License
    
    
    Quentin Bolsee's avatar
    Quentin Bolsee committed
    This project is provided under the MIT License.