Ask Your Question
0

Use computeNMChannels with the ERFILTER_NM_IHSGRAD option

asked 2016-11-29 08:39:08 -0600

updated 2016-11-29 09:15:36 -0600

berak gravatar image

Hello

I am trying to use the function computeNMChannels with the ERFILTER_NM_IHSGRAD option instead of the ERFILTER_NM_RGBLGrad default one in a python script. The following line throws an error:

channels = cv2.text.computeNMChannels(img, cv2.text.ERFILTER_NM_IHSGRAD)  
--> SystemError: error return without exception set

Can any one help me? How can Ii use this option?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2019-05-19 02:15:52 -0600

nkhdiscovery gravatar image

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)
edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2016-11-29 08:39:08 -0600

Seen: 461 times

Last updated: May 19 '19