Git Product home page Git Product logo

006939's Introduction

OpenCV 4로 배우는 컴퓨터 비전과 머신 러닝(길벗, 2019)

예제 파일에 대하여

• Microsoft Windows 10(64비트)을 기준으로 합니다.
• Visual Studio Community 2017과 OpenCV 4.0.0을 기준으로 합니다.
• Python 3.7.2와 TensorFlow 1.13.1을 기준으로 합니다.
• CMake 3.14.0을 기준으로 합니다.
• Ubuntu 18.04.2를 기준으로 합니다.

소스 코드 빌드 및 실행 방법

  • Windows & Visual Studio 2017

    * Visual Studio 2017에서 *.sln 파일을 불러온 후 [빌드] -> [솔루션 빌드] 메뉴를 선택하세요.
    * 프로그램 실행은 [디버그] -> [디버그하지 않고 시작] 메뉴를 선택하세요.
    
  • Linux

    $ cd <project>
    $ cmake .
    $ make
    $ ./<project>
  • 파이썬으로 구현한 소스 코드

    [저자 깃허브]에서 책의 예제를 파이썬 언어로 구현한 소스 코드를 공개합니다. 다만 책 본문에서 설명하는 Mat 클래스, Scalar 클래스 사용법 등 C/C++ 언어에 특화된 내용은 Python 예제로 제공하지 않습니다.

    관련 동영상

    저자 깃허브[링크]에서 Visual Studio 2017과 OpenCV 설치 방법, 일부 책 내용에 대한 동영상 강의를 제공합니다.

    오프라인 강의

    “OpenCV 4로 배우는 컴퓨터 비전과 머신 러닝” 책은 [패스트캠퍼스]에서 진행 중인 [OpenCV로 배우는 컴퓨터 비전 프로그래밍] 강의 내용을 기반으로 출간되었습니다. 패스트캠퍼스 강의는 [링크]를 참고하기 바랍니다.

    006939's People

    Stargazers

     avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

    Watchers

     avatar  avatar  avatar  avatar  avatar

    006939's Issues

    /ch15/svmplane/ error 수정

    안녕하세요. 실습코드를 보며 공부중인 학생입니다.
    저는 현재 Ubuntu18.04에서 OpenCV 3.4.0으로 실습을 진행중입니다.

    제가 낮은 OpenCV 버전으로 실습을 진행해서 인지,
    ch15/svmplane 코드를 실행시키면,

    OpenCV Error: Assertion failed (samples.cols == var_count && samples.type() == 5) in predict, file /home/taeyoungkim/opencv/opencv-3.4.0/modules/ml/src/svm.cpp, line 2005

    에러가 발생합니다.

    main.cpp에 있는 코드 중에서
    Mat train 부분과 Mat test부분을 OpenCV 3.xx 에서 돌아갈 수 있도록 수정을 하고,
    Mat test = Mat_<float>({ 1, 2 }, { (float)i, (float)j }); 부분을
    Mat test = (Mat_<float>(1, 2) << (float)i, (float)j ); 로 바꾸면 error 없이 실습이 진행됩니다.

    혹시 저와 같은 문제를 같고 계신 분들에게 도움이 되었으면 해서 Issue를 남깁니다.

    감사합니다.

    Recommend Projects

    • React photo React

      A declarative, efficient, and flexible JavaScript library for building user interfaces.

    • Vue.js photo Vue.js

      🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

    • Typescript photo Typescript

      TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

    • TensorFlow photo TensorFlow

      An Open Source Machine Learning Framework for Everyone

    • Django photo Django

      The Web framework for perfectionists with deadlines.

    • D3 photo D3

      Bring data to life with SVG, Canvas and HTML. 📊📈🎉

    Recommend Topics

    • javascript

      JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

    • web

      Some thing interesting about web. New door for the world.

    • server

      A server is a program made to process requests and deliver data to clients.

    • Machine learning

      Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

    • Game

      Some thing interesting about game, make everyone happy.

    Recommend Org

    • Facebook photo Facebook

      We are working to build community through open source technology. NB: members must have two-factor auth.

    • Microsoft photo Microsoft

      Open source projects and samples from Microsoft.

    • Google photo Google

      Google ❤️ Open Source for everyone.

    • D3 photo D3

      Data-Driven Documents codes.