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 support for the tagStandard41h12 family #89

Merged
merged 1 commit into from
May 23, 2024

Conversation

yakir12
Copy link
Contributor

@yakir12 yakir12 commented May 23, 2024

This adds support for the tagStandard41h12 family.

I encountered two difficulties in attempting to add tagStandard52h13 as well as tagCircle49h12:

  • For some reason, tagStandard52h13 causes a segfault when running apriltag_detector_add_family(td, tf).
  • Circular tags (e.g. tagCircle49h12) are problematic because they require a mask of white pixels around the circle, but the pixels outside the circle are black.

@Affie
Copy link
Member

Affie commented May 23, 2024

It looks like we have to drop support for Julia v1.3 due to other packages, but the tests are passing on v1.7 and pr looks good to me.

@yakir12
Copy link
Contributor Author

yakir12 commented May 23, 2024

To pass nightly, according to https://github.com/JuliaRobotics/AprilTags.jl/actions/runs/9205485899/job/25323991770?pr=89#step:6:258 we might want to fix

return AprilTags.image_u8_t(Int32(cols), Int32(rows), Int32(cols), Base.unsafe_convert(Ptr{UInt8}, imbuf))

It looks like something that is already resolved by ColorTypes, and FixedPointNumbers...?

@Affie Affie merged commit 8213ab8 into JuliaRobotics:master May 23, 2024
2 of 4 checks passed
@Affie
Copy link
Member

Affie commented May 23, 2024

I'll merge as is, I'm not too worried about nightly, but will maybe add a test on v1.11-alpha. We can fix if its a problem in a more stable release.

@yakir12 yakir12 deleted the yg/add-tagStandard41h12 branch May 23, 2024 12:06
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

Successfully merging this pull request may close these issues.

2 participants