Importing decord before cv2 causes cv2.imread raise error
Open
- Dominant language
- C++
- Stars
- 2.5k
- Forks
- 232
- PR merge metrics
- No merged PRs in 30d
Description
If decord is imported before cv2, then `cv2.imread` will raise error `libpng error: bad parameters to zlib` and `a is None`
```python
# import cv2
import decord
import cv2
a = cv2.imread('./test.png')
print('a is None?:', a is None)
```
If cv2 is imported before decord, then everything works well.
```python
import cv2
import decord
# import cv2
a = cv2.imread('./test.png')
print('a is None?:', a is None)
```
@X-niper found that `transformer == 4.49.0` was affected by this issue prior to the merging of PR https://github.com/huggingface/transformers/pull/36435/.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.