Skip to content

an algorithm in Python to effeciently detect aruco markers from the live video stream, hamming code was used to decode the ID of the marker.

License

Notifications You must be signed in to change notification settings

diganthp/Image-processing-of-aruco-markers-using-raspberry-pi

Repository files navigation

Image processing of Aruco Markers using Raspberry Pi

By Dheeraj Kamath, Diganth P, Balaji and Harshith J Shiva

Aruco Markers

ArUco markers are binary square fiducial markers that can be used for camera pose estimation. Their main benefit is that their detection is robust, fast and simple.

An ArUco marker is a synthetic square marker composed by a wide black border and a inner binary matrix which determines its identifier (id). The black border facilitates its fast detection in the image and the binary codification allows its identification and the application of error detection and correction techniques. The marker size determines the size of the internal matrix. For instance, a marker size of 4x4 is composed by 16 bits.

alt text

The first, third and fifth columns represent parity bits. The second and fourth columns represent the data bits.

The Method Description

Step 1: Extract the ArUco from the Image

alt text

Step 2: Remove the extra padding

alt text

Step 3: Converting the ArUco to Binary format

Divide the resulting image into a 5x5 grid and check the color in each cell of the second and fourth columns(in that order) in a top to bottom manner.

alt text

Step 4: If the color is white, write 1; else, write it 0

Step 5: The resulting number will be in binary. Convert it into decimal

This is how the id of the marker is determined.

Video Demo

Image processing of ArUco markers using raspberry pi

About

an algorithm in Python to effeciently detect aruco markers from the live video stream, hamming code was used to decode the ID of the marker.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages