OpenCV 4.0 not supported #1
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
/home/nvidia/tkDNN/demo/detection/detection.cpp: In function ‘int main(int, char**)’:
/home/nvidia/tkDNN/demo/detection/detection.cpp:163:54: error: ‘CV_LOAD_IMAGE_COLOR’ was not declared in this scope
cv::Mat img = cv::imread(image_path.c_str(), CV_LOAD_IMAGE_COLOR);
The solution to this error is to change CV_LOAD_IMAGE_COLOR for cv::IMREAD_COLOR.
Since opencv 4.0 the macros have changed.
Now opencv 4 is supported