TypeError: CvArr argument 'src' must be IplImage, CvMat, or CvMatND. Use fromarray() to convert numpy arrays to CvMat or cvMatND.
Received this error when executing SimpleCV [[img=Image('test.jpg'); img.save('test2.jpg')]] from a Celery task. It is possible that the current working directory of the celeryd is not the same as the directory, which would have made the image object invalid. The error indicates that the argument is the wrong type, not that the image wasn't loaded.
By changing the relative path to an absolute path, the error was resolved. (credit: ionelmc)
I would expect an error that would indicate that the image did not load.
TypeError: CvArr argument 'src' must be IplImage, CvMat, or CvMatND. Use fromarray() to convert numpy arrays to CvMat or cvMatND.
Received this error when executing SimpleCV [[img=Image('test.jpg'); img.save('test2.jpg')]] from a Celery task. It is possible that the current working directory of the celeryd is not the same as the directory, which would have made the image object invalid. The error indicates that the argument is the wrong type, not that the image wasn't loaded.
By changing the relative path to an absolute path, the error was resolved. (credit: ionelmc)
I would expect an error that would indicate that the image did not load.