Skip to contents

Best-effort crop to the board by trimming near-uniform margins

Usage

autocrop_board(img)

Arguments

img

A magick image of a board, possibly with surrounding margins.

Value

A magick image cropped to the detected square board region.