ArUco Detector is a JavaScript library for detecting ArUco markers. You can detect markers in various sizes with this one.
Highly based on Juan Mellado's code.
I'm planning to rewrite the rest of the code for
- readability
- better comments
- better performance
but this is highly depends on my spare time.
The ID of a recognized marker won't be the same as in the native ArUco library. So before you use this, check your marker's ID in with the lib.
There is no pose estimation yet.
// Define the patterns.
const patterns = [
[1, 0, 1],
[1, 1, 1],
]
// Create a Detector object whit them.
const detector = new Detector(patterns)
// Call the object's detect function with an image.
// Returns an array of Marker object.
const markers = detector.detect(image)