参考リンク:エラー: putText は CV のメンバーではありませんか? (エラー: putText は CV のメンバーではありません?)_コンピュータ トレーニング
ヘッダーファイルを追加
#include "imgproc.hpp"