On Mon, Jun 29, 2015 at 6:28 PM, kcrisman <[email protected]> wrote:
>> 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
>>
>
> The error is very vague, but a first guess is that cv2 can't handle Sage
> Integers. So using int(256) and int(0) might help.
>
> More generally, if you are not going to be using a lot of Sage-specific
> functionality but mostly Python packages, you may want to try using
>
> sage -ipython
I tried it with sage -ipython and as a result it shows vertical
line. It does not show histogram :(.
--
Avi kaur
Blog: https://avikashyap620.wordpress.com
"There is no lacking of opportunity, The thing is you do not want to see It"
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "sage-support" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/sage-support/s7fM---nxmc/unsubscribe.
> To unsubscribe from this group and all its topics, 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.
--
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.