OpenCV 4.0 not supported #1

Closed
opened 2018-10-31 12:18:27 +01:00 by marcigarza · 1 comment
marcigarza commented 2018-10-31 12:18:27 +01:00 (Migrated from github.com)

/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.

/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.
ceccocats commented 2020-01-16 17:57:07 +01:00 (Migrated from github.com)

Now opencv 4 is supported

Now opencv 4 is supported
This repo is archived. You cannot comment on issues.
1 Participants
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: mmr/tkDNN#1