Skip to content

AwsTileRequest.get_data() doesn't work #33

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
shmulik90 opened this issue May 21, 2018 · 2 comments
Closed

AwsTileRequest.get_data() doesn't work #33

shmulik90 opened this issue May 21, 2018 · 2 comments

Comments

@shmulik90
Copy link

Hi there,
I'm jsut getting into your python tool but I am not able to reproduce your Aws example.
grafik

@AleksMat
Copy link
Contributor

Hi shmulik90,

you are right, the example doesn't work anymore and we found out the reason is the new version of opencv-python Python package used for reading JPEG 2000 images from file.

It was updated 2 days ago from 3.4.0.14 to 3.4.1.15 and now supports OpenCV library 3.4.1. The new version can only read 8-bit or 16-bit JPEG 2000 files and in case of Sentinel-2 tiles, which are 15-bit, just returns None.
(This is actually somewhat improvement from the previous version which read 15-bit incorrectly and we had to write additional code in sentinelhub to correct the values.)

So the solution would be that you revert your version of opencv-python library to 3.4.0.14 with:

pip uninstall opencv-python
pip install opencv-python==3.4.0.14

And we will update sentinelhub setup with dependency to this older version of python-opencv. Until OpenCV is improved again or we find alternative library for reading 15-bit jp2 files this solution will have to do.

@AleksMat
Copy link
Contributor

We have just released sentinelhub version 2.0.2 with dependency opencv-python==3.4.0.14. With this everything should work again.

Thanks for reporting the problem.

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

No branches or pull requests

2 participants