OpenCV Error: Assertion failed in unknown function,

后端 未结 2 1612
遇见更好的自我
遇见更好的自我 2021-01-26 15:54

I read alot from other solution but i still confused what should i do with mine...

#include 
#include 

        
2条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-26 15:58

    Okay, I think I know what happened. I tried running the program and it worked perfectly.

    You have probably not linked the required DLL's.. Make sure (in case you are using Windows) your opencv/bin is included in your environment variables. This is my CMakeLists.txt file to make things easier for you,

    cmake_minimum_required(VERSION 2.6 FATAL_ERROR)
    project(SO_example)
    
    FIND_PACKAGE(OpenCV REQUIRED)
    
    SET (SOURCES
        #VTKtoPCL.h
        main.cpp
        )
    
    add_executable(so_example ${SOURCES})
    target_link_libraries(so_example ${OpenCV_LIBS})
    

提交回复
热议问题