find_package(OpenCV 4.2.0 REQUIRED) is enough. You dont need to specify the version later on I think. Check the following question. It gives a ...
確定! 回上一頁