An Open CV implementation of a rectangle detector