GithubHelp home page GithubHelp logo

rm_apriltaglayoutgen's Introduction

RM_AprilTagLayoutGen

python script to generate PDF file with layout for April Tags

April Tag Strip Generator for the Robot Metabolism Project

[Robert Kasumi]
Columbia University

Overview

This repo contains the script that generates PDF files of April Tag strips to be attached to the Robot Metabolism links.

Content

Installation

The repository (April Tag Generation script and folder containing images of April Tags) is downloaded using the following command:

git clone https://github.com/GitWyd/RM_AprilTagLayoutGen.git

Make sure the reportlab tool is also downloaded using:

pip install reportlab==3.2.0

Running the Script

First, go into the script and configure your scaling factors. Set tagScale to a negative integer if you wish to size each tag independently. Then, run the following:

./maketags.sh

Alternatively, the script can be run using:

python atagmain.py -i -l

The flag -i is followed by the name of the input file to be read.
The input file used to generate tags should always be tags36h11_big, as the scaling factors used in atagmain.py were based on the image dimensions in tags36h11_big. The flag -l is a list of links that April Tag strips will be generated for. For example, the command line statement

python atagmain.py -i tags36h11_big_cropped_flipped -l 0 1

Will produce four strips total, the first two for link zero, and the last two for link one.

Detect Apriltags from images or pdf files

The script detect_apriltags.py can be used to detect the apriltags in an image or a multi-page pdf file. --verbose draws bounding boxes and ids of detected tags on the images.

Additional packages required apriltag, opencv-python, numpy, pdf2image

Usage

python detect_apriltags.py <FILENAME> --verbose

rm_apriltaglayoutgen's People

Contributors

gitwyd avatar quinnbooth avatar robertkasumi avatar

Watchers

 avatar  avatar

Forkers

qi-zha0 simonhwk

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.