Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add SVG format or larger files #3

Open
josh-zheng opened this issue Jun 20, 2019 · 12 comments
Open

Add SVG format or larger files #3

josh-zheng opened this issue Jun 20, 2019 · 12 comments

Comments

@josh-zheng
Copy link

Our team was trying to print the tags, for which the images were too small. I'm not aware of a quicker way to scale the images up rather than writing a numpy script. Having SVG or larger images would be really helpful for printing a lot of tags more efficiently.

Of course if there is a better solution, I would be interested to hear it as I've not worked with tagging before.

@UberEclectic
Copy link

Did you check the other repo, mentioned in the README of this one?
The generator makes PostScript files, which is indeed a scalable vector format.

https://github.com/AprilRobotics/apriltag-generation

HTH

@UberEclectic
Copy link

If you are using one of the stock tag formats, google for 'apriltag pdf' and you can find some premade tags that take up an entire page.

@sgilsonator
Copy link

See my issue which includes an attached PDF I generated from the PS file containing all of the tag36h11 fiducials, one page each for printing on a letter sized sheet.

#4 (comment)

@biocrypto730
Copy link

biocrypto730 commented Oct 5, 2019

The images from the repo scale perfectly when using Google Docs to stretch the image, then exporting to a PDF. They appear blurry in the Google Docs pane but when you export them, they are clear.

@swinterbotix
Copy link

@biocrypto730,

Thanks for the tip! I tried using Google Docs, and it worked for me as well!

@hardesh
Copy link

hardesh commented May 22, 2020

@biocrypto730 Thanks a lot!

@ShiweiJin
Copy link

@biocrypto730 I tried this method. However, the tag has some grey block area that shan't appear. Is this result correct?
image

@pbeeson
Copy link

pbeeson commented Oct 14, 2020

Any image processing program (gimp, etc.) should scale the .png images to any size you want. You just need to make sure to tell it not to interpolate when scaling up, so it doesn't "blur" the larger image.

@cbteeple
Copy link

In case anyone is still interested in a solution for resizing these pre-built images to a specified size and arranging them in a grid for easy printing, see my recent comment in Issue #4. I wrote a bash script to take care of this (only tested in Ubuntu though).

@ejs94
Copy link

ejs94 commented Aug 13, 2021

I created a script using the pillow library to resize the tags and save it to a pdf, it can be accessed through this https://gist.github.com/ejs94/65a6d663427ba21eaa8b6305d3f51b22
It is currently being possible to choose the family, id, size in mm and dpi for printing.
image

@ScottJohnson2718
Copy link

ScottJohnson2718 commented Jul 8, 2022

Was it a size problem with Github where the posted images need to be so small? I have my own version of the tag generator in C++ that uses OpenCV and I can generate the tags in any size I want. I currently generate them as 160x160 pixels which preview in Windows Explorer perfectly. I also use them as textures in Unity. The original poster asked for SVG or larger images. I have larger images. tag36h11 zips up in 340KB so I'll try posting a sample here.
tag36h11_legacy.zip

@arnoldad
Copy link
Contributor

arnoldad commented Feb 5, 2023

FWIW: I just created this PR which includes a simple native python3 script that can create an svg from the tag png files they supply: #9

It works great for my own use which requires that i generate tags of a known size.
tag52_13_00006
tag52_13_00007

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests