> > 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 in the command line, or as a notebook, the IPython notebook included in Sage (which you can also still use Sage from, I believe). -- 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.
