opencv+Qt cannot locate the program input point/cannot find xx.dll or the program ends abnormally

Click the exe of Qt, and it pops up that the input point of the program cannot be located/xx.dll cannot be found
Insert picture description here
as shown above

At this time, the system environment variable path has been set

Reason: The
**waitkey()** function is used in the program code. At this time, the first process is paused, and another process is starting/running, so when the wait ends, a conflict occurs and the program ends abnormally.

Solution:
delete waitkey(). Or replace it with the sleep operation in Qt. If it is a problem with other threads, you can create multiple threads or thread pools to operate.

Guess you like

Origin blog.csdn.net/weixin_45907789/article/details/108857037