Detecting square markers in underwater environments