资源简介

学习OpenCV3(中文版)实力源码

资源截图

代码片段和文件信息

//Example 2-1. A simple OpenCV program that loads an image from disk and displays it
//on the screen
#include 

void help(char** argv ) {
std::cout << “\n“
<< “A simple OpenCV program that loads and displays an image from disk\n“
<< argv[0] <<“ \n“
<< “For example:\n“
<< argv[0] << “ ../fruits.jpg\n“
<< std::endl;
}


int main( int argc char** argv ) {

if (argc != 2) {
help(argv);
return 0;
}


  cv::Mat img = cv::imread( argv[1] -1 );

  if( img.empty() ) return -1;

  cv::namedWindow( “Example 2-1“ cv::WINDOW_AUTOSIZE );
  cv::imshow( “Example 2-1“ img );
  cv::waitKey( 0 );
  cv::destroyWindow( “Example 2-1“ );

  return 0;
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-10-30 10:12  Learning-OpenCV3\
     文件        5237  2017-08-04 01:23  Learning-OpenCV3\BlueCup.jpg
     文件        8118  2017-08-04 01:23  Learning-OpenCV3\CMakeLists.txt
     文件        4119  2017-08-04 01:23  Learning-OpenCV3\Dockerfile
     文件        6312  2018-10-31 04:49  Learning-OpenCV3\Exercises_11-1-2-5-6-7.cpp
     文件        6084  2018-10-31 04:49  Learning-OpenCV3\Exercises_13_1-2-11.cpp
     文件        8723  2018-10-31 04:49  Learning-OpenCV3\Exercises_13_9.cpp
     文件        6088  2017-08-04 01:23  Learning-OpenCV3\Exercises_5.cpp
     文件        4318  2018-10-31 04:49  Learning-OpenCV3\Exercises_7.cpp
     文件        3093  2018-10-31 04:49  Learning-OpenCV3\Exercises_8_1.cpp
     文件       10113  2018-10-31 04:44  Learning-OpenCV3\Exercises_9_1-2-10-11-12-15-16.cpp
     文件        2122  2017-08-04 01:23  Learning-OpenCV3\Exercises_9_4.cpp
     文件        2230  2017-08-04 01:23  Learning-OpenCV3\Exercises_9_5.cpp
     文件       97472  2017-08-04 01:23  Learning-OpenCV3\HandIndoorColor.jpg
     文件      145318  2017-08-04 01:23  Learning-OpenCV3\HandOutdoorColor.jpg
     文件      106007  2017-08-04 01:23  Learning-OpenCV3\HandOutdoorSunColor.jpg
     文件        7783  2017-08-04 01:23  Learning-OpenCV3\README.md
     文件      189623  2017-08-04 01:23  Learning-OpenCV3\adrian.jpg
     目录           0  2017-08-04 01:23  Learning-OpenCV3\birdseye\
     文件        6148  2017-08-04 01:23  Learning-OpenCV3\birdseye\.DS_Store
     文件      317775  2017-08-04 01:23  Learning-OpenCV3\birdseye\IMG_0214.jpg
     文件      317832  2017-08-04 01:23  Learning-OpenCV3\birdseye\IMG_0214L.jpg
     文件      325383  2017-08-04 01:23  Learning-OpenCV3\birdseye\IMG_0215.jpg
     文件      325446  2017-08-04 01:23  Learning-OpenCV3\birdseye\IMG_0215L.jpg
     文件      302958  2017-08-04 01:23  Learning-OpenCV3\birdseye\IMG_0217.jpg
     文件      302321  2017-08-04 01:23  Learning-OpenCV3\birdseye\IMG_0217L.jpg
     文件      296209  2017-08-04 01:23  Learning-OpenCV3\birdseye\IMG_0218.jpg
     文件      295342  2017-08-04 01:23  Learning-OpenCV3\birdseye\IMG_0218L.jpg
     文件      297508  2017-08-04 01:23  Learning-OpenCV3\birdseye\IMG_0219.jpg
     文件      297073  2017-08-04 01:23  Learning-OpenCV3\birdseye\IMG_0219L.jpg
     文件      348274  2017-08-04 01:23  Learning-OpenCV3\birdseye\IMG_0220.jpg
............此处省略168个文件信息

评论

共有 条评论