Snippets

Depthkit Generate Aruco marker images

Created by Tim Scaffidi last modified
1
2
3
4
5
6
7
8
    filesystem::create_directories("ArucoMarkers");
    for (size_t i = 0; i < 100; i++)
    {
        CalibrationUtils::generateArucoGridBoard({1, 1}, 280, 40, i, [i](const VideoFrameBuffer& markerBuffer) {
            MediaUtility::writeImageToDisk(
                markerBuffer, filesystem::path("ArucoMarkers") / ("aruco_marker_" + std::to_string(i) + ".png"));
        });
    }

Comments (0)

HTTPS SSH

You can clone a snippet to your computer for local editing. Learn more.