• 大小: 21.16M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-07-03
  • 语言: 其他
  • 标签: 其他  

资源简介

Learning-OpenCV-3_examples.zip

资源截图

代码片段和文件信息

//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-04-10 15:41  Learning-OpenCV-3_examples\
     文件        5237  2018-04-10 15:41  Learning-OpenCV-3_examples\BlueCup.jpg
     文件        8293  2018-04-10 15:41  Learning-OpenCV-3_examples\CMakeLists.txt
     文件        4231  2018-04-10 15:41  Learning-OpenCV-3_examples\Dockerfile
     文件        6470  2018-04-10 15:41  Learning-OpenCV-3_examples\Exercises_11-1-2-5-6-7.cpp
     文件        6215  2018-04-10 15:41  Learning-OpenCV-3_examples\Exercises_13_1-2-11.cpp
     文件        9078  2018-04-10 15:41  Learning-OpenCV-3_examples\Exercises_13_9.cpp
     文件        6240  2018-04-10 15:41  Learning-OpenCV-3_examples\Exercises_5.cpp
     文件        4431  2018-04-10 15:41  Learning-OpenCV-3_examples\Exercises_7.cpp
     文件        3184  2018-04-10 15:41  Learning-OpenCV-3_examples\Exercises_8_1.cpp
     文件       10318  2018-04-10 15:41  Learning-OpenCV-3_examples\Exercises_9_1-2-10-11-12-15-16.cpp
     文件        2188  2018-04-10 15:41  Learning-OpenCV-3_examples\Exercises_9_4.cpp
     文件        2294  2018-04-10 15:41  Learning-OpenCV-3_examples\Exercises_9_5.cpp
     文件       97472  2018-04-10 15:41  Learning-OpenCV-3_examples\HandIndoorColor.jpg
     文件      145318  2018-04-10 15:41  Learning-OpenCV-3_examples\HandOutdoorColor.jpg
     文件      106007  2018-04-10 15:41  Learning-OpenCV-3_examples\HandOutdoorSunColor.jpg
     文件        7958  2018-04-10 15:41  Learning-OpenCV-3_examples\README.md
     文件      189623  2018-04-10 15:41  Learning-OpenCV-3_examples\adrian.jpg
     目录           0  2018-04-10 15:41  Learning-OpenCV-3_examples\birdseye\
     文件        6148  2018-04-10 15:41  Learning-OpenCV-3_examples\birdseye\.DS_Store
     文件      317775  2018-04-10 15:41  Learning-OpenCV-3_examples\birdseye\IMG_0214.jpg
     文件      317832  2018-04-10 15:41  Learning-OpenCV-3_examples\birdseye\IMG_0214L.jpg
     文件      325383  2018-04-10 15:41  Learning-OpenCV-3_examples\birdseye\IMG_0215.jpg
     文件      325446  2018-04-10 15:41  Learning-OpenCV-3_examples\birdseye\IMG_0215L.jpg
     文件      302958  2018-04-10 15:41  Learning-OpenCV-3_examples\birdseye\IMG_0217.jpg
     文件      302321  2018-04-10 15:41  Learning-OpenCV-3_examples\birdseye\IMG_0217L.jpg
     文件      296209  2018-04-10 15:41  Learning-OpenCV-3_examples\birdseye\IMG_0218.jpg
     文件      295342  2018-04-10 15:41  Learning-OpenCV-3_examples\birdseye\IMG_0218L.jpg
     文件      297508  2018-04-10 15:41  Learning-OpenCV-3_examples\birdseye\IMG_0219.jpg
     文件      297073  2018-04-10 15:41  Learning-OpenCV-3_examples\birdseye\IMG_0219L.jpg
     文件      348274  2018-04-10 15:41  Learning-OpenCV-3_examples\birdseye\IMG_0220.jpg
............此处省略167个文件信息

评论

共有 条评论