Imshow() reports an error after C + + opencv 4.5.1 configures the environment

I checked the Internet for a long time and basically said that the path of imread() was wrong

Later, I saw under a comment that opencv4.5.1 needs to be removed     Linker – input – attach dependencies     Opencv in_ world451.lib

After deletion, the picture can be read normally

Read More: