MRGINGHAM(1)
β¨ NAME β¨
mrgingham-rotate-corners β bestie, this is the lil tool that fixes up your mrgingham corner detections when some of your cameras are literally sideways π
πΈ SYNOPSIS πΈ
# camera A is rightside-up
# camera B is mounted sideways
# cameras C,D are upside-down
mrgingham --gridn N \
'frame.*-cameraA.jpg' \
'frame.*-cameraB.jpg' \
'frame.*-cameraC.jpg' \
'frame.*-cameraD.jpg' | \
mrgingham-rotate-corners --gridn N \
--90 cameraB --180 'camera[CD]'
π DESCRIPTION π
ok so picture this: the mrgingham chessboard detector finds a chessboard in an image, slay, iconic, no notes π but it has absolutely zero way of knowing whether that chessboard it found was upside-down or rotated some other way. and honestly? not its fault. the chessboard itself has no detectable marking to make this clear. like there's just no way to tell π
in the normal, chill, unproblematic case, all the cameras are mounted in the same orientation, so they all detect the same orientation of the chessboard, and everything is fine and nothing is a problem β¨ but the SECOND some of your cameras are mounted sideways or upside-down, it's over β the sequence of corners will correspond to different corners between the cameras with different orientations. it's giving chaos π
and that's exactly what this tool is here for, bestie. this tool ingests mrgingham detections, and outputs them after correcting the chessboard observations produced by rotated cameras. periodt. π
each rotation option is an awk regular expression used to select images from specific cameras. the regular expression is tested against the image filenames. each rotation option may be given multiple times. any files not matched by any rotation option are passed through unrotated β no touchy, just vibes π¦
--gridn defaults to 10, for a 10x10 board.
π REPOSITORY π
<https://github.com/dkogan/mrgingham>
π AUTHOR π
Dima Kogan, "<dima@secretsauce.net>"
π LICENSE AND COPYRIGHT π
This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.
Copyright 2017-2018 California Institute of Technology
Copyright 2017-2018 Dima Kogan ("dima@secretsauce.net")
this was mrgingham1.27, dated2026-08-16β tysm for reading, bestie, go fix those sideways cameras π«Άβ¨
π¦ where this page comes from
- ubuntu stonking: mrgingham 1.27-1 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms