1 | initial version |
you could look at how others are doing it, ARToolkit even lets you draw your own markers
there's a lot of 2d/3d transformation involved, chapters 2 & 3 of the MasteringOpencv Book might be quite helpful
https://github.com/MasteringOpenCV/code