import_opencv

imagepypelines.import_opencv()[source]

Direct opencv imports are discouraged for imagepypelines developers because it is not automatically installed alongside imagepypelines, and therefore may cause confusing errors to users.

This function will check if opencv is installed and import it if possible. If opencv is not importable, it will print out installation instructions.

Returns:module reference to opencv
Return type:module