Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

[R package] Make R package compilation support opencv 4.0 #16934

Merged
merged 4 commits into from
Dec 5, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions R-package/src/im2rec.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@

#include <Rcpp.h>
#include <string>
#include <opencv2/core/version.hpp>
#if CV_VERSION_MAJOR >= 4
#include <opencv2/opencv.hpp>
#define CV_IMWRITE_PNG_COMPRESSION cv::IMWRITE_PNG_COMPRESSION
#define CV_IMWRITE_JPEG_QUALITY cv::IMWRITE_JPEG_QUALITY
#endif // CV_VERSION_MAJOR >= 4

namespace mxnet {
namespace R {
Expand Down