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 3 times, most recently 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 <[email protected]>
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 <[email protected]>
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 <[email protected]>
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 <[email protected]>
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 <[email protected]>
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 <[email protected]>
@calcmogul calcmogul force-pushed the apriltag-make-apriltagdetector-detect-use-raw-frame-instead-of-opencv-mat branch 3 times, most recently from 4ba74cb to 04f3e2d Compare November 7, 2024 21:42
@calcmogul calcmogul force-pushed the apriltag-make-apriltagdetector-detect-use-raw-frame-instead-of-opencv-mat branch from 04f3e2d to 5dd380b Compare November 9, 2024 04:48
@calcmogul
Copy link
Member Author

If this PR isn't desirable, what's stopping #7179?

@calcmogul calcmogul force-pushed the apriltag-make-apriltagdetector-detect-use-raw-frame-instead-of-opencv-mat branch from 5dd380b to c73db19 Compare December 5, 2024 17:09
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