OpenCV for C++ Builder Rad Studio 12.2

this is what your compiler has, not what was built into the msvc dll
different string implementation → different function signature → name mangling mismatch

just out of curiosity: could you show us the .def file, please ?