Workaround for undefined reference to cv::findHomography

error phenomenon

When using the cv::findHomography function, the following error will be printed when the program is running:
for 'cv::findHomography(cv::_InputArray const&, cv::_InputArray const&, int, double, cv::_OutputArray const&, int, double) 'undefined reference to

Solution:

Add the opencv_calib3d library to the opencv link library list in the Makefile file

Guess you like

Origin blog.csdn.net/jndingxin/article/details/119649626