-
Hello! Finally made it to the HuskyLens OpMode! Based on the suggestion in the FTC docs, I tried the DFRobot AprilTag 7x5 array. The SDK AprilTagEasy OpMode identifies most of the tags (with appropriate IDs where applicable). I'm sure that better lighting and positioning of the array will complete the full sweep. However, the SDK HuskyLensBasic identifies only six. Presumably, (I'm out on a limb here) these are the only ones in the array that are valid for FTC purposes? My bigger question is how do I know which is which? All IDs are reported as 0 but with distinguishing pixel values for the outline. Of course, I need to do a lot more work on placement of the array in front of the camera before jumping to conclusions but some quick guidance from experienced practitioners will save me some cycles. The COLOR_RECOGNITION algorithm is working fine. Thanks for making the starter/Concept code so easy to tweak. Regards. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
The HuskyLens can "detect" AprilTags. That doesn't mean that it can decode the ID that the AprilTag represents. You can "assign" IDs to AprilTags through it's learning mechanism. See https://wiki.dfrobot.com/HUSKYLENS_V1.0_SKU_SEN0305_SEN0336#target_20 It is returning 6 elements, all reporting 0 zero, because it recognizes 6 items as AprilTags, but none of them have been "trained", and so from the HuskyLens firmware's perspective, they all have ID 0. As to why only 6? That's an internal SDK restriction designed to simplify implementation and usage, but still satisfy all requirements of the game. See the documentation below.
|
Beta Was this translation helpful? Give feedback.
-
Thanks for the clarification, @cmacfarl. Skipping comments is my personal weakness. I didn't understand the full depth of these until you clarified. Regards. |
Beta Was this translation helpful? Give feedback.
The HuskyLens can "detect" AprilTags. That doesn't mean that it can decode the ID that the AprilTag represents.
You can "assign" IDs to AprilTags through it's learning mechanism. See https://wiki.dfrobot.com/HUSKYLENS_V1.0_SKU_SEN0305_SEN0336#target_20
It is returning 6 elements, all reporting 0 zero, because it recognizes 6 items as AprilTags, but none of them have been "trained", and so from the HuskyLens firmware's perspective, they all have ID 0. As to why only 6? That's an internal SDK restriction designed to simplify implementation and usage, but still satisfy all requirements of the game.
See the documentation below.