why opencv imshow() create a new window has the same name as namedWindow() does in Debug Mode?

前端 未结 1 1737
轮回少年
轮回少年 2020-12-07 04:17

I want to create a mat and show it in a window named \"figure\".

If there is nothing wrong, there should be a window named \"figure\", and accept any key to stop.

相关标签:
1条回答
  • 2020-12-07 04:51

    This problem is due to wrong linking settings.

    • In Debug, you need to link only to the debug library opencv_world331d.lib
    • In Release, you need to link only to the release library opencv_world331.lib
    0 讨论(0)
提交回复
热议问题