1 | initial version |
As the OpenCV's documentation for computeNMChannels says, it is:
_channels = cv.text.computeNMChannels( _src[, _channels[, _mode]] )
so you have to specify the argument name like:
channels = cv2.text.computeNMChannels(img, _mode = cv2.text.ERFILTER_NM_IHSGRAD)