ChenYingpeng / caffe-yolov3

A real-time object detection framework of Yolov3/v4 based on caffe
472 stars 230 forks source link

opencv path fixing, help me , how to add path #42

Open adhirmndl opened 5 years ago

adhirmndl commented 5 years ago

CMake Error at CMakeLists.txt:68 (FIND_PACKAGE): By not providing "FindOpenCV.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "OpenCV", but CMake did not find one.

Could not find a package configuration file provided by "OpenCV" with any of the following names:

OpenCVConfig.cmake
opencv-config.cmake

Add the installation prefix of "OpenCV" to CMAKE_PREFIX_PATH or set "OpenCV_DIR" to a directory containing one of the above files. If "OpenCV" provides a separate development package or SDK, be sure it has been installed.

CMake Error: The following variables are used in this project, but they are set to NOTFOUND. Please set them or make sure they are set and tested correctly in the CMake files: CUDA_CUDART_LIBRARY (ADVANCED) linked by target "sysDetectSpeed" in directory /home/adhir/caffe-yolov3 linked by target "detectnet" in directory /home/adhir/caffe-yolov3/detectnet CUDA_TOOLKIT_INCLUDE (ADVANCED)

gttiankai commented 4 years ago

the same problem

tjh123321 commented 4 years ago

fuck problem

adhirmndl commented 4 years ago

LOL :)

tjh123321 commented 4 years ago

you need sdk

deeplearning666 commented 4 years ago

在CMakeLists中添加如下语句: SET(OpenCV_DIR /usr/local/share/OpenCV) find_package(OpenCV REQUIRED)

ShreyVDesai commented 1 year ago

I did this but im not able to see any output

C make lists .txt


cmake_minimum_required(VERSION 3.0.0)
project(vidDisplay  VERSION 0.1.0)

include(CTest)
enable_testing()

set(OpenCV_DIR C:/opencv-4.6.0/build)
find_package(OpenCV REQUIRED)
include_directories( ${OpenCV_INCLUDE_DIRS})

add_executable(vidDisplay src/vidDisplay.cpp)

target_link_libraries( vidDisplay ${OpenCV_LIBS})

set(CPACK_PROJECT_NAME ${PROJECT_NAME})
set(CPACK_PROJECT_VERSION ${PROJECT_VERSION})
include(CPack)

vidDisplay.cpp

`//

include<opencv2/opencv.hpp>

include

include

int main(int argc, char *argv[]) {

    cv::Mat image = cv::imread("img/img1p3.png");
    cv::namedWindow("Object");
    cv::imshow("Object",image);

    return(0);

}`