Non-ROS version of AprilTag C++ implementation with small adaptations:
- width of tag border can be specified
Installation of OpenCV and Eigen3 is essential before starting the cmake.
Installation
mkdir build && cd build
cmake ..
make
sudo make install
Source: