<button id="ssm6u"><optgroup id="ssm6u"></optgroup></button>
  • 跳轉至

    番外篇-關于cv2的編號

    概要

    講解了為什么用的是OpenCV3,但是 import的時候,引入的是cv2.

    keywords OpenCV 版本號 cv2

    OpenCV版本號的問題

    大家有沒有想過一個問題, 阿凱帶大家安裝的是opencv3.3版本, 為啥引用這個包的時候, 這個包依然叫cv2呢, 這個問題一直困惑了阿凱很久. 直到阿凱在OpenCV問答社區里找到了答案.

    @hoju, actually the 2 does not refer to the version number of OpenCV. Basically it is the difference between the underlying C API, which is denoted by the cv prefix and the C++ API which is denoted by the cv2 prefix. This is mainly a historical matter and it is kept to keep backwards compatibility. It also allows you to combine the C and C++ interface if you really need it, but which is discouraged a lot!
    

    意思是, opencv的cv1, cv2 指的不是opencv的版本號, 而是opencv底層開發語言的版本. 最開始opencv1的底層是用C語言開發的. opencv2 跟opencv3 是用c++寫的. 所以cv1 指代的是C版本的opencv. cv2 指的是c++版本的opencv.

    阿凱之前看的一本opencv的教程learning opencv 代碼講解就是用C寫的, 因為出的比較早.

    0119_learning_opencv.jpg


    韩国精品无码一区二区三区,精品无码一区二区三区AV,欧洲丰满美熟女乱又伦AV,亚洲午夜久久久影院伊人