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 1 commit
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
8 changes: 8 additions & 0 deletions R-package/src/im2rec.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,14 @@
* \brief Export module that takes charge of code generation and document
* Generation for functions exported from R-side
*/
#include <opencv2/core/version.hpp>
#if CV_VERSION_MAJOR >= 4

#define CV_IMWRITE_PNG_COMPRESSION cv::IMWRITE_PNG_COMPRESSION
#define CV_IMWRITE_JPEG_QUALITY cv::IMWRITE_JPEG_QUALITY

#endif // CV_VERSION_MAJOR >= 4


#ifndef MXNET_RCPP_IM2REC_H_
#define MXNET_RCPP_IM2REC_H_
Expand Down