Thanks Lucas for reporting. This seems to be an issue detected with gcc 10.2.1, since I tried with the exact opencv version 4.5.1 and both gcc 7.5 and 10.2.0 and it didn't complain about that ambiguity. I'll try to install gcc 10.2.1 to verify this.
Best, JL

