Hello everybody
I am trying to make histogram of image. I wrote the following code for that:
import cv2
img=cv2.imread('avi.jpg')
gray= cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)
his=cv2.clacHist([img],[0],None,[256],[0,256])
then I am receiving the following error:
---------------------------------------------------------------------------
SystemError Traceback (most recent call last)
<ipython-input-12-732fd14676fa> in <module>()
----> 1 hist =
cv2.calcHist(gray,[Integer(0)],None,[Integer(256)],[Integer(0),Integer(256)])
SystemError: error return without exception set
What is my mistake?
--
A*vi kaur*
--
You received this message because you are subscribed to the Google Groups
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.