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:
- Environment configuration at the beginning of OpenCV + vs2015
- Pychar configures Anaconda environment
- Mac clion configuring opencv environment
- The C language qsort() function reports an error for overflow of – 2147483648 and 2147483648
- Unit Android converts c# class to JSON file and reports an error
- Opencv: 0xc0000005: an access conflict occurred while reading location 0x0000000010
- cv2.error: OpenCV(4.5.1) C:\Users\appveyor\AppData\Local\Temp\1\pip-req-buil
- Python calls C to generate so library and reports an error: undefined symbol
- Hadoop reports an error. Cannot access scala.serializable and python MapReduce reports an error
- Project files may be invalid appears when cmake compiles opencv3.1, and the debug additional dependency of the compiled opencv3.1 is at the end
- The file server reports an error of 413, and the file uploaded by nginx reports an error of 413 request entity too large
- The echots in Vue reports an error. After obtaining the DOM element, the chart can be displayed. The console still reports an error
- HTML method IE8 reports an error, IE8 jQuery Ajax obtains static resources reports an error, typeerror denies access
- Lamdba in the studio part reports an error. Observe lamdba reports an error but can run
- Opencv perfect configuration strategy 2015 (win7 + opencv 2.4.9 + vs 2013)
- Opencv problem: opencv error: assertion failed (! Empty()) in detectmultiscale
- [opencv + openvino] opencv-vino4.5.1 + opencv contrib installation
- Configuring C + + environment with atom under ubuntu1404