Skip to content

Relative vs. Absolute Path #534

@predmach

Description

@predmach

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions