Home > Software engineering >  Opencv small white one, a problem for a long time
Opencv small white one, a problem for a long time

Time:09-26


Why don't read the image? Under the debug and release all not line, everyone to look at. Thanks

CodePudding user response:

Close the UAC, firewall, anti-virus software,...
As an administrator to run
Another picture
In other logical disk

CodePudding user response:

Opencv compiled libraries and VS is not compatible with you use, you need to use Cmake do a corresponding opencv VS version package with you, and then compile the generated project file, and then use in your application

CodePudding user response:

Determine the img. Empty () is True, True means that you read in the path of the image may have a problem, figure don't read in

CodePudding user response:

This problem is a little complicated.. Pass by

CodePudding user response:

To determine if img is null in said, otherwise can't jump to conclusions

CodePudding user response:


if

CodePudding user response:

Step through it into a not to the main function, may be not configured properly

CodePudding user response:

meets a hair the same problem as before, the code for a long time,
















Finally found that the debug version with the release version or, in turn, the

CodePudding user response:

Did not read the pictures, see if there is something wrong with the path

CodePudding user response:

refer to the eighth floor u012072837 response:
meets a hair the same problem as before, research for a long time code,
















Finally found that the debug version with the release version or, in turn, the

The debug/release
X86/x64 amd64
The static/dynamic
WinXP/Vista/7/8/10
The DBMS/Unicode/UTF8
.

CodePudding user response:

Check the libraries and vs version are consistent

CodePudding user response:

Pass by to see the great god answers
  • Related