Skip to content
This repository has been archived by the owner on Jul 2, 2021. It is now read-only.

Accept pathlib.Path type for read_image. #933

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

sergeant-wizard
Copy link
Contributor

This patch enables users to pass a pathlib.Path object to read_image, which is currently not possible due to the limitations cv2.imread ( cv2.imread(pathlib.Path('hoge.png')) throws a cryptic error )

@sergeant-wizard
Copy link
Contributor Author

Looks like we need to wait for the drop of python 2 support 😭

@Hakuyume
Copy link
Member

Hakuyume commented Oct 8, 2019

FYI: Our policy about py2 support is here.

@sergeant-wizard
Copy link
Contributor Author

sergeant-wizard commented Oct 8, 2019

Will ChainerCV update to Chainer 7 after its stable release and then drop Py2 support?

@Hakuyume
Copy link
Member

Hakuyume commented Oct 8, 2019

After Chainer v7 becomes stable, we can drop py2 support from ChainerCV.

@sergeant-wizard
Copy link
Contributor Author

sergeant-wizard commented Oct 9, 2019 via email

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants