On Mon, Jun 29, 2015 at 6:28 PM, kcrisman <
kcri...@gmail.com> 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
line. It does not show histogram :(.
"There is no lacking of opportunity, The thing is you do not want to see It"