Git Product home page Git Product logo

Comments (5)

ishipachev avatar ishipachev commented on July 23, 2024 2

Hi!
I've encountered the same problem when I was working with Kalibr.
Here is a patch to do changes mentioned above from border size 1 to border size 2.
tag36h11_border1to2_patch.txt
This patch can be applied just by git apply command.

from apriltag.

mkrogius avatar mkrogius commented on July 23, 2024

Hi,

We no longer allow directly changing the border width (it did not seem to be a useful option). There are two ways you could detect tags with a double wide black border now.

a) You can generate a new tag family with the desired layout using: https://github.com/AprilRobotics/apriltag-generation
This won't have the same pattern of bits though if you have tags already printed out that you need to detect.

b) You can hack the tag36h11.c file to make it detect tags with a double wide black border. Increase width_at_border and total_width by 2, and increase each of the bit_x/bit_y values by 1.

from apriltag.

HeYijia avatar HeYijia commented on July 23, 2024

Thank you for your suggestion.

from apriltag.

zpillio avatar zpillio commented on July 23, 2024

Hi,

We no longer allow directly changing the border width (it did not seem to be a useful option). There are two ways you could detect tags with a double wide black border now.

a) You can generate a new tag family with the desired layout using: https://github.com/AprilRobotics/apriltag-generation This won't have the same pattern of bits though if you have tags already printed out that you need to detect.

b) You can hack the tag36h11.c file to make it detect tags with a double wide black border. Increase width_at_border and total_width by 2, and increase each of the bit_x/bit_y values by 1.

I think kalibr is wildly enough used to say that double boarder feature was useful, so I would gently ask you to rethink it. :)

thx for the patch @ishipachev

Updated:
Because the "tag36h11_create" doesn't used internally, there is an alternative way to make it work without patching, simply changing the "apriltag_family_t" content with the following code:

for (uint32_t i=0; i < tf->nbits; ++i) {
   tf->bit_x[i] += 1;
   tf->bit_y[i] += 1;
}
tf->width_at_border += 2;
tf->total_width += 2;

from apriltag.

giri-kum avatar giri-kum commented on July 23, 2024

@zpillio Could you mention where this code need to be placed?

from apriltag.

Related Issues (20)

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.