mirror of
https://github.com/opencv/opencv.git
synced 2024-11-30 22:40:17 +08:00
c0016d7fe9
* cmake: install 'legacy/constants_c.h' files * samples: add compatibility test code
20 lines
432 B
C++
20 lines
432 B
C++
#include <iostream>
|
|
|
|
#include <opencv2/core.hpp>
|
|
|
|
#include <opencv2/imgcodecs/legacy/constants_c.h>
|
|
#include <opencv2/videoio/legacy/constants_c.h>
|
|
#include <opencv2/photo/legacy/constants_c.h>
|
|
#include <opencv2/video/legacy/constants_c.h>
|
|
|
|
using namespace cv;
|
|
|
|
int main(int /*argc*/, const char** /*argv*/)
|
|
{
|
|
std::cout
|
|
<< (int)CV_LOAD_IMAGE_GRAYSCALE
|
|
<< (int)CV_CAP_FFMPEG
|
|
<< std::endl;
|
|
return 0;
|
|
}
|