MCPcopy Create free account
hub / github.com/PyImageSearch/imutils / is_cv3

Function is_cv3

imutils/convenience.py:188–197  ·  view source on GitHub ↗
(or_better=False)

Source from the content-addressed store, hash-verified

186 return major == 2
187
188def is_cv3(or_better=False):
189 # grab the OpenCV major version number
190 major = get_opencv_major_version()
191
192 # check to see if we are using *at least* OpenCV 3
193 if or_better:
194 return major >= 3
195
196 # otherwise we want to check for *strictly* OpenCV 3
197 return major == 3
198
199def is_cv4(or_better=False):
200 # grab the OpenCV major version number

Callers 1

count_framesFunction · 0.85

Calls 1

get_opencv_major_versionFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…