Skip to content

Conversation

@jimmy-liu1021
Copy link

Description

cv2.imread does not accept pathlib.Path objects, but cellpose.io
passes Path objects directly in some code paths, which raises:

TypeError: Can't convert object to 'str' for 'filename'

Fix

Convert path-like objects to string before calling cv2.imread and cv2.imwrite.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant