Skip to content

Latest commit

 

History

History
34 lines (26 loc) · 1.08 KB

README.md

File metadata and controls

34 lines (26 loc) · 1.08 KB

ArUco Detector

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.

Note

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.

Usage

// 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)

Demo picture

demo-picture