Skip to content
/ cv2to3 Public

fix some of the compatibility issues between opencv2 and opencv3

Notifications You must be signed in to change notification settings

postpop/cv2to3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

cv2to3

Fixes 95% of the compatibility issues between opencv2 and opencv3. This is done by remapping some of the API in opencv2 to the new, opencv3 style. That way, code written targeting opencv3 will work in opencv2.

Cases in which the function signatures have been changed in opencv3 (e.g. cv2.kmeans) are impossible to fix with this approach. Detection of the current opencv version is facilitated using the added convenience functions is_cv2() and is_cv3().

The following things have been fixed - use the opencv3 version even if you run opencv2:

opencv2 opencv3
property names cv2.cv.CV_* cv2.*
fourcc cv2.cv.CV_FOURCC cv2.VideoWriter_fourcc

About

fix some of the compatibility issues between opencv2 and opencv3

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages