Closed builder173 closed 4 months ago
Steps I took to get Aprilcodes working in the java example downloaded from wpilibpi dash
I had one more hiccup of needing turn down the error bits from 3 to 1 to avoid this error: _apriltag.c:224:quick_decodeinit(): Failed to allocate hamming decode table
private static AprilTagDetector initializeDetector() {
AprilTagDetector myDetector = new AprilTagDetector();
// look for tag36h11, correct 1 error bits
myDetector.addFamily("tag36h11", 1);
return myDetector;
}
After that I was able to get the intermediate vision example working, at least the first part I attempted which superimposes the apriltag number and a center marker on the Aprilcode in frame.
Hi, I'm starting from the downloadable java vision example shell and trying to work through the vision examples in WPILib and elsewhere. I was able to get a simple vision pipeline running that drew a square on the image and then use outputStreams to send both the raw image and processed image to Shuffleboard for display. Also able to report the "count" of frames in Shuffleboard via Network Tables. (running 2024 WPILib on Mac)
I am moving on to AprilCodes and working from the example bundled with WPILib. It seemed reasonable to just add this detection to the existing pipeline and generate a new output stream with the detection information. However when I load the vision program to the WPILibPi interface it reports an error. Code and corresponding error below.
Not sure if I'm trying to go outside what's supported here or there is really a missing native library. Any help would be appreciated.