opencv / opencv

Open Source Computer Vision Library
https://opencv.org
Apache License 2.0
77.96k stars 55.69k forks source link

Python & .jp2 - imread() error on Windows only #4727

Open opencv-pushbot opened 9 years ago

opencv-pushbot commented 9 years ago

Transferred from http://code.opencv.org/issues/3640

|| Yasuyuki Araki on 2014-04-10 08:30
|| Priority: Normal
|| Affected: 2.4.0 - 2.4.8
|| Category: highgui-images
|| Tracker: Bug
|| Difficulty: Medium
|| PR: 
|| Platform: x86 / Windows

Python & .jp2 - imread() error on Windows only

Attempting to open some JPEG2000 files fails on Windows 7.

im = cv2.imread("chartsample.jp2")
error: cannot decode code stream

It succeeds on Linux (CentOS 6) and Mac (OS X 10).
Is there any workarounds?

History

chuansheng wei on 2014-04-10 17:52
i've try myself to read the img on ubuntu and win7,it succeed on both system. maybe your windows7 system got some problem
Alexander Shishkov on 2014-05-06 20:34
-   Affected version changed from 2.4.8 (latest release) to 2.4.0 -
    2.4.8
-   Difficulty set to Medium
-   Assignee set to Alexander Smorkalov
-   Category set to highgui-images
Andrew Senin on 2014-05-07 15:47
-   Status changed from New to Open
GeneralLHW commented 4 years ago

When I use imread(), I also encounter problems. For specific problems, please see the following link. My system is Mac OS. https://github.com/bytedeco/javacv/issues/1343#issuecomment-617675010