Convert OpenCV aruco dictionaries to custom dictionaries
python3 convert_dicts.py
Then run test program
python3 aruco.py
- First, detect edges using adaptive threshold and extract contours
- Then, convert contours to polygons using Douglas–Peucker algorithm
- Extract patches enclosed by 4 corner polygons, and remap each patch to a rectange
- For each such rectangle patch, divide it to grid and assign bits to each cell
- For each bitmap, check if it is in aruco marker dictionary. Consider the pattern valid if it is present in the dictionary
Input Image
Output Image