Relative Content

Tag Archive for pythonnumpyimageopencvpython-requests

How to load uint16 png file via requests and opencv in python

I’m trying to automatically load and image from URL and then load it to the numpy matrix. For this I need to use requests and opencv library. It works in the correct way for standard images that are encoded like uint8 and it corrupts the uint16 imaged because of overflowing the values: