Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

openCV version and cv2.VideoWriter_fourcc() #9

Open
lazydroid opened this issue Jan 30, 2019 · 0 comments
Open

openCV version and cv2.VideoWriter_fourcc() #9

lazydroid opened this issue Jan 30, 2019 · 0 comments

Comments

@lazydroid
Copy link

There's a minor difference in openCV version 2.x and 3.x, it might be nice to use something like this:

if opencv_version() == 2:
	fourcc = cv2.cv.FOURCC(*output_format)
elif opencv_version() == 3:
	fourcc = cv2.VideoWriter_fourcc(*output_format)
else:
	raise
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant