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

[apriltag] Make AprilTagDetector.detect() use RawFrame instead of OpenCV Mat #7176

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

calcmogul
Copy link
Member

No description provided.

@calcmogul calcmogul requested review from a team as code owners October 10, 2024 04:55
@calcmogul calcmogul force-pushed the apriltag-make-apriltagdetector-detect-use-raw-frame-instead-of-opencv-mat branch 2 times, most recently from cfce0a3 to 34f6e98 Compare October 10, 2024 05:28
@calcmogul calcmogul force-pushed the apriltag-make-apriltagdetector-detect-use-raw-frame-instead-of-opencv-mat branch from 34f6e98 to a247f88 Compare October 10, 2024 06:10
@mcm001
Copy link
Contributor

mcm001 commented Oct 10, 2024

As a downstream consumer of this API, I don’t love adding 1 (2?) extra copies here. Is it possible to make RawFrame instead wrap https://docs.opencv.org/4.x/javadoc/org/opencv/core/Mat.html#dataAddr() ?

@PeterJohnson
Copy link
Member

Wrapping sounds like a big potential footgun; what if the OpenCV object is destroyed? I could see supporting it with some big warning signs around it, but not as the default mode of operation.

spacey-sooty added a commit to spacey-sooty/allwpilib that referenced this pull request Oct 10, 2024
spacey-sooty added a commit to spacey-sooty/allwpilib that referenced this pull request Oct 10, 2024
spacey-sooty added a commit to spacey-sooty/allwpilib that referenced this pull request Oct 10, 2024
Allows avoiding two copies in wpilibsuite#7176

Signed-off-by: Jade Turner <spacey-sooty@proton.me>
spacey-sooty added a commit to spacey-sooty/allwpilib that referenced this pull request Oct 10, 2024
Allows avoiding two copies in wpilibsuite#7176

Signed-off-by: Jade Turner <spacey-sooty@proton.me>
spacey-sooty added a commit to spacey-sooty/allwpilib that referenced this pull request Oct 10, 2024
Allows avoiding two copies in wpilibsuite#7176

Signed-off-by: Jade Turner <spacey-sooty@proton.me>
spacey-sooty added a commit to spacey-sooty/allwpilib that referenced this pull request Oct 10, 2024
Allows avoiding two copies in wpilibsuite#7176

Signed-off-by: Jade Turner <spacey-sooty@proton.me>
spacey-sooty added a commit to spacey-sooty/allwpilib that referenced this pull request Oct 10, 2024
Allows avoiding two copies in wpilibsuite#7176

Signed-off-by: Jade Turner <spacey-sooty@proton.me>
spacey-sooty added a commit to spacey-sooty/allwpilib that referenced this pull request Oct 10, 2024
Allows avoiding two copies in wpilibsuite#7176

Signed-off-by: Jade Turner <spacey-sooty@proton.me>
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.

3 participants